BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology, from high school to a graduate year

Inhomogeneous equations, particular solutions and stability

The inhomogeneous equation y″ + p(x)y′ + q(x)y = f(x) has an input f (signal, driving or forcing term) and a response y. Its models are a spring–mass–dashpot pushed by an external force and an RLC circuit driven by an electromotive force. Writing it as Ly = f, every solution is y = y_p + y_c: any one particular solution plus the complementary solution c₁y₁ + c₂y₂ of the associated homogeneous equation. The proof uses only the linearity of L. The first-order solution formula fits the same pattern. For constant coefficients the equation is stable when c₁y₁ + c₂y₂ tends to 0 for every c₁ and c₂; then y_c is a transient and y_p the steady-state solution. Case by case, this happens exactly when all the characteristic roots have negative real parts.

You need this first

Full reading path (25 pages)
  1. The derivative: slope of the tangent line and rate of change (18.01)
  2. Limits and continuity (18.01)
  3. Derivatives of sine and cosine, and the product and quotient rules (18.01)
  4. The chain rule and higher derivatives (18.01)
  5. Implicit differentiation and the derivatives of inverse functions (18.01)
  6. Exponentials and logarithms: the number e and its derivatives (18.01)
  7. Linear and quadratic approximations (18.01)
  8. Curve sketching with the first and second derivative (18.01)
  9. Sketching strategy and maximum–minimum problems (18.01)
  10. More max–min, and related rates (18.01)
  11. A ring on a string, and Newton's method (18.01)
  12. The mean value theorem and inequalities (18.01)
  13. Differentials and antiderivatives (18.01)
  14. Differential equations and separation of variables (18.01)
  15. Direction fields, isoclines and integral curves (18.03)
  16. Euler's method and better numerical methods (18.03)
  17. First-order linear equations and integrating factors (18.03)
  18. Substitutions: scaling, Bernoulli and homogeneous equations (18.03)
  19. Autonomous equations, critical points and stability (18.03)
  20. Complex numbers and complex exponentials (18.03)
  21. Constant coefficients: steady state, superposition and sinusoidal input (18.03)
  22. Combining sine and cosine; models for first-order linear equations (18.03)
  23. Second-order linear equations with constant coefficients (18.03)
  24. Complex characteristic roots and damped oscillations (18.03)
  25. Linear operators, the Wronskian and normalized solutions (18.03)
On this page · 6 sections
  1. The inhomogeneous equation
  2. Two models
  3. The structure of the solutions
  4. The first-order case revisited
  5. Stability
  6. Summary

After the theory of the homogeneous equation, the lecture starts seriously on the inhomogeneous one (transcript, p. 1).

The inhomogeneous equation#

Put a function on the right (transcript, p. 1):

Inhomogeneous equation
y′′+p(x) y′+q(x) y=f(x)y'' + p(x)\,y' + q(x)\,y = f(x)
In words

y double prime plus p(x) y prime plus q(x) y equals f(x)

Often xx is time. The right-hand side is called the input, signal, driving term or forcing term, depending on the course; the solution is the response (or output), as for first-order equations (p. 1). The associated homogeneous equation (or reduced equation), with zero on the right, is an essential part of the solution (p. 1). Its general solution c1y1+c2y2c_1y_1 + c_2y_2 is called the complementary solution, written ycy_c (or yhy_h, for homogeneous) (p. 2).

Two models#

The spring–mass–dashpot with an external force (transcript, pp. 2–3). Newton's law with the spring force −kx-kx, the damping force −bx′-bx' and an outside force f(t)f(t) (an electromagnet pulling on a load of iron ore, say) gives

Forced spring
m x′′+b x′+k x=f(t)m\,x'' + b\,x' + k\,x = f(t)
In words

m x double prime plus b x prime plus k x equals f(t)

With f=0f = 0 the system is passive: started off, it does what it wants by itself. With f≠0f \ne 0 it is forced from outside: a different problem, but the passive behaviour remains part of its solution (pp. 3–4).

The RLC circuit (pp. 4–5). An inductance LL (a coil), a resistance RR and a capacitance CC, driven by an electromotive force E(t)E(t), a battery or an alternating source. Kirchhoff's voltage law adds the drops Li′Li', RiRi and q/Cq/C, where ii is the current and qq the charge, with q′=iq' = i (pp. 4–5). Differentiating removes qq (p. 5):

