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

Constant coefficients: steady state, superposition and sinusoidal input

For y′ + ky = kq_e(t) with k > 0, the solution is a steady-state part plus a transient Ce^(−kt) that dies away, so all solutions approach one another. The physical input q_e (a water-bath temperature, say) drives the response y, and because the equation is linear, responses to added inputs add. For the input cos ωt, complexify: solve ỹ′ + kỹ = ke^(iωt), whose solution is e^(iωt)/(1 + iω/k), and take the real part. In polar form the response is A cos(ωt − φ), with amplitude A = 1/√(1 + (ω/k)²) and phase lag φ = arctan(ω/k). Better conduction (larger k) raises the amplitude towards 1 and shrinks the lag.

You need this first

Full reading path (20 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)
On this page · 5 sections
  1. Steady state and transient
  2. Input and response
  3. Sinusoidal input
  4. Amplitude and phase lag
  5. Summary

This lecture puts the first-order linear equation to work with constant coefficients, and uses complex exponentials to solve it for an oscillating input. (The recording starts partway into the lecture.)

Steady state and transient#

The temperature and concentration models are naturally written with the constant kk on the right as well (transcript, p. 1):

Standard form for these models
y′+ky=k qe(t)y' + ky = k\,q_e(t)
In words

y prime plus k y equals k q sub e (t)

Mixing problems have this form too; others, such as the RC circuit or radioactive decay, do not separate out so naturally (p. 1). For a general right-hand side q(t)q(t), the integrating factor ekte^{kt} gives (p. 1)

Solution with constant k
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 opposite signs in the exponents are easy to remember: for a constant input they must cancel to give a constant solution (p. 1). If k>0k > 0, which is essential, the second term tends to 0 as t→∞t \to \infty whatever CC is. It is the transient, and it carries the initial value. The first term remains: the steady-state (or long-term) solution (p. 1).

So every solution, wherever it starts, approaches the steady-state solution, without crossing it (pp. 1–2). But then nothing makes that one special: all solutions approach one another, so there are many steady-state solutions, and "the" steady-state solution usually means the simplest-looking one, often the one with C=0C = 0 (p. 2). For k<0k < 0 the words steady state and transient make no sense (p. 4).

Input and response#

The right-hand side is called the input and the solution the response (transcript, pp. 2–3). Thinking of the temperature model, the water bath's temperature drives the temperature inside: the bath plus the inner chamber is a small system, and its response is governed by the driving temperature. Strictly the input is q(t)=kqe(t)q(t) = kq_e(t); the lecture calls qeq_e the physical input (the temperature or concentration input) (p. 3). Dividing by kk gives another common way of writing the equation, 1ky′+y=qe(t)\frac1k y' + y = q_e(t), in which qeq_e is simply called the input (p. 3).

Superposition (p. 4). If the input q1q_1 produces the response y1y_1 and q2q_2 produces y2y_2, then

Superposition principle
q1+q2  →  y1+y2,c q1  →  c y1q_1 + q_2 \;\to\; y_1 + y_2, \qquad c\,q_1 \;\to\; c\,y_1
In words

q one plus q two goes to y one plus y two, c q one goes to c y one

This follows from the linearity of the equation; with y2y^2 in place of yy none of it would be true (p. 4).

Sinusoidal input#

The most important case is a trigonometric input, because of Fourier series, which come later in the course (transcript, p. 4). Take qe=cos⁡ωtq_e = \cos\omega t, so the equation is y′+ky=kcos⁡ωty' + ky = k\cos\omega t (pp. 4–5). Here ω\omega is the angular (or circular) frequency: the number of complete oscillations in a tt-interval of length 2π2\pi, not in unit time (p. 5).

Complexify (p. 6). Since cos⁡ωt=Re eiωt\cos\omega t = \mathrm{Re}\,e^{i\omega t}, replace the equation by

Complexified equation
y~′+ky~=k eiωt\tilde y' + k\tilde y = k\,e^{i\omega t}
In words

y prime tilde plus k y tilde equals k e to the power i omega t

