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

Similar Problems from Web Search

Share

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