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

Similar Problems from Web Search

Share

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