Its solution y~\tilde y is complex, so it gets its own name. Write y~=y1+iy2\tilde y = y_1 + iy_2: its real part y1y_1 solves the original real equation, by separating real and imaginary parts (p. 7). (Here y1y_1 means the real part, not the response of the superposition principle above.)

Solve with the integrating factor ekte^{kt} (pp. 7–8). Exponentials combine and integrate easily:

Integrating the complex equation
(y~ ekt)′=k e(k+iω)t,y~ ekt=kk+iω e(k+iω)t(\tilde y\,e^{kt})' = k\,e^{(k + i\omega)t}, \qquad \tilde y\,e^{kt} = \frac{k}{k + i\omega}\,e^{(k + i\omega)t}
In words

( y tilde e to the power k t ) prime equals k e to the power the quantity k plus i omega, t, end of power, y tilde e to the power k t equals k over the quantity k plus i omega, times e to the power the quantity k plus i omega, t, end of power

Multiply by e−kte^{-kt} and divide top and bottom by kk (p. 8):

Complex solution
y~=11+i (ω/k) eiωt\tilde y = \frac{1}{1 + i\,(\omega/k)}\,e^{i\omega t}
In words

y tilde equals 1 over the quantity 1 plus i the quantity omega over k, times e to the power i omega t

Only the ratio ω/k\omega/k matters (p. 8).

Amplitude and phase lag#

To take the real part, the lecture goes polar (transcript, p. 8). For a complex number α\alpha, 1α⋅α=1\frac1\alpha\cdot\alpha = 1, so taking moduli and adding arguments (p. 9):

Polar form of a reciprocal
∣1α∣=1∣α∣,argument of 1α=−(argument of α)\left|\frac{1}{\alpha}\right| = \frac{1}{|\alpha|}, \qquad \text{argument of } \frac{1}{\alpha} = -(\text{argument of } \alpha)
In words

the absolute value of 1 over alpha equals 1 over the absolute value of alpha, argument of 1 over alpha equals minus ( argument of alpha )

Draw 1+i ω/k1 + i\,\omega/k: a right triangle with sides 1 and ω/k\omega/k and angle ϕ\phi at the origin. So (pp. 9–10)

Polar form of the coefficient
11+i (ω/k)=A e−iϕ,A=11+(ω/k)2,ϕ=arctan⁡ωk\frac{1}{1 + i\,(\omega/k)} = A\,e^{-i\phi}, \qquad A = \frac{1}{\sqrt{1 + (\omega/k)^2}}, \qquad \phi = \arctan\frac{\omega}{k}
In words

1 over the quantity 1 plus i the quantity omega over k, equals A e to the power minus i phi, A equals 1 over the quantity the square root of 1 plus the quantity omega over k, all squared, end of root, phi equals arc tangent omega over k

Then y~=A ei(ωt−ϕ)\tilde y = A\,e^{i(\omega t - \phi)}, and its real part is the response (pp. 10–12):

Response to cos ωt
y1=11+(ω/k)2 cos⁡(ωt−ϕ)y_1 = \frac{1}{\sqrt{1 + (\omega/k)^2}}\,\cos(\omega t - \phi)
In words

y one equals 1 over the quantity the square root of 1 plus the quantity omega over k, all squared, end of root, times cos of the quantity omega t minus phi

AA is the amplitude and ϕ\phi the phase lag (or phase delay) (pp. 11–12). The response is the input shifted along: ϕ\phi is subtracted from the angle ωt\omega t, not from tt. For example ϕ=π/2\phi = \pi/2 shifts the cosine by a quarter of its cycle, giving sin⁡ωt\sin\omega t (p. 12).

Effect of the conductivity (pp. 12–13). If kk goes up (heat gets in faster), ω/k\omega/k falls, so the amplitude rises towards 1 and the phase lag falls towards 0: the inside follows the bath closely and with little delay. The lecture ends by leaving "the other one" to the class (p. 13). (The effect of ω\omega, worked out here: a faster oscillation, larger ω\omega, has the opposite effect: smaller amplitude and a lag approaching π/2\pi/2.)

