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

Similar Problems from Web Search

Share

9x=y
Consider the second equation. Combine 8x and x to get 9x.
9x-y=0
Subtract y from both sides.
x+y=78,9x-y=0
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+y=78
Choose one of the equations and solve it for x by isolating x on the left hand side of the equal sign.
x=-y+78
Subtract y from both sides of the equation.
9\left(-y+78\right)-y=0
Substitute -y+78 for x in the other equation, 9x-y=0.
-9y+702-y=0
Multiply 9 times -y+78.
-10y+702=0
Add -9y to -y.
-10y=-702
Subtract 702 from both sides of the equation.
y=\frac{351}{5}
Divide both sides by -10.
x=-\frac{351}{5}+78
Substitute \frac{351}{5} for y in x=-y+78. Because the resulting equation contains only one variable, you can solve for x directly.
x=\frac{39}{5}
Add 78 to -\frac{351}{5}.
x=\frac{39}{5},y=\frac{351}{5}
The system is now solved.
9x=y
Consider the second equation. Combine 8x and x to get 9x.
9x-y=0
Subtract y from both sides.
x+y=78,9x-y=0
Put the equations in standard form and then use matrices to solve the system of equations.
\left(\begin{matrix}1&1\\9&-1\end{matrix}\right)\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}78\\0\end{matrix}\right)
Write the equations in matrix form.
inverse(\left(\begin{matrix}1&1\\9&-1\end{matrix}\right))\left(\begin{matrix}1&1\\9&-1\end{matrix}\right)\left(\begin{matrix}x\\y\end{matrix}\right)=inverse(\left(\begin{matrix}1&1\\9&-1\end{matrix}\right))\left(\begin{matrix}78\\0\end{matrix}\right)
Left multiply the equation by the inverse matrix of \left(\begin{matrix}1&1\\9&-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}1&1\\9&-1\end{matrix}\right))\left(\begin{matrix}78\\0\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&1\\9&-1\end{matrix}\right))\left(\begin{matrix}78\\0\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}{-1-9}&-\frac{1}{-1-9}\\-\frac{9}{-1-9}&\frac{1}{-1-9}\end{matrix}\right)\left(\begin{matrix}78\\0\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{1}{10}\\\frac{9}{10}&-\frac{1}{10}\end{matrix}\right)\left(\begin{matrix}78\\0\end{matrix}\right)
Do the arithmetic.
\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}\frac{1}{10}\times 78\\\frac{9}{10}\times 78\end{matrix}\right)
Multiply the matrices.
\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}\frac{39}{5}\\\frac{351}{5}\end{matrix}\right)
Do the arithmetic.
x=\frac{39}{5},y=\frac{351}{5}
Extract the matrix elements x and y.
9x=y
Consider the second equation. Combine 8x and x to get 9x.
9x-y=0
Subtract y from both sides.
x+y=78,9x-y=0
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+9y=9\times 78,9x-y=0
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+9y=702,9x-y=0
Simplify.
9x-9x+9y+y=702
Subtract 9x-y=0 from 9x+9y=702 by subtracting like terms on each side of the equal sign.
9y+y=702
Add 9x to -9x. Terms 9x and -9x cancel out, leaving an equation with only one variable that can be solved.
10y=702
Add 9y to y.
y=\frac{351}{5}
Divide both sides by 10.
9x-\frac{351}{5}=0
Substitute \frac{351}{5} for y in 9x-y=0. Because the resulting equation contains only one variable, you can solve for x directly.
9x=\frac{351}{5}
Add \frac{351}{5} to both sides of the equation.
x=\frac{39}{5}
Divide both sides by 9.
x=\frac{39}{5},y=\frac{351}{5}
The system is now solved.