5. Pure oscillation¶
The equation
has characteristic roots that are purely imaginary:
One option is to express the solution using complex exponentials,
where \(c_1\) is complex, and \(c_2=\overline{c_1}\) ensures a real-valued solution. For any complex \(z=u+iv\),
Hence we can also write
having absorbed a factor of 2 into the arbitrary constant.
Suppose we define
Then by Euler’s identity,
and the stuff in the final brackets disappears upon taking the real part. So equivalently to (5.1), we can write
There is an important third equivalent form.
5.1. Amplitude–phase form¶
Returning to (5.1), let us write \(c_1\) in polar form:
Then
where the last line follows from Euler’s identity. This is the amplitude–phase form,
A useful aspect of this form is that the solution oscillates between \(\pm R\), which is the amplitude of the oscillation.
Equations (5.1), (5.2), and (5.3) are all equivalent expressions of the general solution. We can convert between them using the identities
which amounts to simple polar/Cartesian conversions.
Example
Find the solution in amplitude-phase form of \(2x''+32x=0\) with \(x(0)=1\), \(x'(0)=-8\).
Solution
First divide through by 2 to get the standard form, \(x''+16x=0\). Then we have \(\omega_0=\sqrt{16}=4\), so
We then derive \(1=x(0)=a_1\) and \(-8=x'(0)=4a_2\), so
Converting \((1,-2)\) to polar form gives \(R=\sqrt{5}\) and \(\tan \theta = -2/1\). In order to find \(\theta\) numerically, you need to use a four-quadrant arctangent. In MATLAB it would be atan2(-2,1)
.
Example
Find the amplitude of the solution to \(x''+9x=0\), \(x(0)=-4\), \(x'(0)=6\).
Solution
The characteristic polynomial \(\lambda^2+9\) gives the roots \(\pm 3i\). We can write the solution as \(x(t) = R \cos(3 t + \theta)\) and apply the initial conditions to get
We are asked only for the amplitude, so there is no need to solve for \(\theta\). It’s clear that
which gives \(R=\sqrt{20}=2\sqrt{5}\).