The three terms that need to be maximised in the E-step are
The maximisation of (M1) is achieved by
The maximisation of (M2) is