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

Similar Problems from Web Search

Share

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