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

Similar Problems from Web Search

Share

\frac{1}{2}+q-3p=0
Consider the second equation. Subtract 3p from both sides.
q-3p=-\frac{1}{2}
Subtract \frac{1}{2} from both sides. Anything subtracted from zero gives its negation.
3p+4q=3,-3p+q=-\frac{1}{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.
3p+4q=3
Choose one of the equations and solve it for p by isolating p on the left hand side of the equal sign.
3p=-4q+3
Subtract 4q from both sides of the equation.
p=\frac{1}{3}\left(-4q+3\right)
Divide both sides by 3.
p=-\frac{4}{3}q+1
Multiply \frac{1}{3} times -4q+3.
-3\left(-\frac{4}{3}q+1\right)+q=-\frac{1}{2}
Substitute -\frac{4q}{3}+1 for p in the other equation, -3p+q=-\frac{1}{2}.
4q-3+q=-\frac{1}{2}
Multiply -3 times -\frac{4q}{3}+1.
5q-3=-\frac{1}{2}
Add 4q to q.
5q=\frac{5}{2}
Add 3 to both sides of the equation.
q=\frac{1}{2}
Divide both sides by 5.
p=-\frac{4}{3}\times \frac{1}{2}+1
Substitute \frac{1}{2} for q in p=-\frac{4}{3}q+1. Because the resulting equation contains only one variable, you can solve for p directly.
p=-\frac{2}{3}+1
Multiply -\frac{4}{3} times \frac{1}{2} by multiplying numerator times numerator and denominator times denominator. Then reduce the fraction to lowest terms if possible.
p=\frac{1}{3}
Add 1 to -\frac{2}{3}.
p=\frac{1}{3},q=\frac{1}{2}
The system is now solved.
\frac{1}{2}+q-3p=0
Consider the second equation. Subtract 3p from both sides.
q-3p=-\frac{1}{2}
Subtract \frac{1}{2} from both sides. Anything subtracted from zero gives its negation.
3p+4q=3,-3p+q=-\frac{1}{2}
Put the equations in standard form and then use matrices to solve the system of equations.
\left(\begin{matrix}3&4\\-3&1\end{matrix}\right)\left(\begin{matrix}p\\q\end{matrix}\right)=\left(\begin{matrix}3\\-\frac{1}{2}\end{matrix}\right)
Write the equations in matrix form.
inverse(\left(\begin{matrix}3&4\\-3&1\end{matrix}\right))\left(\begin{matrix}3&4\\-3&1\end{matrix}\right)\left(\begin{matrix}p\\q\end{matrix}\right)=inverse(\left(\begin{matrix}3&4\\-3&1\end{matrix}\right))\left(\begin{matrix}3\\-\frac{1}{2}\end{matrix}\right)
Left multiply the equation by the inverse matrix of \left(\begin{matrix}3&4\\-3&1\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}3&4\\-3&1\end{matrix}\right))\left(\begin{matrix}3\\-\frac{1}{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}3&4\\-3&1\end{matrix}\right))\left(\begin{matrix}3\\-\frac{1}{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{1}{3-4\left(-3\right)}&-\frac{4}{3-4\left(-3\right)}\\-\frac{-3}{3-4\left(-3\right)}&\frac{3}{3-4\left(-3\right)}\end{matrix}\right)\left(\begin{matrix}3\\-\frac{1}{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}{15}&-\frac{4}{15}\\\frac{1}{5}&\frac{1}{5}\end{matrix}\right)\left(\begin{matrix}3\\-\frac{1}{2}\end{matrix}\right)
Do the arithmetic.
\left(\begin{matrix}p\\q\end{matrix}\right)=\left(\begin{matrix}\frac{1}{15}\times 3-\frac{4}{15}\left(-\frac{1}{2}\right)\\\frac{1}{5}\times 3+\frac{1}{5}\left(-\frac{1}{2}\right)\end{matrix}\right)
Multiply the matrices.
\left(\begin{matrix}p\\q\end{matrix}\right)=\left(\begin{matrix}\frac{1}{3}\\\frac{1}{2}\end{matrix}\right)
Do the arithmetic.
p=\frac{1}{3},q=\frac{1}{2}
Extract the matrix elements p and q.
\frac{1}{2}+q-3p=0
Consider the second equation. Subtract 3p from both sides.
q-3p=-\frac{1}{2}
Subtract \frac{1}{2} from both sides. Anything subtracted from zero gives its negation.
3p+4q=3,-3p+q=-\frac{1}{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.
-3\times 3p-3\times 4q=-3\times 3,3\left(-3\right)p+3q=3\left(-\frac{1}{2}\right)
To make 3p and -3p equal, multiply all terms on each side of the first equation by -3 and all terms on each side of the second by 3.
-9p-12q=-9,-9p+3q=-\frac{3}{2}
Simplify.
-9p+9p-12q-3q=-9+\frac{3}{2}
Subtract -9p+3q=-\frac{3}{2} from -9p-12q=-9 by subtracting like terms on each side of the equal sign.
-12q-3q=-9+\frac{3}{2}
Add -9p to 9p. Terms -9p and 9p cancel out, leaving an equation with only one variable that can be solved.
-15q=-9+\frac{3}{2}
Add -12q to -3q.
-15q=-\frac{15}{2}
Add -9 to \frac{3}{2}.
q=\frac{1}{2}
Divide both sides by -15.
-3p+\frac{1}{2}=-\frac{1}{2}
Substitute \frac{1}{2} for q in -3p+q=-\frac{1}{2}. Because the resulting equation contains only one variable, you can solve for p directly.
-3p=-1
Subtract \frac{1}{2} from both sides of the equation.
p=\frac{1}{3}
Divide both sides by -3.
p=\frac{1}{3},q=\frac{1}{2}
The system is now solved.