I don’t know where you are getting your first equation from – it is not an equation that is relevant for Paper FM and is certainly not the same as the second equation (which is very much relevant for Paper FM).
I explain CAPM in detail in my free lectures. The lectures are a complete free course for Paper FM and cover everything needed to be able to pass the exam well.