logo

Velocity and Acceleration in a Coordinate System 📂Classical Mechanics

Velocity and Acceleration in a Coordinate System

Spherical Coordinates: Velocity and Acceleration

v=r˙r^+rθ˙θ^+rϕ˙sinθϕ^a=(r¨rθ˙2rϕ˙2sin2θ)r^+(rθ¨+2r˙θ˙rϕ˙2sinθcosθ)θ^+(rϕ¨sinθ+2r˙ϕ˙sinθ+2rθ˙ϕ˙cosθ)ϕ^ \begin{align*} \mathbf{v} &=\dot{r} \hat {\mathbf{r}} +r \dot{\theta} \hat{ \boldsymbol{\theta}}+ r \dot{\phi} \sin{\theta} \hat{ \boldsymbol{\phi}} \\ \mathbf{a} &= (\ddot{r}-r\dot\theta^2-r\dot\phi^2\sin^2\theta)\hat{\mathbf{r}}+(r\ddot\theta+2\dot{r}\dot\theta-r\dot\phi^2\sin\theta\cos\theta)\hat{\boldsymbol{\theta}} \\ &\quad+(r\ddot\phi\sin\theta+2\dot{r}\dot\phi\sin\theta+2r\dot\theta\dot\phi\cos\theta)\hat{\boldsymbol{\phi}} \end{align*}

Derivation

596F6AA20.png

Unit vectors in spherical coordinates are as follows.

r^=cosϕsinθx^+sinϕsinθy^+cosθz^θ^=cosϕcosθx^+sinϕcosθy^sinθz^ϕ^=sinϕx^+cosϕy^ \begin{align*} \hat{\mathbf{r}} &= \cos \phi \sin \theta \hat{\mathbf{x}} + \sin \phi \sin \theta \hat{\mathbf{y}} + \cos\theta\hat{\mathbf{z}} \\ \hat{\boldsymbol{\theta}} &= \cos\phi \cos\theta \hat{\mathbf{x}} + \sin\phi \cos\theta \hat{\mathbf{y}} - \sin\theta\hat{\mathbf{z}} \\ \hat{\boldsymbol{\phi}} &= -\sin\phi \hat{\mathbf{x}} + \cos\phi \hat{\mathbf{y}} \end{align*}

Let’s now find the velocity and acceleration in spherical coordinates. Velocity is derived by differentiating position over time, and acceleration is derived by differentiating velocity over time. Note that r˙\dot{r} is read as “al dot.” In physics, a dot over a letter signifies differentiation with respect to time.

r˙=drdt \dot{r}=\frac{dr}{dt}

Before laying out the velocity and acceleration, let’s precompute the differentiation of unit vectors. r^˙\dot{\hat{ \mathbf{r}}}, θ^˙\dot {\hat{ \boldsymbol{\theta}}}, ϕ^˙\dot {\hat{ \boldsymbol{\phi}}} each yield the following.

