Physics Library
 An open source physics library
Encyclopedia | Forums | Docs | Random  

[parent] Solving a Forced Harmonic Oscillator by Fourier and Laplace Transforms

(Example)

FS26E2: Solving a Forced Harmonic Oscillator by Fourier and Laplace Transforms

In FS26 we saw that a Fourier transform can turn the equation of motion of a forced oscillator into an algebraic equation in frequency. But there was a significant step left unexplained: how do we take that algebraic frequency-domain result and recover the complete motion in time? Furthermore, what changes if we use a Laplace transform instead of a Fourier transform? Both methods should describe the same physical mass, spring, damper, and applied force. Their treatment of causality and initial conditions, however, looks quite different.

We will solve one and the same initial-value problem completely using both transforms. Our forcing will be a finite rectangular pulse rather than an indefinitely sustained sinusoid. This makes the physics particularly clear: the force turns on, turns off, and leaves the oscillator to ring down freely. By the end we will derive the actual position x(t), compare the two transform routes term by term, and check the result by direct substitution and numerical integration.

1 The initial-value problem and its physical assumptions

The equation of motion is

m ¨x(t) + b˙x(t) + kx (t) = F (t),
(1)

where m is mass, b is the linear viscous damping coefficient, and k is spring stiffness. Positive displacement is toward the applied force. We assume constant coefficients, a linear spring, no dry friction, and a stationary support.

PIC

Figure 1. The same linear mechanical oscillator is solved by both methods. The spring produces −kx and the damper produces −bẋ; the external force is the excitation.

The numerical values used throughout are

m  = 1kg,     b = 2 N s∕m,     k = 25 N ∕m.
(2)