Going Cartesian instead (announced on p. 8 but not reached in this recording; it opens the next lecture, so this is the page's own working): multiply top and bottom by the conjugate, 11+iω/k=1−iω/k1+(ω/k)2\frac{1}{1 + i\omega/k} = \frac{1 - i\omega/k}{1 + (\omega/k)^2}, and take the real part of the product with cos⁡ωt+isin⁡ωt\cos\omega t + i\sin\omega t. The result, y1=cos⁡ωt+(ω/k)sin⁡ωt1+(ω/k)2y_1 = \frac{\cos\omega t + (\omega/k)\sin\omega t}{1 + (\omega/k)^2}, is the same function as the polar answer, written as a combination of cosine and sine.

Input cos⁡ωt\cos\omega t and the response starting from y(0)=0y(0) = 0, for ω=k\omega = k (so A=1/2≈0.71A = 1/\sqrt{2} \approx 0.71 and ϕ=π/4\phi = \pi/4), computed from y=Acos⁡(ωt−ϕ)−0.5e−kty = A\cos(\omega t - \phi) - 0.5e^{-kt}: the transient dies away and the response settles into a smaller, delayed copy of the input.
Worked example

A chamber in a water bath

A small chamber sits in a bath whose temperature oscillates as 20+8cos⁡(0.25t)20 + 8\cos(0.25t) °C (tt in minutes), and its walls give k=0.25k = 0.25 per minute. (a) Find the steady-state temperature inside. (b) By how many minutes do its peaks lag behind the bath's? (c) Repeat with walls that conduct four times better, k=1k = 1 per minute.

(a) Superposition

The constant input 20 gives the response 20. For the oscillating part, ω/k=1\omega/k = 1, so A=1/2≈0.707A = 1/\sqrt2 \approx 0.707 and ϕ=arctan⁡1=π/4\phi = \arctan 1 = \pi/4. The steady state is 20+5.66cos⁡(0.25t−π/4)20 + 5.66\cos(0.25t - \pi/4) °C.

(b) Time lag

The cosine reaches its peak when 0.25t−π/4=00.25t - \pi/4 = 0, so the lag is ϕ/ω=(π/4)/0.25=π≈3.14\phi/\omega = (\pi/4)/0.25 = \pi \approx 3.14 minutes.

(c) Better walls

Now ω/k=0.25\omega/k = 0.25: A=1/1.0625≈0.970A = 1/\sqrt{1.0625} \approx 0.970, so the inside swings by ±7.76\pm 7.76 °C, and ϕ=arctan⁡0.25≈0.245\phi = \arctan 0.25 \approx 0.245 rad (14.0°), a lag of only 0.980.98 minutes.

Summary#

  • For y′+ky=q(t)y' + ky = q(t) with k>0k > 0, solutions are a steady-state part plus a transient Ce−ktCe^{-kt} that dies away.
  • Input qeq_e drives response yy; by linearity, responses to added inputs add.
  • Complexify cos⁡ωt\cos\omega t to eiωte^{i\omega t}; the complex solution is eiωt/(1+iω/k)e^{i\omega t}/(1 + i\omega/k).
  • The response is Acos⁡(ωt−ϕ)A\cos(\omega t - \phi), A=1/1+(ω/k)2A = 1/\sqrt{1 + (\omega/k)^2}, ϕ=arctan⁡(ω/k)\phi = \arctan(\omega/k).

Symbols on this page

Show the 30 symbols used here
α\alpha alpha.
A nonzero complex number. Say it: “alpha”.
π\pi pi.
The ratio of a circle's circumference to its diameter, π ≈ 3.14159. Say it: “pi”.
ϕ\phi phi.
The phase lag of the response, arctan(ω/k). Unit: rad. Say it: “phi” (sounds like “fye”).
ω\omega omega.
The angular frequency of the input cos ωt. Unit: rad/s. Say it: “omega”.
∞\infty infinity.
Infinity: larger than any number. Say it: “infinity”.
≈\approx approximately equal.
Is approximately equal to. Say it: “is approximately”.
→\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”.
cc c.
A constant multiplying an input. Say it: “c”.
kk k.
The positive constant of the equation y′ + ky = kq_e: the conductivity in the temperature model. Say it: “k”.
arctan⁡\arctan arctangent.
The inverse tangent. Say it: “arc tangent”.
yy y.
The response: the solution of y′ + ky = kq_e(t), such as the inside temperature. Say it: “y”.
tt t.
Time. Say it: “t”.
dd d.
The d of dt. Say it: “d”.
ii i.
The imaginary unit, i² = −1. Say it: “i”.
ee e.
Euler's number, 2.718… Say it: “e”.
AA A.
The amplitude of the response, 1/√(1 + (ω/k)²). Say it: “A”.
CC C.
The arbitrary constant in the transient term Ce^(−kt). Say it: “capital C”.
qq q.
The input: the right-hand side q(t) of y′ + ky = q(t). Say it: “q”.
y′y' y prime.
The derivative of y with respect to t. Say it: “y prime”.
y1y_{1} y 1.
The response to the input q₁; later the real part of the complex solution ỹ, the response to cos ωt. Say it: “y one”.
y2y_{2} y 2.
The response to the input q₂; later the imaginary part of the complex solution ỹ. Say it: “y two”.
q1q_{1} q one.
A first input. Say it: “q one”.
q2q_{2} q two.
A second input. Say it: “q two”.
qeq_{e} q sub e.
The physical input in y′ + ky = kq_e(t): the bath temperature or outside concentration. Say it: “q sub e”.

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

Words on this page

Show the 23 words used here

New here

constant coefficients.
Of a linear differential equation: the numbers multiplying the unknown and its derivatives do not change with time.
complexify.
To replace a real problem by a complex one, such as a cosine by an exponential, whose real or imaginary part gives the answer.
phase lag.
How far a response's oscillation falls behind the input's oscillation, measured as an angle.

Also used

first-order linear equation.
A differential equation with only the first derivative, in which the unknown and its derivative appear only to the first power, never multiplied together. Explained in First-order linear equations and integrating factors.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
RC circuit.
An electric circuit of a resistor and a capacitor, in which charge flows on or off the capacitor exponentially. Explained in Measuring circuits and RC circuits.
integrating factor.
A function an equation is multiplied by so that one side becomes an exact derivative; for a first-order linear equation, of a single product. Explained in First-order linear equations and integrating factors.
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.
superposition.
Adding effects: the total force, field or wave from several sources is the sum of what each would give alone. Explained in Superposition and standing waves.
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.
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.
frequency.
How often something repeats: the number of cycles, turns or waves each second, measured in hertz. Explained in Circular motion.
real part.
For a complex number a + bi, the ordinary number a. Explained in Differential equations and exp(At).
integration.
Finding an integral: adding up very many small pieces, or finding an antiderivative. Explained in Differentials and antiderivatives.
modulus.
The size of a complex number: its distance from zero in the complex plane. Explained in Complex numbers and complex exponentials.
amplitude.
The size of an oscillation or wave: the largest distance from its middle position, or the number multiplying the sine. Explained in Oscillations and simple harmonic motion.
conductivity.
How easily something flows through a material: electric current, for electrical conductivity, or heat, for thermal conductivity. Explained in Current, resistance and DC circuits.
heat.
Energy that passes between bodies because their temperatures differ, rather than by one doing mechanical work on the other. Explained in Temperature and thermal energy.

Academic

model.
A simplified description of a real system, usually in equations, that keeps what matters and leaves out the rest.
transcript.
A written record of exactly what was said in a recorded lecture, word for word.
argument.
The angle that a complex number makes with the positive real axis, measured anticlockwise.

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

32 more cosmology pages that build on this

Pages that build on this

Practise

Check your understanding

  1. For y′+ky=kqe(t)y' + ky = kq_e(t) with k>0k > 0, why do all solutions approach one another as t→∞t \to \infty?
  2. What is the steady-state response to the input qe=cos⁡ωtq_e = \cos\omega t?
  3. If the conductivity kk increases (with ω\omega fixed), the response…
0 of 3 answered

Flashcards

1 / 3