Skip to main content
Solve for X, Y
Tick mark Image

Similar Problems from Web Search

Share

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