Skip to main content

Section 4.3 Sinusoidal Forcing

If we consider different forcing functions g(t) for the equation
x+px+qx=g(t),
functions that are periodic are especially important. Recall that a function g(t) is periodic if
g(t+T)=g(t)
for all t and some fixed constant T. The most familiar periodic functions are
g(t)=sinωt and g(t)=cosωt.
The period for each of these two functions is 2π/ω and the frequency is ω/2π. These two functions share the additional property that their average value is zero. That is,
1T0Tg(t)dt=0.
We say that sinusoidal forcing occurs in the differential equation
x+px+qx=Acosωt+Bsinωt.

Subsection 4.3.1 Complexification

Given a second-order linear differential equation
ax+bx+cx=Acosωt+Bsinωt,
we can use Euler’s formula, eiβt=cosβt+isinβt to derive a particular solution. That is, we will assume that our particular solution has the form
xc=xRe+ixIm
and use the properties of complex numbers.
 1 
If complex numbers make you uncomfortable, the alternative is to become an expert in trigonometric identities

Example 4.3.1.

Let us consider the equation
(4.3.1)x+6x+5x=sin2t.
The solution to the corresponding homogeneous equation, x+6x+5x=0, is
xh=c1e5t+c2et.
To find a particular solution, we can use the method of undetermined coefficients and assume that the solution has the form
xp=Acos2t+Bsin2t.
If we carry out the appropriate calculations, we will obtain a particular solution
xp=12145cos2t+1145sin2t.
Thus, the general solution is
x=xh+xp=c1e5t+c2et12145cos2t+1145sin2t.
Notice that all solutions of (4.3.1) will approach the particular solution as t.

Example 4.3.2.

Now let us solve (4.3.1) using complex numbers. If we assume that the equation has a complex solution of the form xc=xRe+ixIm, then
d2dt2xc+6ddtxc+5xc=d2dt2(xRe+ixIm)+6ddt(xRe+ixIm)+5(xRe+ixIm)=e2it=cos2t+isin2t.
Equating the real and imaginary parts of this equation, we obtain
xRe+6xRe+5xRe=cos2txIm+6xIm+5xIm=sin2t.
Thus, if we can find a complex solution, we can find a solution to
x+6x+5x=sin2t
simply by examining the imaginary part of the solution.
Now let us assume that our solution has the form xc=Ae2it. Then
xc+6xc+5xc=4Ae2it+12Aie2it+5Ae2it=(1+12i)Ae2it=(1+12i)A(cos2t+isin2t).
Equating the real and imaginary parts of this equation, we obtain
xRe+6xRe+5xRe=cos2txIm+6xIm+5xIm=sin2t
and we immediately see that
A=11+12i=114512145i.
Therefore, the complex solution to
x+6x+5x=e2it
is
xc=Ae2it=(114512145i)(cos2t+isin2t)=(1145cos2t+12145sin2t)+i(12145cos2t+1145sin2t).
The imaginary part of this function is
xIm=12145cos2t+1145sin2t,
which is the particular solution that we have been seeking. Thus, our general solution agrees with what we found in Example 4.3.1.

Activity 4.3.1. Second-Order Linear Differential Equations and Complexification.

Find (1) a particular solution and (2) a general solution for each of the following differential equations.
(d)
x4x+20x=2e2tcos4t

Subsection 4.3.2 Qualitative Analysis

We can use the complex solution of ax+bx+cx=Acosωt+Bsinωt to analyze the qualitative behavior of solutions.

Example 4.3.3.

We discovered that the complex solution of
x+6x+5x=e2it
to be xc=Ae2it, where A=(112i)/145. Let us rewrite A in polar form. Since
|A|=1145,
we know that
A=1145eiθ,
where θ=arctan(12)1.4877. Therefore,
xc=Ae2it=1145eiθe2it=1145ei(2t+θ).
Our particular solution is the imaginary part of xc,
xp(t)=1145sin(2t+θ)=1145cos(2t+θπ2)=1145cos(2tϕ),
where ϕ3.058451. We say that ϕ is the phase angle of our solution. The amplitude of our solution is 1/145 and the period is π (Figure 4.3.4).
Figure 4.3.4. Steady state solution to x+6x+5x=sin2t

Activity 4.3.2. Finding Particular Solutions of the Form yp=Acos(ωtϕ).

Consider the differential equation
(4.3.2)y+10y+34y=sin2t.
(a)
Find the general solution to the homogeneous equation y+10y+34y=0.
(b)
Find the complex solution particular solution, yc to y+10y+34y=e2it. That is, find a for yp=ae2it.
(c)
Determine A and B, so that yp=Acos2t+Bsin2t is a particular solution to (4.3.2)
(e)
Find a real particular solution in the form yp=Acos(ωtϕ).
(f)
Plot the solution you found in Task 4.3.2.e, labeling the amplitude, period, and frequency of your solution.
The corresponding first order system for the differential equation
x+px+qx=g(t),
x=yy=qxpy+g(t).
This is a nonautonomous system, and the tangent vector of a solution curve in the phase plane depends not only on the position (x,y), but also on the time t. In other words, the direction field changes with time. Since the direction field changes with time, two solutions with the same (x,y) value at different times can follow different paths. Consequently, solutions can cross each other in the xy-plane without violating the Existence and Uniqueness Theorem.

Example 4.3.5.