r^˙=ddt(cosϕsinθx^+sinϕsinθy^+cosθz^)=dcosϕdtsinθx^+cosϕdsinθdtx^+dsinϕdtsinθy^+sinϕdsinθdty^+dcosθdtz^=dcosϕdϕdϕdtsinθx^+cosϕdsinθdθdθdtx^+dsinϕdϕdϕdtsinθy^+sinϕdsinθdθdθdty^+dcosθdθdθdtz^=ϕ˙sinϕsinθx^+θ˙cosϕcosθx^+ϕ˙cosϕsinθy^+θ˙sinϕcosθy^θ˙sinθz^=θ˙(cosϕcosθx^+sinϕcosθy^sinθz^)+ϕ˙sinθ(sinϕx^+cosϕy^)=θ˙θ^+ϕ˙sinθϕ^ \begin{align*} \dot{\hat{ \mathbf{r}}} &= \frac{d}{dt}(\cos\phi\sin\theta\hat{\mathbf{x}} +\sin\phi\sin\theta\hat{\mathbf{y}}+\cos\theta\hat{\mathbf{z}} ) \\ &= \frac{d\cos\phi}{dt}\sin\theta\hat{\mathbf{x}} + \cos\phi\frac{d \sin\theta}{dt}\hat{\mathbf{x}}+\frac{d \sin\phi}{dt}\sin\theta\hat{\mathbf{y}} + \sin\phi\frac{d\sin\theta}{dt}\hat{\mathbf{y}}+\frac{d \cos\theta}{dt}\hat{\mathbf{z}} \\ &= \frac{d\cos\phi}{d\phi}\frac{d\phi}{dt}\sin\theta\hat{\mathbf{x}} + \cos\phi\frac{d \sin\theta}{d\theta}\frac{d\theta}{dt}\hat{\mathbf{x}} \\ &\quad +\frac{d \sin\phi}{d\phi}\frac{d\phi}{dt}\sin\theta\hat{\mathbf{y}} + \sin\phi\frac{d\sin\theta}{d\theta}\frac{d\theta}{dt}\hat{\mathbf{y}}+ \frac{d \cos\theta}{d\theta}\frac{d\theta}{dt}\hat{\mathbf{z}} \\ &= -\dot\phi\sin\phi \sin\theta\hat{\mathbf{x}} + \dot\theta\cos\phi\cos\theta\hat{\mathbf{x}}+\dot\phi\cos\phi \sin\theta\hat{\mathbf{y}} + \dot\theta\sin\phi\cos\theta\hat{\mathbf{y}}-\dot\theta\sin\theta\hat{\mathbf{z}} \\ &= \dot{\theta}(\cos\phi\cos\theta\hat{\mathbf{x}} + \sin\phi\cos\theta\hat{\mathbf{y}} -\sin\theta \hat{\mathbf{z}}) + \dot{\phi}\sin\theta (-\sin\phi\hat{\mathbf{x}}+\cos\phi\hat{\mathbf{y}}) \\ &= \dot{\theta} \hat{ \boldsymbol{\theta} } + \dot{\phi} \sin\theta \hat{ \boldsymbol{\phi}} \end{align*}

θ^˙=ddt(cosϕcosθx^+sinϕcosθy^sinθz^)=ϕ˙sinϕcosθx^θ˙cosϕsinθx^+ϕ˙cosϕcosθy^θ˙sinϕsinθy^θ˙cosθz^=θ˙(cosϕsinθx^+sinϕsinθy^+cosθz^)+ϕ˙cosθ(sinϕx^+cosϕy^)=θ˙r^+ϕ˙cosθϕ^ \begin{align*} \dot {\hat{ \boldsymbol{\theta}}} &= \frac{d}{dt}(\cos\phi\cos\theta\hat{\mathbf{x}} + \sin\phi\cos\theta\hat{\mathbf{y}} -\sin\theta \hat{\mathbf{z}}) \\ &= -\dot{\phi}\sin\phi\cos\theta\hat{\mathbf{x}}-\dot\theta\cos\phi\sin\theta\hat{\mathbf{x}}+\dot{\phi} \cos\phi \cos\theta \hat{\mathbf{y}}-\dot{\theta} \sin\phi \sin\theta \hat{\mathbf{y}}-\dot\theta\cos\theta\hat{\mathbf{z}} \\ &= -\dot\theta (\cos\phi\sin\theta\hat{\mathbf{x}}+\sin\phi\sin\theta \hat{\mathbf{y}} + \cos\theta\hat{\mathbf{z}}) + \dot{\phi}\cos\theta (-\sin\phi\hat{\mathbf{x}}+\cos\phi\hat{\mathbf{y}}) \\ &= - \dot{\theta} \hat{ \mathbf{r}} + \dot{\phi} \cos \theta \hat {\boldsymbol{\phi}} \end{align*}

