First:
Since
a simple re-arrangement gives
Second question: if you want to have several equations nicely aligned inside a display, use the \begin{align*} and \end{align*} pair inside the tex delimiters. Without the tex info, if i have
f(x) & = x^2 + 5x + 6 \\
& = (x+3)(x+2)
inside the delimiters, the compiled result is
* the "&" sign causes the equations to be aligned at the start of the next symbol ("=" in my
example)
* the "\\" terminates a line and tells tex to begin a new line
If you click on any displayed formula you should see, in a pop-up window, the underlying code.
Edited to note: some older tex manuals will discuss the use of the "eqarray" (I think I have the name correct, but since I don't use it I'm not going to claim 100% accuracy here) environment for doing what I've done
with align*. Don't use eqarray - the spacing is (to state it as nicely as possible) horrific.