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

Similar Problems from Web Search

Share

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