RLC circuit
L i′+R i+qC=E(t),L i′′+R i′+iC=E′(t)L\,i' + R\,i + \frac{q}{C} = E(t), \qquad L\,i'' + R\,i' + \frac{i}{C} = E'(t)
In words

L i prime plus capital R i plus q over capital C equals capital E (t), L i double prime plus capital R i prime plus i over capital C equals capital E prime (t)

On the right is now the derivative of the electromotive force, so a battery gives the passive, homogeneous case (p. 5). Left alone, a charged capacitor discharges through the circuit, swinging back and forth if underdamped, until the current dies away; normally one drives the circuit instead (pp. 5–6). (Here LL is the inductance; below it is again the operator.)

The structure of the solutions#

Write the equation with the linear operator L=D2+pD+qL = D^2 + pD + q as Ly=f(x)Ly = f(x) (transcript, p. 6). The main theorem (pp. 6–7):

General solution of the inhomogeneous equation
y=yp+yc=yp+c1y1+c2y2y = y_p + y_c = y_p + c_1y_1 + c_2y_2
In words

y equals y sub p plus y sub c equals y sub p plus c one y one plus c two y two

where y1y_1, y2y_2 are independent solutions of the homogeneous equation and ypy_p is a particular solution of Ly=fLy = f. "Particular" means any one solution: any one will do, and no one has found a better word (p. 7). So solving takes two steps: find ycy_c from the reduced equation, then find one ypy_p (p. 7).

Proof (pp. 7–9), using only linearity, so it works for any order:

  1. All these are solutions: L(yp+c1y1+c2y2)=Lyp+L(c1y1+c2y2)=f+0=fL(y_p + c_1y_1 + c_2y_2) = Ly_p + L(c_1y_1 + c_2y_2) = f + 0 = f (p. 8).
  2. There are no others: if Lu=fLu = f, then L(u−yp)=Lu−Lyp=f−f=0L(u - y_p) = Lu - Ly_p = f - f = 0, so u−ypu - y_p solves the homogeneous equation and equals c~1y1+c~2y2\tilde c_1y_1 + \tilde c_2y_2 for some particular constants. Hence u=yp+c~1y1+c~2y2u = y_p + \tilde c_1y_1 + \tilde c_2y_2 is not new (pp. 8–9).

With constant coefficients, ycy_c is already known from exponentials, sines and cosines, so what remains is finding one ypy_p. That takes the next two weeks: operator methods for standard inputs, Fourier series, series or approximation methods, and, if all else fails, a computer (pp. 9–10).

The first-order case revisited#

For y′+ky=q(t)y' + ky = q(t) the solution was (transcript, p. 10)

First-order solution
y=e−kt∫q(t) ekt dt+C e−kty = e^{-kt}\int q(t)\,e^{kt}\,dt + C\,e^{-kt}
In words

y equals e to the power minus k t the integral of q(t) e to the power k t d t plus capital C e to the power minus k t

The term Ce−ktCe^{-kt} solves y′+ky=0y' + ky = 0: it is ycy_c. The first term is a ypy_p, once the indefinite integral is taken as one function, or made definite from 0 to tt (pp. 10–11). For k>0k > 0, ycy_c is the transient, carrying the initial value and dying away, and ypy_p is the steady-state solution that all solutions approach. For k<0k < 0, ycy_c grows and dominates, and the analysis is meaningless (pp. 11–12).

Stability#

Now take constant coefficients and time as the variable (transcript, p. 12):

Constant-coefficient inhomogeneous equation
y′′+Ay′+By=f(t)y'' + Ay' + By = f(t)
In words

y double prime plus capital A y prime plus capital B y equals f(t)

In y=yp+c1y1+c2y2y = y_p + c_1y_1 + c_2y_2 the constants carry the initial values. The same split into steady state and transient works exactly when (pp. 12–13)

Stability
c1y1+c2y2→0 as t→∞ for all c1,c2c_1y_1 + c_2y_2 \to 0 \text{ as } t \to \infty \text{ for all } c_1, c_2
In words

c one y one plus c two y two goes to 0 as t goes to infinity for all c one, c two

Then the equation is called stable (some say asymptotically stable): c1y1+c2y2c_1y_1 + c_2y_2 is the transient and ypy_p the steady-state solution, what lasts after the rest has gone (p. 13). Only the reduced equation matters for this (p. 15).

