Skip to main content
Solve for Q, p
Tick mark Image

Similar Problems from Web Search

Share

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