Consider the harmonic oscillator that is modeled by the differential equation
(4.3.3)x+2x+17x=2sin3t.
The solution to the homogeneous equation x+2x+17x=0 is
xh=c1etcos4t+c2etsin4t
The complex version of this equation is
x+2x+17x=2e3it,
and we will use the Method of Undetermined Coefficients and assume that we can find a particular solution of the form xc=Ae3it. Substituting xc into equation (4.3.3), we find that
(8+6i)Ae3it=2e3it.
Thus, xc is a solution if
A=28+6i=425+325i
We have
xc(t)=(425+325i)(cos3t+isin3t)=(425cos3t325sin3t)+i(325cos3t425sin3t).
The imaginary part of this function is the solution that we seek,
xp=325cos3t425sin3t.
Thus, the general solution to (4.3.3) is
x(t)=c1etcos4t+c2etsin4t+325cos3t425sin3t.
Now suppose that x(0)=0 and x(0)=0. We can quickly determine that
x(t)=c1et(cos4t4sin4t)+c2et(4cos4tsin4t)1225cos3t925sin3t
To solve this initial value problem, we must solve the linear system
c1+325=0c1+4c21225=0.
We obtain c1=3/25 and c2=9/100, and the solution to our initial value problem is
x(t)=325et(cos4t4sin4t)+320et(4cos4tsin4t)1225cos3t925sin3t=3100(4cos4t3sin4t))et1225cos3t925sin3t
The graph of our solution is given in Figure 4.3.6.
Figure 4.3.6. Solution to x+2x+17x=2sin3t, x(0)=0, x(0)=0
Since y=x(t), we can now graph the solution curve in the phase plane (Figure 4.3.7). Notice how the solution curve can intersect itself. The restoring force and damping are proportional to x and y=x, respectively. When x and y are close to the origin, the external force is as large or larger than the restoring and damping forces. In this part of the xy-plane, the external force overcomes the damping and pushes the solution away from the origin.
Figure 4.3.7. Phase Plane for x+2x+17x=2sin3t, x(0)=0, x(0)=0
On the other hand, suppose we have initial conditions x(0)=2 and x(0)=2, we can solve the linear system
c1+325=24c1c2925=2.
to obtain c1=47/25 and c2=109/100. Thus, solution to our initial value problem is
x(t)=4725etcos4t+109100etsin4t+340cos2t320sin2t.
The graph of our solution is given in Figure 4.3.8.
Figure 4.3.8. Solution to x+2x+17x=2sin3t, x(0)=2, x(0)=2
If we examine the phase plane for this solution (Figure 4.3.9), we see that the initial damping and restoring forces are much larger than the external force. Thus, if we are far from the origin, the solutions in the xy-plane tend to spiral towards the origin and are similar to the solutions of the unforced equation.
Figure 4.3.9. Solution to x+2x+17x=2sin3t, x(0)=2, x(0)=2

Subsection 4.3.3 Important Lessons

  • The functions sinωt and cosωt are periodic with period 2π/ω and frequency ω/2π. The average value of each of these functions is zero.
  • We can use Euler’s formula and complexification to solve the equation
    x+px+qx=g(t),
    where the forcing function g(t) is sinωt or cosωt. Furthermore, we can use complex numbers to express our solution in the form
    x(t)=Acos(ωtϕ),
    where A is the amplitude of the solution, ω/2π is the frequency of the solution, and ϕ is the phase angle.
  • If we write the equation
    x+px+qx=g(t),
    as a first-order system,
    x=yy=qxpy+g(t),
    we obtain a nonautonomous system. In this case the direction field changes with time, and two solutions with the same (x,y) value at different times can follow different paths. Therefore, solutions can cross each other without violating the Existence and Uniqueness Theorem.
  • If we are far from the origin, the solutions in the xy-plane tend to spiral towards the origin and are similar to the solutions of the unforced equation. When x and y are close to the origin, the external force is as large or larger than the restoring and damping forces. In this part of the xy-plane, the external force overcomes the damping and pushes the solution away from the origin.

Reading Questions 4.3.4 Reading Questions

1.

What does complexification mean?

2.

Is it possible for solution curves to intersect in the phase plane of a nonautonomous system? Why or why not?

Exercises 4.3.5 Exercises

Finding Particular Solutions.

Find a particular solution for each equation in Exercise Group 4.3.5.1–10 using complexification.
2.
y+7y+10y=4sin3t
Hint.
Assume the complex solution has form yc=Ae3it.

Finding Frequencies, Amplitudes, and Phase Angles.

Find a particular solution of the form yp=Acos(ωtϕ) for each equation in Exercise Group 4.3.5.11–17 and determine the frequency ω, amplitude A, and phase angle ϕ of the solution.
12.
y+7y+10y=4sin3t
Hint.
Assume the complex solution has form yc=Ae3it.

Solving Initial Value Problems.

Solve the initial problems in Exercise Group 4.3.5.18–24 and discuss the long-term behavior of the solution.
18.
y+4y=3cos2t, y(0)=0, y(0)=0
19.
y+7y+10y=4sin3t, y(0)=0, y(0)=0
20.
d2xdx2+2dxdt+2x=2cos2t, x(0)=0, x(0)=0
21.
x2x+5x=3cost, x(0)=0, x(0)=0
22.
y+6y+7y=3sin2t, y(0)=0, y(0)=0
23.
y+4y+13y=3cos2t, y(0)=0, y(0)=0
24.
y+6y+8y=cos3t, y(0)=0, y(0)=0
You have attempted 1 of 3 activities on this page.