Notes for problem 4f, derivation of EL in the EM case.