# Differential Equations

In physics, we come across a variety of problems which require the use of Differential Equations in order to solve. We’ll start with a simple example and then expand upon it gradually. For instance, how would you mathematically model the motion of a spring or a pendulum where the forces are constantly changing at every point?

# Solution Methods

The solutions to differential equations are what physicists are most interested in, since it’s the solutions which dictate the allowable types of behavior for the system and not the differential equation itself.

There are a variety of methods that can be used for solving various forms of Differential Equations.
The process goes as follows:

1. First identify the form of the differential equation, or perform algebra to convert an equation (or set of equations) into a recognizable differential equation form. Usually you want to try forms that are easiest to solve first.

2. Second is to use the appropriate solution method, sometimes these methods will not work and you will need to use other methods such as “Special Integrating Factors” or a “Variation of Parameters”.

3. Third and last is “Plug It In!”, Check and see if your derived solution actually satisfies the differential equation. If it doesn’t work, go back to step 2 and try another solution method.

## Linear Equations

The easiest solution method is known as “Separation of Variables”, where (as the name implies) you literally separate the variables using algebra and then use calculus to integrate both sides and the result is your solution.

Generally, this method works best for Linear Equations with two variables, which are then separated to opposite sides of the equals sign.

Take, for example, the force “F” of a spring with spring constant “k”; F=-kx
Where the displacement from equilibrium “x” determines the restoring force of the spring. Or identically you can think of it as, the greater force you apply to the spring, the greater the displacement from equilibrium. The minus sign just signifies direction, since the force is always opposite the direction of compression or stretching of the spring.

We also know that force equals mass x acceleration (Newton’s 2nd Law) F=ma
And in an ideal system we would have a massless spring with a point mass attached to the end. We could then say for this system that the force created by the spring is F=-kx and knowing that the point mass “m” on the end of the spring will accelerate with acceleration “a” whenever a force “F” is applied to it. Setting these forces equal gives us F=ma=-kx, the next step is to show the acceleration as a differential of x. Since the units of acceleration are “distance per unit time squared” (x/t2), our equation can be rewritten in the form: -kx = mx/t2 , although we have to start thinking of x and t in form of differentials dx and dt.

dx = space differential ; dt = time differential

In terms of differentials our equations looks more like -kx = m * d2x/dt2
Or separated out so you can see -kx = m * d/dt * dx/dt

The next step is to get all the t’s and dt’s (time-like stuff) on one side of the equation and all the x’s and dx’s (space-like stuff) onto the other side.

This is called “Separation of Variables” for a good reason. So we just multiply both sides by dt2 and divide both sides by x and we get; -kdt2x/x = mdx/x

On the left side, we have x/x which is just equal to 1 since anything divided by itself is just =1, so this disappears. We are tempted to do the same on the right side of the equation “mdx/x” except that the x on top is dx not x which is different, so we must be careful. dx/x is actually 1/x*dx . In any case our equation is now -kdt2 = 1/x*mdx , which is separated and now solvable by integral calculus. The integral of 1/x gives us a logarithm “log(x)” which you can then get rid of if you raise both sides of the equation as e to the power of.

I won’t go into all the steps in between, for those I suggest you review the Calculus and Algebra sections.

The solution ends up being: x = esqrt(k/m) * t ; which is just the 1D equation for a wave x=ewt , where w=sqrt(k/m) is the angular frequency of oscillation, which can easily be converted to the actual frequency by a factor of 2pi. This factor is there any time you have e^ to the power of something.

Even though separation of variables requires the knowledge and application of a variety of algebra and calculus operations, it is actually one of the easiest methods for solving differential equations. But it turns out that you needn’t go through all these steps every single time. By knowing the form these equations take and how that effects the form of the solution, we can use short-cuts to “guess” solutions which we assume will work, then test them to see if, indeed, they do work.

## Exact Equations

Exact equations are also generally easy to recognize and solve. If you see an equation that looks like the form:

Pdx + Qdy = 0 ; Where P and Q are both functions of x and/or y

