Solve for p
p=-\frac{5\left(q-3\right)}{1-q}
q\neq 1\text{ and }q\neq 3
Solve for q
q=-\frac{15-p}{p-5}
p\neq 0\text{ and }p\neq 5
Share
Copied to clipboard
p=\frac{5\left(3-q\right)}{3-q}+\frac{2p}{3-q}
To add or subtract expressions, expand them to make their denominators the same. Multiply 5 times \frac{3-q}{3-q}.
p=\frac{5\left(3-q\right)+2p}{3-q}
Since \frac{5\left(3-q\right)}{3-q} and \frac{2p}{3-q} have the same denominator, add them by adding their numerators.
p=\frac{15-5q+2p}{3-q}
Do the multiplications in 5\left(3-q\right)+2p.
p-\frac{15-5q+2p}{3-q}=0
Subtract \frac{15-5q+2p}{3-q} from both sides.
\frac{p\left(3-q\right)}{3-q}-\frac{15-5q+2p}{3-q}=0
To add or subtract expressions, expand them to make their denominators the same. Multiply p times \frac{3-q}{3-q}.
\frac{p\left(3-q\right)-\left(15-5q+2p\right)}{3-q}=0
Since \frac{p\left(3-q\right)}{3-q} and \frac{15-5q+2p}{3-q} have the same denominator, subtract them by subtracting their numerators.
\frac{3p-pq-15+5q-2p}{3-q}=0
Do the multiplications in p\left(3-q\right)-\left(15-5q+2p\right).
\frac{p-pq-15+5q}{3-q}=0
Combine like terms in 3p-pq-15+5q-2p.
p-pq-15+5q=0
Multiply both sides of the equation by -q+3.
p-pq+5q=15
Add 15 to both sides. Anything plus zero gives itself.
p-pq=15-5q
Subtract 5q from both sides.
\left(1-q\right)p=15-5q
Combine all terms containing p.
\frac{\left(1-q\right)p}{1-q}=\frac{15-5q}{1-q}
Divide both sides by -q+1.
p=\frac{15-5q}{1-q}
Dividing by -q+1 undoes the multiplication by -q+1.
p=\frac{5\left(3-q\right)}{1-q}
Divide 15-5q by -q+1.
p\left(-q+3\right)=\left(-q+3\right)\times 5+2p
Variable q cannot be equal to 3 since division by zero is not defined. Multiply both sides of the equation by -q+3.
-pq+3p=\left(-q+3\right)\times 5+2p
Use the distributive property to multiply p by -q+3.
-pq+3p=-5q+15+2p
Use the distributive property to multiply -q+3 by 5.
-pq+3p+5q=15+2p
Add 5q to both sides.
-pq+5q=15+2p-3p
Subtract 3p from both sides.
-pq+5q=15-p
Combine 2p and -3p to get -p.
\left(-p+5\right)q=15-p
Combine all terms containing q.
\left(5-p\right)q=15-p
The equation is in standard form.
\frac{\left(5-p\right)q}{5-p}=\frac{15-p}{5-p}
Divide both sides by -p+5.
q=\frac{15-p}{5-p}
Dividing by -p+5 undoes the multiplication by -p+5.
q=\frac{15-p}{5-p}\text{, }q\neq 3
Variable q cannot be equal to 3.
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}