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

Similar Problems from Web Search

Share

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