Case by case (pp. 14–15):

  • Distinct real roots: c1er1t+c2er2t→0c_1e^{r_1t} + c_2e^{r_2t} \to 0 for all c1c_1, c2c_2 exactly when r1<0r_1 < 0 and r2<0r_2 < 0. A zero root would give a constant, which does not go to 0. (The transcript gives the right answer, but says the constant "will go to zero" as the reason, p. 15.)
  • A double root: (c1+c2t)er1t→0(c_1 + c_2t)e^{r_1t} \to 0 exactly when r1<0r_1 < 0; it may rise at first, but the exponential wins. With r1=0r_1 = 0, c1+c2tc_1 + c_2t grows (if c2e0c_2 e 0).
  • Complex roots a±bia \pm bi: eat(c1cos⁡bt+c2sin⁡bt)e^{at}(c_1\cos bt + c_2\sin bt); the bracket is a pure oscillation, so everything depends on the exponential: a<0a < 0.

In one breath (pp. 15–16):

Stability criterion
Re r<0 for every characteristic root r\mathrm{Re}\,r < 0 \text{ for every characteristic root } r
In words

Re r less than 0 for every characteristic root r

For real roots the real part is the root itself; only in the complex case is it the aa (p. 16). The lecture also promises a condition stated directly in terms of the coefficients AA and BB (p. 14), but the recording ends before it is given.

The stable equation y′′+2y′+5y=10y'' + 2y' + 5y = 10 started at rest from y=0y = 0: y=2−e−t(2cos⁡2t+sin⁡2t)y = 2 - e^{-t}(2\cos 2t + \sin 2t), computed from yp=2y_p = 2 plus the complementary solution fitted to y(0)=y′(0)=0y(0) = y'(0) = 0. It overshoots to about 2.42 at t=π/2t = \pi/2, and the transient dies away, leaving the steady state.
Worked example

Stable or not?

(a) Solve y′′+3y′+2y=6y'' + 3y' + 2y = 6 and say what all solutions approach. (b) Is y′′−y′+2y=cos⁡ty'' - y' + 2y = \cos t stable? (c) An RLC circuit has L=0.5L = 0.5 H, R=4R = 4 Ω and C=0.02C = 0.02 F. Is its current equation stable?

(a) A constant input

A constant yp=3y_p = 3 works, since 2⋅3=62 \cdot 3 = 6. The roots of r2+3r+2=(r+1)(r+2)r^2 + 3r + 2 = (r + 1)(r + 2) are −1-1 and −2-2, so y=3+c1e−t+c2e−2ty = 3 + c_1e^{-t} + c_2e^{-2t}. Both roots are negative: the equation is stable, and every solution tends to the steady state 3.

(b) A positive real part

r2−r+2=0r^2 - r + 2 = 0 gives r=1±i72r = \frac{1 \pm i\sqrt7}{2}, with real part 12>0\frac12 > 0. Not stable: the complementary solution grows like et/2e^{t/2}, so no steady state is approached.

(c) The circuit

0.5 i′′+4 i′+50 i=E′(t)0.5\,i'' + 4\,i' + 50\,i = E'(t), so r2+8r+100=0r^2 + 8r + 100 = 0 and r=−4±16−100=−4±9.17ir = -4 \pm \sqrt{16 - 100} = -4 \pm 9.17i. The real part −4-4 is negative: stable, an underdamped circuit.

Summary#

Symbols on this page

