Skip to main content
Solve for a, b
Tick mark Image

Similar Problems from Web Search

Share

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