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

Similar Problems from Web Search

Share

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