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

Similar Problems from Web Search

Share

x-6y=16
Consider the first equation. Subtract 6y from both sides.
x-6y=16,9x-2y=-12
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.
x-6y=16
Choose one of the equations and solve it for x by isolating x on the left hand side of the equal sign.
x=6y+16
Add 6y to both sides of the equation.
9\left(6y+16\right)-2y=-12
Substitute 6y+16 for x in the other equation, 9x-2y=-12.
54y+144-2y=-12
Multiply 9 times 6y+16.
52y+144=-12
Add 54y to -2y.
52y=-156
Subtract 144 from both sides of the equation.
y=-3
Divide both sides by 52.
x=6\left(-3\right)+16
Substitute -3 for y in x=6y+16. Because the resulting equation contains only one variable, you can solve for x directly.
x=-18+16
Multiply 6 times -3.
x=-2
Add 16 to -18.
x=-2,y=-3
The system is now solved.
x-6y=16
Consider the first equation. Subtract 6y from both sides.
x-6y=16,9x-2y=-12
Put the equations in standard form and then use matrices to solve the system of equations.
\left(\begin{matrix}1&-6\\9&-2\end{matrix}\right)\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}16\\-12\end{matrix}\right)
Write the equations in matrix form.
inverse(\left(\begin{matrix}1&-6\\9&-2\end{matrix}\right))\left(\begin{matrix}1&-6\\9&-2\end{matrix}\right)\left(\begin{matrix}x\\y\end{matrix}\right)=inverse(\left(\begin{matrix}1&-6\\9&-2\end{matrix}\right))\left(\begin{matrix}16\\-12\end{matrix}\right)
Left multiply the equation by the inverse matrix of \left(\begin{matrix}1&-6\\9&-2\end{matrix}\right).
\left(\begin{matrix}1&0\\0&1\end{matrix}\right)\left(\begin{matrix}x\\y\end{matrix}\right)=inverse(\left(\begin{matrix}1&-6\\9&-2\end{matrix}\right))\left(\begin{matrix}16\\-12\end{matrix}\right)
The product of a matrix and its inverse is the identity matrix.
\left(\begin{matrix}x\\y\end{matrix}\right)=inverse(\left(\begin{matrix}1&-6\\9&-2\end{matrix}\right))\left(\begin{matrix}16\\-12\end{matrix}\right)
Multiply the matrices on the left hand side of the equal sign.
\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}-\frac{2}{-2-\left(-6\times 9\right)}&-\frac{-6}{-2-\left(-6\times 9\right)}\\-\frac{9}{-2-\left(-6\times 9\right)}&\frac{1}{-2-\left(-6\times 9\right)}\end{matrix}\right)\left(\begin{matrix}16\\-12\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}x\\y\end{matrix}\right)=\left(\begin{matrix}-\frac{1}{26}&\frac{3}{26}\\-\frac{9}{52}&\frac{1}{52}\end{matrix}\right)\left(\begin{matrix}16\\-12\end{matrix}\right)
Do the arithmetic.
\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}-\frac{1}{26}\times 16+\frac{3}{26}\left(-12\right)\\-\frac{9}{52}\times 16+\frac{1}{52}\left(-12\right)\end{matrix}\right)
Multiply the matrices.
\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}-2\\-3\end{matrix}\right)
Do the arithmetic.
x=-2,y=-3
Extract the matrix elements x and y.
x-6y=16
Consider the first equation. Subtract 6y from both sides.
x-6y=16,9x-2y=-12
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.
9x+9\left(-6\right)y=9\times 16,9x-2y=-12
To make x and 9x equal, multiply all terms on each side of the first equation by 9 and all terms on each side of the second by 1.
9x-54y=144,9x-2y=-12
Simplify.
9x-9x-54y+2y=144+12
Subtract 9x-2y=-12 from 9x-54y=144 by subtracting like terms on each side of the equal sign.
-54y+2y=144+12
Add 9x to -9x. Terms 9x and -9x cancel out, leaving an equation with only one variable that can be solved.
-52y=144+12
Add -54y to 2y.
-52y=156
Add 144 to 12.
y=-3
Divide both sides by -52.
9x-2\left(-3\right)=-12
Substitute -3 for y in 9x-2y=-12. Because the resulting equation contains only one variable, you can solve for x directly.
9x+6=-12
Multiply -2 times -3.
9x=-18
Subtract 6 from both sides of the equation.
x=-2
Divide both sides by 9.
x=-2,y=-3
The system is now solved.