Normally Math centers each line of a formula. To align each line at an equal sign you can use matrix, as shown in the following example.
matrix