ϕ^˙=ddt(sinϕx^+cosϕy^)=ϕ˙cosϕx^ϕ˙sinϕy^=ϕ˙(cosϕx^+sinϕy^) \begin{equation} \begin{aligned} \dot {\hat{ \boldsymbol{\phi}}} &= \frac{d}{dt}(-\sin\phi\hat{\mathbf{x}}+\cos\phi\hat{\mathbf{y}}) \\ &= -\dot\phi\cos\phi\hat{\mathbf{x}}-\dot\phi\sin\phi\hat{\mathbf{y}} \\ &= -\dot\phi (\cos\phi\hat{\mathbf{x}} + \sin\phi\hat{\mathbf{y}}) \end{aligned} \end{equation}

The result of ϕ^˙\dot {\hat{\boldsymbol{\phi}}}, unlike other components, doesn’t straightaway get simplified into r^\hat{\mathbf{r}} and θ^\hat{\boldsymbol{\theta}}. If you take a closer look, you’ll notice there’s no z^\hat{\mathbf{z}} component. By multiplying r^\hat{\mathbf{r}} by sinθ\sin\theta and θ^\hat{\boldsymbol{\theta}} by cosθ\cos\theta, and then adding them together, the z^\hat{\mathbf{z}} component disappears. Let’s use this.

 sinθr^+cosθθ^=cosϕsin2θx^+sinϕsin2θy^+sinθcosθz^+cosϕcos2θx^+sinϕcos2θy^sinθcosθz^=cosϕ(sin2θ+cos2θ)x^+sinϕ(sin2θ+cos2θ)y^=cosϕx^+sinϕy^ \begin{align*} \ \sin\theta\hat{\mathbf{r}}+\cos\theta \hat{\boldsymbol{\theta}} &= \cos\phi\sin^2\theta\hat{\mathbf{x}}+\sin\phi\sin^2\theta\hat{\mathbf{y}}+\sin\theta\cos\theta \hat{\mathbf{z}} \\ &\quad + \cos\phi\cos^2\theta\hat{\mathbf{x}} +\sin\phi\cos^2\theta\hat{\mathbf{y}} -\sin\theta\cos\theta \hat{\mathbf{z}} \\ &= \cos\phi (\sin^2\theta+\cos^2\theta)\hat{\mathbf{x}}+\sin\phi (\sin^2\theta+\cos^2\theta)\hat{\mathbf{y}} \\ &= \cos\phi\hat{\mathbf{x}}+\sin\phi\hat{\mathbf{y}} \end{align*}

Substitute the above equation into (1)(1), and it becomes as follows.

ϕ^˙=ϕ˙sinθr^ϕ˙cosθθ^ \dot{\hat{\boldsymbol{\phi}}}=-\dot\phi\sin\theta\hat{\mathbf{r}} - \dot\phi\cos\theta \hat{\boldsymbol{\theta}}

Velocity

Differentiate r\mathbf{r} with respect to tt to get the following.

v=drdt=ddt(rr^)=drdtr^+rdr^dt=r˙r^+rr^˙=r˙r^+rθ˙θ^+rϕ˙sinθϕ^ \begin{align*} \mathbf{v} = \frac{d \mathbf{r}}{dt} = \frac{d}{dt}(r \hat{\mathbf{r}}) = \frac{d r}{dt}\hat{\mathbf{r}} + r\frac{d \hat{\mathbf{r}}}{dt} &= \dot{r} \hat{\mathbf{r}} + r \dot{\hat{\mathbf{r}}} \\ &= \dot{r} \hat{\mathbf{r}} + r\dot{\theta} \hat{ \boldsymbol{\theta} } + r\dot{\phi} \sin\theta \hat{ \boldsymbol{\phi}} \end{align*}

You only need to substitute the precomputed differentiation of the unit vector to get the result.

Acceleration

Differentiate v\mathbf{v} with respect to tt to get the following.

