An approximate solution to a differential equation $f'(x)^2 – \omega^2 f(x)^2 = G(x)$ for small $x$

approximationordinary differential equations

Suppose I have an ODE of the form
$$
\left( \frac{df}{dx} \right)^{2} – \omega^2 f(x)^2 = G(x)
$$

with $\omega>0$ and the initial condition $f(0)=0$ and where $G(x)$ is a very complicated function (which you might not even have an analytic expression for). I seek the solution for $x>0$.

Even though I don't have the full expression for $G(x)$, I do know the series expansion for $G(x)$ for $0< x \ll 1$ where I have
$$
G(x) \simeq \omega^2 – \alpha x^4 + \mathcal{O}(x^6)
$$

for some number $\alpha >0$.

If I am interested in the solution for small $x$, then I have approximately
$$
\left( \frac{df}{dx} \right)^2 – \omega^2 f(x)^2 \simeq \omega^2
$$

under the condition that $\alpha x^4 \ll 1$. There is a simple solution to the above DE: does it make sense to say the following?
$$
f(x) \simeq \sinh(\omega x) \ \ \ \ \ \ \mathrm{when\ }\alpha x^4 \ll 1
$$

The above seems to work numerically quite well, but I am confused because I am taking a series expansion in the ODE and dropping terms $\mathcal{O}(x^4)$ there in the DE: however, my approximate solution has terms higher order than this in it. So in this sense my solution is not really a series in $x\ll 1$.

Does it make sense what I've done? Maybe the condition $\alpha x^4 \ll 1$ doesn't make sense here? Is there any literature on approximating DE's in this manner?

An Example With a Plot I have cooked up a function (involving Bessel functions)
$$
G_0(x) := \omega^2 J_0\left(\left[ \frac{192\alpha}{\omega^2} \right]^{1/4} x\right) + 2 \omega^2 J_{2}\left(\left[ \frac{192\alpha}{\omega^2} \right]^{1/4} x\right)
$$

This has the $x\ll 1$ expansion $G_0(x) \simeq \omega^2 – \alpha x^4 + \mathcal{O}(x^6)$ (I've cooked up the parameters in the arguments so this is so). The smaller you make $\alpha$, for larger values of $x$ the function looks approximately constant $G_0(x) \sim \omega^2$.

Below I do some numerical plotting for $\omega = 0.4$ and $\alpha=0.001$. In the first curve I numerically solve for the exact curve $f(x)$ for the choice $G_0$. The second curve I plot the approximation $\sinh(\omega x)$. In the last curve I use the first three terms of the series expansion of $\sinh(\omega x) \sim \omega x + \ldots$
enter image description here
The Point: $\sinh(\omega x)$ is a much better approximation for the solution $f$ (than the simple series expansion $\omega x + \ldots$). This is because $\alpha$ is chosen to be small here.

Why can you neglect terms $\mathcal{O}(x^4)$ in the ODE (presumably this would mean your solution needs to be a series in $x$ too?), and yet the better approximation is a function $\sinh(\omega x)$ which has every order (higher than 4!) contributions?

How to understand the error in $\sinh(\omega x)$ when using such an approximation? (an error which seems to be smaller than the error introduced by a simple series solution to $f$.)

Best Answer

When deriving approximate solutions to differential equations, one should always build the approximation around the base solution in a proper form to ensure accuracy.

So, start with the equation in question,

$$ [f’(x)]^{2} - \omega^2 f(x)^2 = \omega^2-\alpha x^4\tag{1} $$

Since $\sinh(\omega x) $ is the exact solution to the base DE,

$$ [f’(x)]^{2} - \omega^2 f(x)^2 = \omega^2\tag{2} $$

the approximation should be constructed around $\sinh(\omega x)$ in the following product form,

$$f(x) = \sinh(\omega x)(1 +c x^4)$$

where $c$ is the approximation coefficient to be solved and it is of the order $O(\alpha)$. Then,

$$ f’(x) = \omega \cosh(\omega x) (1+cx^4)+\sinh(\omega x) \cdot 4cx^3$$

$$= \omega \cosh(\omega x) + 5c\omega x^4 + O(c^2)$$

and,

$$[f’(x)]^2= \omega^2\cosh^2(\omega x) + 10c\omega^2 x^4 + O(c^2)\tag{3}$$

Plug (3) into (1). The terms corresponding to the base DE cancels out as constructed and the following approximation coefficient can be obtained,

$$c=-\frac{\alpha}{10\omega^2}$$

Therefore, the approximation taking into account of the added term $-\alpha x^4$ in (1) is

$$f(x) = \sinh(\omega x)\left(1-\frac{\alpha}{10\omega^2}x^4\right)\tag{3}$$

The solution above should then be compared with the exact curve in your plots to judge the quality of the approximation.

Notes:

One should not expand the base solution $\sinh(\omega x)$ since it is the exact solution to the base DE. The base solution contains the essential information embedded in the base DE (2), up to all orders of $x$.

The reason that $\sinh(\omega x)$ is better than its polynomial expansion is simply because it is the exact base solution. Expanding it to just a few terms would compromise the quality of the solution, as shown by the third curve in your plots. So, it should not be surprising that $\sinh(\omega x)$ is closer to the real curve than its polynomial cutoff. (The simple expansion is only valid for small values of $x$, evident from the third curve in your plots.)

As alluded earlier, It is better to choose the product form in (3) for the approximate solution since the added term of order $x^4$ is comparable to that in (1). Furthermore, a more accurate approximation can be derived by including a higher order term as below

$$f(x) = \sinh(\omega x)\left(1-\frac{\alpha}{10\omega^2}x^4 +\frac{4\alpha}{105} x^6\right)$$

Related Question