Skip to main content
Solve for y, x
Tick mark Image
Graph

Similar Problems from Web Search

Share

y+x^{2}-2x\left(x-3\right)=-\left(x^{2}+3x+9\right)
Consider the first equation. Variable x cannot be equal to 3 since division by zero is not defined. Multiply both sides of the equation by x-3, the least common multiple of x-3,3-x.
y+x^{2}-2x^{2}+6x=-\left(x^{2}+3x+9\right)
Use the distributive property to multiply -2x by x-3.
y-x^{2}+6x=-\left(x^{2}+3x+9\right)
Combine x^{2} and -2x^{2} to get -x^{2}.
y-x^{2}+6x=-x^{2}-3x-9
To find the opposite of x^{2}+3x+9, find the opposite of each term.
y-x^{2}+6x+x^{2}=-3x-9
Add x^{2} to both sides.
y+6x=-3x-9
Combine -x^{2} and x^{2} to get 0.
y+6x+3x=-9
Add 3x to both sides.
y+9x=-9
Combine 6x and 3x to get 9x.
-y+9-3x=0
Consider the second equation. Subtract 3x from both sides.
-y-3x=-9
Subtract 9 from both sides. Anything subtracted from zero gives its negation.
y+9x=-9,-y-3x=-9
To solve a pair of equations using substitution, first solve one of the equations for one of the variables. Then substitute the result for that variable in the other equation.
y+9x=-9
Choose one of the equations and solve it for y by isolating y on the left hand side of the equal sign.
y=-9x-9
Subtract 9x from both sides of the equation.
-\left(-9x-9\right)-3x=-9
Substitute -9x-9 for y in the other equation, -y-3x=-9.
9x+9-3x=-9
Multiply -1 times -9x-9.
6x+9=-9
Add 9x to -3x.
6x=-18
Subtract 9 from both sides of the equation.
x=-3
Divide both sides by 6.
y=-9\left(-3\right)-9
Substitute -3 for x in y=-9x-9. Because the resulting equation contains only one variable, you can solve for y directly.
y=27-9
Multiply -9 times -3.
y=18
Add -9 to 27.
y=18,x=-3
The system is now solved.
y+x^{2}-2x\left(x-3\right)=-\left(x^{2}+3x+9\right)
Consider the first equation. Variable x cannot be equal to 3 since division by zero is not defined. Multiply both sides of the equation by x-3, the least common multiple of x-3,3-x.
y+x^{2}-2x^{2}+6x=-\left(x^{2}+3x+9\right)
Use the distributive property to multiply -2x by x-3.
y-x^{2}+6x=-\left(x^{2}+3x+9\right)
Combine x^{2} and -2x^{2} to get -x^{2}.
y-x^{2}+6x=-x^{2}-3x-9
To find the opposite of x^{2}+3x+9, find the opposite of each term.
y-x^{2}+6x+x^{2}=-3x-9
Add x^{2} to both sides.
y+6x=-3x-9
Combine -x^{2} and x^{2} to get 0.
y+6x+3x=-9
Add 3x to both sides.
y+9x=-9
Combine 6x and 3x to get 9x.
-y+9-3x=0
Consider the second equation. Subtract 3x from both sides.
-y-3x=-9
Subtract 9 from both sides. Anything subtracted from zero gives its negation.
y+9x=-9,-y-3x=-9
Put the equations in standard form and then use matrices to solve the system of equations.
\left(\begin{matrix}1&9\\-1&-3\end{matrix}\right)\left(\begin{matrix}y\\x\end{matrix}\right)=\left(\begin{matrix}-9\\-9\end{matrix}\right)
Write the equations in matrix form.
inverse(\left(\begin{matrix}1&9\\-1&-3\end{matrix}\right))\left(\begin{matrix}1&9\\-1&-3\end{matrix}\right)\left(\begin{matrix}y\\x\end{matrix}\right)=inverse(\left(\begin{matrix}1&9\\-1&-3\end{matrix}\right))\left(\begin{matrix}-9\\-9\end{matrix}\right)
Left multiply the equation by the inverse matrix of \left(\begin{matrix}1&9\\-1&-3\end{matrix}\right).
\left(\begin{matrix}1&0\\0&1\end{matrix}\right)\left(\begin{matrix}y\\x\end{matrix}\right)=inverse(\left(\begin{matrix}1&9\\-1&-3\end{matrix}\right))\left(\begin{matrix}-9\\-9\end{matrix}\right)
The product of a matrix and its inverse is the identity matrix.
\left(\begin{matrix}y\\x\end{matrix}\right)=inverse(\left(\begin{matrix}1&9\\-1&-3\end{matrix}\right))\left(\begin{matrix}-9\\-9\end{matrix}\right)
Multiply the matrices on the left hand side of the equal sign.
\left(\begin{matrix}y\\x\end{matrix}\right)=\left(\begin{matrix}-\frac{3}{-3-9\left(-1\right)}&-\frac{9}{-3-9\left(-1\right)}\\-\frac{-1}{-3-9\left(-1\right)}&\frac{1}{-3-9\left(-1\right)}\end{matrix}\right)\left(\begin{matrix}-9\\-9\end{matrix}\right)
For the 2\times 2 matrix \left(\begin{matrix}a&b\\c&d\end{matrix}\right), the inverse matrix is \left(\begin{matrix}\frac{d}{ad-bc}&\frac{-b}{ad-bc}\\\frac{-c}{ad-bc}&\frac{a}{ad-bc}\end{matrix}\right), so the matrix equation can be rewritten as a matrix multiplication problem.
\left(\begin{matrix}y\\x\end{matrix}\right)=\left(\begin{matrix}-\frac{1}{2}&-\frac{3}{2}\\\frac{1}{6}&\frac{1}{6}\end{matrix}\right)\left(\begin{matrix}-9\\-9\end{matrix}\right)
Do the arithmetic.
\left(\begin{matrix}y\\x\end{matrix}\right)=\left(\begin{matrix}-\frac{1}{2}\left(-9\right)-\frac{3}{2}\left(-9\right)\\\frac{1}{6}\left(-9\right)+\frac{1}{6}\left(-9\right)\end{matrix}\right)
Multiply the matrices.
\left(\begin{matrix}y\\x\end{matrix}\right)=\left(\begin{matrix}18\\-3\end{matrix}\right)
Do the arithmetic.
y=18,x=-3
Extract the matrix elements y and x.
y+x^{2}-2x\left(x-3\right)=-\left(x^{2}+3x+9\right)
Consider the first equation. Variable x cannot be equal to 3 since division by zero is not defined. Multiply both sides of the equation by x-3, the least common multiple of x-3,3-x.
y+x^{2}-2x^{2}+6x=-\left(x^{2}+3x+9\right)
Use the distributive property to multiply -2x by x-3.
y-x^{2}+6x=-\left(x^{2}+3x+9\right)
Combine x^{2} and -2x^{2} to get -x^{2}.
y-x^{2}+6x=-x^{2}-3x-9
To find the opposite of x^{2}+3x+9, find the opposite of each term.
y-x^{2}+6x+x^{2}=-3x-9
Add x^{2} to both sides.
y+6x=-3x-9
Combine -x^{2} and x^{2} to get 0.
y+6x+3x=-9
Add 3x to both sides.
y+9x=-9
Combine 6x and 3x to get 9x.
-y+9-3x=0
Consider the second equation. Subtract 3x from both sides.
-y-3x=-9
Subtract 9 from both sides. Anything subtracted from zero gives its negation.
y+9x=-9,-y-3x=-9
In order to solve by elimination, coefficients of one of the variables must be the same in both equations so that the variable will cancel out when one equation is subtracted from the other.
-y-9x=-\left(-9\right),-y-3x=-9
To make y and -y equal, multiply all terms on each side of the first equation by -1 and all terms on each side of the second by 1.
-y-9x=9,-y-3x=-9
Simplify.
-y+y-9x+3x=9+9
Subtract -y-3x=-9 from -y-9x=9 by subtracting like terms on each side of the equal sign.
-9x+3x=9+9
Add -y to y. Terms -y and y cancel out, leaving an equation with only one variable that can be solved.
-6x=9+9
Add -9x to 3x.
-6x=18
Add 9 to 9.
x=-3
Divide both sides by -6.
-y-3\left(-3\right)=-9
Substitute -3 for x in -y-3x=-9. Because the resulting equation contains only one variable, you can solve for y directly.
-y+9=-9
Multiply -3 times -3.
-y=-18
Subtract 9 from both sides of the equation.
y=18
Divide both sides by -1.
y=18,x=-3
The system is now solved.