Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

Derivative of the magnitude of a vector. Does it exist, or not?

Writer Andrew Mclaughlin
$\begingroup$

I have a puzzling situation involving derivatives. I want to derivate: $$ \frac{d}{dx}| \mathbf F(x)| $$

This was actually something involving physics. Lets be 2-dimensional for simplicity. Let a particle be at position $\mathbf r = (x, y)$. The distance $s$ of the particle from point $(0, 0)$ is simply $s = |\mathbf r|$. I want to calculate how that distance changes over time. $$ \frac{ds}{dt} = \frac{d}{dt}|\mathbf r| = \frac{d}{dt}\sqrt{x(t)^2 + y(t)^2} = \frac{1}{\sqrt{x(t)^2 + y(t)^2}}\left(x\frac{dx}{dt} + y\frac{dy}{dt}\right) = \frac{1}{|\mathbf r|}\left(x\frac{dx}{dt} + y\frac{dy}{dt}\right) $$

As you can see, $ds/dt$ is not defined when $|\mathbf r| = 0$. I can't see why. On physics point of view, the particle should always travel continuously in the plane (assuming the path it makes is continuous and fully differentiable). Why is the distance variation undefined? Assume for instance, I have a table, and $(x, y)$ is the position of my fingers. I can't see why it wouldn't exist.

Hypothesis: Notice that, by description I told, the curve $(x, y)$ is continuous on all points, and smooth/differentiable on all points. Thus, $x(t), y(t), x'(t), y'(t)$ is well defined, for all points. If you want, consider them to be class $C^\infty$.

My question: Does this derivative exist or not when $|\mathbf r| = 0$? What is the value/evaluation of such derivative in an arbitrary given period $t_0$ when $|\mathbf r| = 0$?


Considering $x(t) = t^2$ and $y(t) = t^2$, we get $s$ proportional to $t^2$, and thus its derivative exists at $t=0$ with the derivative having a well defined value of zero.

$\endgroup$ 13

4 Answers

$\begingroup$

CASE $1$: $\vec r(t)\ne 0$

Note that for $\vec r \ne 0$, we can write

