Trouble understanding rewriting of an expression

I'm trying to inverse a simple function but got stuck with some algebra I cant remember.

I've got f (x) = 2x-1/x -1 and so far rewritten it to y(x-1) = 2x-1 but got stuck here. Reading the solution it show the next step as (y-2)x=y-1 but I'm at a loss trying to understand how they arrived here.

Re: Trouble understanding rewriting of an expression

Originally Posted by dipsy34

I'm trying to inverse a simple function but got stuck with some algebra I cant remember.

I've got f (x) = 2x-1/x -1 and so far rewritten it to y(x-1) = 2x-1 but got stuck here. Reading the solution it show the next step as (y-2)x=y-1 but I'm at a loss trying to understand how they arrived here.