To tell if an equation is exact, you just look at the opposing derivatives of P and Q. Since P is with dx you will want to take the derivate with respect to y, and since Q is with dy you will want to take the derivate of Q with respect to x. So just look at the functions P and Q in front of dx and dy and take the derivate of P and Q with respect to the opposite variables, and check to see if they are equal.

If they are equal then the equation is exact and you can go on to use the Exact Equation Solution Method below. If they aren’t equal, then the equation isn’t exact and you will have to try a different solution method.

### Exact Equation Solution Method

Finding a solution to an exact differential equation is pretty straight-forward, the first step is to integrate Pdx, and Qdy.

Once you find the indefinite integral of both of these, you look at the terms from each that are similar and find the terms that are different. The similar terms do not need to be repeated. Basically just pick one of the equations and add the different terms from the other equation onto your first equation, and that total of all these terms together should give you your solution. The idea is that the different terms will have respective (x and y) derivatives which go to zero on each side to leave you with P and Q. So that when you take the derivatives of your determined solution with respect to x and y, you end up with P and Q respectively.

Examples and a Table of different formulas coming soon.

———User feedback and interest in this area will determine how much work I put into this section——
So if you like my explanations and want to see me fill out the rest of these explanations of different method below, then email me and let me know! Thanks!

# Important Physics Applications of Diff Eqs

## RLC Circuits

 Figure 1. RLC series circuit V – the voltage of the power source I – the current in the circuit R – the resistance of the resistor L – the inductance of the inductor C – the capacitance of the capacitor

In this circuit, the three components are all in series with the voltage source. The governing differential equation can be found by substituting into Kirchhoff’s voltage law (KVL) the constitutive equation for each of the three elements. From KVL,

$v_R+v_L+v_C=v(t) \,$

where $\textstyle v_R, v_L, v_C$ are the voltages across R, L and C respectively and $\textstyle v(t)$ is the time varying voltage from the source. Substituting in the constitutive equations,

$Ri(t) + L { {di} \over {dt}} + {1 \over C} \int_{-\infty}^{\tau=t} i(\tau)\, d\tau = v(t)$

For the case where the source is an unchanging voltage, differentiating and dividing by L leads to the second order differential equation:

${{d^2 i(t)} \over {dt^2}} +{R \over L} {{di(t)} \over {dt}} + {1 \over {LC}} i(t) = 0$

This can usefully be expressed in a more generally applicable form:

${{d^2 i(t)} \over {dt^2}} + 2 \alpha {{di} \over {dt}} + {\omega_0}^2 i(t) = 0$

$\alpha \,$ and $\omega_0 \,$ are both in units of angular frequency$\alpha \,$ is called the neper frequency, or attenuation, and is a measure of how fast the transient response of the circuit will die away after the stimulus has been removed. Neper occurs in the name because the units can also be considered to be nepers per second, neper being a unit of attenuation. $\omega_0 \,$ is the angular resonance frequency and is discussed later.[2]

For the case of the series RLC circuit these two parameters are given by:[3]

$\alpha = {R \over 2L}$ and $\omega_0 = { 1 \over \sqrt{LC}}$

A useful parameter is the damping factor? which is defined as the ratio of these two,

$\zeta = \frac {\alpha}{\omega_0}$

In the case of the series RLC circuit, the damping factor is given by,

$\zeta = {R \over 2} \sqrt{C\over L}$

The value of the damping factor determines the type of transient that the circuit will exhibit.[4] Some authors do not use $\zeta \,$ and call $\alpha \,$ the damping factor.[5]

## The Helmholtz Equation

The Helmholtz equation, named for Hermann von Helmholtz, is the elliptic partial differential equation

$\nabla^2 A + k^2 A = 0$

where ?2 is the Laplaciank is the wavenumber, and A is the amplitude.

 Two sources of radiation in the plane, given mathematically by a function ƒ which is zero in the blue region. The real part of the resulting field A, A is the solution to the inhomogeneous Helmholtz equation $(\nabla^2 + k^2) A = -f.$

## Motivation and uses

The Helmholtz equation often arises in the study of physical problems involving partial differential equations (PDEs) in both space and time. The Helmholtz equation, which represents the time-independent form of the original equation, results from applying the technique of separation of variables to reduce the complexity of the analysis.