$$\begin{align} \frac{ds(t)}{dt}&=\frac{\vec r(t)\cdot \frac{d\vec r(t)}{dt}}{|\vec r(t)|}\\\\ &=\bbox[5px,border:2px solid #C0A000]{\hat r(t)\cdot \frac{d\vec r(t)}{dt}} \tag 1 \end{align}$$

where in $(1)$, $\hat r(t)=\frac{\vec r(t)}{|\vec r(t)|}$ is the position unit vector. However, the unit vector $\hat r$ is undefined at the origin.

This fact does not automatically imply that the derivative $s'(t)$ fails to exist at $\vec r=0$. In the ensuing analysis, we will explore whether $s'(t)$ exists at $\vec r=0$.


CASE $2$: $\vec r(t)=0$

Assume that at $t_0$, $\vec r(t_0)=0$. We assume that $\vec r''(t)$ exists. Then, the derivative of $s(t)$ at $t_0$, if it exists, is given by

$$\begin{align} s'(t_0)&=\lim_{h\to 0}\left(\frac{\left|\vec r(t_0+h)\right|-\left|\vec r(t_0)\right|}{h}\right)\\\\ &=\lim_{h\to 0}\frac{\left|\vec r(t_0+h)\right|}{h} \\\\ &=\lim_{h\to 0}\frac{\left|\vec r'(t_0)h+O(h^2)\right|}{h} \\\\ &=\bbox[5px,border:2px solid #C0A000]{\lim_{h\to 0}\left(\frac{|h|}{h}\,\left|\vec r'(t_0)+O(h)\right|\right)} \tag2 \end{align}$$

If $\vec r'(t_0)=0$, then from $(2)$ we see that $s'(t_0)=0$ also. However, if $\vec r'(t_0) \ne 0$, then the limit fails to exist since the limits from the right-hand side and left-hand side are unequal.


Putting everything together, we find that

$$s'(t)=\begin{cases}\hat r(t)\cdot \frac{d\vec r(t)}{dt} &,\vec r(t) \ne 0\\\\0&,\vec r(t)=\vec r'(t)=0\\\\\text{fails to exist}&,\vec r(t) =0,\vec r'(t)\ne 0\end{cases}$$

$\endgroup$ 7 $\begingroup$

Your confusion stems from a subtlety regarding differentiation of composite functions. In particular, your calculation of $s'(t)$ uses the chain rule, but the chain rule has hypotheses.

Define $s$ to be $f\circ g$ where $g$ sends $t\mapsto\mathbf{x}(t)$ and $f$ sends $\mathbf{x}\mapsto\|\mathbf{x}\|$. The chain rule allows us to conclude that $s'(t)$ exists and is what you say it is, but only under the hypotheses that $g$ is differentiable at $t$ and $f$ is differentiable at $\mathbf{x}(t)$. Unfortunately, the function $f$ is not differentiable when $\mathbf{x}=\mathbf{0}$, so the chain rule does not apply in the case where the particle is at the origin. Are we to conclude that $s'(t)$ must not exist when $\mathbf{x}=\mathbf{0}$?

No! There is no such converse to the chain rule; the derivative of the composite may still exist. In other words, the chain rule supplies sufficient but not necessary conditions for the derivative of a composite to exist. See this question, which involves an example similar to your example with $x=y=t^2$.

$\endgroup$ $\begingroup$

As you can see, $ds/dt$ is not defined when $|\mathbf r| = 0$. I can't see why. On physics point of view, the particle should always travel continuously in the plane (assuming the path it makes is continuous and fully differentiable). Why is the distance variation undefined? Assume for instance, I have a table, and $(x, y)$ is the position of my fingers. I can't see why it wouldn't exist.

The same phenomenon happens in one dimension, and exemplifies what happens in larger dimension: The distance from $0$ to $x$ is $|x|$. If a particle travels at unit speed along a smooth path through the origin, the rate of change of distance from the origin jumps from $-1$ to $1$ at the instant the particle reaches the origin. (If you want to split hairs, this qualitative language has to be tightened up: If $f(t) = |t|$, then $f'(t) = -1$ for all $t < 0$ and $f'(t) = 1$ for all $t > 0$, but $f'(0)$ does not exist.)

The distance to the origin for a specific particle may still be differentiable as a function of time (for instance, if the particle sits at the origin for all time), but that's not the same thing as saying the "scalar field" $\mathbf{r}$ is differentiable at the origin.

This is why differential geometers almost always work with regular curves, those whose velocity is non-vanishing: Even a real-analytic mapping, such as a cycloid, or hypocycloid such as the astroid, can trace a curve with corners or cusps.

$\endgroup$ $\begingroup$

Well.. I decided to answer my own question, because user @QiyuWen was apparently too shy to write down an answer about his brilliant insights. What he said can be found in the comments write below the question.

The chain rule states: If $f′(x)$ and $g′(f(x))$ exists, then $(g∘f)′(x)$ exists, and $(g∘f)′(x)=g′(f(x))f′(x)$. Note that it's doesn't say anything about the case when $g′(f(x))$ doesn't exist. In this case, it may still be that $(g∘f)′(x)$ exists, but you can't get it from the formula.

Thus, $\displaystyle\frac{ds}{dt} = \mathbf{\hat r}\cdot\frac{d\mathbf r}{dt}$ is only valid if $|\mathbf r|\neq 0$.

To find evaluation of such derivative at $|\mathbf r| = 0$, Qiyu Wen (brilliantly) reasoned the following:

If $|\vec r(t)| = 0$ and $|\vec r|'(t)$ exists, then $|\vec r|$ is at its minimum. Hence $|\vec r|'(t)$ is necessarily $0$.

Thus, at $|\mathbf r| = 0$, derivative either do not exist, or exists with value zero.

$\endgroup$

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy