# How to solve this rational equation for y

Greetings!

On a test recently I ended up having to solve this for y:

$$x = \frac{2y}{y + 1}$$

But I kept getting stuck in cirlces...

\begin{aligned} x(y + 1 ) = 2y \\ xy + x = 2y \\ \frac{xy + x}{2} = y \\ \end{aligned}

That didn't get me anywhere, so then I started over and tried multiplying both sides by the reciprocal:

\begin{aligned} (\frac{y+1}{2y})(x) = 1 \\ \frac{xy+x}{2y} = 1 \\ \end{aligned}

And still I can't see a way to isolate y.

The worst part of this is that I remember being specifically taught a trick for this particular conundrum, but I can't remember the trick!

$$y = - \frac{x}{x-2}$$

but it doesn't show the steps.

• You haven't isolated y. Start from xy + x = 2y and subtract xy from both sides. – Qiaochu Yuan Dec 12 '10 at 0:46
• That just gets me $x = 2y - xy$ . From there I can divide by 2 or by x but I still can't isolate y. :( – friedo Dec 12 '10 at 0:53
• You can factor $y$ from the RHS. – Timothy Wagner Dec 12 '10 at 0:55
• But now you can factor the RHS, then divide by what multiplies y (assuming it isn't zero-as Arturo Magidin says, you don't want the universe to explode) – Ross Millikan Dec 12 '10 at 0:56

Thanks to Timothy and Yuan for pointing out how to factor it. Despite my best efforts, I have never, ever, ever, ever been able to magically see factors appear the way everybody else seems to do so immediately. Sigh.

So that gives

\begin{aligned} xy + x = 2y \\ x = 2y - xy \\ x = y( 2 - x ) \\ y = \frac{x}{2-x} \\ \end{aligned}

which is the same as the answer given by Wolfram. All is right with the world again.

Thanks.

• It might help to plug in an actual number for x. Experienced manipulators learn to "see x" or "see y" as the variable and everything else as constants to move around, but often nobody explicitly teaches you how to do this, and actually setting all the other variables to concrete numbers is a good first step. – Qiaochu Yuan Dec 12 '10 at 1:38
• @Yuan, good tip, thanks. – friedo Dec 12 '10 at 7:03

Another way to arrive at the conclusion, if you don't "see" factors jumping out at you is this: When you see a fraction like $\frac{2y}{y+1}$, I am sure you feel the urge to split into summands. Now, of course, you cannot do it with the sum in the denominator, so that suggests inverting the whole thing (assuming that everything that you want to be non-zero is non-zero): $$\frac{1}{x} = \frac{y+1}{2y} = \frac{y}{2y} + \frac{1}{2y} = \frac{1}{2} + \frac{1}{2y}.$$ Now subtract 1/2 and invert back again to get the result.