How do I work with equations with more than two variables?

62 Views Asked by At

I was trying to rewrite this equation in terms of $s$:

$$ p = 4s \frac{(s - 1)}{2} + s (2r + 1) $$

After failing at that, I tried with Wolfram Alpha, and got the answer I wanted. But, how did it get there? What are the techniques I should know to work with equations like this?

4

There are 4 best solutions below

1
On BEST ANSWER

The techniques are the same as if there are only one or two variables, it can just get more confusing. You want to isolate $s$, so let's see:

$$\begin{align} p &= 4s\frac{s-1}{2}+s(2r+1) \\ &= 2s^2-2s+2rs+s \\ &=2s^2+2rs-s\end{align}$$

At this point, we can see that the equation is "quadratic in $s$", i.e., as far as that variable is concerned, it's a quadratic equation. Let's collect terms according to their degree in $s$:

$$2s^2+(2r-1)s-p = 0$$

Now you can apply the quadratic formula, using $2$ for $a$, $(2r-1)$ for $b$, and $-p$ for $c$.

0
On

Note that $p$ is a quadratic function of $s$. The quadratic formula will yield s as a function of $p$ and $r$.

2
On

This is actually a quadratic in $s$, rewrite this as:

$2s^2-2s+s(2r+1)-p=0 \Rightarrow 2s^2+(2r-1)s-p=0$ now use the quadratic formula with $a=2,b=2r-1,c=-p$, to obtain:

$s=\frac{1-2r +-\sqrt{(2r-1)^2+16p}}{4}$

0
On

We have $$p = 4s \frac{(s - 1)}{2} + s (2r + 1)\\ \implies p = 2s^2-2s + 2rs +s=2s^2-s(-2+2r+1)\\ \implies 2s^2+s(2-2r-1)-p=0\\ \implies\text{By the quadratic formula, }s=-(2-2r-1)\pm\sqrt{(2-2r-1)^2+8p}\\ \implies \boxed{s=2r-1\pm\sqrt{4r^2-4r+1+8p}}$$