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

Similar Problems from Web Search

Share

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