Undetermined coefficients needs a forcing whose derivatives stay in a small family, and most real disturbances are nothing of the kind.
A hammer blow, a switch closing, a road profile, an earthquake accelerogram: none of these is a sum of exponentials, polynomials and sinusoids that anyone can write down in advance. Even textbook functions defeat the method, since there is no finite family containing or . This lesson gives the general method, and then shows that the general method has more structure in it than a formula for one answer.
Variation of parameters
The idea is due to Lagrange, and its name says it: take the general homogeneous solution and let the constants vary. Look for a particular solution of in the form
Two unknown functions where one equation is available, so we are free to impose one extra condition, and the right choice makes the algebra collapse. Differentiating,
Impose that the bracket vanishes:
This is not a restriction on the answer; it is a choice of how to split the work between the two unknowns, and it keeps second derivatives of out of the calculation. Differentiating again and substituting into the equation, all the terms containing and undifferentiated collect into , which is zero, and what remains is
Two linear equations for and , whose determinant is the Wronskian , nonzero because the pair is independent. Solving,
and integrating gives the particular solution
This works for any and for variable coefficients too, provided a fundamental set is known. That proviso is the catch: variation of parameters solves the forcing problem completely and says nothing about how to find and in the first place.
Example. Solve on the interval .
The homogeneous solutions are and , with . Then
so and . The particular solution is
Differentiating twice confirms it. Notice the : the forcing contains, in a sense made precise below, some content at the natural frequency, and the response grows accordingly, running off to infinity as where the forcing itself does.
Now you. Solve on .
Answer
With the same , and , and . So and , giving .
The same formula as one integral
Write the two integrals as definite ones from to , which fixes the constants and makes and both vanish at . Then the terms can be gathered under a single integral sign:
Read that carefully, because it says something the derivation did not. The response at time is a sum over all earlier times of the forcing then, , multiplied by a kernel depending on both times. The kernel is a property of the system alone: it contains no reference to the forcing. So the system's entire behaviour under any forcing whatever is encoded in one function of two variables, and for constant coefficients that reduces to a function of one, since only the elapsed time can matter to a system whose properties do not change.
Call that function . Then
which is a convolution. For the damped oscillator , taking and as the decaying sine and cosine gives
Impulse and step
That has a direct physical meaning. Apply a very short, very hard blow: a force lasting with magnitude , so that its integral, the impulse, is however small is. The convolution then gives for beyond the blow, so is the response to a unit impulse, the impulse response. Mechanically the blow delivers momentum to a mass that has not yet moved, leaving it at with velocity , and solving the free equation from that state gives exactly the above. The convolution formula is then obvious in hindsight: an arbitrary forcing is a succession of small impulses , each producing its own decaying ring, and the system's linearity lets them be added.
The response to a suddenly applied constant force, the step response, is the integral of the impulse response, since a step is the accumulation of impulses. For the damped oscillator, starting at rest,
It rises to the static deflection , overshoots, and rings down. The overshoot is worth a formula, since it is what a control engineer is usually paid to reduce: the first peak occurs at and exceeds the final value by the fraction
which depends only on the damping ratio.
Example. A system has rad s⁻¹ and . A constant force is applied suddenly. By what percentage does the response overshoot its final value, and when?
The damped frequency is rad s⁻¹, so the first peak is at s. The overshoot is , so the response reaches per cent of its final value before settling.
Now you. The same system is redesigned with . Find the new overshoot and peak time.
Answer
rad s⁻¹, so the peak is at s. The overshoot is , that is per cent. Doubling the damping cut the overshoot to about a third, at the cost of a slightly later peak.
Why the frequency response answered more than it was asked
There is a second route to the same generality, and in engineering it is the dominant one.
A periodic forcing of period , however jagged, can be written as a sum of sinusoids at the frequencies , which is the Fourier series developed for the heat equation in 1822 and treated properly in courses on that subject. Take that fact on loan. Linearity does the rest: the response to the sum is the sum of the responses, and the response to each sinusoid is known from the previous lesson, scaled by the amplification and delayed by the phase .
So the amplitude and phase curves are not a special-case answer for sinusoidal driving. They are a complete description of the system, and applying them component by component is what "filtering" means.
The consequences can be startling, because the amplification varies so sharply near resonance.
Example. A square wave of frequency contains only odd harmonics, with amplitudes proportional to at . It drives a lightly damped system with whose natural frequency is . What comes out?
The gains at are , , and . Multiplying by the input amplitudes , , and gives output amplitudes , , and . The fifth harmonic entered at one fifth the size of the fundamental and leaves nearly twice as large: the output is dominated by a component that was almost invisible in the input, and it oscillates at five times the driving frequency. A structure fed a rough periodic load can therefore ring at a frequency that appears nowhere obvious in the load.
Now you. The same square wave drives a system tuned instead to , with the same damping. The gains at , and are , and . Which component dominates the output, and by how much over the fundamental?
Answer
Output amplitudes are for the fundamental, for the third harmonic, and for the fifth. The third harmonic dominates, about three times the fundamental.
Three descriptions of one thing
Gather what has appeared. The impulse response says what the system does after a tap. The step response is its integral. The frequency response is its amplitude and phase against driving frequency. For a linear system with constant coefficients these are three encodings of the same information, each recoverable from the others: the frequency response is the Fourier transform of the impulse response, and the impulse response is the derivative of the step response.
That is why a shaker test, a hammer test and a step test on the same structure are alternatives rather than complements, and why a specification can be written in whichever language suits: settling time and overshoot for a servo, bandwidth and for a filter, ring-down for a bell. It is also the reason linear systems are so heavily used even where the physics is only approximately linear. One measured curve predicts the response to every input that will ever be applied.
The two assumptions that carry all of it
Superposition, which requires linearity, and time invariance, which requires coefficients that do not change. Remove either and the whole apparatus falls.
A system with a spring whose stiffness depends on displacement has no impulse response, because doubling the tap does not double the answer. A system whose mass changes as it burns fuel has no frequency response, because the same input applied later gives a different output. In both cases the convolution integral is simply false, not merely inaccurate, and the honest options are numerical solution and qualitative analysis.
Before reaching those, one generalisation is still missing from the linear theory. Everything so far has had a single dependent variable, and many systems have several coupled together: two tanks in series, two masses on a shared spring, a predator and its prey. The next lesson shows that such systems, and every high order equation as well, are best written as first order systems, and that the plane they live in can be read almost as easily as the phase line was.