Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
$\begingroup$You haven't resolved the issue. Exp has a predefined meaning. If it is intended to be a user-defined symbol then use some other symbol. Otherwise, you presumably mean either Exp[a[r]] or E^(a[r]) (they are equivalent).$\endgroup$
a[r]is any function of r $\endgroup$Exphas a predefined meaning. If it is intended to be a user-defined symbol then use some other symbol. Otherwise, you presumably mean eitherExp[a[r]]orE^(a[r])(they are equivalent). $\endgroup$1 - 2*m[r]/2as shown (which is just1 - m[r]) or did you intend(1 - 2*m[r])/2$\endgroup$