The force is constant for a short time, then vanishes:

        (
        |{ 0,   t < 0,

F (t) = |( F0,  0 ≤ t < τ,
          0,   t ≥ τ,
(3)

with F0 = 10 N and τ = 0.40 s. The initial conditions are

x(0− ) = 0,    ˙x(0− ) = 0.
(4)

No impulsive force is applied at either switching instant, so displacement and velocity are continuous through t = 0 and t = τ. The value assigned to the step function at its jump does not change the solution.

Define the unit step function u(t), equal to zero for t < 0 and one for t > 0. The rectangular force can be written as the difference of two steps:

F(t) = F0[u(t) − u(t − τ)].
(5)

PIC

Figure 2. The force equals 10N between 0 and τ = 0.40s. It is equivalent to a positive step at 0 and an equally large negative step at τ.

Natural frequency, damping, and expected behavior

Define the undamped natural frequency and the exponential decay rate:

     ∘ ---
        k            b
ω0 =   -- ,    α =  ---.
       m            2m
(6)

Their numerical values are ω0 = 5 rad∕s and α = 1 s−1. The dimensionless damping ratio is

     α
ζ =  ---= 0.20.
     ω0
(7)

Thus 0 < ζ < 1 and the system is underdamped. Its damped natural frequency is

      ∘ --------   √ ---
ωd =    ω2 − α2 =    24rad∕s ≈ 4.899 rad∕s.
         0
(8)

The mass will oscillate while the factor e−αt causes its free motion to decay. The static deflection under a permanently maintained 10 N force would be F0∕k = 0.40 m, but a finite pulse can produce a different transient peak.

2 Two transforms, two views of the same motion

The two-sided Fourier transform, using the convention established in FS26, is

       ∫  ∞
^f(ω) =      f(t)e−iωtdt,
         −∞
(9)

and its inverse is

           ∫ ∞
f (t) =  1--    f^(ω )eiωt dω.
        2π  −∞
(10)

The transform variable ω is real angular frequency, with units rad∕s. For the pulse-driven damped oscillator, the displacement is zero before the pulse and decays afterward, so the usual Fourier integrals exist.

The one-sided Laplace transform is

                  ∫  ∞
ℒ {f(t)} = F(s) =      f(t)e−stdt,
                    0
(11)

where s = σ + iω is a complex frequency. Laplace transforms naturally begin at the initial time and explicitly carry initial displacement and velocity through the derivative formulas.

Both transforms use complex exponentials, but the Laplace variable can have a real part that controls growth or decay. For a causal, sufficiently decaying signal, evaluating its Laplace transform along the imaginary axis gives its Fourier transform:

^
f(ω ) = F(s)|s=iω.
(12)

The point is not to substitute blindly into an arbitrary Laplace formula. The imaginary axis must lie in the region where the transform is defined, or a suitable boundary-value interpretation must be used.

3 Fourier route, Step 1: transform the rectangular force

Only times from 0 to τ contribute. Directly from Equation (9),

          ∫  τ
^F(ω ) = F0    e−iωtdt.
            0
(13)

For nonzero ω, integrate:

           [     ] τ
 ^           e−iωt-       1-−-e−iωτ
F (ω ) = F0  − iω    =  F0   iω    .
                   0
(14)

To expose its magnitude and phase, factor out e−iωτ∕2:

     − iωτ    − iωτ∕2( iωτ∕2   − iωτ∕2)
1 − e     = e       e     − e       .
(15)

Using the sine identity eia − e−ia = 2i sin a gives

                      (    )
^F (ω ) = F0τ e−iωτ∕2 sinc  ω-τ  ,
                         2
(16)

where sinc(z) = sin z∕z for z≠0 and sinc(0) = 1.

This result has three physically useful parts. The factor F0τ is the force impulse, in N s. The sinc envelope describes the broad range of frequencies excited by a short pulse. The factor e−iωτ∕2 encodes the fact that the pulse is centered at t = τ∕2, not at the time origin. At ω = 0 the apparent singularity in Equation (14) is removable, and

^F (0) = F0τ = 4 N s.
(17)

4 Fourier route, Step 2: transform the derivatives

Because the zero-initial-condition response is causal and decays as t →∞, its time history and derivative boundary terms vanish at infinity. Integration by parts therefore gives

ℱ {˙x}(ω) = iωX  (ω),
(18)

and a second application gives

ℱ {¨x}(ω ) = − ω2X (ω ).
(19)

Here X(ω) is the Fourier transform of the complete causal displacement x(t).

Substitute the transformed derivatives into Equation (1):

− m ω2X  (ω ) + ibωX  (ω) + kX (ω) = F^(ω).
(20)

Factor out X:

(k − m ω2 + ibω )X (ω) = ^F (ω).
(21)

Hence

X (ω) = H (ω )^F(ω ),
(22)

where

               1
H (ω) =  ---------------
         k − m ω2 + ibω
(23)

is the mechanical receptance, or displacement transfer function. Its units are m∕N; the input transform has units N s and X has units m s.

For our example,

          10(1 − e− 0.40iω)
X (ω ) = iω-(25-−-ω2-+-2iω).
(24)

This is an explicit frequency-domain solution, but not yet an expression for the motion x(t). We must still perform an inverse transform or evaluate the corresponding convolution.

PIC

Figure 3. Magnitude of the force transform, the mechanical receptance, and their product. The oscillator emphasizes frequencies near its resonance, while the pulse excites a broad band. Each graph uses the physical units indicated.

5 Fourier route, Step 3: obtain the causal Green function

The convolution theorem states that multiplication by H(ω) in the frequency domain corresponds to convolution with its inverse transform h(t):

                   ∫ ∞
x(t) = (h ∗ F )(t) =      h(t − v )F (v) dv.
                    − ∞
(25)

We therefore need the inverse Fourier transform of H:

        1 ∫ ∞        eiωt
h(t) = ---     -------2-------dω.
       2π  − ∞ k − m ω  + ibω
(26)

An effective way to evaluate this particular integral is by complex residues. First rewrite its denominator using α = b∕(2m) and ωd2 = k∕m − α2:

k − m ω2 + ibω = − m (ω − ω+ )(ω − ω− ),
(27)

with poles

ω± =  ±ωd +  iα.
(28)

These poles are in the upper half of the complex ω plane for the particular transform convention e−iωt and inverse e+iωt. That sign is easy to reverse accidentally if one silently switches Fourier conventions.

For t > 0, the factor eiωt decays on a large semicircle in the upper half-plane. Closing that contour encloses both poles. Their residues are

                  eiωt               eiω+t
Resω= ω+ − m-(ω-−-ω-)(ω-−-ω--)-= − 2m-ω--,
                   +        −           d
(29)

                 eiωt             eiω−t
Resω= ω− ----------------------= ------.
         − m (ω − ω+ )(ω − ω − ) 2m ωd
(30)

The residue theorem gives 2πi times their sum. Dividing by the inverse-transform factor 2π leaves

          i
h (t) = ------(eiω− t − eiω+t).
       2m ωd
(31)

Insert the explicit poles:

         −αt
h(t) = ie----(e−iωdt − eiωdt).
       2m ωd
(32)

Since e−ia − eia = −2i sin a, we obtain

        e−αtsin-(ωdt)-
h (t) =     m ωd     ,    t > 0.
(33)

For t < 0, close the contour in the lower half-plane. There are no poles there, so h(t) = 0. Combining both cases,

        −αt
h(t) = e---sin(ωdt)u(t).
           m ωd
(34)

This is the causal impulse response: it is the displacement following an ideal force impulse of unit area at t = 0. It has a decaying sinusoidal shape and is zero before the impulse. It also satisfies h(0+) = 0 and h′(0+) = 1∕m, the displacement/velocity behavior expected for a unit impulse applied to a mass.

6 Fourier route, Step 4: integrate the impulse response over the pulse

The force is nonzero only for 0 ≤ v < τ. Substituting it into Equation (25) gives

          ∫
            τ
x (t) = F0     h(t − v )dv.
           0
(35)

Because h(t − v) = 0 when v > t, the effective integration range is 0 ≤ v ≤ min(t,τ) for t ≥ 0. Change variables w = t − v to obtain

          ∫ t
x (t) = F0           h(w )dw,     t ≥ 0.
           max(0,t−τ)
(36)

Define the response to a unit-amplitude step force as

       ∫ t
g(t) =    h(w )dw,      t ≥ 0,
        0
(37)

with g(t) = 0 for negative t. Thus the pulse response is just a difference of step responses:

x(t) = F [g(t) − u(t − τ)g(t − τ)],     t ≥ 0.
        0
(38)

We still need to evaluate the integral defining g. One can either integrate directly or verify by differentiation that

∫
    −αt               --e−αt--
   e   sin(ωdt)dt = − α2 +  ω2[α sin(ωdt) + ωd cos(ωdt)].
                             d
(39)

Divide by mωd, evaluate between 0 and t, and use m(α2 + ω d2) = k. The result is

       1 [        (            α         ) ]
g(t) = -- 1 − e−αt  cos(ωdt) + ---sin(ωdt)    ,  t ≥ 0.
       k                       ωd
(40)

This is the first fully explicit time-domain answer. We will now derive the same formula by Laplace transforms without evaluating a Fourier contour integral.

PIC

Figure 4. Causal impulse response h(t) and its accumulated step response g(t). The impulse response is a decaying sinusoid; the step response approaches the static deflection 1∕k for a unit force.

7 Laplace route, Step 1: transform the differential equation

Now begin again with the original differential equation, rather than reusing the Fourier result. Define

X (s) = ℒ{x (t)},     F (s) = ℒ {F (t)}.
(41)

For a one-sided Laplace transform, integration by parts gives the derivative formulas

                    +
ℒ {˙x} = sX (s) − x(0  ),
(42)

         2            +       +
ℒ {¨x} = s X (s) − sx(0 ) − ˙x(0  ).
(43)

These formulas show one of Laplace’s main advantages for initial-value problems: the initial displacement and velocity are retained explicitly. For our example both are zero, so transforming Equation (1) gives

ms2X  (s) + bsX (s) + kX (s) = F (s).
(44)

Factor out X(s) and solve:

            F (s)
X (s) = -------------,
        ms2 +  bs + k
(45)

with

H (s) = ------1------.
        ms2 +  bs + k
(46)

This denominator is the same quadratic seen in the Fourier calculation. The formal substitution s = iω gives

ms2  + bs + k|    = k − m ω2 + ibω.
             s=iω
(47)

Thus, where the transforms exist,

H (iω) = H (ω )  (Fourier receptance ),
(48)

where the symbol on the right is the frequency-domain function defined in Equation (23).

8 Laplace route, Step 2: transform the same pulse

Using the piecewise force directly,

           ∫ τ            1 − e−sτ
F (s) = F0    e− stdt = F0 --------.
            0                s
(49)

Substitute into Equation (45):

                  − sτ
X (s) = --F0-(1-−-e---)--.
        s (ms2  + bs + k)
(50)

This contains the familiar factor 1 −e−sτ. In the Laplace method, it is naturally interpreted using the second shifting theorem: multiplying a transform by e−sτ delays its causal inverse by τ.

The factor 1∕s indicates that we can first solve the response to a step force. This is the algebraic counterpart of the Fourier convolution step in Equation (37).

9 Laplace route, Step 3: complete the square and separate terms

To invert X(s), first consider the unit-step response transform

               1
G(s) = -----2----------.
       s(ms   + bs + k)
(51)

We want a partial fraction decomposition of the form

       A       Bs + C
G(s) = -- + ---2---------.
        s   ms   + bs + k
(52)

Multiply through by s(ms2 + bs + k):

1 = A (ms2  + bs + k) + s(Bs + C ).
(53)

Match coefficients of s2, s, and the constant term:

Am   + B =  0,    Ab +  C = 0,     Ak  = 1.
(54)

Solving gives

     1             m             b
A =  -,     B =  − --,    C  = − --.
     k             k             k
(55)

Therefore

          [                  ]
G (s) = 1- 1-−  ---ms-+--b--- .
        k  s    ms2 + bs + k
(56)

Use b = 2mα and complete the square:

   2                      2    2
ms   + bs + k = m [(s + α ) + ω d].
(57)

The numerator becomes ms + b = m(s + 2α) = m[(s + α) + α]. Canceling m leads to

        1 [1       s + α              α      ]
G (s) = -- --− -------------2−  ------------2- .
        k  s   (s + α )2 + ω d   (s + α )2 + ω d
(58)

This form has been chosen to match standard inverse Laplace transform pairs term by term. It is not a lucky guess: every algebraic step follows from coefficient matching and completion of the square.

10 Laplace route, Step 4: apply inverse-transform pairs

The basic pairs are

    {   }
ℒ −1  1-  = 1   (t ≥ 0 ),
      s
(59)

    {              }
  −1  ----s-+-α-----     −αt
ℒ     (s + α)2 + ω2   = e    cos(ωdt ),
                  d
(60)

    {               }
  −1        ωd           − αt
ℒ     (s-+-α)2-+-ω2-  = e    sin(ωdt).
                  d
(61)

Multiply the last pair by α∕ωd to match the third term of Equation (58). Combining all three inverses yields

         [        (                      ) ]
g(t) = 1- 1 − e−αt  cos(ω t) + α--sin(ω  t)    ,  t ≥ 0.
       k                 d     ωd      d
(62)

Compare this expression with Equation (40) obtained by integrating the inverse Fourier transform: the two step responses are identical.

Finally, Equation (50) says

X (s) = F0G (s) − F0e−sτG (s).
(63)

Apply the delay theorem

ℒ− 1{e −sτG(s)} = u (t − τ)g(t − τ).
(64)

The final result is

x(t) = F0[g(t) − u (t − τ)g(t − τ)],
(65)

which is exactly the Fourier result from Equation (38).

11 Side-by-side methods comparison

The approaches differ in technique rather than in the physical motion they predict. The following table tracks the corresponding mathematical steps; its entries use the same sign conventions as the detailed derivations.

Fourier transform

Laplace transform



Time interval: entire real line, with causal x(t) = 0 for t < 0.

Time interval: t ≥ 0, naturally centered on an initial-value problem.

  

Derivative: ẋ↦→iωX; ẍ↦→−ω2X when endpoint terms vanish.

Derivative: ẋ↦→sX−x(0+); ẍ↦→s2X− sx(0+) −ẋ(0+).

  

Pulse: F(ω) = F0(1 − e−iωτ)∕(iω).

Pulse: F(s) = F 0(1 − e−sτ)∕s.

  

Mechanical factor: H(ω) = [k − mω2 + ibω]−1.

Mechanical factor: H(s) = [ms2 + bs + k]−1.

  

Inverse: contour residues yield h(t), and convolution yields x = h ∗ F.

Inverse: partial fractions yield g(t), and shifting yields the delayed second step.

  

Best intuition: which temporal frequencies are excited and amplified?

Best intuition: how does the initial-value response start and decay in time?

PIC

Figure 5. The algebra is carried out in different variables, but both routes recover the same causal x(t). In the main calculation all initial conditions are zero.

The transform-domain solutions are two versions of the same identity,

               ^
X (ω ) = H (iω )F(ω ),    X (s) = H (s)F(s),
(66)

with the notation on the left indicating the Fourier transform of x, rather than a separate physical function. For this decaying causal response, setting s = iω in the Laplace-domain result recovers the Fourier-domain result.

12 Write the complete displacement as a piecewise function

For clarity define the dimensionless step-response bracket

               (                       )
            −αt             α
B (t) = 1 − e     cos(ωdt) + ω--sin (ωdt)  ,  t ≥ 0.
                             d
(67)

Then g(t) = B(t)∕k, and our solution is

       (
       || 0,                    t < 0,
       |{ F0
x(t) =   ---B(t),              0 ≤ t < τ,
       ||| Fk
       ( --0[B (t) − B (t − τ)], t ≥ τ.
          k
(68)

With the numerical values F0∕k = 0.4, α = 1, and ωd = √ ---
  24, the time-domain expression is explicit. For example, during the pulse,

          [       (                  √ --- ) ]
                −t      √ ---    sin(--24t)
x(t) = 0.4 1 − e    cos(  24t) +    √24--      m,   0 ≤ t < 0.40s.
(69)

At the switch-off instant t = τ, the second bracket begins at B(0) = 0, so the response is continuous. Numerically,

x(τ) ≈ 0.45099 m.
(70)

Differentiate the step response to obtain g′(t) = h(t) for t > 0. Therefore the pulse-response velocity is

˙x(t) = F0[h(t) − u (t − τ)h(t − τ)],
(71)

with the step values at switching instants interpreted by continuity. Because h(0+) = 0, velocity is continuous at t = τ as well. Its numerical value there is

˙x(τ) ≈ 1.26616 m ∕s.
(72)

The mass is moving forward when the force turns off. Thus its displacement continues to grow briefly even though the forcing has dropped to zero. This is an immediate illustration of inertia: switching off the force does not instantaneously stop the mass.

PIC

Figure 6. Displacement and velocity resulting from the finite pulse. The vertical dashed line marks switch-off at 0.40s. Displacement and velocity remain continuous; acceleration changes discontinuously when the applied force changes.

13 Why acceleration jumps when the force switches

Evaluate the equation of motion immediately before and immediately after switch-off. Since displacement and velocity are continuous,

m [¨x(τ+) − ¨x(τ− )] = F (τ+ ) − F (τ− ) = − F .
                                          0
(73)

Therefore

                   F
x¨(τ+) − ¨x(τ− ) = −--0 = − 10m ∕s2.
                    m
(74)

Acceleration is allowed to jump because the applied force jumps. Velocity would jump only if the force contained an actual impulse (a delta function) of finite area. This difference is important when interpreting both transform results and when checking numerical integrations across switching events.

Peak displacement and an energy check

The velocity is still positive when the force is removed. Solving ẋ(t) = 0 for the first maximum after switch-off gives, numerically,

tpeak ≈ 0.49376 s,    xpeak ≈ 0.50956 m.
(75)

This exceeds the static deflection F0∕k = 0.40 m because the mass already has kinetic energy when the force is switched off. Another useful physical check comes directly from the equation of motion. Multiply it by velocity ẋ:

         2
mx˙¨x + b˙x +  kxx˙= F (t)˙x.
(76)

The first and third terms are total time derivatives, so

 d ( 1       1    )
--   -m x˙2 + --kx2  =  F (t)x˙− bx˙2.
dt   2       2
(77)

Before switch-off, the force can do work on the mass; damping continually removes mechanical energy. After switch-off, F = 0 and

dEmechanical       2
    dt     =  − b˙x ≤  0.
(78)

The post-pulse oscillator therefore loses mechanical energy monotonically, even though its displacement can continue growing briefly. Increasing displacement does not require increasing total energy when kinetic energy is being converted into spring potential energy.

14 What do the poles mean in the two transform planes?

The Laplace transfer function has poles determined by

ms2 +  bs + k = 0.
(79)

completing the square gives

s± = − α ± iωd.
(80)

For positive damping, these lie in the left half of the complex s plane. Their negative real part gives the exponential decay e−αt, while their imaginary parts give oscillatory motion at ωd.

For our Fourier convention, s = iω and therefore ω = −is. Converting the same pole locations produces

ω± =  ±ωd +  iα.
(81)

The Fourier-plane poles lie in the upper half-plane. Neither plane is wrong: the locations are related by a rotation of complex coordinates and by our exponential sign conventions.

PIC

Figure 7. The same damped modes appear as left-half-plane poles in s and upper-half-plane poles in ω for the convention f(ω) = ∫ f(t)e−iωtdt. Locations are schematic, not to scale.

For a causal stable oscillator, the Fourier transform can be interpreted as evaluating the Laplace transfer function on the imaginary axis. If damping were zero, poles would reach the real ω axis. Then impulse responses need not be absolutely integrable and the ordinary Fourier-transform interpretation requires additional care (such as distributions or a limiting damping prescription). This is one practical reason Laplace analysis is often introduced before the more delicate undamped frequency-response case.

15 Superposition: one turn-on response minus one turn-off response

There is a simple physical interpretation of the formula we have obtained twice. Imagine leaving the constant force F0 on forever. The oscillator would perform its step response F0g(t), eventually approaching the static extension F0∕k.

Now imagine applying an additional force −F0 starting at t = τ. Because the system is linear and time invariant, this second step produces the response −F0u(t−τ)g(t−τ). Adding the two effects removes the maintained force after τ. What remains is free damped oscillation with the position and velocity accumulated during the pulse.

PIC

Figure 8. The pulse response is the sum of a positive step response starting at zero and a delayed negative step response beginning at τ. Neither component vanishes permanently, but their static limits cancel.

16 A useful limiting case: a very short force pulse

Keep the impulse J = F0τ fixed and make the duration τ small. The force becomes larger and narrower while its time integral remains constant. Formally the rectangular pulse approaches Jδ(t) in a distributional sense. The output therefore approaches

x(t) −→  Jh (t),     t > 0.
(82)

This can also be seen from the convolution result:

         ∫ τ                [ 1∫  τ           ]
x(t) = F0     h(t − v )dv = J  --   h(t − v)dv  .
          0                   τ  0
(83)

For fixed t > 0 where h is continuous, the bracket tends to h(t). This limit connects an actual finite pulse to the ideal impulse response without pretending that a finite rectangular force acts for zero time.

17 Initial conditions: the key operational difference

The main problem deliberately used zero initial displacement and velocity. Now suppose instead that

   +               +
x(0  ) = x0,    x˙(0  ) = v0.
(84)

Laplace: initial conditions enter automatically

Using the full derivative identities from Equations (42) and (43), transform the same equation of motion:

m (s2X  − sx0 − v0) + b(sX − x0 ) + kX =  F(s).
(85)

Collect terms:

    2
(ms  +  bs + k )X = F(s) + m (sx0 + v0) + bx0.
(86)

Hence

        F (s) + m (sx0 + v0) + bx0
X (s) = ---------2---------------.
              ms  +  bs + k
(87)

The first term is the zero-initial-condition forced response. The remaining terms produce a homogeneous solution. In the underdamped case the additional displacement is

             [                               ]
          −αt               v0 +-αx0-
xIC(t) = e     x0cos(ωdt) +    ωd    sin (ωdt) ,  t ≥ 0.
(88)

Thus the general solution is x(t) = xIC(t) + xforced(t), where xforced is the pulse response already derived.

Fourier: the same initial conditions need extra care

A global two-sided Fourier transform of a causal extension must account for the jump at the origin if x0≠0. Let x+(t) denote the motion for t > 0 and define xc(t) = u(t)x+(t). In the sense of distributions,

dxc
----=  u(t)˙x+(t) + x0δ(t),
 dt
(89)

d2xc
---2-=  u(t)¨x+(t) + v0δ(t) + x0δ′(t).
 dt
(90)

The Fourier transform of δ(t) is 1, and that of δ′(t) is iω under our convention. Substituting the causal extension into the full-line equation therefore introduces the effective forcing

Feff (t) = F (t) + mv0 δ(t) + mx0 δ′(t) + bx0δ(t).
(91)

Its Fourier solution is

              [                           ]
Xc(ω ) = H (ω ) F^(ω) + m (v0 + iωx0 ) + bx0 .
(92)

Now evaluate Equation (87) at s = iω. Exactly the same expression results. The calculation shows why Laplace transforms are usually more straightforward for initial-value problems: they keep those boundary terms explicit without requiring a distributional causal extension.

If distributions are outside the reader’s present toolbox, an equally valid elementary Fourier workflow is to calculate the zero-initial-condition forced response by convolution and then add the homogeneous term from Equation (88). The physical answer is identical.

18 A second check: sinusoidal forcing and steady state

To connect with the brief sinusoidal-response example from FS26, consider a driving force F(t) = Fa cos(Ωt) maintained indefinitely. A stable damped oscillator eventually reaches steady sinusoidal motion after its transient decays.

Complex phasors give a convenient algebraic solution. Seek

             ^ iΩt
xss(t) = Re {Xe   },
(93)

where

 ^    ------Fa-------
X  =  k − m Ω2 + ibΩ.
(94)

Its real amplitude and phase lag are

                  F
A (Ω ) = ∘----------a---------,
           (k − m Ω2)2 + (bΩ)2
(95)

δ(Ω) = atan2 (bΩ,k −  mΩ2 ).
(96)

Thus

xss(t) = A (Ω) cos(Ωt −  δ).
(97)

For a force switched on at t = 0 with specified initial conditions, this steady state is not the entire answer. One must also add a decaying homogeneous response chosen to satisfy the initial conditions. A Laplace transform of Fau(t) cos(Ωt) includes both parts automatically when inverted. The Fourier phasor construction emphasizes the eventual steady-state frequency response instead. These are distinct questions, even though both use the same transfer function.

19 Verification checklist and common mistakes

  1. Transform sign: We use e−iωt in the forward Fourier transform. That choice gives the derivative factor +iω and Fourier poles at ±ωd + iα.
  2. Initial conditions: The simple Fourier derivative rule used above assumes the complete decaying causal solution with zero initial data. It must not be applied without boundary terms when a nonzero initial state is turned on at the time origin.
  3. Pulse duration: A finite rectangular force has a sinc-shaped transform. Its net impulse is F0τ; it is not a Dirac delta unless an appropriate limit is taken.
  4. Impulse versus step: The impulse response is h and the unit-force step response is g = ∫ h. The displacement under a finite pulse is F0[g(t) − u(t − τ)g(t − τ)].
  5. Continuity: A finite jump in applied force causes a jump in acceleration, not position or velocity.
  6. Units: H(ω) has units m∕N; a Fourier force transform has N s; a Fourier displacement transform has m s.
  7. Resonance: The peak response depends on the receptance and the input spectrum. A large input magnitude at a frequency need not produce the largest displacement response if the oscillator suppresses that frequency.
  8. Meaning of the solution: The pulse response is transient and causal. The indefinitely driven sinusoidal solution is usually described as steady state plus a separately specified transient.

20 Self-check exercises

  1. Derive Equation (14) directly from the pulse, and explain why the formula at ω = 0 is understood as a limit.
  2. Starting from H(s), derive the two Laplace poles. Convert them into the Fourier ω plane using s = iω.
  3. Differentiate the unit step response g(t) and show that its derivative equals h(t).
  4. Check that x(0) = 0 and ẋ(0) = 0. Also show directly that x and ẋ remain continuous at t = τ.
  5. Use the differential equation to find the jump in acceleration when the force turns off.
  6. For a nonzero initial displacement x0 with zero initial velocity, derive the homogeneous response from Equation (87).
  7. Explain in words why an oscillator can continue moving away from equilibrium for a short time after the applied force disappears.
  8. If the same pulse is made shorter but its impulse F0τ is fixed, what is the limiting displacement response for t > 0?

21 Conclusion

The Fourier transform and Laplace transform solve the same linear oscillator because they encode the same differential operator. Fourier analysis emphasizes the input spectrum and mechanical receptance, while Laplace analysis emphasizes the initial-value problem, the algebra of time shifts, and exponentially decaying modes. For a stable causal response, the connection is concrete: H(iω) is the Fourier-domain frequency response, and the complete time histories obtained by inverse Fourier convolution and inverse Laplace partial fractions agree exactly.

References

[1]   PhysicsLibrary, FS26, Fourier Series to Fourier Transform; the transform conventions and brief oscillator example on which this companion expands.

[2]   A. V. Oppenheim, A. S. Willsky, and S. H. Nawab, Signals and Systems, 2nd ed., Prentice Hall.

[3]   E. Kreyszig, Advanced Engineering Mathematics, Wiley.

[4]   S. S. Rao, Mechanical Vibrations, Pearson.


"Solving a Forced Harmonic Oscillator by Fourier and Laplace Transforms" is owned by bloftin.
(view preamble)
View style:
Other names:  FS26E2
Also defines:  causal impulse response, Green function, transfer function, unilateral Laplace transform, bilateral Fourier transform, second shifting theorem, damped natural frequency, damping ratio, convolution response, causal force pulse
Keywords:  Fourier transform, Laplace transform, oscillator, mass spring damper, finite force pulse, impulse response, transfer function, poles, resonance, initial conditions, transient response, convolution, step response

This object's parent.

Cross-references: operator, equilibrium, spectrum, initial data, frequency response, amplitude, phasors, completing the square, potential energy, energy, mechanical energy, work, kinetic energy, acceleration, square, differential equation, inverse Fourier transform, domain, theorem, graph, resonance, convolution, boundary, impulse, identity, phase, magnitude, complex exponentials, formulas, angular frequency, static, system, natural frequency, unit, function, velocity, impulsive force, external force, dry friction, displacement, viscous damping, position, force, mass, Laplace transform, frequency, algebraic, oscillator, Fourier transform, FS26
There is 1 reference to this object.

This is version 1 of Solving a Forced Harmonic Oscillator by Fourier and Laplace Transforms, born on 2026-11-23.
Object id is 1595, canonical name is SolvingAForcedHarmonicOscillatorByFourierAndLaplaceTransforms.
Accessed 4 times total.

Classification:
Physics Classification: 02.30.Nw (Fourier analysis)
 02.30.Mv (Approximations and expansions)
 45.20.-d (Formalisms in classical mechanics)

Pending Errata and Addenda

None.

Discussion

No messages.

Interact