a=dvdt=ddt(r˙r^+rθ˙θ^+rϕ˙sinθϕ^)=(r¨r^+r˙r^˙)+(r˙θ˙θ^+rθ¨θ^+rθ˙θ^˙)+(r˙ϕ˙sinθϕ^+rϕ¨sinθϕ^+rϕ˙θ˙cosθϕ^+rϕ˙sinθϕ^˙) \begin{align*} \mathbf{a} = \frac{d \mathbf{v}}{dt} &= \frac{d}{dt}(\dot{r} \hat{\mathbf{r}} +r\dot\theta\hat{\boldsymbol{\theta}}+ r\dot\phi\sin\theta \hat{\boldsymbol{\phi}}) \\ &= (\ddot r \hat{\mathbf{r}} + \dot{r} \dot{\hat{\mathbf{r}}}) + (\dot{r}\dot\theta\hat{\boldsymbol{\theta}} + r\ddot\theta\hat{\boldsymbol{\theta}} + r\dot\theta\dot{\hat{\boldsymbol{\theta}}}) \\ &\quad + (\dot{r} \dot\phi\sin\theta \hat{\boldsymbol{\phi}}+ r\ddot\phi\sin\theta\hat{\boldsymbol{\phi}}+ r\dot\phi\dot\theta\cos\theta\hat{\boldsymbol{\phi}}+ r\dot\phi\sin\theta\dot{\hat{\boldsymbol{\phi}}}) \end{align*}

It’s incredibly lengthy. Let’s solve it bit by bit. Since we’ve already computed the differentiation of the unit vector, substituting and simplifying will do the job.

a=[r¨r^+r˙(θ˙θ^+ϕ˙sinθϕ^)]+[r˙θ˙θ^+rθ¨θ^+rθ˙(θ˙r^+ϕ˙cosθϕ^)]+[r˙ϕ˙sinθϕ^+rϕ¨sinθϕ^+rϕ˙θ˙cosθϕ^+rϕ˙sinθ(ϕ˙sinθr^ϕ˙cosθθ^)]=(r¨rθ˙2rϕ˙2sin2θ)r^+(rθ¨+2r˙θ˙rϕ˙2sinθcosθ)θ^+(rϕ¨sinθ+2r˙ϕ˙sinθ+2rθ˙ϕ˙cosθ)ϕ^ \begin{align*} \mathbf{a} &= \left[ \ddot r \hat{\mathbf{r}} + \dot{r} (\dot{\theta} \hat{\boldsymbol{\theta}} + \dot{\phi} \sin\theta \hat{\boldsymbol{\phi}}) \right] + \left[ \dot{r}\dot\theta\hat{\boldsymbol{\theta}}+ r\ddot\theta\hat{\boldsymbol{\theta}}+r\dot\theta ( -\dot{\theta} \hat{\mathbf{r}} + \dot{\phi} \cos \theta \hat{\boldsymbol{\phi}}) \right] \\ &\quad + \left[ \dot{r} \dot\phi\sin\theta\hat{\boldsymbol{\phi}}+ r\ddot\phi\sin\theta\hat{\boldsymbol{\phi}}+ r\dot\phi\dot\theta\cos\theta\hat{\boldsymbol{\phi}}+ r\dot\phi\sin\theta (-\dot\phi\sin\theta\hat{\mathbf{r}} - \dot\phi\cos\theta\hat{\boldsymbol{\theta}}) \right] \\ &= (\ddot{r}-r\dot\theta^2-r\dot\phi^2\sin^2\theta)\hat{\mathbf{r}}+(r\ddot\theta+2\dot{r}\dot\theta-r\dot\phi^2\sin\theta\cos\theta)\hat{\boldsymbol{\theta}} \\ &\quad +(r\ddot\phi\sin\theta+2\dot{r}\dot\phi\sin\theta+2r\dot\theta\dot\phi\cos\theta)\hat{\boldsymbol{\phi}} \end{align*}

See Also