Show the 49 symbols used here
π\pi pi.
The ratio of a circle's circumference to its diameter, π ≈ 3.14159. Say it: “pi”.
∞\infty infinity.
Infinity: larger than any number. Say it: “infinity”.
≠\neq not equal.
Is not equal to. Say it: “is not equal to”.
→\to arrow.
Goes to (tends to), or becomes. Say it: “goes to”.
±\pm plus or minus.
Plus or minus: both signs, or an uncertainty (67.3 ± 1.2). Say it: “plus or minus”.
⋅\cdot dot.
Times (multiplication). Between two vectors: the dot product. Say it: “times”.
∫\int integral.
Integral: the sum of infinitely many small pieces, such as the area under a curve. Say it: “the integral of”.
sin⁡\sin sine.
Sine of an angle. Say it: “sine”.
cos⁡\cos cosine.
Cosine of an angle. Say it: “cos”.
a~\tilde a tilde.
A modified version of a quantity (ã, k̃); its meaning is given where it is introduced. Say it: “tilde”.
aa a.
The real part of complex roots a ± bi. Say it: “a”.
kk k.
The spring constant (in N/m); in the first-order equation, the constant coefficient of y. Say it: “k”.
xx x.
The independent variable, often time; in the spring model, the displacement of the mass (in m). Say it: “x”.
yy y.
The response: a solution of the inhomogeneous equation. Say it: “y”.
tt t.
Time. Unit: s. Say it: “t”.
dd d.
The d of dt. Say it: “d”.
ii i.
The current in the circuit (in A); in complex roots a ± bi, the imaginary unit. Say it: “i”.
ee e.
Euler's number, 2.718… Say it: “e”.
mm m.
The mass. Unit: kg. Say it: “m”.
ff f.
The input (signal, driving or forcing term) f(x) or f(t); for the spring, the external force. Say it: “f”.
rr r.
A root of the characteristic equation. Say it: “r”.
DD D.
The differentiation operator. Say it: “capital D”.
AA A.
The constant coefficient of y′. Say it: “capital A”.
BB B.
The constant coefficient of y. Say it: “capital B”.
CC C.
The capacitance (in F); in the first-order solution, an arbitrary constant. Say it: “capital C”.
bb b.
The damping constant of the dashpot (in kg/s); in complex roots a ± bi, the imaginary part. Say it: “b”.
qq q.
The coefficient q(x) of y; in the circuit, the charge on the capacitor (in C); in the first-order equation, the input q(t). Say it: “q”.
LL L.
The inductance of the coil (in H); elsewhere on the page, the linear operator D² + pD + q. Say it: “L”.
pp p.
The coefficient p(x) of y′. Say it: “p”.
RR R.
The resistance. Unit: Ω. Say it: “capital R”.
y′y' y prime.
The derivative of y. Say it: “y prime”.
r1r_{1} r one.
A characteristic root (the double root, in that case). Say it: “r one”.
r2r_{2} r two.
The second characteristic root. Say it: “r two”.
uu u.
Any solution of the inhomogeneous equation. Say it: “u”.
EE E.
The electromotive force E(t). Unit: V. Say it: “capital E”.
y1y_{1} y 1.
A first solution of the homogeneous equation. Say it: “y one”.
y2y_{2} y 2.
A second solution of the homogeneous equation, independent of y₁. Say it: “y two”.
x′x' x prime.
The velocity of the mass. Unit: m/s. Say it: “x prime”.
y′′y'' y double prime.
The second derivative of y. Say it: “y double prime”.
c1c_{1} c one.
The first constant of the complementary solution. Say it: “c one”.
c2c_{2} c two.
The second constant of the complementary solution. Say it: “c two”.
ypy_{p} y p.
A particular solution: any one solution of the inhomogeneous equation. Say it: “y sub p”.
q′q' q prime.
The rate of change of the charge: the current i. Say it: “q prime”.
x′′x'' x double prime.
The acceleration of the mass. Unit: m/s². Say it: “x double prime”.
i′i' i prime.
The rate of change of the current. Unit: A/s. Say it: “i prime”.
i′′i'' i double prime.
The second derivative of the current. Unit: A/s². Say it: “i double prime”.
E′E' E prime.
The derivative of the electromotive force. Unit: V/s. Say it: “capital E prime”.
ycy_{c} y sub c.
The complementary solution c₁y₁ + c₂y₂ of the associated homogeneous equation. Say it: “y sub c”.
yhy_{h} y sub h.
Another name for the complementary solution (h for homogeneous). Say it: “y sub h”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Words on this page

Show the 37 words used here

New here

complementary solution.
The general solution of the homogeneous equation, which is added to one particular solution to give every solution of the full equation.
particular solution.
Any one solution of the full equation, input term included; adding the complementary solution gives all the others.
stable.
Of a linear equation with constant coefficients: every solution of its homogeneous equation dies away, so all solutions end up alike.

Also used

