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

Similar Problems from Web Search

Share

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