Derivations done.
Added amsmath package