For example, consider the wave equation

$\left(\nabla^2-\frac{1}{c^2}\frac{\partial^2}{\partial{t}^2}\right)u(\mathbf{r},t)=0.$

Separation of variables begins by assuming that the wave function u(rt) is in fact separable:

$u(\mathbf{r},t)=A (\mathbf{r}) T(t).$

Substituting this form into the wave equation, and then simplifying, we obtain the following equation:

${\nabla^2 A \over A } = {1 \over c^2 T } { d^2 T \over d t^2 }.$

Notice the expression on the left-hand side depends only on r, whereas the right-hand expression depends only on t. As a result, this equation is valid in the general case if and only if both sides of the equation are equal to a constant value. From this observation, we obtain two equations, one for A(r), the other for T(t):

${\nabla^2 A \over A } = -k^2$

and

${1 \over c^2 T } { d^2 T \over dt^2 } = -k^2$

where we have chosen, without loss of generality, the expression –k2 for the value of the constant. (It is equally valid to use any constant k as the separation constant; –k2 is chosen only for convenience in the resulting solutions.)

Rearranging the first equation, we obtain the Helmholtz equation:

$\nabla^2 A + k^2 A = ( \nabla^2 + k^2) A = 0.$

Likewise, after making the substitution

$\omega \stackrel{\mathrm{def}}{=} kc$

the second equation becomes

$\frac{d^2{T}}{d{t}^2} + \omega^2T = \left( { d^2 \over dt^2 } + \omega^2 \right) T = 0,$

where k is the wave vector and ? is the angular frequency.

### Harmonic solutions

It is relatively easy to show that solutions to the Helmholtz equation will take the form:

$A(\mathbf{r}) = C_1e^{i\mathbf{k}\cdot\mathbf{r}} + C_2e^{-i\mathbf{k}\cdot\mathbf{r}}$

which corresponds to the time-harmonic solution

$T(t) = D_1e^{i \omega t} + D_2e^{-i \omega t} \,$

for arbitrary (complex-valued) constants C and D, which will depend on the initial conditions and boundary conditions, and subject to the dispersion relation

$k = |\mathbf{k}| = { \omega \over c }.$

We now have Helmholtz’s equation for the spatial variable r and a second-order ordinary differential equation in time. The solution in time will be a linear combination of sine and cosine functions, with angular frequency of ?, while the form of the solution in space will depend on the boundary conditions. Alternatively, integral transforms, such as the Laplace or Fourier transform, are often used to transform a hyperbolic PDE into a form of the Helmholtz equation.

Because of its relationship to the wave equation, the Helmholtz equation arises in problems in such areas of physics as the study of electromagnetic radiationseismology, and acoustics.

## Solving the Helmholtz equation using separation of variables

The general solution to the spatial Helmholtz equation

$( \nabla^2 + k^2 ) A = 0$

can be obtained using separation of variables.

### Vibrating membrane

The two-dimensional analogue of the vibrating string is the vibrating membrane, with the edges clamped to be motionless. The Helmholtz equation was solved for many basic shapes in the 19th century: the rectangular membrane by Siméon Denis Poisson in 1829, the equilateral triangle by Gabriel Lamé in 1852, and the circular membrane by Alfred Clebsch in 1862. The elliptical drumhead was studied by Émile Mathieu, leading to Mathieu’s differential equation. The solvable shapes all correspond to shapes whose dynamical billiard table is integrable, that is, not chaotic. When the motion on a correspondingly-shaped billiard table is chaotic, then no closed form solutions to the Helmholtz equation are known. The study of such systems is known as quantum chaos, as the Helmholtz equation and similar equations occur in quantum mechanics.

If the edges of a shape are straight line segments, then a solution is integrable or knowable in closed-form only if it is expressible as a finite linear combination of plane waves that satisfy the boundary conditions (zero at the boundary, i.e., membrane clamped).

An interesting situation happens with a shape where about half of the solutions are integrable, but the remainder are not. A simple shape where this happens is with the regular hexagon. If the wavepacket describing a quantum billiard ball is made up of only the closed-form solutions, its motion will not be chaotic, but if any amount of non-closed-form solutions are included, the quantum billiard motion becomes chaotic. Another simple shape where this happens is with an “L” shape made by reflecting a square down, then to the right.

