# Why do we consider potential energy function $U(x)$ differentiable?

Recently when skimming through my physics-text I encountered an interesting definition of Force $$F(x) = -\frac{\mathrm dU(x)}{\mathrm dx}$$

We were taught that some functions are continuous but not differentiable. So for the force to exist $U(x)$ has to be differentiable. So how can we prove that $U(x)$ is differentiable everywhere?

• Sep 10, 2016 at 11:14
• Consider U = mgh which is clearly continous. Most formulas for potential energy are linear, too, which make them continous (I say most because I cannot come up with a non-linear one right now). Of course, there are some functions in which you would end up dividing by zero but in those cases you can define the function value. Sep 10, 2016 at 11:59
• I disagree with univise. Most formulae for potential energy that I work with are not linear. The most common potential physicists consider is perhaps the quadratic one, U(x) = ax^2. The potential experienced by an object orbiting a planet is U(r) = a/r. Sep 10, 2016 at 12:04
• To answer the original question: if we can write the force as the derivative of a potential, then that potential is necessarily differentiable. If it were not differentiable at some point, then the force at that point would be undefined, and by assumption the force is defined everywhere. The equation you've given is perhaps not best thought of as a definition of $F$, but rather a definition of $U$ --- we could write it as $U(x) = -\int^x F(x') \, \mathrm{d}x'$, and by construction $U(x)$ is differentiable. Sep 10, 2016 at 12:10
• by definition; usually where they fail is where they become singular, then one needs to think about whether this is an artifact of the (coordinate) representation, or signals something more profound. Sep 10, 2016 at 22:47

You have to think about the definition of "potential energy". Usually, we don't just pull the existence from thin air, but we deduce the existence of a potential from the properties of a conservative force. It's not hard to show that, if each line integral of a force field depends only on the start and end points of the line, there exists a differentiable function $U$ such that $F=-\nabla U$, for a proof see e.g. the Wikipedia article for conservative forces. This is the definition of a "potential energy", it is a function that belongs to a conservative force in this way.
However, some potentials may carry pathological points at which they are not differentiable, for instance potentials of the form $1/r^n$, but this then results from the force already being singular at the origin. That is, if the force wasn't defined everywhere to begin with, you shouldn't expect the potential to be defined there, either. Nevertheless, everywhere where the potentials are defined, they are differentiable by construction.
Any vector $\vec{A}$ can be written as $\vec{A}=\lambda_1\nabla f + \lambda_2\left(\nabla \times \vec{B}\right)$. A field can only be conservative if $\lambda_2=0$ since the path integral, $\int_{\vec{r_1}}^{\vec{r_2}}\vec{A} .\mathrm{d}\vec{r} = \lambda_1 \int_{\vec{r_1}}^{\vec{r_2}} \nabla f.\mathrm{d}\vec{r}+ \lambda_2 \int_{\vec{r_1}}^{\vec{r_2}}\left(\nabla \times \vec{B}\right).\mathrm{d}\vec{r}$. There is no simple way around $\lambda_2\int_{\vec{r_1}}^{\vec{r_2}}\left(\nabla \times \vec{B}\right).\mathrm{d}\vec{r}$, but if, $\lambda_2=0$, then $\int_{\vec{r_1}}^{\vec{r_2}}\vec{A}.\mathrm{d}\vec{r}=\lambda_1 \int_{\vec{r_1}}^{\vec{r_2}}\nabla f.\mathrm{d}\vec{r}= \lambda_1\int_{\vec{r_1}}^{\vec{r_2}}\mathrm{d}f=\lambda_1\left(f(\vec{r_2})-f(\vec{r_1})\right)$. Thus in the given case, $f(\vec{r})$ is the potential function for the field $\vec{A}$ provided, $\lambda_2=0$. The reason it is the potential function is that the path integral is only dependent on the initial and final position vectors of the path, namely $\vec{r_1}$ and $\vec{r_2}$. The reason $f(\vec{r})$, which is the function $U(x)$ in your case, needs to be differentiable is that other wise the field, $\vec{A}$ in my case and $F(x)$ in yours, would blow up.