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

Similar Problems from Web Search

Share

y+6x=-14
Consider the second equation. Add 6x to both sides.
8x+3y=-22,6x+y=-14
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.
8x+3y=-22
Choose one of the equations and solve it for x by isolating x on the left hand side of the equal sign.
8x=-3y-22
Subtract 3y from both sides of the equation.
x=\frac{1}{8}\left(-3y-22\right)
Divide both sides by 8.
x=-\frac{3}{8}y-\frac{11}{4}
Multiply \frac{1}{8} times -3y-22.
6\left(-\frac{3}{8}y-\frac{11}{4}\right)+y=-14
Substitute -\frac{3y}{8}-\frac{11}{4} for x in the other equation, 6x+y=-14.
-\frac{9}{4}y-\frac{33}{2}+y=-14
Multiply 6 times -\frac{3y}{8}-\frac{11}{4}.
-\frac{5}{4}y-\frac{33}{2}=-14
Add -\frac{9y}{4} to y.
-\frac{5}{4}y=\frac{5}{2}
Add \frac{33}{2} to both sides of the equation.
y=-2
Divide both sides of the equation by -\frac{5}{4}, which is the same as multiplying both sides by the reciprocal of the fraction.
x=-\frac{3}{8}\left(-2\right)-\frac{11}{4}
Substitute -2 for y in x=-\frac{3}{8}y-\frac{11}{4}. Because the resulting equation contains only one variable, you can solve for x directly.
x=\frac{3-11}{4}
Multiply -\frac{3}{8} times -2.
x=-2
Add -\frac{11}{4} to \frac{3}{4} by finding a common denominator and adding the numerators. Then reduce the fraction to lowest terms if possible.
x=-2,y=-2
The system is now solved.
y+6x=-14
Consider the second equation. Add 6x to both sides.
8x+3y=-22,6x+y=-14
Put the equations in standard form and then use matrices to solve the system of equations.
\left(\begin{matrix}8&3\\6&1\end{matrix}\right)\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}-22\\-14\end{matrix}\right)
Write the equations in matrix form.
inverse(\left(\begin{matrix}8&3\\6&1\end{matrix}\right))\left(\begin{matrix}8&3\\6&1\end{matrix}\right)\left(\begin{matrix}x\\y\end{matrix}\right)=inverse(\left(\begin{matrix}8&3\\6&1\end{matrix}\right))\left(\begin{matrix}-22\\-14\end{matrix}\right)
Left multiply the equation by the inverse matrix of \left(\begin{matrix}8&3\\6&1\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}8&3\\6&1\end{matrix}\right))\left(\begin{matrix}-22\\-14\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}8&3\\6&1\end{matrix}\right))\left(\begin{matrix}-22\\-14\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{1}{8-3\times 6}&-\frac{3}{8-3\times 6}\\-\frac{6}{8-3\times 6}&\frac{8}{8-3\times 6}\end{matrix}\right)\left(\begin{matrix}-22\\-14\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}{10}&\frac{3}{10}\\\frac{3}{5}&-\frac{4}{5}\end{matrix}\right)\left(\begin{matrix}-22\\-14\end{matrix}\right)
Do the arithmetic.
\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}-\frac{1}{10}\left(-22\right)+\frac{3}{10}\left(-14\right)\\\frac{3}{5}\left(-22\right)-\frac{4}{5}\left(-14\right)\end{matrix}\right)
Multiply the matrices.
\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}-2\\-2\end{matrix}\right)
Do the arithmetic.
x=-2,y=-2
Extract the matrix elements x and y.
y+6x=-14
Consider the second equation. Add 6x to both sides.
8x+3y=-22,6x+y=-14
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.
6\times 8x+6\times 3y=6\left(-22\right),8\times 6x+8y=8\left(-14\right)
To make 8x and 6x equal, multiply all terms on each side of the first equation by 6 and all terms on each side of the second by 8.
48x+18y=-132,48x+8y=-112
Simplify.
48x-48x+18y-8y=-132+112
Subtract 48x+8y=-112 from 48x+18y=-132 by subtracting like terms on each side of the equal sign.
18y-8y=-132+112
Add 48x to -48x. Terms 48x and -48x cancel out, leaving an equation with only one variable that can be solved.
10y=-132+112
Add 18y to -8y.
10y=-20
Add -132 to 112.
y=-2
Divide both sides by 10.
6x-2=-14
Substitute -2 for y in 6x+y=-14. Because the resulting equation contains only one variable, you can solve for x directly.
6x=-12
Add 2 to both sides of the equation.
x=-2
Divide both sides by 6.
x=-2,y=-2
The system is now solved.