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

Similar Problems from Web Search

Share

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