It's pretty much just algebra- specifically the "distributive law".

You have .

Multiply both sides by :

Now "distribute" the fraction on the right over the " " and " "

That first part, on the right, is the "mx" which you say you understand.

Add to both sides

and add to that last fraction. That part alone, c, will be

The " " terms cancel leaving