Combining sine and cosine; models for first-order linear equations
Going Cartesian, the response to cos ωt comes out as a combination of cos ωt and sin ωt; the identity a cos θ + b sin θ = c cos(θ − φ), where a and b are the sides of a right triangle with hypotenuse c and angle φ, turns it into a single oscillation with an amplitude and a phase lag. The identity has a backwards high-school proof, an 18.02 proof by the dot product and an 18.03 proof by complex numbers. First-order linear equations come in three kinds: y′ + ky = kq_e(t), y′ + ky = q(t) and y′ + p(t)y = q(t). A mixing tank fits the first kind once it is written for the concentration, with k = r/V the fractional rate of outflow; an RC circuit and a radioactive decay chain fit the second. When k < 0, as in population growth, the same method works but nothing is transient: the initial value matters for ever.
The complex solution of y′+ky=kcosωt was y~=1+i(ω/k)1eiωt, and going polar gave the response 1+(ω/k)21cos(ωt−ϕ) (transcript, p. 1). Instead, write both factors as a+bi: multiply top and bottom by the conjugate, and expand the exponential (p. 2):
Complex solution in Cartesian form
y~=1+(ω/k)21−i(ω/k)(cosωt+isinωt)
In words
y tilde equals the quantity 1 minus i the quantity omega over k, all over the quantity 1 plus the quantity omega over k, all squared, times the quantity cos omega t plus i sine omega t
Only the real part is wanted, so pick out just the two real terms of the product, cosωt and (−i)(i)(ω/k)sinωt, without multiplying out all four (p. 2):
Real part
y1=1+(ω/k)21(cosωt+kωsinωt)
In words
y one equals 1 over the quantity 1 plus the quantity omega over k, all squared, times the quantity cos omega t plus omega over k, times sine omega t
A combination, with real coefficients, of a cosine and a sine of the same angle is a single cosine (transcript, p. 3):
Sine–cosine identity
acosθ+bsinθ=ccos(θ−ϕ),c=a2+b2,cosϕ=ca,sinϕ=cb
In words
a cos theta plus b sine theta equals c cos of the quantity theta minus phi, c equals the square root of a squared plus b squared, end of root, cos phi equals a over c, sine phi equals b over c
The angles must match: with θ1 in one term and θ2 in the other there is a formula, but nobody remembers it (p. 3). (These formulas for c and ϕ are this page's; the lecture gives only the picture.) Rather than memorise them, remember the picture: a and b are the sides of a right triangle, c is its hypotenuse and ϕ the angle opposite b (pp. 3–4).
Applied to the Cartesian answer, a=1 and b=ω/k: the hypotenuse is 1+(ω/k)2 and ϕ=arctan(ω/k), and the factor in front cancels down to exactly the polar answer (p. 4). The identity is how to read an answer like this: answer books often give a messya and a messyb, while the useful information is the amplitude and phase lag (p. 4). Both sides have two parameters; the right side shows the result is just a pure oscillation of the same frequency, with a new amplitude and a shift (p. 5).
The high-school proof expands cos(θ−ϕ) by the difference formula and matches coefficients: a=ccosϕ, b=csinϕ. Correct and simplest, but it runs in the wrong direction: in practice one starts from the left side (p. 5).
The 18.02 proof (p. 6): the left side is the dot product of the vector⟨a,b⟩ with the unit vector⟨cosθ,sinθ⟩. Evaluated geometrically, it is the product of the lengths, c⋅1, times the cosine of the angle between them, θ−ϕ.
The 18.03 proof (p. 7) uses complex numbers. The left side is the real part of (a−bi)(cosθ+isinθ). In polar form a−bi has modulusa2+b2 and angle −ϕ (it lies below the axis), so
The complex proof
(a−bi)(cosθ+isinθ)=a2+b2e−iϕeiθ=a2+b2ei(θ−ϕ)
In words
the quantity a minus b i, the quantity cos theta plus i sine theta, equals the square root of a squared plus b squared, end of root, e to the power minus i phi e to the power i theta equals the square root of a squared plus b squared, end of root, e to the power i the quantity theta minus phi, end of power
and taking real parts of both sides gives the identity (p. 7). It took mathematicians three or four hundred years to get used to complex numbers, so a few weeks is not bad (p. 8).
The first, with k constant and appearing providentially on the right as well, is the temperature–concentration model, or conduction–diffusionmodel. The second keeps k constant but has no natural k on the right; the third is the general linear equation, solved by an integral (p. 8). Cutting across the first two is a second distinction: whether k>0, assumed so far (p. 9).
The first form also fits mixing (transcript, p. 9). A tank of volume V is kept full: liquid flows in at rate r and, since it cannot pile up, out at rate r. The incoming liquid has concentration ce(t) of salt (grams per litre, say), and x(t) is the amount of salt in the tank (pp. 9–10). Work with the amount, which you can think about physically (p. 10):
Salt flows in at flow rate times incoming concentration, and out at flow rate times the tank's concentration, x/V (p. 10). Solve it in this form; but to understand it, write it for the tank's concentration c=x/V, so x′=Vc′ (p. 11; the transcript says c times dC/dt here, but the factor is the volume):
Mixing in concentration form
c′+Vrc=Vrce(t)
In words
c prime plus r over V, times c equals r over V, times c sub e (t)
This is exactly the first form, so the language of input and response applies, even though mixing has nothing physically to do with diffusion through a membrane (pp. 11–12). The analogue of the conductivity is k=r/V, the fractional rate of outflow: if r/V=1/10 per minute, a tenth of the tank is replaced each minute. It has units of reciprocal time, and the separate quantities r and V no longer matter (p. 12). (In the transcript the tank concentration is a capital C; this page uses c, to keep C for capacitance below.)
If a factory upstream releases a pollutant on a daily cycle, ce is roughly sinusoidal (p. 12). The tank follows it closely, with amplitude near 1 and little lag, when k is large: a fast flow or a small tank (p. 13).
Loading graph…
A daily cycle of incoming concentration 3+2cosωt mg/L and the steady-state concentration in the pond of the worked example (k=0.025 per hour), computed from 3+2Acos(ωt−ϕ): the pond smooths the swing to about ±0.19 mg/L and lags by nearly a quarter cycle.
capital R d q over d t plus q over capital C equals capital E (t), q prime plus 1 over the quantity capital R capital C, times q equals capital E (t) over capital R
Here k=1/RC, but writing the right side as RC1(CE) would be unnatural, so this is the second form (pp. 14–15). (The lecture calls q/C a form of Coulomb's law; it is more usually described as the definition of capacitance.)
A radioactive chain (p. 15). A decays into B, which decays further. B gains what A loses, k1A, with A=A0e−k1t, and loses k2B:
Decay chain
B′+k2B=k1A0e−k1t
In words
capital B prime plus k sub 2 capital B equals k sub 1 capital A nought e to the power minus k sub 1 t
If k<0 the method of solution is identical, but none of the language of transient, steady state, input and response applies (transcript, p. 16). Write k=−a with a>0:
Solution for k=−a
y′−ay=q(t),y=eat∫q(t)e−atdt+Ceat
In words
y prime minus a y equals q(t), y equals e to the power a t the integral of q(t) e to the power minus a t d t plus capital C e to the power a t
Now Ceat grows without bound (unless C=0): it is not transient, and the solution depends heavily on the initial condition for ever (p. 16). This is typical of biology and economics: population growth dP/dt=aP has k=−a. In the lecture's words, if life is involved k is likely to be negative; for inanimate things it is positive (pp. 16–17).
Worked example
A pond downstream of a factory
A pond of 2000m3 has water flowing through at 50m3 per hour. The incoming concentration of a pollutant follows a daily cycle, ce=3+2cosωt mg/L with a 24-hour period. (a) Find k and ω. (b) Find the steady-state swing and lag in the pond. (c) Repeat with ten times the flow, 500m3 per hour. (d) Write 3cosθ+4sinθ as a single cosine.
(a) The constants
k=r/V=50/2000=0.025 per hour, and ω=2π/24≈0.262 per hour, so ω/k≈10.47.
(b) The pond's response
By superposition the constant 3 passes straight through. A=1/1+10.472≈0.0951, so the pond swings by only ±0.19 mg/L. ϕ=arctan10.47≈1.476 rad (84.5°), a lag of ϕ/ω≈5.64 hours.
(c) Ten times the flow
k=0.25 per hour and ω/k≈1.047: A≈0.691, a swing of ±1.38 mg/L, and ϕ≈0.808 rad (46.3°), a lag of about 3.09 hours. Faster flushing makes the pond follow the inflow more closely.
(d) The identity
The triangle has sides 3 and 4, so c=5 and ϕ=arctan34≈0.927 rad (53.1°): 3cosθ+4sinθ=5cos(θ−0.927).
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.
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.
A way of multiplying two vectors that gives a number: multiply matching components and add, or lengths times the cosine of the angle between them. Explained in Vectors and the dot product.
A list of numbers written as a column, or more generally anything that can be added and multiplied by numbers. Explained in Orthogonal vectors and subspaces.
A sum of very many very small pieces, such as the area under a graph; it undoes taking a derivative. Explained in Rates of change and area under a graph.
How easily something flows through a material: electric current, for electrical conductivity, or heat, for thermal conductivity. Explained in Current, resistance and DC circuits.
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.
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.
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.
A circuit part made to have a chosen resistance, which limits the current and turns electrical energy into heat. Explained in Current, resistance and Ohm's law.
The law that two electric charges attract or repel with a force proportional to each charge and to one over the square of their distance. Explained in Coulomb's law.
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.
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.
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.
Something that behaves like something else in an important way.
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).