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

Similar Problems from Web Search

Share

a=0.125b
Consider the first equation. Variable b cannot be equal to 0 since division by zero is not defined. Multiply both sides of the equation by b.
0.125b+b=45
Substitute \frac{b}{8} for a in the other equation, a+b=45.
1.125b=45
Add \frac{b}{8} to b.
b=40
Divide both sides of the equation by 1.125, which is the same as multiplying both sides by the reciprocal of the fraction.
a=0.125\times 40
Substitute 40 for b in a=0.125b. Because the resulting equation contains only one variable, you can solve for a directly.
a=5
Multiply 0.125 times 40.
a=5,b=40
The system is now solved.
a=0.125b
Consider the first equation. Variable b cannot be equal to 0 since division by zero is not defined. Multiply both sides of the equation by b.
a-0.125b=0
Subtract 0.125b from both sides.
a-0.125b=0,a+b=45
Put the equations in standard form and then use matrices to solve the system of equations.
\left(\begin{matrix}1&-0.125\\1&1\end{matrix}\right)\left(\begin{matrix}a\\b\end{matrix}\right)=\left(\begin{matrix}0\\45\end{matrix}\right)
Write the equations in matrix form.
inverse(\left(\begin{matrix}1&-0.125\\1&1\end{matrix}\right))\left(\begin{matrix}1&-0.125\\1&1\end{matrix}\right)\left(\begin{matrix}a\\b\end{matrix}\right)=inverse(\left(\begin{matrix}1&-0.125\\1&1\end{matrix}\right))\left(\begin{matrix}0\\45\end{matrix}\right)
Left multiply the equation by the inverse matrix of \left(\begin{matrix}1&-0.125\\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}1&-0.125\\1&1\end{matrix}\right))\left(\begin{matrix}0\\45\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&-0.125\\1&1\end{matrix}\right))\left(\begin{matrix}0\\45\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}{1-\left(-0.125\right)}&-\frac{-0.125}{1-\left(-0.125\right)}\\-\frac{1}{1-\left(-0.125\right)}&\frac{1}{1-\left(-0.125\right)}\end{matrix}\right)\left(\begin{matrix}0\\45\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}{9}&\frac{1}{9}\\-\frac{8}{9}&\frac{8}{9}\end{matrix}\right)\left(\begin{matrix}0\\45\end{matrix}\right)
Do the arithmetic.
\left(\begin{matrix}a\\b\end{matrix}\right)=\left(\begin{matrix}\frac{1}{9}\times 45\\\frac{8}{9}\times 45\end{matrix}\right)
Multiply the matrices.
\left(\begin{matrix}a\\b\end{matrix}\right)=\left(\begin{matrix}5\\40\end{matrix}\right)
Do the arithmetic.
a=5,b=40
Extract the matrix elements a and b.
a=0.125b
Consider the first equation. Variable b cannot be equal to 0 since division by zero is not defined. Multiply both sides of the equation by b.
a-0.125b=0
Subtract 0.125b from both sides.
a-0.125b=0,a+b=45
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.
a-a-0.125b-b=-45
Subtract a+b=45 from a-0.125b=0 by subtracting like terms on each side of the equal sign.
-0.125b-b=-45
Add a to -a. Terms a and -a cancel out, leaving an equation with only one variable that can be solved.
-1.125b=-45
Add -\frac{b}{8} to -b.
b=40
Divide both sides of the equation by -1.125, which is the same as multiplying both sides by the reciprocal of the fraction.
a+40=45
Substitute 40 for b in a+b=45. Because the resulting equation contains only one variable, you can solve for a directly.
a=5
Subtract 40 from both sides of the equation.
a=5,b=40
The system is now solved.