If the domain is a circle of radius a, then it is appropriate to introduce polar coordinates r and ?. The Helmholtz equation takes the form

$A_{rr} + \frac{1}{r} A_r + \frac{1}{r^2}A_{\theta\theta} + k^2 A = 0.$

We may impose the boundary condition that A vanish if r=a; thus

$A(a,\theta) = 0. \,$

The method of separation of variables leads to trial solutions of the form

$A(r,\theta) = R(r)\Theta(\theta), \,$

where T must be periodic of period 2p. This leads to

$\Theta'' +n^2 \Theta =0, \,$

and

$r^2 R'' + r R' + r^2 k^2 R - n^2 R=0. \,$

It follows from the periodicity condition that

$\Theta = \alpha \cos n\theta + \beta \sin n\theta, \,$

and that n must be an integer. The radial component R has the form

$R(r) = \gamma J_n(\rho), \,$

where the Bessel function Jn(?) satisfies Bessel’s equation

?2Jn” + 2?Jn‘ + (?2 – n2)Jn = 0,

and ?=kr. The radial function Jn has infinitely many roots for each value of n, denoted by ?m,n. The boundary condition that A vanishes where r=a will be satisfied if the corresponding wavenumbers are given by

$k_{m,n} = \frac{1}{a} \rho_{m,n}. \,$

The general solution A then takes the form of a doubly infinite sum of terms involving products of

$\sin(n\theta) \, \hbox{or} \, \cos(n\theta), \, \hbox{and} \, J_n(k_{m,n}r).$

These solutions are the modes of vibration of a circular drumhead.

### Three-dimensional solutions

In spherical coordinates, the solution is:

$A (r, \theta, \varphi)= \sum_{\ell=0}^\infty \sum_{m=-\ell}^\ell ( a_{\ell m} j_\ell ( k r ) + b_{\ell m} y_\ell ( k r ) ) Y ^ m_\ell ( { \theta,\varphi} ) .$

This solution arises from the spatial solution of the wave equation and diffusion equation. Here $j_\ell ( k r )$ and $y_\ell ( k r )$ are the spherical Bessel functions, and

$Y^m_\ell ( {\theta,\varphi} )$

are the spherical harmonics (Abramowitz and Stegun, 1964). Note that these forms are general solutions, and require boundary conditions to be specified to be used in any specific case. For infinite exterior domains, a radiation condition may also be required (Sommerfeld, 1949).

For $\mathbf{r_0}=(x,y,z)$ function A(r0) has asymptotics

$A(r_0)=\frac{e^{i k r_0}}{r_0} f(\mathbf{r}_0/r_0,k,u_0) + o(1/r_0)\text{ as } r_0\to\infty$

where function ƒ is called scattering amplitude and u0(r0) is the value of A at each boundary point r0.

## Paraxial approximation

The paraxial approximation of the Helmholtz equation is:

$\nabla_{\perp}^2 A - 2ik\frac{\partial A}{\partial z} = 0,$

where $\textstyle \nabla_{\perp}^2 \stackrel{\mathrm {def}}{=} \frac{\partial^2}{\partial x^2} + \frac{\partial^2}{\partial y^2 }$ is the transverse part of the Laplacian.

This equation has important applications in the science of optics, where it provides solutions that describe the propagation of electromagnetic waves (light) in the form of either paraboloidal waves or Gaussian beams. Most lasers emit beams that take this form.

In the paraxial approximation, the complex magnitude of the electric field E becomes

$E(\mathbf{r}) = A(\mathbf{r}) e^{-ikz}$

where A represents the complex-valued amplitude of the electric field, which modulates the sinusoidal plane wave represented by the exponential factor.

The paraxial approximation places certain upper limits on the variation of the amplitude function A with respect to longitudinal distance z. Specifically:

$\bigg| { \partial A \over \partial z } \bigg| \ll | kA |$

and

$\bigg| { \partial^2 A \over \partial z^2 } \bigg| \ll | k^2 A |$

