I have the following expression: $$(\nabla+\vec{P})^2$$ where $P=(r\cos\theta sin\phi,r^4\sin\theta,r\cos^3\phi)$
I would like to open the brackets and simplify the expression.
Are there in Mathematica ways analytically do it?
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this communityI have the following expression: $$(\nabla+\vec{P})^2$$ where $P=(r\cos\theta sin\phi,r^4\sin\theta,r\cos^3\phi)$
I would like to open the brackets and simplify the expression.
Are there in Mathematica ways analytically do it?
I think the expression should correctly be $(\nabla +P)\cdot( \nabla +P)$
Expression without brackets follows to $ \nabla \cdot \nabla +\nabla \cdot P+P \cdot \nabla + P \cdot P $