p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
general solution.
The whole family of solutions of a differential equation, written with free constants that starting values or boundary conditions then fix. Explained in Differential equations and separation of variables.
dashpot.
A damper, such as a piston moving through oil, that pushes back with a force proportional to its speed. Explained in Second-order linear equations with constant coefficients.
external force.
A force on part of a system from something outside the system. Explained in Conservation of momentum.
damping.
The gradual loss of energy from an oscillation or wave, by friction, resistance or radiation, so that its size dies away. Explained in The pendulum and energy in oscillations.
RLC circuit.
An electric circuit with a resistor, an inductor and a capacitor: the electrical version of a damped mass on a spring. Explained in LC oscillations and damped RLC circuits.
inductance.
How strongly a coil opposes changes in the current through it: the magnetic flux it makes through itself per ampere, measured in henries. Explained in Self-inductance, LR circuits and magnetic energy.
resistance.
How strongly something opposes an electric current: the voltage across it divided by the current through it, measured in ohms.
capacitance.
How much charge a capacitor stores for each volt across it, measured in farads. Explained in Capacitors.
electromotive force.
The energy a battery or other source gives each coulomb of charge it moves round a circuit; measured in volts, it is not a force. Explained in Series and parallel circuits.
voltage.
The difference in electric potential between two points, measured in volts: the energy each coulomb of charge gains or loses between them. Explained in Electric potential and voltage.
differentiation.
Finding a derivative: working out how fast a function changes. Explained in The derivative: slope of the tangent line and rate of change.
derivative.
The rate at which a function changes as its input changes: the slope of its graph at a point. Explained in Position and velocity in one dimension.
capacitor.
A device that stores electric charge and energy, usually two metal plates held close together but not touching. Explained in Capacitors.
underdamped.
Damped lightly enough that a disturbed system oscillates, with a size that shrinks steadily as it settles. Explained in Second-order linear equations with constant coefficients.
operator.
A rule that acts on a function, vector or state and turns it into another one, such as 'take the derivative'. Explained in The chain rule and higher derivatives.
linear operator.
A rule that turns functions or vectors into others and respects sums and multiples, so L(au + bv) = aL(u) + bL(v). Explained in Linear operators, the Wronskian and normalized solutions.
theorem.
A statement that has been proved true, step by step, from definitions and earlier results. Explained in Limits and continuity.
proof.
A chain of reasoning showing beyond doubt that a statement follows from definitions and results already known. Explained in Limits and continuity.
linear.
The property that sums and multiples of solutions are again solutions, so the responses to separate inputs simply add. Explained in First-order linear equations and integrating factors.
constant coefficients.
Of a linear differential equation: the numbers multiplying the unknown and its derivatives do not change with time. Explained in Constant coefficients: steady state, superposition and sinusoidal input.
Fourier series.
A way of writing a repeating function as a sum of sines and cosines whose frequencies are whole-number multiples of one frequency. Explained in Normal modes of a string and Fourier series.
indefinite integral.
The family of all antiderivatives of a function, written ∫ f(x) dx = F(x) + c with an arbitrary constant c. Explained in Differentials and antiderivatives.
transient.
The part of a system's response that dies away with time, leaving only the steady state. Explained in Driven oscillators and resonance.
initial condition.
The state of a system at the starting time, such as its position and speed, which picks out one solution of its equation. Explained in Introduction to first-order systems.
steady state.
A condition that no longer changes with time, or for a driven system the lasting motion left once start-up effects die away. Explained in Driven oscillators and resonance.
asymptotically stable.
Of an equilibrium, or an equation: nearby solutions do not just stay close but actually approach it, or each other, as time goes on. Explained in Sketching the solutions of 2 × 2 linear systems.
real part.
For a complex number a + bi, the ordinary number a. Explained in Differential equations and exp(At).

Academic

theory.
An organised body of ideas, laws and methods about a subject: a tested explanation of nature, or a branch or method of mathematics.
homogeneous.
Of a linear equation: with zero on the right-hand side, so that zero is a solution; its solutions form the homogeneous solution.
transcript.
A written record of exactly what was said in a recorded lecture, word for word.
hence.
For this reason; as a result of what was just said.
approximation.
Close to, but not exactly, the true value; an approximation is such a value or formula, chosen because it is simpler.
dominate.
To be the largest contribution, so that the others hardly matter.

Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).

Where this leads

In cosmology

31 more cosmology pages that build on this

Pages that build on this

Practise

Check your understanding

  1. Every solution of Ly=f(x)Ly = f(x) has the form…
  2. Is y′′−y′+2y=0y'' - y' + 2y = 0 stable?
  3. For a stable equation, the particular solution ypy_p is…
0 of 3 answered

Flashcards

1 / 3