These conditions are equivalent to saying that the angle ? between the wave vector k and the optical axis z must be small enough so that

$\sin(\theta) \approx \theta \qquad \mathrm{and} \qquad \tan(\theta) \approx \theta$

The paraxial form of the Helmholtz equation is found by substituting the above-stated complex magnitude of the electric field into the general form of the Helmholtz equation as follows.

$\nabla^{2}(A\left( x,y,z \right) e^{-ikz}) + k^2 (A\left( x,y,z \right) e^{-ikz}) = 0$

Expansion and cancellation yields the following:

$\left( {\frac {\partial ^{2}}{\partial {x}^{2}}} + {\frac {\partial ^{2}}{\partial {y}^{2}}} \right)(A\left( x,y,z \right) e^{-ikz}) + \left( {\frac {\partial ^{2}}{\partial {z}^{2}}}A \left( x,y,z \right) \right) {e^{-ikz}}-2\, \left( {\frac {\partial }{\partial z}}A \left( x,y,z \right) \right) ik{e^{-ikz}}=0.$

Because of the paraxial inequalities stated above, the ?2A/?z2 factor is neglected in comparison with the ?A/?z factor. The yields the Paraxial Helmholtz equation.

## Inhomogeneous Helmholtz equation

The inhomogeneous Helmholtz equation is the equation

$\nabla^2 A(x) + k^2 A(x) = -f(x) \mbox { in } \mathbb R^n$

where ƒ : Rn ? C is a given function with compact support, and n = 1, 2, 3. This equation is very similar to the screened Poisson equation, and would be identical if the plus sign (in front of the k term) is switched to a minus sign.

In order to solve this equation uniquely, one needs to specify a boundary condition at infinity, which is typically the Sommerfeld radiation condition

$\lim_{r \to \infty} r^{\frac{n-1}{2}} \left( \frac{\partial}{\partial r} - ik \right) A(r \hat {x}) = 0$

uniformly in $\hat {x}$ with $|\hat {x}|=1$, where the vertical bars denote the Euclidean norm.

With this condition, the solution to the inhomogeneous Helmholtz equation is the convolution

$A(x)=(G*f)(x)=\int\limits_{\mathbb R^n}\! G(x-y)f(y)\,dy$

(notice this integral is actually over a finite region, since f has compact support). Here, G is the Green’s function of this equation, that is, the solution to the inhomogeneous Helmholtz equation with ƒ equaling the Dirac delta function, so G satisfies

$\nabla^2 G(x) + k^2 G(x) = -\delta(x) \text{ in }\mathbb R^n. \,$

The expression for the Green’s function depends on the dimension n of the space. One has

$G(x) = \frac{ie^{ik|x|}}{2k}$

for n = 1,

$G(x) = \frac{i}{4}H^{(1)}_0(k|x|)$

for n = 2, where $H^{(1)}_0$ is a Hankel function, and

$G(x) = \frac{e^{ik|x|}}{4\pi |x|}$

for n = 3. Note that we have chosen the boundary condition that the Green’s function is an outgoing wave for $|x| \to \infty$.

## References

• M. Abramowitz and I. Stegun eds., Handbook of Mathematical functions with Formulas, Graphs and Mathematical Tables, National Bureau of Standards. Washington, D. C., 1964.
• Riley, K.F., Hobson, M.P., and Bence, S.J. (2002). Mathematical methods for physics and engineering, Cambridge University Press, ch. 19. ISBN 0-521-89067-5.
• McQuarrie, Donald A. (2003). Mathematical Methods for Scientists and Engineers, University Science Books: Sausalito, California, Ch. 16. ISBN 1-891389-24-6.
• Bahaa E. A. Saleh and Malvin Carl Teich (1991). Fundamentals of Photonics. New York: John Wiley & Sons. ISBN 0-471-83965-5. Chapter 3, “Beam Optics,” pp. 80–107.
• A. Sommerfeld, Partial Differential Equations in Physics, Academic Press, New York, New York, 1949.
• Howe, M. S. (1998). Acoustics of fluid-structure interactions. Cambridge; New York: Cambridge University Press. ISBN 0-521-63320-6.