The way you do this is by writing down the E step and the M step for this model and then the M step same derivatives equal to zero and solving from that so that's how you get the M step and the E step. 