Solve for p, b
p = \frac{836}{17} = 49\frac{3}{17} \approx 49.176470588
b = \frac{1332}{17} = 78\frac{6}{17} \approx 78.352941176
Share
Copied to clipboard
b-2p=-20
Consider the second equation. Subtract 2p from both sides.
2.5p+3b=358,-2p+b=-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.
2.5p+3b=358
Choose one of the equations and solve it for p by isolating p on the left hand side of the equal sign.
2.5p=-3b+358
Subtract 3b from both sides of the equation.
p=0.4\left(-3b+358\right)
Divide both sides of the equation by 2.5, which is the same as multiplying both sides by the reciprocal of the fraction.
p=-1.2b+143.2
Multiply 0.4 times -3b+358.
-2\left(-1.2b+143.2\right)+b=-20
Substitute \frac{-6b+716}{5} for p in the other equation, -2p+b=-20.
2.4b-286.4+b=-20
Multiply -2 times \frac{-6b+716}{5}.
3.4b-286.4=-20
Add \frac{12b}{5} to b.
3.4b=266.4
Add 286.4 to both sides of the equation.
b=\frac{1332}{17}
Divide both sides of the equation by 3.4, which is the same as multiplying both sides by the reciprocal of the fraction.
p=-1.2\times \frac{1332}{17}+143.2
Substitute \frac{1332}{17} for b in p=-1.2b+143.2. Because the resulting equation contains only one variable, you can solve for p directly.
p=-\frac{7992}{85}+143.2
Multiply -1.2 times \frac{1332}{17} by multiplying numerator times numerator and denominator times denominator. Then reduce the fraction to lowest terms if possible.
p=\frac{836}{17}
Add 143.2 to -\frac{7992}{85} by finding a common denominator and adding the numerators. Then reduce the fraction to lowest terms if possible.
p=\frac{836}{17},b=\frac{1332}{17}
The system is now solved.
b-2p=-20
Consider the second equation. Subtract 2p from both sides.
2.5p+3b=358,-2p+b=-20
Put the equations in standard form and then use matrices to solve the system of equations.
\left(\begin{matrix}2.5&3\\-2&1\end{matrix}\right)\left(\begin{matrix}p\\b\end{matrix}\right)=\left(\begin{matrix}358\\-20\end{matrix}\right)
Write the equations in matrix form.
inverse(\left(\begin{matrix}2.5&3\\-2&1\end{matrix}\right))\left(\begin{matrix}2.5&3\\-2&1\end{matrix}\right)\left(\begin{matrix}p\\b\end{matrix}\right)=inverse(\left(\begin{matrix}2.5&3\\-2&1\end{matrix}\right))\left(\begin{matrix}358\\-20\end{matrix}\right)
Left multiply the equation by the inverse matrix of \left(\begin{matrix}2.5&3\\-2&1\end{matrix}\right).
\left(\begin{matrix}1&0\\0&1\end{matrix}\right)\left(\begin{matrix}p\\b\end{matrix}\right)=inverse(\left(\begin{matrix}2.5&3\\-2&1\end{matrix}\right))\left(\begin{matrix}358\\-20\end{matrix}\right)
The product of a matrix and its inverse is the identity matrix.
\left(\begin{matrix}p\\b\end{matrix}\right)=inverse(\left(\begin{matrix}2.5&3\\-2&1\end{matrix}\right))\left(\begin{matrix}358\\-20\end{matrix}\right)
Multiply the matrices on the left hand side of the equal sign.
\left(\begin{matrix}p\\b\end{matrix}\right)=\left(\begin{matrix}\frac{1}{2.5-3\left(-2\right)}&-\frac{3}{2.5-3\left(-2\right)}\\-\frac{-2}{2.5-3\left(-2\right)}&\frac{2.5}{2.5-3\left(-2\right)}\end{matrix}\right)\left(\begin{matrix}358\\-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}p\\b\end{matrix}\right)=\left(\begin{matrix}\frac{2}{17}&-\frac{6}{17}\\\frac{4}{17}&\frac{5}{17}\end{matrix}\right)\left(\begin{matrix}358\\-20\end{matrix}\right)
Do the arithmetic.
\left(\begin{matrix}p\\b\end{matrix}\right)=\left(\begin{matrix}\frac{2}{17}\times 358-\frac{6}{17}\left(-20\right)\\\frac{4}{17}\times 358+\frac{5}{17}\left(-20\right)\end{matrix}\right)
Multiply the matrices.
\left(\begin{matrix}p\\b\end{matrix}\right)=\left(\begin{matrix}\frac{836}{17}\\\frac{1332}{17}\end{matrix}\right)
Do the arithmetic.
p=\frac{836}{17},b=\frac{1332}{17}
Extract the matrix elements p and b.
b-2p=-20
Consider the second equation. Subtract 2p from both sides.
2.5p+3b=358,-2p+b=-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.
-2\times 2.5p-2\times 3b=-2\times 358,2.5\left(-2\right)p+2.5b=2.5\left(-20\right)
To make \frac{5p}{2} and -2p equal, multiply all terms on each side of the first equation by -2 and all terms on each side of the second by 2.5.
-5p-6b=-716,-5p+2.5b=-50
Simplify.
-5p+5p-6b-2.5b=-716+50
Subtract -5p+2.5b=-50 from -5p-6b=-716 by subtracting like terms on each side of the equal sign.
-6b-2.5b=-716+50
Add -5p to 5p. Terms -5p and 5p cancel out, leaving an equation with only one variable that can be solved.
-8.5b=-716+50
Add -6b to -\frac{5b}{2}.
-8.5b=-666
Add -716 to 50.
b=\frac{1332}{17}
Divide both sides of the equation by -8.5, which is the same as multiplying both sides by the reciprocal of the fraction.
-2p+\frac{1332}{17}=-20
Substitute \frac{1332}{17} for b in -2p+b=-20. Because the resulting equation contains only one variable, you can solve for p directly.
-2p=-\frac{1672}{17}
Subtract \frac{1332}{17} from both sides of the equation.
p=\frac{836}{17}
Divide both sides by -2.
p=\frac{836}{17},b=\frac{1332}{17}
The system is now solved.
Examples
Quadratic equation
{ x } ^ { 2 } - 4 x - 5 = 0
Trigonometry
4 \sin \theta \cos \theta = 2 \sin \theta
Linear equation
y = 3x + 4
Arithmetic
699 * 533
Matrix
\left[ \begin{array} { l l } { 2 } & { 3 } \\ { 5 } & { 4 } \end{array} \right] \left[ \begin{array} { l l l } { 2 } & { 0 } & { 3 } \\ { -1 } & { 1 } & { 5 } \end{array} \right]
Simultaneous equation
\left. \begin{cases} { 8x+2y = 46 } \\ { 7x+3y = 47 } \end{cases} \right.
Differentiation
\frac { d } { d x } \frac { ( 3 x ^ { 2 } - 2 ) } { ( x - 5 ) }
Integration
\int _ { 0 } ^ { 1 } x e ^ { - x ^ { 2 } } d x
Limits
\lim _{x \rightarrow-3} \frac{x^{2}-9}{x^{2}+2 x-3}