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

Similar Problems from Web Search

Share

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