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

Similar Problems from Web Search

Share

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