Modeling, direction fields and isoclines
Unit I: First-order equations · Topic 1 of 22
Key idea
A differential equation \(y' = f(x, y)\) tells you the slope of the solution curve at every point without telling you the curve. The direction field draws those slopes; isoclines are the curves along which the slope is constant; and the existence and uniqueness theorem guarantees that through each point passes exactly one solution curve, so curves never cross. That one fact lets you trap solutions between known ones without solving anything.
- Order the highest derivative present. A first-order equation is \(y' = f(x, y)\); its general solution carries one arbitrary constant.
- IVP the equation plus an initial condition \(y(x_0) = y_0\), which picks out one solution.
- Direction field at each point \((x, y)\) a short segment of slope \(f(x, y)\). Solution curves are tangent to the segments everywhere.
- Isocline for slope \(m\) the curve \(f(x, y) = m\). All segments along it are parallel. The \(m = 0\) isocline (nullcline) is where solutions have horizontal tangents, i.e. their maxima and minima.
- Modeling translate "rate of change of \(y\) is proportional to…" into \(y' = k(\dots)\); check units; decide the sign of \(k\) from whether \(y\) grows or decays.
Theorem. If \(f\) and \(\partial f/\partial y\) are continuous near \((x_0, y_0)\), the IVP \(y' = f(x, y)\), \(y(x_0) = y_0\) has exactly one solution on some interval around \(x_0\).
- No crossing two different solution curves never meet (they would share an initial condition). They may approach each other asymptotically.
- Fences if \(y_1\) and \(y_2\) are solutions and \(y_1(x_0) \lt y(x_0) \lt y_2(x_0)\), then \(y_1(x) \lt y(x) \lt y_2(x)\) for every \(x\) where all three exist. Known solutions bound unknown ones, strictly.
- Where it fails at points where \(f\) or \(f_y\) blows up (e.g. \(y' = -y/x + 3x\) at \(x = 0\), or \(y' = 3y^{2/3}\) at \(y = 0\)) uniqueness can break and curves may merge.
- Long-run reading if a solution is squeezed between two others that converge, it converges to the same limit.
How to work it
- Solve \(f(x, y) = m\) for a few values of \(m\) (certainly \(m = 0\), then \(\pm 1\), maybe \(\pm 2\)) and draw each isocline lightly.
- Along each isocline draw short segments all with slope \(m\).
- Start a solution curve at the given point and follow the segments, keeping the curve tangent to them; it may cross an isocline but only with that isocline's slope.
- Use any known solutions as fences: a curve starting between two of them stays between them.
- What the answer should look like. A sketch with labelled isoclines (their slope values written on them), a solution curve that is tangent to the segments and never crosses another solution, and a one-line statement of the long-run behaviour ("\(y \to +\infty\)", "\(y\) approaches the line \(y = x + 1\) from below").
The isocline for slope \(m\) is \(y - x = m\), the line \(y = x + m\). Along \(y = x\) the slopes are \(0\); along \(y = x + 1\) they are \(1\), so that line is itself a solution (\(y = x + 1\) has \(y' = 1 = y - x\)); along \(y = x - 1\) the slopes are \(-1\).
The general solution is \(y = x + 1 + Ce^x\). Curves above the fence \(y = x + 1\) (\(C \gt 0\)) bend upward ever more steeply; curves below it (\(C \lt 0\)) turn downward. Because solutions cannot cross \(y = x + 1\), the sign of \(y(0) - 1\) alone decides the long-run behaviour: \(y(0) = 2\) gives \(y \to +\infty\), \(y(0) = 0\) gives \(y \to -\infty\).
A solution starting at \((0, 0)\) has slope \(0\) there (it sits on the nullcline \(y = x\)), so \(x = 0\) is a local maximum of that solution; it then falls away below the line \(y = x\).
A curved isocline. \(y' = x^2 - y\): the isocline for slope \(m\) is \(y = x^2 - m\), a parabola; the nullcline is \(y = x^2\) itself. Above the nullcline slopes are negative, below it positive, so every solution is pushed toward the parabola and ends up tracking it. Indeed the general solution is \(y = x^2 - 2x + 2 + Ce^{-x}\) (check: \(y' = 2x - 2 - Ce^{-x}\) equals \(x^2 - y\)), and all solutions converge to the particular one \(y = x^2 - 2x + 2\). A solution crosses the nullcline exactly where it has a horizontal tangent: a minimum if it comes from above, which is what happens here.
Watch out. An isocline is not a solution curve; it is the set of points where the slope has a given value. Only when an isocline happens to have the same slope as its own value (like \(y = x + 1\) above) is it also a solution. A second slip is reading the long-run behaviour from the slope at the starting point alone: the solution of \(y' = y - x\) through \((0, 0)\) has slope \(0\) there, yet it heads to \(-\infty\). Follow the field across several isoclines, or use the fences.
Practice: problem 1 · Challenge: problems 30, 32, 41, 43 (the practice groups are the last entries in the contents).
Separable equations and first-order linear equations
Unit I: First-order equations · Topic 2 of 22
Key idea
Two analytic methods solve almost every first-order equation met in practice. Separable equations let you put all the \(y\) on one side and all the \(x\) on the other and integrate. Linear equations \(y' + p(x)y = q(x)\) are solved by multiplying through by an integrating factor that turns the left side into an exact derivative.
- Implicit answers are acceptable when solving for \(y\) is impossible; apply the initial condition before or after, whichever is easier.
- Lost solutions dividing by \(h(y)\) throws away the constant solutions \(y = y^*\) where \(h(y^*) = 0\); put them back.
- Classics \(y' = ky\): \(y = Ce^{kx}\). Logistic \(p' = kp(1 - p/M)\): separating, \(\dfrac{dp}{p(1 - p/M)} = k\,dt\); partial fractions \(\dfrac{1}{p(1 - p/M)} = \dfrac1p + \dfrac{1/M}{1 - p/M}\) integrate to \(\ln\dfrac{p}{1 - p/M} = kt + C\), so \(\dfrac{p}{M - p} = Be^{kt}\) and \(p = \dfrac{M}{1 + Ae^{-kt}}\) with \(A = (M - p_0)/p_0\).
Autonomous equations \(y' = f(y)\) are always separable, but their qualitative behaviour is usually easier to read from the phase line (next tab but one).
Why it works: \((\mu y)' = \mu y' + \mu' y = \mu(y' + py)\) because \(\mu' = p\mu\).
- Standard form first divide by the coefficient of \(y'\) before reading off \(p\) and \(q\).
- Structure \(y = y_p + Cy_h\) with \(y_h = 1/\mu\) the homogeneous solution: particular plus homogeneous, as for every linear equation.
- Variation of parameters the same formula arises from the guess \(y = u(x)y_h(x)\): \(u' = q/y_h\).
- Constant coefficients \(y' + ky = q(t)\) gives \(y = e^{-kt}\left(y_0 + \int_0^t e^{k\tau}q(\tau)\,d\tau\right)\), the formula behind every mixing, cooling and finance model. Applied to the linear example below (\(k = 2\), \(q = e^{-t}\), \(y_0 = 3\)): \(y = e^{-2t}\left(3 + \int_0^te^{2\tau}e^{-\tau}\,d\tau\right) = e^{-2t}(3 + e^t - 1) = e^{-t} + 2e^{-2t}\), the same answer with the initial condition built in from the start.
How to work it
- Write the equation as \(y' + p(x)y = q(x)\).
- Compute \(\mu = e^{\int p\,dx}\) (no constant needed; drop absolute values if the domain makes the sign clear).
- Multiply through: the left side is now \((\mu y)'\). Integrate both sides.
- Divide by \(\mu\) and apply the initial condition to find \(C\).
- Check by differentiating, or at least check the initial condition and one term.
- What the answer should look like. For a general solution, one arbitrary constant and any lost constant solutions listed separately; for an initial value problem, no constant at all, plus the interval on which the solution is defined when it blows up or the equation is singular.
Separable. \(y' = xy^2\): \(\int y^{-2}\,dy = \int x\,dx\) gives \(-\dfrac1y = \dfrac{x^2}{2} + C\), so \(y = \dfrac{-2}{x^2 + 2C}\). The constant solution \(y = 0\) (lost when dividing by \(y^2\)) must be added. With \(y(0) = 1\): substituting \(x = 0\), \(y = 1\) into \(-\dfrac1y = \dfrac{x^2}{2} + C\) gives \(-1 = C\), so \(y = \dfrac{-2}{x^2 - 2} = \dfrac{2}{2 - x^2}\), which blows up at \(x = \pm\sqrt2\): solutions of nonlinear equations can have a finite lifetime. Check: \(y' = \dfrac{4x}{(2 - x^2)^2}\) and \(xy^2 = x\cdot\dfrac{4}{(2 - x^2)^2}\), equal.
Linear. \(y' + 2y = e^{-t}\), \(y(0) = 3\). Here \(\mu = e^{2t}\) and \((e^{2t}y)' = e^{2t}e^{-t} = e^t\), so \(e^{2t}y = e^t + C\) and
\[y = e^{-t} + Ce^{-2t}\] \[y(0) = 1 + C = 3 \Rightarrow C = 2\] \[y = e^{-t} + 2e^{-2t}.\]Check: \(y' + 2y = (-e^{-t} - 4e^{-2t}) + (2e^{-t} + 4e^{-2t}) = e^{-t}\).
Watch out. The integrating factor is \(e^{\int p}\), not \(e^{p}\), and \(p\) is read off only after the equation is in standard form with coefficient 1 on \(y'\). For \(xy' + y = 3x^2\) the factor is \(e^{\int dx/x} = x\), not \(e^{x}\). In separable equations the constant of integration belongs to the integrated equation, not to \(y\): from \(-\dfrac1y = \dfrac{x^2}{2} + C\) it is wrong to write \(y = -\dfrac{2}{x^2} + C\); solve for \(y\) with the \(C\) still inside, \(y = \dfrac{-2}{x^2 + 2C}\).
Practice: problems 1, 4 · Challenge: problems 27, 28, 30, 31, 32, 38, 41, 42, 45, 46, 91 (the practice groups are the last entries in the contents).
Euler’s method and numerical solutions
Unit I: First-order equations · Topic 3 of 22
Key idea
When no formula is available, step along the direction field: from \((x_n, y_n)\) move a distance \(h\) in \(x\) along the tangent line of slope \(f(x_n, y_n)\). That is Euler’s method. Its error shrinks in proportion to \(h\), and whether it over- or undershoots is decided by the concavity of the true solution, which you can read from the equation itself.
Here \(h\) is the step size, \((x_n, y_n)\) the current point, \(f(x_n, y_n)\) the slope of the direction field there, and \(y_{n+1}\) the approximation to \(y(x_{n+1})\) for the true solution through \((x_0, y_0)\); \(N\) steps of size \(h\) cover an interval of length \(Nh\).
- Local error one step is off by about \(\tfrac12 h^2 y''\); after \(1/h\) steps the global error is proportional to \(h\) (first-order method). Halving \(h\) roughly halves the error.
- Improved Euler (Heun) average the slopes at the start and at the Euler-predicted end: error proportional to \(h^2\). One step for \(y' = x + y\), \(y(0) = 1\), \(h = 0.1\): start slope \(k_1 = 1\), predicted end \((0.1, 1.1)\) with slope \(k_2 = 1.2\), so \(y_1 = 1 + 0.1\cdot\tfrac{1 + 1.2}{2} = 1.11\), against the exact \(1.1103\); plain Euler gave \(1.1\).
- Runge–Kutta 4 four slope evaluations per step, error proportional to \(h^4\); the standard workhorse.
Euler is exact when the solution is a straight line, and it is the same as Riemann left-endpoint sums when \(f\) depends on \(x\) alone.
Euler follows the tangent line. On an interval where the solution is concave up (\(y'' \gt 0\)) the curve lies above its tangent, so Euler comes out too low; concave down gives too high.
Find \(y''\) without solving by differentiating the equation along a solution:
\[y'' = \frac{d}{dx}f(x, y(x)) = f_x + f_y\,y' = f_x + f_y\,f.\]Evaluate the sign at the starting point (and check it does not change across the step).
- Example \(y' = x + y\): \(y'' = 1 + y' = 1 + x + y\), positive near \((0, 1)\), so Euler underestimates there.
- Autonomous \(y' = f(y)\): \(y'' = f'(y)f(y)\); the sign is read from the phase line.
How to work it
- Record \(x_0, y_0, h\) and the number of steps \(N = (x_{\text{end}} - x_0)/h\).
- Compute the slope \(f(x_n, y_n)\) at the current point, then \(y_{n+1} = y_n + h\cdot\text{slope}\) and \(x_{n+1} = x_n + h\). A small table with columns \(x_n, y_n, f, hf\) keeps this honest.
- Repeat until \(x_N\) is reached; report \(y_N\) as the approximation to \(y(x_N)\).
- If asked, decide over/under by the sign of \(y'' = f_x + f_yf\) along the path.
- What the answer should look like. A table of the steps and a single number \(y_N\) with the right number of decimals, followed by "too high" or "too low" with the concavity reason, and, when the exact solution is available, the actual error.
Here \(f(x, y) = x + y\), \(x_0 = 0\), \(y_0 = 1\), and \(N = (0.2 - 0)/0.1 = 2\) steps. The table:
- \(n = 0\) \(x_0 = 0\), \(y_0 = 1\), slope \(f = 0 + 1 = 1\), \(hf = 0.1\).
- \(n = 1\) \(x_1 = 0.1\), \(y_1 = 1 + 0.1 = 1.1\), slope \(f = 0.1 + 1.1 = 1.2\), \(hf = 0.12\).
- \(n = 2\) \(x_2 = 0.2\), \(y_2 = 1.1 + 0.12 = 1.22\). Stop: \(x_N\) has been reached.
So \(y(0.2) \approx 1.22\). The exact solution (linear equation, integrating factor \(e^{-x}\)) is \(y = 2e^x - x - 1\), giving \(y(0.2) = 2(1.2214) - 1.2 = 1.2428\). Euler is low by about \(0.023\), as predicted by \(y'' = 1 + x + y \gt 0\) (concave up). With \(h = 0.05\) and four steps the values are \(1.05,\ 1.105,\ 1.16525,\ 1.23101\), so the error drops to about \(0.012\), roughly half, as a first-order method should.
Watch out. Use the slope at the point you are leaving, not the point you are heading to, and use \(h\) in the \(y\)-update even when \(f\) does not involve \(x\). Reporting the value after the wrong number of steps (stopping at \(x_{N-1}\)) is the other classic slip. Also recompute the slope at every step from the current \((x_n, y_n)\); reusing the initial slope turns the method into a single straight line.
Practice: problems 1, 3 · Challenge: problems 33, 34, 44 (the practice groups are the last entries in the contents).
Autonomous equations and the phase line
Unit I: First-order equations · Topic 4 of 22
Key idea
When the right side depends only on \(y\), as in \(y' = f(y)\), the equation is autonomous and its whole qualitative story is in the sign of \(f\). Zeros of \(f\) are critical points (constant solutions); between them solutions move monotonically toward or away. The phase line records this with arrows, and from it you can sketch every solution and classify each equilibrium as stable, unstable or semistable.
- Critical point \(y^*\) with \(f(y^*) = 0\); \(y \equiv y^*\) is a constant solution.
- Arrows where \(f(y) \gt 0\) solutions increase (arrow up); where \(f(y) \lt 0\) they decrease.
- Stable (sink) arrows point in from both sides: \(f\) changes from \(+\) below to \(-\) above. Linear test: \(f'(y^*) \lt 0\).
- Unstable (source) arrows point out: \(f\) changes from \(-\) to \(+\); \(f'(y^*) \gt 0\).
- Semistable no sign change (typically a repeated root such as \((y - 2)^2\)): attracting from one side, repelling from the other; \(f'(y^*) = 0\), so the derivative test is inconclusive and you must use the sign chart.
Solutions never reach a critical point in finite time; they approach it asymptotically. Solutions cannot cross the constant solutions (uniqueness).
- Monotone between two consecutive critical points every solution is monotone and tends to one of them as \(t \to \infty\) (and to the other as \(t \to -\infty\)).
- Translation if \(y(t)\) solves an autonomous equation so does \(y(t - c)\): the family of solutions in each band consists of horizontal shifts of one curve.
- Inflection points occur where \(f'(y)f(y) = 0\) with \(f \ne 0\), i.e. at the maxima and minima of \(f\): the logistic S-curve bends at \(p = M/2\). Reason: along a solution \(y'' = \dfrac{d}{dt}f(y) = f'(y)\,y' = f'(y)f(y)\), so the concavity changes where \(f'\) changes sign, which happens at an extremum of \(f\).
- Blow-up above the last critical point, if \(f\) grows faster than linearly (e.g. \(p^3\) or \(p^2\)), solutions reach infinity in finite time: \(p' = p^2\) gives \(p = 1/(C - t)\).
- Parameters when \(f\) contains a constant such as a harvesting rate, \(p' = p(1 - p) - h\), the critical points \(\tfrac12\big(1 \pm\sqrt{1 - 4h}\big)\) move as \(h\) changes and merge and vanish at \(h = \tfrac14\); past that value \(f \lt 0\) everywhere and every solution decreases. Plotting critical points against the parameter is the bifurcation diagram.
- Why the rate is enough the equation gives direction and speed at every level \(y\); for the long run only direction matters, and that is the sign of \(f\).
Logistic in numbers: \(p' = p(1 - p/10)\), \(p(0) = 1\). Phase line: unstable at \(0\), stable at \(10\); the solution rises from \(1\) toward \(10\), with its inflection (fastest growth) when it crosses \(p = 5\). The formula \(p = \dfrac{10}{1 + 9e^{-t}}\) (with \(A = (M - p_0)/p_0 = 9\)) confirms: \(p(0) = 1\), \(p \to 10\).
How to work it
- Factor \(f(y)\) completely and mark its zeros on a vertical \(y\)-axis.
- Test the sign of \(f\) in each interval (one test value each) and draw up/down arrows.
- Classify each critical point: in-in stable, out-out unstable, in-out semistable.
- Sketch \(y\) versus \(t\): horizontal lines at the critical points; monotone curves in each band following the arrows, flattening as they approach a critical point.
- Answer the long-run question for each given initial value by locating it on the phase line.
- What the answer should look like. The list of critical points, each labelled stable, unstable or semistable with the reason (sign change of \(f\), or the sign of \(f'\)), and for each starting value a limit: "\(y \to 1\)", "\(y \to \infty\) (blows up in finite time)". No formula for \(y(t)\) is expected.
Critical points \(y = 1, 2\). Signs: for \(y \lt 1\) both factors negative, \(f \gt 0\) (up); for \(1 \lt y \lt 2\), \(f \lt 0\) (down); for \(y \gt 2\), \(f \gt 0\) (up).
So \(y = 1\) has arrows in from both sides: stable (also \(f'(1) = 2(1) - 3 = -1 \lt 0\)). \(y = 2\) has arrows out: unstable (\(f'(2) = 1 \gt 0\)).
Long run: a solution with \(y(0) = 1.5\) decreases to \(1\); one with \(y(0) = 0\) increases to \(1\); one with \(y(0) = 3\) increases without bound, and since \(f \sim y^2\) it blows up in finite time. (For the simpler \(p' = p^2\), \(p(0) = 3\), separating gives \(-\dfrac1p = t + C\), \(C = -\tfrac13\), so \(p = \dfrac{1}{1/3 - t}\), infinite already at \(t = \tfrac13\).) The inflection points of the curves in the middle band occur at \(y = 3/2\), where \(f\) has its minimum.
Watch out. The phase line applies only to autonomous equations (no \(t\) on the right side). And a critical point with \(f'(y^*) = 0\) is not automatically stable; \(y' = (y - 2)^2\) has a semistable point at 2 and \(y' = (y-2)^3\) an unstable one. Never draw a solution crossing a constant solution: the horizontal lines at the critical points are themselves solutions, and uniqueness forbids crossing, which is exactly why solutions level off asymptotically instead of reaching the equilibrium.
Practice: problem 2 · Challenge: problems 27, 29, 35, 116, 117 (the practice groups are the last entries in the contents).
First-order models: mixing, cooling, decay and bank accounts
Unit I: First-order equations · Topic 5 of 22
Key idea
Most first-order applications are one equation in disguise: \(y' + ky = q(t)\), a quantity that leaks away at a rate proportional to itself while something is added at rate \(q(t)\). Its solution splits into a transient that forgets the initial condition and a response to the input, and when \(q\) is constant the response is just the steady state \(q/k\).
Here \(y_0 = y(0)\), \(k \gt 0\) is the leak rate (units 1/time), \(q(t)\) the input rate (amount per time), and \(\tau\) a dummy variable running over the times at which input arrived; \(e^{-k(t - \tau)}\) is how much of the input from time \(\tau\) is left at time \(t\).
- Transient \(y_0e^{-kt}\), dies out when \(k \gt 0\). Time constant \(1/k\); half-life \(\ln2/k\).
- Constant input \(q(t) = q\): \(y = \dfrac{q}{k} + \left(y_0 - \dfrac{q}{k}\right)e^{-kt} \to \dfrac{q}{k}\), the steady state, approached exponentially.
- Weight function the integral is the convolution of the input with \(w(t) = e^{-kt}\), the response to a unit impulse; each bit of input added at time \(\tau\) has decayed by \(e^{-k(t - \tau)}\) by time \(t\).
- Sinusoidal input \(q = \cos\omega t\) gives a steady response \(\dfrac{\cos(\omega t - \phi)}{\sqrt{k^2 + \omega^2}}\), \(\tan\phi = \omega/k\): smaller and delayed. For \(x' + x = \cos2t\): amplitude \(1/\sqrt5 \approx 0.45\), lag \(\phi = \arctan2 \approx 1.11\) rad, i.e. a delay of \(\phi/\omega \approx 0.55\) time units; a daily temperature cycle driving a house follows the same rule, with the indoor swing both damped and delayed.
- Radioactive decay \(R' = -kR\); with material flowing in at rate \(f(t)\): \(R' = -kR + f(t)\).
- Newton’s cooling \(T' = -k(T - T_{\text{ext}})\); the steady state is the surroundings’ temperature.
- Mixing tank amount \(x\) of salt, volume \(V\): \(x' = (\text{rate in})(\text{conc. in}) - (\text{rate out})\dfrac{x}{V}\). If rates differ, \(V = V_0 + (r_{\text{in}} - r_{\text{out}})t\) and the equation is linear with a variable coefficient.
- Bank account \(A' = rA + d\) (continuous interest \(r\), deposits at rate \(d\)): \(A = \left(A_0 + \dfrac dr\right)e^{rt} - \dfrac dr\). Withdrawals make \(d \lt 0\). Numbers: \(r = 0.05\) per year, \(d = 1200\) dollars per year, \(A_0 = 0\): \(A = 24000(e^{0.05t} - 1)\), about \(15{,}570\) after ten years versus \(12{,}000\) deposited. Here \(k = -r \lt 0\), so there is no steady state: the "equilibrium" \(-d/r\) is unstable and the balance runs away from it.
- Population with harvesting \(p' = kp - h\); the threshold \(p = h/k\) separates growth from extinction.
Always write the units of each term; a rate equation must have the same units (amount per time) in every term.
How to work it
- Name the unknown and its units (grams of salt, degrees, dollars) and the independent variable (time).
- Write rate of change = rate in minus rate out, expressing each rate in terms of the unknown.
- Put the equation in the form \(y' + ky = q(t)\) and identify \(k\) and \(q\).
- Solve with the integrating factor \(e^{kt}\) (or quote the standard solution) and apply the initial condition.
- Interpret: steady state, time to reach a given level, long-run behaviour.
- What the answer should look like. The differential equation with units, the solution in the form steady state plus decaying transient, \(y = \dfrac qk + \left(y_0 - \dfrac qk\right)e^{-kt}\), and any requested time as an exact logarithm with a decimal approximation, e.g. \(t = 50\ln2 \approx 34.7\) min.
A 100 L tank is full of fresh water. Brine with 3 g/L enters at 2 L/min, the mixture is stirred and drains at 2 L/min. Find the salt \(x(t)\).
\[x' = (2)(3) - 2\cdot\frac{x}{100} = 6 - 0.02x\] \[x(0) = 0.\]Here \(k = 0.02\) and \(q = 6\): steady state \(q/k = 300\) g (the tank eventually holds brine at the inflow concentration, \(3\) g/L). The solution is
\[x(t) = 300 - 300e^{-0.02t} = 300\left(1 - e^{-t/50}\right).\]Half of the steady state is reached when \(e^{-t/50} = \tfrac12\), i.e. \(t = 50\ln2 \approx 34.7\) min. Check: \(x' = 6e^{-t/50}\) and \(6 - 0.02x = 6 - 6 + 6e^{-t/50}\).
Cooling. Coffee at \(90^\circ\)C in a \(20^\circ\)C room is at \(60^\circ\) after \(10\) min; when is it \(30^\circ\)? Here \(T' = -k(T - 20)\), so \(T - 20 = 70e^{-kt}\) (the gap decays, starting at \(90 - 20 = 70\)). From \(T(10) = 60\): \(40 = 70e^{-10k}\), \(k = \tfrac{1}{10}\ln\tfrac{7}{4} \approx 0.056\) per min. Then \(T = 30\) means \(10 = 70e^{-kt}\), \(t = \dfrac{\ln 7}{k} \approx 34.8\) min. The unknown rate constant is always found from one measured data point before the question itself is answered.
Watch out. Mixing problems are about the amount of salt, not the concentration; the outflow term is (flow rate) \(\times\) (amount)/(volume). In Newton’s law it is \(T - T_{\text{ext}}\) that decays, not \(T\) itself. Units catch most set-up errors: in \(x' = 6 - 0.02x\) every term is grams per minute, so the \(6\) is (L/min)(g/L) and the \(0.02\) is (L/min)/L \(= 1/\)min, whose reciprocal, \(50\) min, is the time constant.
Practice: problems 5, 6 · Challenge: problems 36, 37, 38, 39, 40 (the practice groups are the last entries in the contents).
Complex numbers and complex exponentials
Unit II: Complex numbers and second-order linear equations · Topic 6 of 22
Key idea
Oscillations are exponentials with complex exponents: \(e^{(a + i\omega)t} = e^{at}(\cos\omega t + i\sin\omega t)\). Working with the complex exponential and taking real or imaginary parts at the end replaces pages of trigonometric identities by algebra. You need fluency with the polar form, Euler’s formula, roots of complex numbers and the amplitude-phase form of a sinusoid.
Multiplication multiplies moduli and adds arguments: \(r_1e^{i\theta_1}\cdot r_2e^{i\theta_2} = r_1r_2e^{i(\theta_1 + \theta_2)}\). Powers: \((re^{i\theta})^n = r^ne^{in\theta}\) (de Moivre).
Roots. \(z^n = Re^{i\alpha}\) has \(n\) solutions, equally spaced on a circle:
\[z_k = R^{1/n}\exp\!\left(i\,\frac{\alpha + 2\pi k}{n}\right)\] \[k = 0, 1, \dots, n - 1.\] \[e^{(a + i\omega)t} = e^{at}\cos\omega t + i\,e^{at}\sin\omega t.\]So \(\phi\) is the polar angle of the point \((a, b)\). Equivalently \(a\cos\omega t + b\sin\omega t = \operatorname{Re}\big((a - bi)e^{i\omega t}\big)\).
- Complex replacement to solve \(p(D)x = \cos\omega t\), solve \(p(D)z = e^{i\omega t}\) and take \(x = \operatorname{Re}z\); for \(\sin\omega t\) take \(\operatorname{Im}z\).
- Polar form of the answer \(z = \dfrac{e^{i\omega t}}{p(i\omega)} = \dfrac{1}{|p(i\omega)|}e^{i(\omega t - \phi)}\) with \(\phi = \arg p(i\omega)\): gain \(1/|p(i\omega)|\), phase lag \(\phi\).
- Real and imaginary parts of a quotient multiply numerator and denominator by the conjugate of the denominator.
How to work it
- Identify \(a\) (coefficient of \(\cos\)) and \(b\) (coefficient of \(\sin\)) for the same frequency.
- \(A = \sqrt{a^2 + b^2}\).
- \(\phi\) is the angle of the point \((a, b)\): \(\tan\phi = b/a\), adjusted to the correct quadrant (add \(\pi\) if \(a \lt 0\)).
- Write \(A\cos(\omega t - \phi)\); check by expanding with the cosine difference formula.
- What the answer should look like. A positive amplitude \(A\), a phase \(\phi\) given exactly when possible (\(\pi/4\), \(\arctan\tfrac43\)) with its quadrant correct, and the same frequency \(\omega\) as the input; for roots, exactly \(n\) values, in both polar and rectangular form if asked.
Amplitude-phase. \(3\cos2t + 4\sin2t\): \(A = 5\), \(\phi = \arctan\tfrac43 \approx 0.927\) (first quadrant), so it equals \(5\cos(2t - 0.927)\). Check: \(5\cos\phi = 3\), \(5\sin\phi = 4\).
A power. \((1 + i)^8 = (\sqrt2\,e^{i\pi/4})^8 = 16e^{2\pi i} = 16\).
A quotient and its real part. \(\dfrac{3 + 4i}{1 - 2i} = \dfrac{(3 + 4i)(1 + 2i)}{(1 - 2i)(1 + 2i)} = \dfrac{3 + 6i + 4i + 8i^2}{1 + 4} = \dfrac{-5 + 10i}{5} = -1 + 2i\). Check: \((1 - 2i)(-1 + 2i) = -1 + 2i + 2i - 4i^2 = 3 + 4i\). In the same way, the complex replacement for \(x'' + 2x' + 5x = \cos t\) needs \(p(i) = i^2 + 2i + 5 = 4 + 2i\), so \(z = \dfrac{e^{it}}{4 + 2i} = \dfrac{(4 - 2i)e^{it}}{20}\) and \(x_p = \operatorname{Re}z = \dfrac{4\cos t + 2\sin t}{20} = \dfrac{2\cos t + \sin t}{10}\). In polar form the gain is \(1/|4 + 2i| = 1/\sqrt{20}\) and the lag is \(\phi = \arctan\tfrac12 \approx 0.464\); check \(\sqrt{(0.2)^2 + (0.1)^2} = 1/\sqrt{20}\).
Roots. \(z^3 = -8 = 8e^{i\pi}\): \(z_k = 2e^{i(\pi + 2\pi k)/3}\), i.e. \(2e^{i\pi/3} = 1 + i\sqrt3\), \(2e^{i\pi} = -2\), \(2e^{i5\pi/3} = 1 - i\sqrt3\). Check: \((1 + i\sqrt3)^3 = (2e^{i\pi/3})^3 = 8e^{i\pi} = -8\).
Watch out. \(\arctan(b/a)\) alone gives the wrong quadrant whenever \(a \lt 0\): \(-\cos t + \sin t\) has \(\phi = 3\pi/4\), not \(-\pi/4\). And the response to a sine input is the imaginary part of the complex solution; taking the real part out of habit gives the response to the cosine instead. A third slip is dividing by a complex number without clearing it: \(\dfrac{1}{1 - 3i}\) is neither \(1 - 3i\) nor \(1 - \dfrac{1}{3i}\); multiply top and bottom by the conjugate to get \(\dfrac{1 + 3i}{10}\).
Practice: problems 7, 11 · Challenge: problems 52, 60 (the practice groups are the last entries in the contents).
Second-order linear equations with constant coefficients
Unit II: Complex numbers and second-order linear equations · Topic 7 of 22
Key idea
\(my'' + by' + ky = 0\) models a mass on a spring with damping, an RLC circuit, and anything that oscillates. Substituting \(y = e^{rt}\) turns it into the characteristic equation \(mr^2 + br + k = 0\), and the three kinds of roots (distinct real, repeated, complex) give the three kinds of behaviour: overdamped, critically damped and underdamped oscillation.
- Real \(r_1 \ne r_2\) \(y = c_1e^{r_1t} + c_2e^{r_2t}\).
- Repeated \(r\) \(y = (c_1 + c_2t)e^{rt}\).
- Complex \(a \pm i\omega\) \(y = e^{at}(c_1\cos\omega t + c_2\sin\omega t) = Ae^{at}\cos(\omega t - \phi)\).
Superposition. Any linear combination of solutions of a homogeneous linear equation is a solution; two independent solutions (nonzero Wronskian \(W = y_1y_2' - y_1'y_2\)) span them all. For \(y_1 = e^{r_1t}\), \(y_2 = e^{r_2t}\): \(W = (r_2 - r_1)e^{(r_1 + r_2)t}\), nonzero exactly when the roots differ, which is why the repeated-root case needs the extra \(t\).
Initial conditions \(y(t_0) = y_0\), \(y'(t_0) = v_0\) determine \(c_1, c_2\) uniquely: differentiate the general solution, substitute, solve the \(2\times 2\) system.
In operator form \(p(D)y = 0\) with \(p(r) = r^2 + pr + q\): the roots of \(p\) are everything.
- Underdamped \(b^2 \lt 4mk\) \(x = e^{-bt/2m}\left(c_1\cos\omega_dt + c_2\sin\omega_dt\right)\) with pseudo-frequency \(\omega_d = \sqrt{\omega_0^2 - \left(\tfrac{b}{2m}\right)^2} \lt \omega_0\). Oscillates with exponentially shrinking amplitude; pseudo-period \(2\pi/\omega_d\).
- Critically damped \(b^2 = 4mk\) \(x = (c_1 + c_2t)e^{-bt/2m}\): fastest return without oscillation.
- Overdamped \(b^2 \gt 4mk\) two negative real roots, \(x = c_1e^{r_1t} + c_2e^{r_2t}\); at most one zero crossing.
- Oscillatory solutions exist exactly when the roots are complex, \(b^2 \lt 4mk\), i.e. \(0 \le b \lt 2\sqrt{mk}\).
- Stability all solutions decay iff both roots have negative real part iff \(b \gt 0\) and \(k \gt 0\) (with \(m \gt 0\)).
How to work it
- Write the characteristic equation and find its roots (quadratic formula; complete the square for complex roots).
- Write the general real solution for the appropriate case.
- Differentiate it once. Substitute \(t_0\) into \(y\) and \(y'\) to get two equations for \(c_1, c_2\).
- Solve and write the final answer; convert to amplitude-phase form if the problem asks for amplitude, period or phase.
- What the answer should look like. A real-valued function with two constants (general solution) or none (IVP), its damping type named, and, for the underdamped case, the pseudo-frequency \(\omega_d\), pseudo-period \(2\pi/\omega_d\) and decay rate \(b/2m\) read directly from the roots \(-\tfrac{b}{2m} \pm i\omega_d\).
\(r^2 + 2r + 5 = 0\) gives \(r = -1 \pm 2i\): underdamped, with \(\omega_0 = \sqrt5\) and \(\omega_d = 2\).
\[y = e^{-t}(c_1\cos2t + c_2\sin2t)\] \[y' = -e^{-t}(c_1\cos2t + c_2\sin2t) + e^{-t}(-2c_1\sin2t + 2c_2\cos2t).\]\(y(0) = c_1 = 1\); \(y'(0) = -c_1 + 2c_2 = 1\) gives \(c_2 = 1\). So
\[y = e^{-t}(\cos2t + \sin2t) = \sqrt2\,e^{-t}\cos\!\left(2t - \tfrac\pi4\right)\](Amplitude-phase form: the coefficients \((a, b) = (1, 1)\) give \(A = \sqrt{1 + 1} = \sqrt2\) and \(\phi = \arctan 1 = \pi/4\), first quadrant.) This is an oscillation of pseudo-period \(2\pi/\omega_d = \pi\) whose amplitude \(\sqrt2e^{-t}\) halves every \(\ln2 \approx 0.69\) time units. Had the damping coefficient been \(2\sqrt5 \approx 4.47\) instead of \(2\), the roots would have been repeated (\(-\sqrt5\)) and there would be no oscillation at all.
From physical data. A \(2\) kg mass on a spring with constant \(50\) N/m and damping \(12\) N\(\cdot\)s/m: \(2x'' + 12x' + 50x = 0\), i.e. \(x'' + 6x' + 25x = 0\). Here \(b^2 - 4mk = 144 - 400 \lt 0\): underdamped, with \(r = -3 \pm 4i\), \(\omega_0 = \sqrt{50/2} = 5\) and \(\omega_d = 4\), so \(x = e^{-3t}(c_1\cos4t + c_2\sin4t)\) with pseudo-period \(\pi/2\). Critical damping would need \(b = 2\sqrt{mk} = 2\sqrt{100} = 20\).
Overdamped. \(y'' + 3y' + 2y = 0\), \(y(0) = 1\), \(y'(0) = 0\): \(r^2 + 3r + 2 = (r + 1)(r + 2)\), so \(y = c_1e^{-t} + c_2e^{-2t}\) and \(y' = -c_1e^{-t} - 2c_2e^{-2t}\). The conditions give \(c_1 + c_2 = 1\) and \(-c_1 - 2c_2 = 0\); adding them, \(-c_2 = 1\), so \(c_2 = -1\), \(c_1 = 2\): \(y = 2e^{-t} - e^{-2t}\). It never crosses zero (\(2e^{-t} \gt e^{-2t}\) for \(t \gt 0\)) and decays like the slower mode \(e^{-t}\).
Watch out. With a repeated root the second solution needs the factor \(t\); writing \(c_1e^{rt} + c_2e^{rt}\) is really one solution. And the pseudo-period of a damped oscillator is \(2\pi/\omega_d\), which is longer than \(2\pi/\omega_0\). Impose initial conditions on the general real solution, and differentiate it fully first: for \(y = e^{-t}(c_1\cos2t + c_2\sin2t)\), \(y'(0) = -c_1 + 2c_2\), not \(2c_2\); the exponential factor contributes through the product rule.
Practice: problems 7, 9, 12 · Challenge: problems 47, 48, 49, 58, 59, 60, 65, 66, 122 (the practice groups are the last entries in the contents).
Undetermined coefficients and the Exponential Response Formula
Unit II: Complex numbers and second-order linear equations · Topic 8 of 22
Key idea
For an input that is an exponential, a polynomial, a sinusoid, or a product of these, a particular solution has the same shape as the input. The Exponential Response Formula (ERF) gives it instantly for exponential inputs, including complex ones, and undetermined coefficients handles polynomial factors. The general solution is \(y_p\) plus the homogeneous solution, and only then do the initial conditions enter.
because \(p(D)e^{at} = p(a)e^{at}\). Resonance: if \(p(a) = 0\) but \(p'(a) \ne 0\),
\[y_p = \frac{t\,e^{at}}{p'(a)}\] \[\text{and if also } p'(a) = 0:\quad y_p = \frac{t^2e^{at}}{p''(a)}.\]- Complex \(a\) works unchanged: for \(\cos\omega t = \operatorname{Re}e^{i\omega t}\) take \(y_p = \operatorname{Re}\dfrac{e^{i\omega t}}{p(i\omega)}\); for \(\sin\omega t\) take the imaginary part; for \(e^{\alpha t}\cos\omega t\) use \(a = \alpha + i\omega\).
- Superposition for \(p(D)y = f_1 + f_2\), add the particular solutions for \(f_1\) and \(f_2\).
- Scaling input \(4e^{2t}\sin t\) means \(4\operatorname{Im}\dfrac{e^{(2 + i)t}}{p(2 + i)}\).
- Polynomial of degree \(n\) try a general polynomial of degree \(n\) (all lower terms included), times \(t^s\) if \(0\) is a root of \(p\) of multiplicity \(s\).
- \(e^{at}\times\) polynomial try \(e^{at}\times\) (polynomial of the same degree), times \(t^s\) if \(a\) is a root of multiplicity \(s\).
- \(\cos\omega t\) or \(\sin\omega t\) try \(A\cos\omega t + B\sin\omega t\) (both!), times \(t\) if \(\pm i\omega\) are roots.
- Products \(e^{at}(\text{poly})\cos\omega t\): the polynomial multiplies both \(\cos\) and \(\sin\) terms; or use complex replacement with \(a + i\omega\).
Substitute the guess, collect like terms, solve for the coefficients. Then \(y = y_h + y_p\) and the initial conditions are applied to this full solution.
Any term of the guess that already solves the homogeneous equation signals resonance: multiply the whole guess by \(t\).
How to work it
- Solve the homogeneous equation first: roots of \(p(r)\), general \(y_h\).
- For each term of the input, find \(y_p\) by the ERF or by matching coefficients, watching for resonance with the roots found in step 1.
- Add: \(y = y_h + y_p\).
- Now impose the initial conditions on \(y\) (not on \(y_h\) alone) to find \(c_1, c_2\).
- Check by substituting \(y_p\) back into the equation.
- What the answer should look like. \(y = y_h + y_p\) with \(y_h\) carrying the two constants and \(y_p\) carrying none; \(y_p\) has the shape of the input (same exponent, same frequency, same degree), with an extra factor \(t\) only when the input is resonant.
\(p(r) = r^2 - 3r + 2 = (r - 1)(r - 2)\): \(y_h = c_1e^t + c_2e^{2t}\).
\(e^{3t}\): \(p(3) = 9 - 9 + 2 = 2\), so \(y_{p_1} = \tfrac12e^{3t}\).
\(4t\): try \(y = At + B\): \(0 - 3A + 2(At + B) = 4t\) gives \(2A = 4\), \(-3A + 2B = 0\): \(A = 2\), \(B = 3\), so \(y_{p_2} = 2t + 3\).
\[y = c_1e^t + c_2e^{2t} + \tfrac12e^{3t} + 2t + 3.\]A sinusoidal input by complex replacement. For \(y'' - 3y' + 2y = \cos t\): \(p(i) = i^2 - 3i + 2 = 1 - 3i\), so \(z_p = \dfrac{e^{it}}{1 - 3i} = \dfrac{(1 + 3i)e^{it}}{10}\) and \(y_p = \operatorname{Re}z_p = \dfrac{\cos t - 3\sin t}{10}\). The same by matching: with \(y = A\cos t + B\sin t\), \(y'' = -A\cos t - B\sin t\), \(-3y' = 3A\sin t - 3B\cos t\) and \(2y = 2A\cos t + 2B\sin t\); collecting, \(\cos t\,(A - 3B) + \sin t\,(3A + B) = \cos t\), so \(A - 3B = 1\) and \(3A + B = 0\), giving \(A = \tfrac1{10}\), \(B = -\tfrac3{10}\). Two unknowns, two equations, one from the \(\cos\) terms and one from the \(\sin\) terms.
Resonance. For the input \(e^t\), \(p(1) = 0\) and \(p'(r) = 2r - 3\), \(p'(1) = -1\), so \(y_p = \dfrac{te^t}{-1} = -te^t\). Check: \(y_p' = -(1 + t)e^t\), \(y_p'' = -(2 + t)e^t\), and \(-(2 + t) + 3(1 + t) - 2t = 1\), times \(e^t\). Correct.
Watch out. Applying the initial conditions to \(y_h\) before adding \(y_p\) is the most common error in the whole course. Second most common: trying \(A\cos\omega t\) alone when the equation has a \(y'\) term; the derivative produces a sine that cannot be matched. Third: for the input \(te^{2t}\) the guess is \((At + B)e^{2t}\), with the constant term \(B\) included even though the input has none; dropping it leaves one equation unsatisfiable.
Practice: problems 7, 8, 9 · Challenge: problems 50, 51, 52, 55, 61, 72, 98 (the practice groups are the last entries in the contents).
Variation of parameters
Unit II: Complex numbers and second-order linear equations · Topic 9 of 22
Key idea
Undetermined coefficients needs a nice input. Variation of parameters works for any input \(g(t)\) and even for variable coefficients, provided you know two independent homogeneous solutions. It replaces the constants in \(c_1y_1 + c_2y_2\) by functions and produces a formula built from the Wronskian.
With homogeneous solutions \(y_1, y_2\) and Wronskian \(W = y_1y_2' - y_1'y_2\):
\[y_p = -y_1\int\frac{y_2\,g}{W}\,dt + y_2\int\frac{y_1\,g}{W}\,dt.\]Here \(g\) is the right side after dividing by the coefficient of \(y''\), \(W\) is in general a function of \(t\) (never zero on the interval when \(y_1, y_2\) are independent), and both integrals are indefinite with their constants dropped.
Derivation: seek \(y_p = u_1y_1 + u_2y_2\) with the side condition \(u_1'y_1 + u_2'y_2 = 0\); substituting gives \(u_1'y_1' + u_2'y_2' = g\), and solving the two linear equations for \(u_1', u_2'\) by Cramer gives \(u_1' = -y_2g/W\), \(u_2' = y_1g/W\).
The equation must be in standard form (coefficient 1 on \(y''\)) before you read off \(g\). Constants of integration may be dropped: they only add homogeneous solutions.
First-order version. For \(y' + p(t)y = q(t)\) with \(y_h = e^{-\int p}\): \(y_p = y_h\displaystyle\int\frac{q}{y_h}\,dt\), which is the integrating-factor formula again. Example: \(y' + y = e^{-t}\) has \(y_h = e^{-t}\), so \(y_p = e^{-t}\displaystyle\int\frac{e^{-t}}{e^{-t}}\,dt = te^{-t}\), the resonant \(t\) appearing because the input is itself a homogeneous solution.
- Undetermined coefficients / ERF constant coefficients and inputs of the form \(e^{at}\), polynomials, \(\cos\), \(\sin\), and products. Fast and algebraic.
- Variation of parameters any continuous input (\(\tan t\), \(\sec t\), \(1/t\), \(e^{t^2}\), \(\ln t\)) or variable coefficients (Euler equations \(t^2y'' + aty' + by = g\)). The price is two integrals.
- Laplace transform inputs with jumps or impulses, and initial value problems where you want the initial conditions built in from the start.
- Wronskian facts for constant coefficients \(W\) is a constant times \(e^{-pt}\) (Abel); \(W \ne 0\) at one point proves \(y_1, y_2\) independent.
How to work it
- Find \(y_1, y_2\) from the homogeneous equation and compute \(W\) (simplify; it is often a constant).
- Divide the equation by the leading coefficient so the right side is \(g(t)\).
- Compute the two integrals \(\int y_2g/W\) and \(\int y_1g/W\).
- Assemble \(y_p\) and simplify; drop any piece that is a multiple of \(y_1\) or \(y_2\).
- General solution \(y = c_1y_1 + c_2y_2 + y_p\).
- What the answer should look like. \(y_p\) will typically contain a logarithm, a \(t\) times a sine or cosine, or an integral that cannot be done in closed form (leave it as a definite integral with a dummy variable); state the interval of validity imposed by the input, such as \(|t| \lt \pi/2\) for \(\sec t\).
\(y_1 = \cos t\), \(y_2 = \sin t\), \(W = \cos^2t + \sin^2t = 1\). Then
\[y_p = -\cos t\int\sin t\sec t\,dt + \sin t\int\cos t\sec t\,dt\] \[= -\cos t\int\tan t\,dt + \sin t\int 1\,dt\] \[= -\cos t\,(-\ln|\cos t|) + t\sin t = \cos t\ln|\cos t| + t\sin t.\](The integral \(\int\tan t\,dt = \int\dfrac{\sin t}{\cos t}\,dt = -\ln|\cos t|\) by the substitution \(u = \cos t\), \(du = -\sin t\,dt\).)
General solution: \(y = c_1\cos t + c_2\sin t + \cos t\ln|\cos t| + t\sin t\), valid on \(|t| \lt \pi/2\) where \(\sec t\) is defined. Undetermined coefficients could not have produced the \(\ln|\cos t|\).
Check the \(t\sin t\) piece alone: \((t\sin t)'' + t\sin t = 2\cos t - t\sin t + t\sin t = 2\cos t\); the logarithm piece supplies \(\sec t - 2\cos t\), and the two add to \(\sec t\).
Variable coefficients in disguise. \(y'' - 2y' + y = \dfrac{e^t}{t}\), \(t \gt 0\). Repeated root \(1\): \(y_1 = e^t\), \(y_2 = te^t\), \(W = e^t(e^t + te^t) - e^t\cdot te^t = e^{2t}\). Then
\[y_p = -e^t\int\frac{te^t\cdot e^t/t}{e^{2t}}\,dt + te^t\int\frac{e^t\cdot e^t/t}{e^{2t}}\,dt = -e^t\int 1\,dt + te^t\int\frac{dt}{t} = -te^t + te^t\ln t.\]The term \(-te^t\) is a multiple of \(y_2\), so drop it: \(y_p = te^t\ln t\) and \(y = (c_1 + c_2t)e^t + te^t\ln t\). Check: \(y_p'' - 2y_p' + y_p = e^t\big[(t\ln t + 2\ln t + 2 + \tfrac1t) - 2(t\ln t + \ln t + 1) + t\ln t\big] = \dfrac{e^t}{t}\).
Watch out. The minus sign sits on the \(y_1\) term, and the integrands are crossed: \(y_2g\) goes with \(y_1\) and \(y_1g\) with \(y_2\). Forgetting to divide by the leading coefficient (using \(g\) from \(2y'' + \dots = \tan t\) without halving it) doubles the answer. Keep the same order of \(y_1, y_2\) in \(W\) and in the two integrals; swapping them in one place but not the other flips the sign of \(y_p\).
Practice: problem 10 · Challenge: problems 56, 57, 58 (the practice groups are the last entries in the contents).
Sinusoidal input: gain, phase lag and resonance
Unit II: Complex numbers and second-order linear equations · Topic 10 of 22
Key idea
Drive a damped oscillator with \(F_0\cos\omega t\) and, after the transient dies, it responds at the same frequency with a different amplitude and a delay. The gain and phase lag come from the single complex number \(p(i\omega)\), and plotting the gain against \(\omega\) gives the frequency response curve, whose peak is practical resonance.
For \(mx'' + bx' + kx = F_0\cos\omega t\), \(p(i\omega) = (k - m\omega^2) + ib\omega\):
\[\text{amplitude} = \frac{F_0}{\sqrt{(k - m\omega^2)^2 + b^2\omega^2}}\] \[\tan\phi = \frac{b\omega}{k - m\omega^2}.\]Symbols: \(m\) mass, \(b\) damping constant, \(k\) spring constant, \(F_0\) the amplitude of the driving force, \(\omega\) the driving frequency (distinct from the natural frequency \(\omega_0 = \sqrt{k/m}\)), \(g\) the gain (output amplitude per unit input amplitude), \(\phi\) the phase lag in radians, with \(\phi/\omega\) the time delay.
- Low frequency \(\phi \approx 0\), amplitude \(\approx F_0/k\) (quasi-static).
- At \(\omega = \omega_0\) \(k - m\omega^2 = 0\): \(\phi = \pi/2\), amplitude \(F_0/(b\omega_0)\).
- High frequency \(\phi \to \pi\), amplitude \(\to 0\) like \(F_0/(m\omega^2)\).
The steady-periodic response is the particular solution; the homogeneous part (transient) decays whenever \(b \gt 0\).
- Undamped, \(\omega \ne \omega_0\) \(x_p = \dfrac{F_0\cos\omega t}{m(\omega_0^2 - \omega^2)}\); for \(\omega\) near \(\omega_0\) the full solution with rest initial conditions, \(x = \dfrac{F_0(\cos\omega t - \cos\omega_0t)}{m(\omega_0^2 - \omega^2)}\), shows beats: \(\dfrac{2F_0}{m(\omega_0^2 - \omega^2)}\sin\dfrac{(\omega_0 - \omega)t}{2}\sin\dfrac{(\omega_0 + \omega)t}{2}\). Numbers: \(x'' + 4x = \cos2.2t\) from rest gives \(x = \dfrac{\cos2t - \cos2.2t}{0.84} \approx 2.38\sin(0.1t)\sin(2.1t)\), a fast oscillation at frequency \(2.1\) whose amplitude swells and dies with the slow factor \(\sin(0.1t)\), every \(\pi/0.1 \approx 31\) time units.
- Undamped, \(\omega = \omega_0\) pure resonance: \(x_p = \dfrac{F_0}{2m\omega_0}\,t\sin\omega_0t\), growing without bound (ERF with \(p(i\omega_0) = 0\)).
- Damped: practical resonance the amplitude is largest at \(\omega_r = \sqrt{\omega_0^2 - \dfrac{b^2}{2m^2}}\), which exists only if \(b^2 \lt 2mk\); for heavier damping the amplitude just decreases from \(F_0/k\). Peak amplitude \(\dfrac{F_0}{b\sqrt{\omega_0^2 - b^2/4m^2}}\).
- Rule to find \(\omega_r\), minimize \(|p(i\omega)|^2\) as a function of \(u = \omega^2\); set the derivative to zero.
How to work it
- Compute \(p(i\omega)\): replace \(D^2\) by \(-\omega^2\) and \(D\) by \(i\omega\).
- Gain \(g = 1/|p(i\omega)|\) and phase \(\phi = \arg p(i\omega)\), with \(\phi\) in the first quadrant if the real part is positive, second quadrant if negative.
- Write \(x_p = F_0\,g\cos(\omega t - \phi)\); for a sine input use \(\sin(\omega t - \phi)\).
- For the resonant frequency minimize \(|p(i\omega)|^2 = (k - m\omega^2)^2 + b^2\omega^2\) over \(\omega^2\).
- What the answer should look like. A steady-periodic solution \(x_p = F_0g\cos(\omega t - \phi)\) with \(g\) and \(\phi\) as explicit functions of \(\omega\) (or numbers, if \(\omega\) is given), \(\phi\) between \(0\) and \(\pi\), and, for a resonance question, \(\omega_r\) as a square root, such as \(\sqrt{7/2}\), not just "near \(\omega_0\)".
\(m = 1\), \(b = 1\), \(k = 4\), \(\omega_0 = 2\). Then \(p(i\omega) = 4 - \omega^2 + i\omega\) and
\[g(\omega) = \frac{1}{\sqrt{(4 - \omega^2)^2 + \omega^2}}\] \[\tan\phi = \frac{\omega}{4 - \omega^2}.\]At \(\omega = 1\): \(p(i) = 3 + i\), so \(g = 1/\sqrt{10} \approx 0.316\) and \(\phi = \arctan\tfrac13 \approx 0.32\) (first quadrant, real part positive): \(x_p \approx 0.316\cos(t - 0.32)\). At the natural frequency \(\omega = 2\): \(p(2i) = 2i\), so \(g = \tfrac12\), \(\phi = \pi/2\), and \(x_p = \tfrac12\cos(2t - \tfrac\pi2) = \tfrac12\sin2t\): the response lags the input by a quarter period. At \(\omega = 3\): \(p(3i) = -5 + 3i\), real part negative, so \(\phi = \pi - \arctan\tfrac35 \approx 2.60\) (second quadrant; \(\arctan\tfrac{3}{-5}\) alone would be wrong) and \(g = 1/\sqrt{34} \approx 0.17\).
Practical resonance: minimize \((4 - u)^2 + u\) with \(u = \omega^2\): \(-2(4 - u) + 1 = 0\) gives \(u = 7/2\), so \(\omega_r = \sqrt{7/2} \approx 1.87\), slightly below \(\omega_0\) (also from \(\omega_r^2 = \omega_0^2 - b^2/2m^2 = 4 - \tfrac12\)). There \(g = 1/\sqrt{\tfrac14 + \tfrac72} = 1/\sqrt{3.75} \approx 0.516\), a little more than the gain \(0.5\) at \(\omega_0\).
Watch out. The response is \(\cos(\omega t - \phi)\) with a lag; writing \(+\phi\) reverses cause and effect. And practical resonance happens below \(\omega_0\), at \(\omega_r\), not at \(\omega_0\) itself; the two coincide only when \(b = 0\). The gain formula assumes the input is exactly \(F_0\cos\omega t\): for \(2x'' + 2x' + 8x = 6\cos\omega t\) either divide through by \(2\) first (then \(F_0 = 3\)) or keep \(m = 2\), \(b = 2\), \(k = 8\) with \(F_0 = 6\), but not a mixture of the two.
Practice: problem 7 · Challenge: problems 36, 53, 54, 55, 64, 65, 66 (the practice groups are the last entries in the contents).
Operators, higher-order equations and real-valued solutions
Unit II: Complex numbers and second-order linear equations · Topic 11 of 22
Key idea
Writing \(D = d/dt\) turns a constant-coefficient equation into a polynomial \(p(D)\) acting on \(y\). The algebra of polynomials then does the work: \(p(D)e^{rt} = p(r)e^{rt}\), the kernel of \((D - a)^k\) is spanned by \(e^{at}, te^{at}, \dots, t^{k-1}e^{at}\), and an equation of any order is solved by factoring \(p\). Complex roots are converted to real cosines and sines at the end.
- Linearity \(p(D)(c_1y_1 + c_2y_2) = c_1p(D)y_1 + c_2p(D)y_2\); solutions of \(p(D)y = 0\) form a vector space of dimension \(n\).
- Factoring \(p(D) = a_n(D - r_1)(D - r_2)\cdots(D - r_n)\); the factors commute, so the kernel is the sum of the kernels of the factors.
- Kernel of \((D - a)^k\) \(\{e^{at}, te^{at}, \dots, t^{k-1}e^{at}\}\) (exponential shift turns it into \(D^ku = 0\), polynomials of degree \(\lt k\)). Example: \((D - 1)^2(te^t) = e^t(D + 1 - 1)^2t = e^tD^2t = 0\), while \((D - 1)^2(t^2e^t) = e^tD^2t^2 = 2e^t \ne 0\), so \(t^2e^t\) is not in the kernel but is the particular solution of \((D - 1)^2y = 2e^t\).
- ERF and resonance hold for any order: \(y_p = e^{at}/p(a)\), or \(t^se^{at}/p^{(s)}(a)\) when \(a\) is a root of multiplicity \(s\).
Find the \(n\) roots of \(p(r) = 0\) (with multiplicity) and give each root its share of \(n\) independent solutions:
- Real \(r\), multiplicity \(m\) \(e^{rt}, te^{rt}, \dots, t^{m-1}e^{rt}\).
- Complex pair \(a \pm i\omega\), multiplicity \(m\) \(t^je^{at}\cos\omega t\) and \(t^je^{at}\sin\omega t\) for \(j = 0, \dots, m - 1\).
Count: the total number of solutions (and arbitrary constants) must equal the order \(n\).
- \(r^3 = 1\) roots \(1\) and \(-\tfrac12 \pm i\tfrac{\sqrt3}{2}\): \(e^t\), \(e^{-t/2}\cos\tfrac{\sqrt3}{2}t\), \(e^{-t/2}\sin\tfrac{\sqrt3}{2}t\).
- \(r^4 = -1\) roots \(\tfrac{\pm1 \pm i}{\sqrt2}\) (from \(-1 = e^{i\pi}\): \(r_k = e^{i(\pi + 2\pi k)/4}\), angles \(45^\circ, 135^\circ, 225^\circ, 315^\circ\), each with \(\cos = \pm\tfrac{1}{\sqrt2}\), \(\sin = \pm\tfrac{1}{\sqrt2}\)): two conjugate pairs with real parts \(\pm\tfrac{1}{\sqrt2}\), giving \(e^{\pm t/\sqrt2}\cos\tfrac{t}{\sqrt2}\), \(e^{\pm t/\sqrt2}\sin\tfrac{t}{\sqrt2}\), four solutions for a fourth-order equation.
- Stability every solution decays iff all roots have negative real part.
How to work it
- Write \(p(r)\) and factor it (look for rational roots, difference of cubes, quadratic in \(r^2\), roots of unity).
- List the roots with multiplicities; check they total the order.
- Write the real solutions for each root; combine into \(y_h\).
- For an input, find \(y_p\) by ERF (with the resonance rule) or undetermined coefficients; add.
- Impose any initial conditions on the full solution.
- What the answer should look like. Exactly \(n\) real functions for an \(n\)th-order equation, each complex pair converted to \(e^{at}\cos\omega t\), \(e^{at}\sin\omega t\), each repeated root supplying \(e^{rt}, te^{rt}, \dots\); count the constants before you stop.
\((D^2 + 4)^2y = 0\). Roots \(\pm2i\), each of multiplicity 2: \(y = (c_1 + c_2t)\cos2t + (c_3 + c_4t)\sin2t\). Four constants for a fourth-order equation.
\((D - 1)^2(D + 2)y = 0\). \(y = (c_1 + c_2t)e^t + c_3e^{-2t}\).
\(y^{(3)} - y' = 0\). \(p(r) = r^3 - r = r(r - 1)(r + 1)\): \(y = c_1 + c_2e^t + c_3e^{-t}\). For the input \(e^{t}\) (a simple root), \(p'(r) = 3r^2 - 1\), \(p'(1) = 2\), so \(y_p = \tfrac12te^t\); check: \(y_p' = \tfrac12(t + 1)e^t\), \(y_p''' = \tfrac12(t + 3)e^t\), and \(y_p''' - y_p' = \tfrac12(t + 3 - t - 1)e^t = e^t\). For the input \(e^{2t}\), \(p(2) = 8 - 2 = 6\) and \(y_p = \tfrac16e^{2t}\). For the input \(1 = e^{0t}\), \(0\) is a root with \(p'(0) = -1\), so \(y_p = \dfrac{t}{-1} = -t\); check \(y''' - y' = 0 - (-1) = 1\).
Watch out. Every complex root must be paired with its conjugate and converted to a cosine and a sine; a final answer containing \(e^{i\omega t}\) is not a real solution. And a root of multiplicity \(m\) contributes \(m\) solutions, so recount the constants before moving on: \((D^2 + 4)^2y = 0\) is fourth order and needs four, so \(c_1\cos2t + c_2\sin2t\) alone is only half the answer; the other half is \(t\cos2t\) and \(t\sin2t\).
Practice: problem 8 · Challenge: problems 61, 62, 63 (the practice groups are the last entries in the contents).
Fourier series: formulas, symmetry and convergence
Unit III: Fourier series · Topic 12 of 22
Key idea
Any reasonable periodic function is a sum of sines and cosines whose frequencies are multiples of the fundamental. The coefficients are integrals (inner products with the basis functions), even and odd symmetry kill half of them, and at a jump the series converges to the midpoint. Knowing three standard series (square wave, sawtooth, triangle wave) covers most exam questions.
Here \(L\) is half the period, \(n\) the harmonic number, \(n\pi/L\) the frequency of the \(n\)th harmonic, and \(a_n\), \(b_n\) the cosine and sine coefficients; the \(a_n\) formula with \(n = 0\) gives \(a_0 = \frac1L\int_{-L}^{L}f\,dt\), twice the average value, which is why the series starts with \(a_0/2\).
For period \(2\pi\), \(L = \pi\) and the frequencies are \(n\). The constant term \(a_0/2\) is the average value of \(f\) over a period.
- Even \(f\) all \(b_n = 0\); \(a_n = \dfrac2L\displaystyle\int_0^L f\cos\dfrac{n\pi t}{L}\,dt\) (cosine series).
- Odd \(f\) all \(a_n = 0\); \(b_n = \dfrac2L\displaystyle\int_0^L f\sin\dfrac{n\pi t}{L}\,dt\) (sine series).
- Useful values \(\sin n\pi = 0\), \(\cos n\pi = (-1)^n\), \(\cos\tfrac{n\pi}{2} = 0\) for odd \(n\).
- Convergence for piecewise smooth \(f\), the series converges to \(f(t)\) where \(f\) is continuous and to the midpoint \(\tfrac12\big(f(t^-) + f(t^+)\big)\) at a jump. Sketch the periodic extension with dots at the midpoints of the jumps.
- Square wave \(\operatorname{sq}(t) = \pm1\) on \((0, \pi)\), \((-\pi, 0)\): \(\dfrac4\pi\displaystyle\sum_{n\ \text{odd}}\frac{\sin nt}{n}\).
- Sawtooth \(f(t) = t\) on \((-\pi, \pi)\): \(2\displaystyle\sum_{n=1}^\infty\frac{(-1)^{n+1}}{n}\sin nt\).
- Triangle wave \(f(t) = |t|\) on \([-\pi, \pi]\): \(\dfrac\pi2 - \dfrac4\pi\displaystyle\sum_{n\ \text{odd}}\frac{\cos nt}{n^2}\).
- Parseval (period \(2\pi\)) \(\dfrac1\pi\displaystyle\int_{-\pi}^{\pi}f^2\,dt = \dfrac{a_0^2}{2} + \sum_{n\ge1}(a_n^2 + b_n^2)\): the energy equals the sum of the squared coefficients.
- Smoothness coefficients of a function with jumps decay like \(1/n\); of a continuous function with corners like \(1/n^2\).
How to work it
- Identify the period \(2L\) and sketch two or three periods of the periodic extension; mark the jumps.
- Check symmetry: even (cosines only), odd (sines only), or neither. Shifting \(f\) up or down by a constant only changes \(a_0\).
- Compute the surviving coefficients by integration by parts; evaluate \(\cos n\pi\) as \((-1)^n\) and simplify separately for even and odd \(n\).
- Write the series; state the value at the jumps (midpoints).
- Optional check: substitute a convenient \(t\) to get a numerical series identity, or use Parseval.
- What the answer should look like. A general formula for the coefficients (simplified separately for even and odd \(n\)), the series written out to three or four terms, and the value at each jump, e.g. "converges to \(0\) at \(t = \pm\pi\)". Coefficients decaying like \(1/n\) mean jumps; like \(1/n^2\), corners.
\(f\) is even, so \(b_n = 0\) and \(a_n = \dfrac2\pi\displaystyle\int_0^\pi t\cos nt\,dt\) (on \([0, \pi]\), \(|t| = t\)). First \(a_0 = \dfrac2\pi\displaystyle\int_0^\pi t\,dt = \dfrac2\pi\cdot\dfrac{\pi^2}{2} = \pi\), so the constant term is \(a_0/2 = \pi/2\), the average height of the triangle wave. For \(n \ge 1\), integrate by parts with \(u = t\), \(dv = \cos nt\,dt\), \(v = \dfrac{\sin nt}{n}\):
\[a_n = \frac2\pi\left[\frac{t\sin nt}{n}\right]_0^\pi - \frac2\pi\int_0^\pi\frac{\sin nt}{n}\,dt\] \[= 0 + \frac{2}{\pi n^2}\big[\cos nt\big]_0^\pi = \frac{2\big((-1)^n - 1\big)}{\pi n^2}\]which is \(0\) for even \(n\) and \(-\dfrac{4}{\pi n^2}\) for odd \(n\):
\[|t| = \frac\pi2 - \frac4\pi\left(\cos t + \frac{\cos3t}{9} + \frac{\cos5t}{25} + \cdots\right).\]Since \(f\) is continuous, the series equals \(f\) everywhere. At \(t = 0\): \(0 = \dfrac\pi2 - \dfrac4\pi\displaystyle\sum_{n\ \text{odd}}\frac1{n^2}\), so \(1 + \tfrac19 + \tfrac1{25} + \cdots = \dfrac{\pi^2}{8}\).
The square wave. \(\operatorname{sq}(t)\) is odd, so \(a_n = 0\) and \(b_n = \dfrac2\pi\displaystyle\int_0^\pi 1\cdot\sin nt\,dt = \dfrac2\pi\left[-\dfrac{\cos nt}{n}\right]_0^\pi = \dfrac{2(1 - (-1)^n)}{n\pi}\), which is \(\dfrac{4}{n\pi}\) for odd \(n\) and \(0\) for even \(n\): the series \(\dfrac4\pi\sum_{n\ \text{odd}}\dfrac{\sin nt}{n}\) quoted above. At \(t = \pi/2\) it gives \(1 = \dfrac4\pi\left(1 - \tfrac13 + \tfrac15 - \cdots\right)\), Leibniz's series for \(\pi/4\).
The sawtooth, for contrast. \(f(t) = t\) on \((-\pi, \pi)\) is odd, so \(a_n = 0\) and \(b_n = \dfrac2\pi\displaystyle\int_0^\pi t\sin nt\,dt\). By parts with \(v = -\dfrac{\cos nt}{n}\): \(b_n = \dfrac2\pi\left[-\dfrac{t\cos nt}{n}\right]_0^\pi + \dfrac2\pi\displaystyle\int_0^\pi\frac{\cos nt}{n}\,dt = \dfrac2\pi\cdot\dfrac{-\pi(-1)^n}{n} + 0 = \dfrac{2(-1)^{n+1}}{n}\). The boundary term survives here because \(\cos n\pi \ne 0\), which is why these coefficients decay only like \(1/n\): the periodic extension jumps at \(t = \pm\pi\), where the series converges to the midpoint \(0\).
Watch out. \(L\) is half the period, and the constant term is \(a_0/2\) (with this convention for \(a_0\)). Integrating over \([0, 2L]\) instead of \([-L, L]\) is fine for a general function but destroys the even/odd shortcut. A sign slip to watch: \(\cos n\pi = (-1)^n\), so \(1 - \cos n\pi\) is \(2\) for odd \(n\) and \(0\) for even \(n\); getting these the wrong way round reverses which harmonics appear.
Practice: problems 13, 14 · Challenge: problems 67, 68, 69, 70, 85, 86 (the practice groups are the last entries in the contents).
Periodic solutions of linear ODEs by Fourier series
Unit III: Fourier series · Topic 13 of 22
Key idea
A linear ODE driven by a periodic input has a periodic (steady-state) response, and by superposition it is found one harmonic at a time: each term of the input’s Fourier series produces a term of the response, scaled by the gain at that frequency. Resonance occurs when one of the input’s harmonics matches the natural frequency; near-resonance shows up as one term of the response being far larger than the others.
For \(x'' + \omega_0^2x = f(t)\) with \(f = \dfrac{a_0}{2} + \sum\big(a_n\cos\omega_nt + b_n\sin\omega_nt\big)\), the response to each term is divided by \(p(i\omega_n) = \omega_0^2 - \omega_n^2\):
\[x_p(t) = \frac{a_0}{2\omega_0^2} + \sum_{n=1}^\infty\frac{a_n\cos\omega_nt + b_n\sin\omega_nt}{\omega_0^2 - \omega_n^2}\] \[\omega_n = \frac{n\pi}{L}.\]With damping, \(p(D)x = f\) gives \(x_p = \displaystyle\sum\frac{\text{term}_n\text{ delayed by }\phi_n}{|p(i\omega_n)|}\): each harmonic is multiplied by its gain and shifted by its phase lag. This is the steady-periodic solution, what remains after the transient \(x_h\) has decayed.
The response has the same period as the input (never a longer one), and it only contains the harmonics that the input contains.
- Pure resonance (undamped) if \(\omega_n = \omega_0\) for some \(n\) whose coefficient is nonzero: that term’s response grows like \(t\sin\omega_0t\); the formula above has a zero denominator and does not apply to it.
- No resonance despite matching range if the input lacks that harmonic: a square wave has only odd harmonics, so \(x'' + 4x = \operatorname{sq}(t)\) has no resonance (\(\omega_0 = 2\) is even).
- Near-resonance \(\omega_n \approx \omega_0\) makes \(\omega_0^2 - \omega_n^2\) small; that single term dominates the response and the output looks almost sinusoidal at that frequency, with amplitude far above the input’s.
- Which frequency compare \(\omega_0\) with the list \(\omega_n = n\pi/L\) and pick the closest with a nonzero coefficient.
How to work it
- Find the Fourier series of the input (or quote a standard one), noting which harmonics appear.
- Compute \(p(i\omega_n)\) for the general harmonic; for \(x'' + \omega_0^2x\) it is \(\omega_0^2 - \omega_n^2\).
- Divide each term by \(p(i\omega_n)\) (and include the phase lag if there is damping). Write the response as a series.
- Check the denominators: a zero means resonance (treat that term separately); a small one means near-resonance, name the frequency responsible.
- What the answer should look like. A series for \(x_p\) with the same harmonics as the input and the first few terms written out numerically, a verdict ("no resonance", "resonance at \(n = 3\)", "near-resonance at frequency \(\pi\)"), and the dominant term identified by comparing coefficient sizes.
\(\operatorname{sq}(t) = \dfrac4\pi\displaystyle\sum_{n\ \text{odd}}\frac{\sin nt}{n}\), harmonics \(\omega_n = n\) for odd \(n\) only.
\(\omega_0 = 2\). Each \(\sin nt\) is divided by \(4 - n^2\):
\[x_p = \frac4\pi\sum_{n\ \text{odd}}\frac{\sin nt}{n(4 - n^2)}\] \[= \frac4\pi\left(\frac{\sin t}{3} - \frac{\sin3t}{15} - \frac{\sin5t}{105} - \cdots\right).\]Numerically the coefficients are \(0.424,\ -0.028,\ -0.002, \dots\): the input's harmonics shrink like \(1/n\), the response's like \(1/n^3\), so the output is far smoother than the square wave that drives it. The minus signs from \(n = 3\) on come from \(4 - n^2 \lt 0\): harmonics above the natural frequency respond out of phase.
No denominator vanishes because \(n = 2\) is not an odd harmonic: no resonance. The \(n = 1\) term dominates mildly.
With damping. \(x'' + x' + 4x = \operatorname{sq}(t)\): each harmonic \(\dfrac{4}{n\pi}\sin nt\) is multiplied by the gain \(1/|p(in)|\) and delayed by \(\phi_n = \arg p(in)\), with \(p(in) = 4 - n^2 + in\). For \(n = 1\): \(p(i) = 3 + i\), gain \(1/\sqrt{10}\), \(\phi_1 \approx 0.32\), giving \(\approx 0.40\sin(t - 0.32)\). For \(n = 3\): \(p(3i) = -5 + 3i\), gain \(1/\sqrt{34}\), \(\phi_3 = \pi - \arctan\tfrac35 \approx 2.60\), giving \(\approx 0.07\sin(3t - 2.60)\). The response is dominated by its first harmonic, and no term can blow up because \(|p(in)| \ge n \gt 0\).
\(\omega_0 = 3\). Now the \(n = 3\) term has denominator \(9 - 9 = 0\): the input’s third harmonic \(\dfrac{4}{3\pi}\sin3t\) resonates, and its response is \(\dfrac{4}{3\pi}\cdot\dfrac{-t\cos3t}{6}\) (ERF with \(p'(3i) = 6i\)), growing without bound. The other harmonics give the usual bounded terms \(\dfrac4\pi\dfrac{\sin nt}{n(9 - n^2)}\).
Watch out. Resonance requires the natural frequency to equal a harmonic that is actually present with a nonzero coefficient; "\(\omega_0\) is in the right range" is not enough. And the response to \(\sin\omega_nt\) in an undamped system is \(\sin\omega_nt/(\omega_0^2 - \omega_n^2)\), with the sign flipping for harmonics above \(\omega_0\). Finally, match the frequencies, not the indices: for a function of period \(2L\) the \(n\)th harmonic has frequency \(n\pi/L\), so with \(L = 1\) the system \(x'' + 10x\) is near-resonant with \(n = 1\) (frequency \(\pi \approx 3.14\) against \(\omega_0 = \sqrt{10} \approx 3.16\)), not with \(n = 3\).
Practice: problem 13 · Challenge: problems 70, 71, 72, 86 (the practice groups are the last entries in the contents).
The Laplace transform: definition, table and rules
Unit IV: Delta functions, convolution and the Laplace transform · Topic 14 of 22
Key idea
The Laplace transform converts a function of time into a function of a complex variable \(s\), turning differentiation into multiplication by \(s\). Initial value problems become algebra, inputs with jumps and impulses are handled as easily as smooth ones, and the transfer function \(1/p(s)\) encodes the whole behaviour of a linear system. Everything rests on a short table and a handful of rules.
- \(1\) \(\dfrac1s\) \(t^n\) \(\dfrac{n!}{s^{n+1}}\) \(e^{at}\) \(\dfrac{1}{s - a}\) (for \(s \gt a\))
- \(\cos\omega t\) \(\dfrac{s}{s^2 + \omega^2}\) \(\sin\omega t\) \(\dfrac{\omega}{s^2 + \omega^2}\)
- \(e^{at}\cos\omega t\) \(\dfrac{s - a}{(s - a)^2 + \omega^2}\) \(e^{at}\sin\omega t\) \(\dfrac{\omega}{(s - a)^2 + \omega^2}\)
- \(t^ne^{at}\) \(\dfrac{n!}{(s - a)^{n+1}}\) \(t\sin\omega t\) \(\dfrac{2\omega s}{(s^2 + \omega^2)^2}\)
- \(u(t - a)\) \(\dfrac{e^{-as}}{s}\) \(\delta(t - a)\) \(e^{-as}\)
Deriving an entry from the definition: \(\mathcal{L}\{e^{at}\} = \displaystyle\int_0^\infty e^{-(s - a)t}\,dt = \frac{1}{s - a}\) for \(s \gt a\); the trigonometric entries follow by writing \(\cos\), \(\sin\) in terms of \(e^{\pm i\omega t}\). The entry \(t^ne^{at}\) is the \(s\)-shift applied to \(n!/s^{n+1}\): e.g. \(\mathcal{L}\{te^{3t}\} = \dfrac{1}{(s - 3)^2}\), and reading it backwards, \(\mathcal{L}^{-1}\left\{\dfrac{5}{(s + 1)^2}\right\} = 5te^{-t}\).
Forward example: \(\mathcal{L}\{u(t - 2)(t - 2)^2\} = e^{-2s}\cdot\dfrac{2}{s^3}\); the function is \(t^2\) delayed by \(2\) and switched on at \(2\), and \(F(s) = 2/s^3\) is the transform of the undelayed \(t^2\).
\[\mathcal{L}\{tf(t)\} = -F'(s)\] \[\mathcal{L}\left\{\int_0^tf\right\} = \frac{F(s)}{s}\] \[\mathcal{L}\{f * g\} = F(s)G(s)\]\(\mathcal{L}\{fg\} \ne FG\); products of functions do not transform simply. Only convolutions do.
How to work it
- Write \(\int_0^\infty e^{-st}f(t)\,dt\); if \(f\) contains sines or cosines, replace them by complex exponentials first.
- Integrate each exponential: \(\int_0^\infty e^{-(s - a)t}\,dt = 1/(s - a)\), valid when \(\operatorname{Re}(s - a) \gt 0\).
- Recombine over a common denominator and simplify; the result must be real for real \(s\).
- State the domain of \(s\) for which the integral converges.
- What the answer should look like. A real rational function of \(s\) (no \(i\) left over), together with its region of validity such as \(s \gt a\); for an inverse transform, a function of \(t\) with every \(e^{-as}\) turned into a shifted, switched-on term.
for \(s \gt 0\). The same two fractions added instead of subtracted (and halved) give \(\mathcal{L}\{\cos\omega t\} = \dfrac{s}{s^2 + \omega^2}\).
From the definition, with a polynomial. \(\mathcal{L}\{t\} = \displaystyle\int_0^\infty te^{-st}\,dt\). By parts with \(u = t\), \(dv = e^{-st}\,dt\): \(\left[-\dfrac{te^{-st}}{s}\right]_0^\infty + \dfrac1s\displaystyle\int_0^\infty e^{-st}\,dt = 0 + \dfrac1s\cdot\dfrac1s = \dfrac{1}{s^2}\) for \(s \gt 0\) (the boundary term vanishes because \(e^{-st}\) beats \(t\) as \(t \to \infty\)). Repeating gives \(\mathcal{L}\{t^n\} = \dfrac{n}{s}\mathcal{L}\{t^{n-1}\} = \dfrac{n!}{s^{n+1}}\).
Using the rules. \(\mathcal{L}\{e^{-2t}\sin3t\}\): shift \(s \to s + 2\) in \(\dfrac{3}{s^2 + 9}\) to get \(\dfrac{3}{(s + 2)^2 + 9}\). \(\mathcal{L}\{t\cos t\} = -\dfrac{d}{ds}\dfrac{s}{s^2 + 1} = -\dfrac{(s^2 + 1) - s\cdot 2s}{(s^2 + 1)^2} = \dfrac{s^2 - 1}{(s^2 + 1)^2}\). \(\mathcal{L}\{t^2e^{3t}\} = \dfrac{2!}{(s - 3)^3}\).
Going backwards. \(\mathcal{L}^{-1}\left\{\dfrac{s + 3}{s^2 + 4s + 13}\right\}\): the denominator has complex roots, so complete the square, \(s^2 + 4s + 13 = (s + 2)^2 + 9\), and write the numerator in terms of \(s + 2\): \(s + 3 = (s + 2) + 1\). Then
\[\frac{s + 3}{(s + 2)^2 + 9} = \frac{s + 2}{(s + 2)^2 + 9} + \frac13\cdot\frac{3}{(s + 2)^2 + 9}\] \[\Longrightarrow\ f(t) = e^{-2t}\cos3t + \tfrac13e^{-2t}\sin3t.\]Each piece is a table entry with \(s\) replaced by \(s + 2\), which the \(s\)-shift rule converts into the factor \(e^{-2t}\). Check \(f(0) = 1\) against the initial value theorem: \(sF(s) \to 1\) as \(s \to \infty\).
Watch out. The \(s\)-shift replaces \(s\) by \(s - a\) when the function is multiplied by \(e^{at}\) (so \(e^{-2t}\) means \(s + 2\)), and the derivative rule carries the initial values \(-f(0)\), \(-f'(0)\); dropping them is only legal for rest initial conditions. Also \(\mathcal{L}\{t^2\} = \dfrac{2}{s^3}\), not \(\dfrac{1}{s^3}\): the entry \(\dfrac{n!}{s^{n+1}}\) has a factorial, which matters for every polynomial input.
Practice: problem 15 · Challenge: problems 73, 74, 81 (the practice groups are the last entries in the contents).
Solving initial value problems with the Laplace transform
Unit IV: Delta functions, convolution and the Laplace transform · Topic 15 of 22
Key idea
Transform the whole equation, and the initial conditions are built in from the first line. What remains is algebra: solve for \(Y(s)\), split it into table entries by partial fractions, and read off \(y(t)\). The transform of the solution always has the shape \(Y = \dfrac{F(s) + (\text{initial-condition polynomial})}{p(s)}\), input response plus free response.
For \(ay'' + by' + cy = f(t)\), \(y(0) = y_0\), \(y'(0) = v_0\):
\[a\big(s^2Y - sy_0 - v_0\big) + b\big(sY - y_0\big) + cY = F(s)\] \[Y(s) = \frac{F(s)}{p(s)} + \frac{(as + b)y_0 + av_0}{p(s)}\] \[p(s) = as^2 + bs + c.\]Here \(Y = \mathcal{L}\{y\}\), \(F = \mathcal{L}\{f\}\), \(y_0\) and \(v_0\) are the initial position and velocity, and the polynomial \((as + b)y_0 + av_0\) collects every term that the derivative rules produced from the initial conditions.
- Input response \(F(s)/p(s)\): what rest initial conditions would give.
- Free response the second fraction: the homogeneous solution fitting the initial data.
- Invert write \(Y\) as a sum of table entries (partial fractions, completing the square) and transform back term by term.
The denominator \(p(s)\) is the characteristic polynomial: its roots are the exponents of the transient, and this is why poles in the left half-plane mean decay.
- Distinct linear factors \(\dfrac{N(s)}{(s - a)(s - b)} = \dfrac{A}{s - a} + \dfrac{B}{s - b}\), with \(A = \dfrac{N(a)}{a - b}\) by cover-up.
- Repeated factor \(\dfrac{A}{s - a} + \dfrac{B}{(s - a)^2}\), inverse \(Ae^{at} + Bte^{at}\).
- Irreducible quadratic complete the square: \(\dfrac{As + B}{(s - a)^2 + \omega^2} = A\dfrac{s - a}{(s-a)^2 + \omega^2} + \dfrac{B + Aa}{\omega}\dfrac{\omega}{(s - a)^2 + \omega^2}\), inverse \(e^{at}\big(A\cos\omega t + \tfrac{B + Aa}{\omega}\sin\omega t\big)\).
- Two quadratics \(\dfrac{s}{(s^2 + 1)(s^2 + 4)} = \dfrac13\left(\dfrac{s}{s^2 + 1} - \dfrac{s}{s^2 + 4}\right)\): treat \(s^2\) as the variable, \(\dfrac{1}{(v + 1)(v + 4)} = \dfrac13\left(\dfrac{1}{v + 1} - \dfrac{1}{v + 4}\right)\), then restore the \(s\) in the numerator. Inverse: \(\tfrac13(\cos t - \cos2t)\), the beat pattern of \(y'' + 4y = \cos t\) from rest.
- Check the inverse must satisfy the initial conditions; \(y(0)\) is the easiest to verify.
How to work it
- Transform both sides using linearity and the derivative rules, inserting \(y(0)\) and \(y'(0)\) immediately.
- Collect the \(Y\) terms: \(p(s)Y = F(s) + (\text{polynomial from the initial conditions})\). Solve for \(Y\).
- Factor the denominator and decompose into partial fractions; complete the square for complex roots.
- Invert each piece with the table and the shift rules.
- Check \(y(0)\) (and \(y'(0)\) if quick) against the given data.
- What the answer should look like. \(Y(s)\) as a sum of table entries with numerical coefficients, then \(y(t)\) with no arbitrary constants (the initial conditions are already in it) whose exponents and frequencies are the roots of \(p(s)\) plus those of the input.
The input \(e^{-t}\) is resonant (\(-1\) is a root of \(p\)), which is why a \(t\) appears, and the initial conditions happened to cancel the \(e^{-2t}\) transient entirely. Check: \(y(0) = 0\); \(y' = (1 - t)e^{-t}\), \(y'(0) = 1\); and \(y'' + 3y' + 2y = (t - 2)e^{-t} + 3(1 - t)e^{-t} + 2te^{-t} = e^{-t}\).
Input plus initial conditions. \(y'' + y = 1\), \(y(0) = 2\), \(y'(0) = 0\): \((s^2Y - 2s - 0) + Y = \dfrac1s\), so \(Y = \dfrac{1}{s(s^2 + 1)} + \dfrac{2s}{s^2 + 1}\). The first fraction is the input response, \(\dfrac1s - \dfrac{s}{s^2 + 1}\) (cover-up at \(s = 0\) gives the \(\dfrac1s\); the rest follows by subtraction); the second is the free response. Adding, \(Y = \dfrac1s + \dfrac{s}{s^2 + 1}\), so \(y = 1 + \cos t\). Check: \(y(0) = 2\), \(y'(0) = 0\), \(y'' + y = -\cos t + 1 + \cos t = 1\).
Complex roots. \(y'' + 2y' + 5y = 0\), \(y(0) = 1\), \(y'(0) = 1\): \((s^2Y - s - 1) + 2(sY - 1) + 5Y = 0\), so \((s^2 + 2s + 5)Y = s + 3\) and
\[Y = \frac{s + 3}{(s + 1)^2 + 4} = \frac{s + 1}{(s + 1)^2 + 4} + \frac{2}{(s + 1)^2 + 4}\] \[\Longrightarrow\ y = e^{-t}\cos2t + e^{-t}\sin2t\]the same answer the characteristic-equation method gives on the second-order tab, with the initial conditions absorbed automatically. The numerator \(s + 3\) is \((s + 1) + 2\): split it so that one piece matches the cosine entry and the other the sine entry.
Watch out. The derivative rule is \(s^2Y - sy(0) - y'(0)\): the \(y(0)\) term carries a factor \(s\) and the \(y'(0)\) term does not. Swapping them, or forgetting them when the initial conditions are nonzero, produces a plausible-looking wrong answer. A second common slip is in the irreducible-quadratic case: \(\dfrac{s}{(s + 1)^2 + 4}\) is not \(e^{-t}\cos2t\); first write \(s = (s + 1) - 1\), which gives \(e^{-t}\cos2t - \tfrac12e^{-t}\sin2t\). The numerator must be expressed in the same shifted variable as the denominator.
Practice: problems 16, 17 · Challenge: problems 75, 76, 77, 79, 82, 83 (the practice groups are the last entries in the contents).
Unit step, delta functions and the impulse response
Unit IV: Delta functions, convolution and the Laplace transform · Topic 16 of 22
Key idea
Real inputs switch on, switch off and kick. The unit step \(u(t - a)\) switches a function on at time \(a\), the delta function \(\delta(t - a)\) delivers a unit impulse at time \(a\), and the Laplace transform handles both through the factor \(e^{-as}\). The response of a system to \(\delta(t)\) from rest is its unit impulse response, the single most informative function about the system.
- Piecewise to u-form a function equal to \(f_1\) for \(t \lt a\) and \(f_2\) for \(t \ge a\) is \(f_1 + \big(f_2 - f_1\big)u(t - a)\). A pulse equal to \(1\) on \(1 \le t \lt 2\) and \(0\) elsewhere is \(u(t - 1) - u(t - 2)\), with transform \(\dfrac{e^{-s} - e^{-2s}}{s}\); two switches, two terms.
- u-form to cases for \(t \lt a\) delete every term containing \(u(t - a)\); for \(t \ge a\) replace \(u(t - a)\) by 1.
- Transforming \(u(t - a)g(t)\) rewrite \(g(t) = g\big((t - a) + a\big)\) as a function of \(t - a\) before applying the rule.
- Delayed inverse \(\mathcal{L}^{-1}\left\{\dfrac{e^{-2s}}{s^2 + 1}\right\} = u(t - 2)\sin(t - 2)\): find the inverse without the exponential, then shift the argument and switch on.
- Physical meaning in \(mx'' + bx' + kx = F_0\delta(t - a)\), the impulse \(F_0\) at time \(a\) leaves the position continuous and makes the velocity jump by \(F_0/m\).
- Unit impulse response \(w(t)\) the solution of \(p(D)w = \delta(t)\) with rest initial conditions (\(w = 0\) for \(t \lt 0\)). Equivalently, for \(mx'' + bx' + kx\), the solution of the homogeneous equation with \(w(0) = 0\), \(w'(0) = 1/m\). Its transform is \(W(s) = 1/p(s)\).
- Examples \(x' + kx\): \(w = e^{-kt}\). \(x'' + \omega_0^2x\): \(w = \dfrac{\sin\omega_0t}{\omega_0}\). \(x'' + 2x' + 5x\): \(w = \tfrac12e^{-t}\sin2t\).
- Unit step response the response to \(u(t)\) is \(\int_0^tw\), since \(u = \int\delta\). For \(x'' + 4x\): \(\int_0^t\tfrac12\sin2u\,du = \tfrac14(1 - \cos2t)\), which starts at rest and oscillates about the new equilibrium \(\tfrac14 = 1/k\).
How to work it
- Write the input in u-form (one term per switch) or as \(F_0\delta(t - a)\).
- Transform: each \(u(t - a)g(t - a)\) gives \(e^{-as}G(s)\); each \(\delta(t - a)\) gives \(e^{-as}\). Include the initial conditions through the derivative rules.
- Solve for \(X(s)\); group terms by their exponential factors \(e^{-as}\).
- Invert each group without its exponential, then shift and switch on: \(e^{-as}H(s) \to u(t - a)h(t - a)\).
- Write the answer in u-form and in cases form; check continuity of \(x\) at \(t = a\) (the velocity, not the position, jumps for an impulse).
- What the answer should look like. One term per switch, each of the form \(u(t - a)h(t - a)\) with the same \(a\) in both places, then the equivalent cases form with the pieces evaluated on \(t \lt a\) and \(t \ge a\); for an impulse, a continuous \(x\) whose slope jumps by \(F_0/m\) at \(t = a\).
Inverse with a delay. \(f = \mathcal{L}^{-1}\left\{\dfrac{e^{-2s}}{s^2 + 1}\right\} = u(t - 2)\sin(t - 2)\); in cases form \(f = 0\) for \(t \lt 2\) and \(f = \sin(t - 2)\) for \(t \ge 2\): a sine that starts from zero at \(t = 2\).
Piecewise input to u-form. \(f(t) = t\) for \(0 \le t \lt 1\) and \(f(t) = 1\) for \(t \ge 1\). One switch at \(a = 1\), from \(f_1 = t\) to \(f_2 = 1\): \(f = t + (1 - t)u(t - 1) = t - (t - 1)u(t - 1)\). The second term is already of the form \(u(t - 1)g(t - 1)\) with \(g(t) = t\), so \(F(s) = \dfrac{1}{s^2} - \dfrac{e^{-s}}{s^2}\). Had the switch been to \(f_2 = t^2\), you would write \(t^2 - t = (t - 1)^2 + (t - 1)\) before transforming.
Step input. \(x' + x = u(t - 1)\), \(x(0) = 0\) (a unit input switched on at \(t = 1\)): \(sX + X = \dfrac{e^{-s}}{s}\), so \(X = e^{-s}\cdot\dfrac{1}{s(s + 1)} = e^{-s}\left(\dfrac1s - \dfrac{1}{s + 1}\right)\). Invert without the exponential, \(1 - e^{-t}\), then shift and switch on: \(x = u(t - 1)\big(1 - e^{-(t - 1)}\big)\). Cases: \(x = 0\) for \(t \lt 1\), then the usual first-order approach to the steady state \(1\), starting from \(0\) at \(t = 1\) instead of at \(t = 0\).
Impulse. \(x'' + 4x = \delta(t - 1)\), \(x(0) = x'(0) = 0\):
\[(s^2 + 4)X = e^{-s}\] \[\Longrightarrow\ X = e^{-s}\cdot\frac{1}{s^2 + 4} = e^{-s}\cdot\frac12\cdot\frac{2}{s^2 + 4}\] \[\Longrightarrow\ x(t) = \tfrac12u(t - 1)\sin2(t - 1).\]Cases: \(x = 0\) for \(t \lt 1\), \(x = \tfrac12\sin2(t - 1)\) for \(t \ge 1\). The position is continuous at \(t = 1\) (both sides give 0) while the velocity jumps from \(0\) to \(\cos0 = 1\), the impulse divided by the mass. The function \(\tfrac12\sin2t\) is the unit impulse response of this system, here delayed by 1.
Watch out. The shift rule needs the same \(a\) in \(u(t - a)\) and in the argument \(f(t - a)\). Inverting \(e^{-2s}F(s)\) as \(u(t - 2)f(t)\) is wrong; it must be \(u(t - 2)f(t - 2)\). And \(\delta\) is not a function with values; it only makes sense under an integral or a Laplace transform. When a switched-on piece is written as a function of \(t\), convert it to a function of \(t - a\) before transforming: \(u(t - 1)\,t = u(t - 1)\big[(t - 1) + 1\big]\) has transform \(e^{-s}\left(\dfrac{1}{s^2} + \dfrac1s\right)\), not \(\dfrac{e^{-s}}{s^2}\).
Practice: problems 16, 18 · Challenge: problems 73, 76, 77, 84 (the practice groups are the last entries in the contents).
Convolution, the weight function and the transfer function
Unit IV: Delta functions, convolution and the Laplace transform · Topic 17 of 22
Key idea
Once you know how a linear system responds to a single unit kick, you know how it responds to everything: any input is a continuous stream of kicks, and the response is the convolution of the input with the weight function \(w\) (the unit impulse response). In the \(s\)-domain this is just multiplication by the transfer function \(W(s) = 1/p(s)\), whose poles tell you decay rates, oscillation frequencies and resonance peaks.
For \(p(D)x = f(t)\) with rest initial conditions,
\[X(s) = \frac{F(s)}{p(s)} = W(s)F(s)\] \[\Longrightarrow\ x(t) = (w * f)(t) = \int_0^tw(t - \tau)f(\tau)\,d\tau\]\(w = \mathcal{L}^{-1}\{1/p(s)\}\) being the unit impulse response. The input at time \(\tau\), \(f(\tau)\,d\tau\), is a small impulse whose effect at time \(t\) has evolved for a time \(t - \tau\): \(w(t - \tau)f(\tau)\,d\tau\). Adding them up is the integral.
- First order \(x' + kx = f\): \(x = \displaystyle\int_0^te^{-k(t - \tau)}f(\tau)\,d\tau\), the formula from the models tab.
- Second order \(x'' + \omega_0^2x = f\): \(x = \displaystyle\frac{1}{\omega_0}\int_0^t\sin\omega_0(t - \tau)f(\tau)\,d\tau\).
- Properties \(f * g = g * f\), \(f * (g + h) = f * g + f * h\), \(f * \delta = f\). Example: \(t * t = \displaystyle\int_0^t\tau(t - \tau)\,d\tau = \frac{t^3}{2} - \frac{t^3}{3} = \frac{t^3}{6}\), and indeed \(\mathcal{L}\{t\}^2 = \dfrac{1}{s^4} = \mathcal{L}\left\{\dfrac{t^3}{6}\right\}\).
- Transfer function \(W(s) = \dfrac{1}{p(s)}\) (or \(\dfrac{q(s)}{p(s)}\) for more general systems); the output transform is \(W\) times the input transform.
- Poles the roots of \(p(s)\), i.e. the characteristic roots. Plot them in the complex plane.
- Stability all poles in the left half-plane means transients decay; the pole nearest the imaginary axis sets the slowest decay rate \(e^{(\operatorname{Re}s)t}\).
- Oscillation the imaginary part of a complex pole is the frequency of the transient oscillation (\(\omega_d\)).
- Frequency response the gain is \(g(\omega) = |W(i\omega)|\), the reciprocal of the distance from \(i\omega\) to the poles (multiplied together). Poles close to the imaginary axis produce sharp peaks in the frequency response curve near their imaginary parts: lightly damped systems resonate strongly.
- Phase lag \(\phi(\omega) = -\arg W(i\omega) = \arg p(i\omega)\).
How to work it
- Find \(w(t) = \mathcal{L}^{-1}\{1/p(s)\}\): solve the homogeneous equation with \(w(0) = 0\), \(w'(0) = 1/m\) for second order, or invert directly.
- Write \(x(t) = \int_0^tw(t - \tau)f(\tau)\,d\tau\); the integration variable is \(\tau\) and \(t\) is a constant inside.
- Evaluate the integral (or leave it as the answer when \(f\) is unspecified).
- If the initial conditions are not rest, add the homogeneous solution that fits them; the convolution part starts from rest.
- What the answer should look like. Either an explicit function of \(t\) (when \(f\) is given) or the formula \(\int_0^tw(t - \tau)f(\tau)\,d\tau\) with \(w\) written out, e.g. \(\tfrac12\int_0^t\sin2(t - \tau)f(\tau)\,d\tau\); a pole diagram answer names the poles and reads off decay rate, oscillation frequency and the frequency of maximum gain.
Convolution. \(W(s) = \dfrac{1}{s + 2}\), \(w(t) = e^{-2t}\), so with \(x(0) = 0\)
\[x(t) = \int_0^te^{-2(t - \tau)}f(\tau)\,d\tau.\] \[\text{For } f \equiv 1:\ x = e^{-2t}\left[\frac{e^{2\tau}}{2}\right]_0^t = \frac{1 - e^{-2t}}{2}\]which indeed solves \(x' + 2x = 1\), \(x(0) = 0\). For \(f = e^{-t}\): \(x = \displaystyle\int_0^te^{-2(t - \tau)}e^{-\tau}\,d\tau = e^{-2t}\int_0^te^{\tau}\,d\tau = e^{-2t}(e^t - 1) = e^{-t} - e^{-2t}\); check \(x' + 2x = (-e^{-t} + 2e^{-2t}) + (2e^{-t} - 2e^{-2t}) = e^{-t}\). Inside the integral \(t\) is a constant, so \(e^{-2t}\) comes out and only \(e^{2\tau}e^{-\tau} = e^{\tau}\) is integrated. The weight function satisfies \(w' + 2w = 0\), \(w(0) = 1\), equivalently \(w' + 2w = \delta(t)\) from rest.
Pole diagram. \(p(s) = s^2 + 2s + 5\) has poles \(-1 \pm 2i\). Transients decay like \(e^{-t}\) and oscillate with frequency 2; \(w(t) = \tfrac12e^{-t}\sin2t\). The gain \(g(\omega) = 1/|p(i\omega)| = 1/\sqrt{(5 - \omega^2)^2 + 4\omega^2}\) peaks where \(i\omega\) is closest to the poles, near \(\omega = \sqrt3\) (practical resonance \(\omega_r^2 = 5 - 2\)), with peak gain \(1/\sqrt{4 + 12} = \tfrac14\) versus \(\tfrac15\) at \(\omega = 0\).
Watch out. \(w\) is the response to \(\delta\), not to the unit step (that response is \(\int_0^tw\)). And the convolution formula assumes rest initial conditions; nonzero initial data contribute a separate homogeneous term. For \(x' + 2x = 1\) with \(x(0) = 3\), for instance, the answer is \(\tfrac12(1 - e^{-2t}) + 3e^{-2t}\): convolution part plus the homogeneous solution through the initial value. Also keep the integration variable straight: inside \(\int_0^t w(t - \tau)f(\tau)\,d\tau\) you integrate in \(\tau\), and \(t\) only becomes a variable again after the integral is evaluated.
Practice: problems 5, 18, 19 · Challenge: problems 78, 79, 80, 84 (the practice groups are the last entries in the contents).
First-order linear systems: the eigenvalue method
Unit V: Linear systems of differential equations · Topic 18 of 22
Key idea
A system \(\mathbf{x}' = A\mathbf{x}\) is solved by guessing \(\mathbf{x} = e^{\lambda t}\mathbf{v}\), which works exactly when \(\mathbf{v}\) is an eigenvector of \(A\) with eigenvalue \(\lambda\). Real eigenvalues give exponential straight-line solutions, complex eigenvalues give spirals (take real and imaginary parts), and a repeated eigenvalue with one eigenvector needs a generalized eigenvector. The initial condition fixes the constants through a small linear system.
- Real distinct \(\lambda_1, \lambda_2\) \(\mathbf{x} = c_1e^{\lambda_1t}\mathbf{v}_1 + c_2e^{\lambda_2t}\mathbf{v}_2\).
- Complex \(\lambda = a \pm i\omega\) with eigenvector \(\mathbf{v} = \mathbf{p} + i\mathbf{q}\) for \(a + i\omega\): the real and imaginary parts of \(e^{\lambda t}\mathbf{v}\) are two real solutions, \[\mathbf{x}_1 = e^{at}(\mathbf{p}\cos\omega t - \mathbf{q}\sin\omega t)\] \[\mathbf{x}_2 = e^{at}(\mathbf{p}\sin\omega t + \mathbf{q}\cos\omega t).\] Only one of the conjugate pair is needed.
- Repeated \(\lambda\), one eigenvector \(\mathbf{v}\) second solution \(e^{\lambda t}(t\mathbf{v} + \mathbf{w})\) where \((A - \lambda I)\mathbf{w} = \mathbf{v}\) (generalized eigenvector). If \(A = \lambda I\), every vector is an eigenvector and \(\mathbf{x} = e^{\lambda t}\mathbf{c}\).
- Higher order to system \(y'' + py' + qy = 0\) with \(x_1 = y\), \(x_2 = y'\) becomes \(\mathbf{x}' = \begin{bmatrix} 0 & 1 \\ -q & -p \end{bmatrix}\mathbf{x}\) (companion matrix); its characteristic polynomial is \(\lambda^2 + p\lambda + q\), the same as the ODE’s.
- System to one equation solve the first equation for \(y\) and substitute into the second to get a second-order equation in \(x\) alone (elimination).
- Initial condition \(\mathbf{x}(0) = c_1\mathbf{v}_1 + c_2\mathbf{v}_2\): solve the \(2\times 2\) system for \(c_1, c_2\).
- Eigenvector shortcut for \(A - \lambda I = \begin{bmatrix} \alpha & \beta \\ \gamma & \delta \end{bmatrix}\), an eigenvector is \((\beta, -\alpha)\) (or \((\delta, -\gamma)\)) when nonzero.
- Check differentiate one solution and multiply by \(A\); they must agree. For complex cases check at \(t = 0\): \(\mathbf{x}_1(0) = \mathbf{p}\), \(\mathbf{x}_1'(0) = a\mathbf{p} - \omega\mathbf{q}\) should equal \(A\mathbf{p}\).
How to work it
- Compute \(\operatorname{tr}A\) and \(\det A\); solve \(\lambda^2 - (\operatorname{tr}A)\lambda + \det A = 0\).
- For each eigenvalue solve \((A - \lambda I)\mathbf{v} = \mathbf{0}\); one row suffices.
- Write the general solution for the case at hand (real, complex via real and imaginary parts, or repeated with a generalized eigenvector).
- Impose \(\mathbf{x}(0)\) and solve for the constants.
- Check one component of one solution in the original system.
- What the answer should look like. \(\mathbf{x}(t)\) as a combination of two real vector functions with two constants (or none, after an initial condition), e.g. \(c_1e^{3t}(1, 2) + c_2e^{-t}(1, -2)\); for complex eigenvalues, vectors whose entries are \(e^{at}\) times cosines and sines, with no \(i\) anywhere.
Real. \(\mathbf{x}' = \begin{bmatrix} 1 & 1 \\ 4 & 1 \end{bmatrix}\mathbf{x}\): \(\lambda^2 - 2\lambda - 3 = (\lambda - 3)(\lambda + 1)\). For \(\lambda = 3\), \(A - 3I = \begin{bmatrix} -2 & 1 \\ 4 & -2 \end{bmatrix}\); the first row says \(-2v_1 + v_2 = 0\), so \(v_2 = 2v_1\) and \(\mathbf{v}_1 = (1, 2)\) (the second row, \(4v_1 - 2v_2 = 0\), says the same thing, as it must). For \(\lambda = -1\), \(A + I = \begin{bmatrix} 2 & 1 \\ 4 & 2 \end{bmatrix}\), \(2v_1 + v_2 = 0\), \(\mathbf{v}_2 = (1, -2)\).
\[\mathbf{x} = c_1e^{3t}\begin{bmatrix} 1 \\ 2 \end{bmatrix} + c_2e^{-t}\begin{bmatrix} 1 \\ -2 \end{bmatrix}.\]With \(\mathbf{x}(0) = (3, 2)\): \(c_1 + c_2 = 3\) and \(2c_1 - 2c_2 = 2\), so \(c_1 = 2\), \(c_2 = 1\). As \(t \to \infty\) the \(e^{3t}\) term dominates and the trajectory becomes parallel to \((1, 2)\); as \(t \to -\infty\) it is parallel to \((1, -2)\): a saddle.
Complex. \(\mathbf{x}' = \begin{bmatrix} 1 & -1 \\ 1 & 1 \end{bmatrix}\mathbf{x}\): \(\lambda^2 - 2\lambda + 2 = 0\), \(\lambda = 1 \pm i\). For \(1 + i\): first row of \(A - \lambda I\) is \((-i, -1)\), so \(-iv_1 - v_2 = 0\) and \(\mathbf{v} = (1, -i) = \underbrace{(1, 0)}_{\mathbf{p}} + i\underbrace{(0, -1)}_{\mathbf{q}}\). Expand the complex solution: \(e^{(1 + i)t}\mathbf{v} = e^t(\cos t + i\sin t)(1, -i) = e^t\big[(\cos t, \sin t) + i(\sin t, -\cos t)\big]\), using \(-i(\cos t + i\sin t) = \sin t - i\cos t\). Its real and imaginary parts are two independent real solutions. Hence
\[\mathbf{x} = c_1e^t\begin{bmatrix} \cos t \\ \sin t \end{bmatrix} + c_2e^t\begin{bmatrix} \sin t \\ -\cos t \end{bmatrix}\]an outward spiral. Check the first solution: \(\mathbf{x}_1' = e^t(\cos t - \sin t,\ \sin t + \cos t)\) and \(A\mathbf{x}_1 = e^t(\cos t - \sin t,\ \cos t + \sin t)\).
Repeated. \(\mathbf{x}' = \begin{bmatrix} 2 & 1 \\ 0 & 2 \end{bmatrix}\mathbf{x}\): \(\lambda = 2\) twice, and \(A - 2I = \begin{bmatrix} 0 & 1 \\ 0 & 0 \end{bmatrix}\) has only the eigenvector \(\mathbf{v} = (1, 0)\). Solve \((A - 2I)\mathbf{w} = \mathbf{v}\): the first row says \(w_2 = 1\), so \(\mathbf{w} = (0, 1)\) works. Hence \(\mathbf{x} = c_1e^{2t}(1, 0) + c_2e^{2t}\big(t(1, 0) + (0, 1)\big) = e^{2t}(c_1 + c_2t,\ c_2)\). Check: \(x_2' = 2c_2e^{2t} = 2x_2\) and \(x_1' = e^{2t}(2c_1 + 2c_2t + c_2) = 2x_1 + x_2\).
From a second-order equation. \(y'' + 3y' + 2y = 0\) with \(x_1 = y\), \(x_2 = y'\) becomes \(\mathbf{x}' = \begin{bmatrix} 0 & 1 \\ -2 & -3 \end{bmatrix}\mathbf{x}\): \(\operatorname{tr} = -3\), \(\det = 2\), \(\lambda^2 + 3\lambda + 2 = 0\), \(\lambda = -1, -2\), the characteristic roots of the ODE, with eigenvectors \((1, \lambda) = (1, -1)\) and \((1, -2)\). The first component of \(c_1e^{-t}(1, -1) + c_2e^{-2t}(1, -2)\) is the familiar \(y = c_1e^{-t} + c_2e^{-2t}\), and the second is its derivative.
Watch out. For a complex eigenvalue you need the eigenvector of that same eigenvalue, and the real solutions are \(\operatorname{Re}\) and \(\operatorname{Im}\) of \(e^{\lambda t}\mathbf{v}\), not \(e^{at}\cos\omega t\) times a real vector. Writing \(c_1e^{\lambda t}\mathbf{v} + c_2e^{\bar\lambda t}\bar{\mathbf{v}}\) is correct but not a real-valued answer. And the characteristic equation is \(\lambda^2 - (\operatorname{tr}A)\lambda + \det A = 0\), with a minus on the trace: for \(A = \begin{bmatrix} 1 & 1 \\ 4 & 1 \end{bmatrix}\) it is \(\lambda^2 - 2\lambda - 3\), not \(\lambda^2 + 2\lambda - 3\).
Practice: problems 20, 21, 26 · Challenge: problems 83, 87, 88, 89, 92, 95, 97, 98, 99, 101, 103, 104, 105 (the practice groups are the last entries in the contents).
Matrix exponentials and fundamental matrices
Unit V: Linear systems of differential equations · Topic 19 of 22
Key idea
Just as \(x' = ax\) has solution \(e^{at}x_0\), the system \(\mathbf{x}' = A\mathbf{x}\) has solution \(e^{At}\mathbf{x}(0)\). The matrix exponential \(e^{At}\) is the fundamental matrix that equals \(I\) at \(t = 0\); it is computed from any pair of independent solutions, from an eigen-decomposition, or from the power series when \(A\) is nilpotent. It also gives the variation-of-parameters formula for forced systems.
A fundamental matrix \(\Phi(t) = [\mathbf{x}_1(t)\ \ \mathbf{x}_2(t)]\) has independent solutions as columns; \(\Phi' = A\Phi\) and the general solution is \(\mathbf{x} = \Phi(t)\mathbf{c}\).
\[e^{At} = \Phi(t)\Phi(0)^{-1}\] \[e^{A\cdot0} = I\] \[\mathbf{x}(t) = e^{At}\mathbf{x}(0).\] \[e^{At} = I + At + \frac{A^2t^2}{2!} + \cdots\] \[e^{At} = Pe^{Dt}P^{-1}\] \[= P\operatorname{diag}(e^{\lambda_1t}, e^{\lambda_2t})P^{-1} \ (A \text{ diagonalizable}).\]- Nilpotent if \(N^2 = 0\) then \(e^{Nt} = I + Nt\) exactly.
- Products \(e^{(A + B)t} = e^{At}e^{Bt}\) only when \(AB = BA\); e.g. \(A = \lambda I + N\) gives \(e^{At} = e^{\lambda t}(I + Nt)\).
- Inverse \((e^{At})^{-1} = e^{-At}\); \(\det e^{At} = e^{(\operatorname{tr}A)t}\). So \(e^{At}\) is always invertible, and running the system backwards from \(\mathbf{x}(t)\) to \(\mathbf{x}(0)\) is multiplication by \(e^{-At}\); for \(A = \begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix}\), \(e^{At}\) is a rotation and \(e^{-At}\) its transpose.
- Forced system \(\mathbf{x}' = A\mathbf{x} + \mathbf{f}(t)\): \(\mathbf{x} = e^{At}\mathbf{x}(0) + \displaystyle\int_0^te^{A(t - \tau)}\mathbf{f}(\tau)\,d\tau\).
- Companion matrix \(y'' + py' + qy = 0\) is \(\mathbf{x}' = \begin{bmatrix} 0 & 1 \\ -q & -p \end{bmatrix}\mathbf{x}\); eigenvalues = characteristic roots; an eigenvector for \(\lambda\) is \((1, \lambda)\). The matrix exponential’s first row gives \(y\) in terms of \(y(0), y'(0)\).
- Back again any \(2\times 2\) system can be reduced to a second-order equation for one component; its characteristic polynomial is \(\lambda^2 - (\operatorname{tr}A)\lambda + \det A\).
- Stability for both all eigenvalues with negative real part.
- A handy family \(A_a = \begin{bmatrix} a & 1 \\ 1 & a \end{bmatrix}\) has eigenvalues \(a \pm 1\) with eigenvectors \((1, 1)\), \((1, -1)\) for every \(a\); more generally \(\begin{bmatrix} a & b \\ b & a \end{bmatrix}\) has \(a \pm b\) with the same eigenvectors.
- Symmetric \(A\) orthogonal eigenvectors, so \(P^{-1} = P^T\) after normalizing.
How to work it
- Find eigenvalues and eigenvectors (or two independent solutions by any method).
- Either form \(P\), \(D\) and compute \(Pe^{Dt}P^{-1}\), or form \(\Phi(t)\) from the solutions and compute \(\Phi(t)\Phi(0)^{-1}\).
- Check \(t = 0\) gives \(I\), and that each column satisfies the system.
- Apply to the initial condition: \(\mathbf{x}(t) = e^{At}\mathbf{x}(0)\).
- What the answer should look like. A \(2\times 2\) matrix of functions of \(t\) that equals \(I\) at \(t = 0\), whose entries are combinations of \(e^{\lambda_1t}, e^{\lambda_2t}\) (or \(e^{at}\cos\omega t\), \(e^{at}\sin\omega t\), or \(e^{\lambda t}\) and \(te^{\lambda t}\)), and whose determinant is \(e^{(\operatorname{tr}A)t}\).
From the previous tab, \(P = \begin{bmatrix} 1 & 1 \\ 2 & -2 \end{bmatrix}\), \(D = \operatorname{diag}(3, -1)\), and \(P^{-1} = \dfrac{1}{-4}\begin{bmatrix} -2 & -1 \\ -2 & 1 \end{bmatrix} = \dfrac14\begin{bmatrix} 2 & 1 \\ 2 & -1 \end{bmatrix}\). Then
\[e^{At} = \frac14\begin{bmatrix} 1 & 1 \\ 2 & -2 \end{bmatrix}\begin{bmatrix} e^{3t} & 0 \\ 0 & e^{-t} \end{bmatrix}\begin{bmatrix} 2 & 1 \\ 2 & -1 \end{bmatrix} = \begin{bmatrix} \tfrac12(e^{3t} + e^{-t}) & \tfrac14(e^{3t} - e^{-t}) \\ e^{3t} - e^{-t} & \tfrac12(e^{3t} + e^{-t}) \end{bmatrix}.\]At \(t = 0\) this is \(\begin{bmatrix} 1 & 0 \\ 2 - 2 & 1 \end{bmatrix} = I\). Check the first column against the system: with \(x_1 = \tfrac12(e^{3t} + e^{-t})\), \(x_2 = e^{3t} - e^{-t}\), the first equation needs \(x_1' = x_1 + x_2\): left side \(\tfrac12(3e^{3t} - e^{-t})\), right side \(\tfrac32e^{3t} - \tfrac12e^{-t}\). Equal. With \(\mathbf{x}(0) = (1, 0)\): \(\mathbf{x}(t) = \big(\tfrac12(e^{3t} + e^{-t}),\ e^{3t} - e^{-t}\big)\), which is \(\tfrac12e^{3t}(1, 2) + \tfrac12e^{-t}(1, -2)\), consistent with the eigenvector form.
Another check: \(\det e^{At} = \tfrac14(e^{3t} + e^{-t})^2 - \tfrac14(e^{3t} - e^{-t})^2 = e^{2t} = e^{(\operatorname{tr}A)t}\), since \(\operatorname{tr}A = 2\).
Nilpotent. \(N = \begin{bmatrix} 0 & 1 \\ 0 & 0 \end{bmatrix}\), \(N^2 = 0\): \(e^{Nt} = I + Nt = \begin{bmatrix} 1 & t \\ 0 & 1 \end{bmatrix}\). For \(A = 2I + N\) (repeated eigenvalue 2), \(e^{At} = e^{2t}\begin{bmatrix} 1 & t \\ 0 & 1 \end{bmatrix}\), showing where the \(te^{2t}\) terms of the repeated-root case come from.
Forced system. \(\mathbf{x}' = N\mathbf{x} + (0, 1)\), \(\mathbf{x}(0) = \mathbf{0}\) (that is, \(x_1' = x_2\), \(x_2' = 1\)): \(\mathbf{x} = \displaystyle\int_0^te^{N(t - \tau)}\begin{bmatrix} 0 \\ 1 \end{bmatrix}d\tau = \int_0^t\begin{bmatrix} t - \tau \\ 1 \end{bmatrix}d\tau = \begin{bmatrix} t^2/2 \\ t \end{bmatrix}\). Check: \(x_2' = 1\) and \(x_1' = t = x_2\). The matrix \(e^{A(t - \tau)}\) plays the role of the weight function \(w(t - \tau)\) from the convolution tab.
Watch out. \(e^{At}\) is not the matrix of entrywise exponentials \(e^{a_{ij}t}\), and \(Pe^{Dt}P^{-1}\) must keep \(P\) on the left. Also \(e^{At}e^{Bt} \ne e^{(A + B)t}\) unless the matrices commute. And a fundamental matrix \(\Phi(t)\) is \(e^{At}\) only if \(\Phi(0) = I\): the columns \(e^{3t}(1, 2)\) and \(e^{-t}(1, -2)\) give \(\Phi(0) = P\), so \(\Phi(t)\) must still be multiplied by \(P^{-1}\) on the right.
Practice: problem 25 · Challenge: problems 90, 91, 92, 96, 97, 99, 102 (the practice groups are the last entries in the contents).
Phase portraits of linear systems: the trace–determinant plane
Unit V: Linear systems of differential equations · Topic 20 of 22
Key idea
For \(\mathbf{x}' = A\mathbf{x}\) in the plane, two numbers decide everything qualitative: \(T = \operatorname{tr}A\) and \(D = \det A\). They fix the eigenvalues through \(\lambda^2 - T\lambda + D = 0\), hence whether the origin is a node, saddle, spiral or center, and whether it is stable. The parabola \(T^2 = 4D\) separates real from complex eigenvalues; the axes separate stable from unstable.
- \(D \lt 0\) real eigenvalues of opposite sign: saddle, always unstable.
- \(D \gt 0,\ T^2 \gt 4D\) real eigenvalues of the same sign: node. \(T \lt 0\): sink node (stable). \(T \gt 0\): source node.
- \(D \gt 0,\ T^2 \lt 4D\) complex eigenvalues \(\tfrac T2 \pm i\omega\): spiral. \(T \lt 0\): spiral sink. \(T \gt 0\): spiral source. \(T = 0\): center (closed ellipses, neutrally stable).
- \(T^2 = 4D\) repeated eigenvalue: star node if \(A = \lambda I\), otherwise a degenerate (improper) node.
- \(D = 0\) a zero eigenvalue: a whole line of equilibria (comb), approached or left along the other eigenvector.
- Node draw the two eigenvector lines. Near the origin trajectories are tangent to the eigenvector of the eigenvalue of smaller absolute value (the slow direction); far away they run parallel to the fast one. Arrows in for a sink, out for a source.
- Saddle the eigenvector lines are the separatrices: trajectories come in along the negative-eigenvalue line and leave along the positive one; all others are hyperbola-like curves asymptotic to both.
- Spiral / center rotation sense from the velocity at one point, e.g. at \((1, 0)\): \(\mathbf{x}' = (a_{11}, a_{21})\); \(a_{21} \gt 0\) means counterclockwise.
- Structural stability nodes, saddles and spirals (with \(T \ne 0\)) survive small changes of the matrix; centers and the borderline cases (\(T = 0\), \(D = 0\), \(T^2 = 4D\)) do not. For a nonlinear system, the linearization decides the type only in the robust cases.
- A one-parameter family \(A_a = \begin{bmatrix} a & 1 \\ -1 & 0 \end{bmatrix}\) has \(T = a\), \(D = 1\), so \(T^2 - 4D = a^2 - 4\): spiral sink for \(-2 \lt a \lt 0\), center at \(a = 0\), spiral source for \(0 \lt a \lt 2\), and nodes (sink or source) for \(|a| \gt 2\), with the degenerate node exactly at \(a = \pm2\). Moving \(a\) traces a horizontal line at height \(D = 1\) across the trace–determinant plane.
How to work it
- Compute \(T\) and \(D\) and locate the point in the trace–determinant plane; name the type and its stability.
- For real eigenvalues find the eigenvectors and draw their lines with arrows (direction from the sign of \(\lambda\)).
- For complex eigenvalues determine the rotation sense from the vector field at one convenient point and whether the spiral goes in (\(T \lt 0\)) or out.
- Sketch a few representative trajectories consistent with the eigenvector directions and arrows.
- What the answer should look like. The type and stability in words ("spiral sink, asymptotically stable"), backed by \(T\), \(D\) and the sign of \(T^2 - 4D\); for nodes and saddles the eigenvector lines drawn with arrows; for spirals the sense of rotation with the test point used to decide it.
\(A = \begin{bmatrix} -1 & -2 \\ 2 & -1 \end{bmatrix}\). \(T = -2\), \(D = 1 + 4 = 5\), \(T^2 - 4D = 4 - 20 \lt 0\): complex eigenvalues \(-1 \pm 2i\), spiral sink. At \((1, 0)\) the velocity is \(A(1, 0)^{\mathsf T} = (-1, 2)\), the first column of \(A\), pointing up and slightly inward: counterclockwise rotation while spiraling in. (The sign of the lower-left entry \(a_{21}\) decides the sense: positive means counterclockwise.) Each loop takes \(2\pi/2 = \pi\) time units and shrinks by the factor \(e^{-\pi}\).
\(B = \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix}\). \(T = 4\), \(D = 3\), \(T^2 - 4D = 4 \gt 0\): eigenvalues \(3\) and \(1\), both positive, source node. Eigenvectors: \(B - 3I = \begin{bmatrix} -1 & 1 \\ 1 & -1 \end{bmatrix}\) gives \((1, 1)\) for \(3\) (fast); \(B - I = \begin{bmatrix} 1 & 1 \\ 1 & 1 \end{bmatrix}\) gives \((1, -1)\) for \(1\) (slow). Trajectories leave the origin tangent to the line \(y = -x\) and bend toward the direction of \(y = x\) as they move away. Reversing time (\(-B\)) would give a sink node with the same curves and reversed arrows.
Two more. \(C = \begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix}\): \(T = 0\), \(D = 1\), eigenvalues \(\pm i\): a center; the velocity at \((1, 0)\) is \((0, -1)\), downward, so the ellipses (here circles, since \(x' = y\), \(y' = -x\) conserves \(x^2 + y^2\)) run clockwise. \(E = \begin{bmatrix} 1 & 1 \\ 4 & 1 \end{bmatrix}\) (the eigenvalue tab's example): \(T = 2\), \(D = -3 \lt 0\): a saddle regardless of the trace, with separatrices along \((1, 2)\) (outgoing, \(\lambda = 3\)) and \((1, -2)\) (incoming, \(\lambda = -1\)).
Watch out. \(T \lt 0\) alone does not mean stable: \(D \lt 0\) is a saddle whatever the trace. A center requires \(T = 0\) and \(D \gt 0\); \(T = 0\) with \(D \lt 0\) is still a saddle. The slow direction of a node belongs to the eigenvalue of smaller absolute value, not the smaller eigenvalue: for \(-1\) and \(-3\) the slow direction is the eigenvector of \(-1\), and that is the line the trajectories hug near the origin.
Practice: problems 21, 26 · Challenge: problems 87, 88, 89, 93, 94, 96, 100, 101, 106, 108, 120, 126 (the practice groups are the last entries in the contents).
Critical points, the Jacobian and linearization
Unit VI: Nonlinear autonomous systems · Topic 21 of 22
Key idea
A nonlinear autonomous system \(x' = f(x, y)\), \(y' = g(x, y)\) is understood through its critical points, where both \(f\) and \(g\) vanish. Near each one the system behaves like its linearization, whose matrix is the Jacobian, so the trace–determinant classification applies, with one caveat: the borderline linear types (centers, degenerate cases) do not determine the nonlinear behaviour, and a conserved quantity or symmetry argument is needed to settle them.
Writing \(x = x^* + u\), \(y = y^* + v\) and dropping higher-order terms gives the linearized system \(\begin{bmatrix} u \\ v \end{bmatrix}' = J\begin{bmatrix} u \\ v \end{bmatrix}\).
- Finding the points solve the two equations simultaneously; factor when possible, and check every combination of factors (e.g. \(x = 0\) or \(y = 2 - x\) from one equation, each substituted into the other).
- Robust cases if \(J\) gives a node, saddle or spiral (\(T \ne 0\), \(D \ne 0\), \(T^2 \ne 4D\)), the nonlinear critical point has the same type and stability.
- Borderline cases linear center (\(T = 0\), \(D \gt 0\)): the nonlinear point may be a center or a spiral in either direction. Zero eigenvalue or repeated eigenvalue: type undetermined by \(J\).
- Structurally stable a critical point whose type survives small perturbations of the equations: nodes, saddles, spirals. Centers and degenerate nodes are structurally unstable.
- Conserved quantity if \(\dfrac{dy}{dx} = \dfrac{g}{f}\) is separable, integrate to get \(H(x, y) = C\); trajectories are level curves of \(H\). Closed level curves around a point make it a genuine center.
- Conservative systems \(x'' = F(x)\), i.e. \(x' = y\), \(y' = F(x)\): energy \(E = \tfrac12y^2 + V(x)\) with \(V' = -F\) is conserved. Critical points are at \(F(x^*) = 0\): minima of \(V\) are centers, maxima are saddles.
- Symmetry a system invariant under \(t \to -t\), \(y \to -y\) (reversible) cannot spiral, so a linear center is a nonlinear center.
- Lyapunov a function decreasing along trajectories proves stability when linearization is silent.
Example: the pendulum \(x' = y\), \(y' = -\sin x\). Critical points \((n\pi, 0)\). \(J = \begin{bmatrix} 0 & 1 \\ -\cos x & 0 \end{bmatrix}\): at \((0, 0)\), \(T = 0\), \(D = 1\), a linear center, which is a borderline case; at \((\pi, 0)\), \(D = -1\), a saddle (robust, so the pendulum balanced upside down really is a saddle). To settle the origin: \(\dfrac{dy}{dx} = -\dfrac{\sin x}{y}\) separates to \(y\,dy = -\sin x\,dx\), giving the conserved energy \(E = \tfrac12y^2 - \cos x\). Its level curves near \((0, 0)\) are closed (\(E\) has a strict minimum there), so the origin is a genuine center: small swings repeat forever, as they must without friction.
How to work it
- Find all critical points by solving \(f = 0\) and \(g = 0\) together; list them.
- Compute the Jacobian once symbolically, then evaluate it at each critical point.
- For each, compute \(T\), \(D\) and \(T^2 - 4D\); classify type and stability, and note whether the case is structurally stable.
- For borderline linear types, look for a conserved quantity or symmetry to decide.
- Record eigenvectors at saddles and nodes for the phase portrait.
- What the answer should look like. A list of critical points as ordered pairs, the Jacobian at each with \(T\) and \(D\), the linear type, and a sentence saying whether the nonlinear type is thereby settled (robust case) or still open (center or degenerate case) and, if open, how it was settled.
Critical points. \(x = 0\) or \(x + 2y = 3\); \(y = 0\) or \(x + y = 2\). Combinations: \((0, 0)\); \(x = 0, x + y = 2\): \((0, 2)\); \(y = 0, x + 2y = 3\): \((3, 0)\); both lines: \(y = 1, x = 1\): \((1, 1)\).
Write \(f = 3x - x^2 - 2xy\) and \(g = 2y - xy - y^2\), so \(f_x = 3 - 2x - 2y\), \(f_y = -2x\), \(g_x = -y\), \(g_y = 2 - x - 2y\):
\[J = \begin{bmatrix} 3 - 2x - 2y & -2x \\ -y & 2 - x - 2y \end{bmatrix}.\]Now substitute each critical point. For instance at \((1, 1)\): \(3 - 2 - 2 = -1\), \(-2(1) = -2\), \(-1\), \(2 - 1 - 2 = -1\).
- \((0,0)\) \(J = \operatorname{diag}(3, 2)\): source node (both species grow when rare).
- \((3,0)\) \(J = \begin{bmatrix} -3 & -6 \\ 0 & -1 \end{bmatrix}\), eigenvalues \(-3, -1\): sink node.
- \((0,2)\) \(J = \begin{bmatrix} -1 & 0 \\ -2 & -2 \end{bmatrix}\), eigenvalues \(-1, -2\): sink node.
- \((1,1)\) \(J = \begin{bmatrix} -1 & -2 \\ -1 & -1 \end{bmatrix}\), \(T = -2\), \(D = 1 - 2 = -1\): saddle, with eigenvalues \(\dfrac{-2 \pm\sqrt{4 + 4}}{2} = -1 \pm\sqrt2\), one of each sign as a saddle must have.
All four are structurally stable types, so the nonlinear portrait matches: coexistence at \((1, 1)\) is a saddle and one species always wins (competitive exclusion), the winner depending on which side of the saddle’s separatrix the start lies.
Watch out. A critical point needs both \(f = 0\) and \(g = 0\); points where only one vanishes are on the nullclines, not equilibria. And the Jacobian must be evaluated at each critical point separately before classifying; the symbolic \(J\) has no type. Third: do not conclude "stable" from a linear center. For \(x' = y\), \(y' = -x - y^3\) the Jacobian at the origin is \(\begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix}\), a linear center, but \(E = \tfrac12(x^2 + y^2)\) has \(E' = xy + y(-x - y^3) = -y^4 \le 0\), so the origin is actually a (slow) spiral sink.
Practice: problems 22, 23, 24 · Challenge: problems 94, 107, 108, 109, 110, 111, 112, 113, 114, 115, 118, 119, 120, 122, 123, 124, 125, 126 (the practice groups are the last entries in the contents).
Sketching phase-plane portraits
Unit VI: Nonlinear autonomous systems · Topic 22 of 22
Key idea
A phase portrait is the picture of all trajectories at once. Build it from the critical points and their linear types, the eigenvector directions at saddles and nodes, the nullclines (where the motion is vertical or horizontal) with arrows in the regions between them, and the rotation sense at spirals. Because trajectories cannot cross, the saddle separatrices divide the plane into basins, and the long-run fate of every starting point can be read off.
- Critical points mark each with its type (dot for sink, open dot for source, cross for saddle).
- Eigenvector lines at saddles (in along \(\lambda \lt 0\), out along \(\lambda \gt 0\)) and nodes (slow and fast directions).
- Nullclines \(f = 0\): the field is vertical (\(x' = 0\)); \(g = 0\): horizontal. They intersect at the critical points. Between them the signs of \(f\) and \(g\) fix the arrow quadrant (up-right, up-left, …).
- Rotation at spirals and centers, check the field at one nearby point.
- Invariant lines if \(x = 0\) forces \(x' = 0\) (as in population models \(x' = x\cdot(\dots)\)), the axis is itself made of trajectories and nothing crosses it.
- Far away the dominant terms of \(f, g\) show where trajectories go at infinity.
- Basin of attraction the set of starting points that tend to a given sink; its boundary is made of saddle separatrices (the stable manifolds of saddles).
- Uniqueness trajectories never cross or touch; two curves that seem to meet must be approaching a critical point.
- Limit cycle an isolated closed trajectory that nearby trajectories spiral toward (or away from), as in the Van der Pol oscillator; a conservative center is instead surrounded by a continuum of closed orbits.
- Matching a picture to identify the portrait of a given system, locate the critical points first, then check types and the rotation sense; one spiral sink in the right quadrant with a saddle at the origin rules out every picture whose spiral is elsewhere.
- Consistency arrows along nullclines, eigenvector directions and spiral senses must agree with the Jacobian analysis; a contradiction means an arithmetic error.
How to work it
- Plot the critical points and the nullclines; add direction arrows (vertical on \(f = 0\), horizontal on \(g = 0\), and quadrant arrows in each region).
- At each saddle draw the separatrices along the eigenvectors; at each node draw the slow and fast directions; at each spiral mark the rotation sense and in/out.
- Connect: trajectories leave sources and saddles along the outgoing directions and arrive at sinks along the slow directions, respecting the arrows.
- Shade or label the basins of attraction and state the long-run behaviour for the regions asked about.
- What the answer should look like. A picture with every critical point marked and typed, the nullclines dashed with a few arrows between them, separatrices through the saddles, representative trajectories, and a written conclusion such as "starts above the separatrix tend to \((0, 2)\)".
For \(x' = x(3 - x - 2y)\), \(y' = y(2 - x - y)\) (previous tab): nullclines \(x = 0\) and \(x + 2y = 3\) (vertical motion), \(y = 0\) and \(x + y = 2\) (horizontal motion). Both axes are invariant.
In the first quadrant, below both lines (near the origin) \(x' \gt 0\) and \(y' \gt 0\): arrows up-right. Above both lines \(x' \lt 0\), \(y' \lt 0\): down-left. Between the lines the two signs differ. Test points make this concrete: at \((0.5, 0.5)\), \(x' = 0.5(3 - 0.5 - 1) = 0.75 \gt 0\) and \(y' = 0.5(2 - 0.5 - 0.5) = 0.5 \gt 0\) (up-right); at \((3, 1)\), \(x' = 3(3 - 3 - 2) = -6\) and \(y' = 1(2 - 3 - 1) = -2\) (down-left); at \((2, 0.25)\), between the lines near the \(x\)-axis, \(x' = 2(3 - 2 - 0.5) = 1 \gt 0\) and \(y' = 0.25(2 - 2 - 0.25) \lt 0\) (down-right, toward the sink \((3, 0)\)); symmetrically, between the lines near the \(y\)-axis the arrows point up-left toward \((0, 2)\). So the sink \((3, 0)\) pulls trajectories down onto the \(x\)-axis side, and for large \(y\) the sink \((0, 2)\) wins.
The saddle \((1, 1)\) has \(J = \begin{bmatrix} -1 & -2 \\ -1 & -1 \end{bmatrix}\) with eigenvalues \(-1 \pm \sqrt2\): the stable direction (eigenvalue \(-1 - \sqrt2\)) is \((\sqrt2, 1)\) and the unstable direction (\(-1 + \sqrt2\)) is \((\sqrt2, -1)\). The stable separatrix runs from the origin region through \((1, 1)\) with slope about \(0.71\) and divides the quadrant: starts below it end at \((3, 0)\) (species \(x\) wins), starts above it end at \((0, 2)\) (species \(y\) wins). Only starts exactly on the separatrix reach the coexistence point.
Watch out. Nullclines are not trajectories (except invariant lines); the field crosses them vertically or horizontally. And a saddle separatrix is drawn along the eigenvector through the critical point, with the stable one carrying arrows inward. Arrows in a region come from the signs of both \(f\) and \(g\) at a test point in that region, not from where a nearby trajectory "looks like" it should go; one test point per region suffices because the signs can only change across the nullclines.
Practice: problems 22, 23, 24 · Challenge: problems 103, 107, 110, 111, 113, 114, 115, 121, 123, 124, 125 (the practice groups are the last entries in the contents).
Set 1: first-order equations
Differential Equations · Exam-style problems 1 to 6
Problems 1 to 6
These problems follow the practice final for MIT 18.03 and a selection of final-exam questions on the same material. Every problem opens to a full, step-by-step solution with the final answer highlighted. Try it on paper first. The Review link at the end of each solution jumps back to the tab that teaches the idea.
1For \(\dfrac{dy}{dx} = -\dfrac yx + 3x\): (a) describe the direction field using the isoclines for slopes \(-1\) and \(0\); (b) for the solution through \((1, 2)\), would Euler’s method with \(h = 0.1\) approximate \(y(1.1)\) too high or too low? (c) compute that Euler approximation; (d) \(y_1 = x^2\) and \(y_2 = x^2 + \dfrac1x\) are solutions; if \(y(1) = 1.5\), show that \(100 \le y(10) \le 100.1\) and say whether the equal signs are needed; (e) find the general solution and verify (b).
Solution
(a) The isocline for slope \(m\) is \(-\dfrac yx + 3x = m\), i.e. \(y = 3x^2 - mx\). For \(m = 0\): the parabola \(y = 3x^2\), where solutions have horizontal tangents (their minima for \(x \gt 0\)). For \(m = -1\): \(y = 3x^2 + x\), where solutions fall at \(45^\circ\). Above the \(m = 0\) parabola slopes are negative, below it positive.
(b) Differentiate the equation along a solution: \(y'' = -\dfrac{y'}{x} + \dfrac{y}{x^2} + 3\). Substituting \(y' = -\dfrac yx + 3x\):
\[y'' = \frac{y}{x^2} - 3 + \frac{y}{x^2} + 3 = \frac{2y}{x^2}\]which is positive at \((1, 2)\): the solution is concave up, so the tangent line lies below it and Euler comes out too low.
(c) Slope at \((1, 2)\): \(-2 + 3 = 1\). So \(y(1.1) \approx 2 + 0.1(1) = 2.1\).
(d) Check: \(y_1' = 2x = -x + 3x\) and \(y_2' = 2x - \dfrac1{x^2} = -\left(x + \dfrac1{x^2}\right) + 3x\). At \(x = 1\), \(y_1 = 1 \lt 1.5 \lt 2 = y_2\). Solution curves cannot cross (uniqueness holds for \(x \gt 0\)), so \(y_1(x) \lt y(x) \lt y_2(x)\) for all \(x \gt 0\), and at \(x = 10\): \(100 \lt y(10) \lt 100.1\). The inequalities are strict, so the equal signs are not needed (they are not wrong, just never attained).
(e) Linear: \(y' + \dfrac1x y = 3x\), integrating factor \(e^{\int dx/x} = x\): \((xy)' = 3x^2\), so \(xy = x^3 + C\) and
\[y = x^2 + \frac Cx.\]Through \((1, 2)\): \(C = 1\), \(y = x^2 + \dfrac1x\), and \(y(1.1) = 1.21 + 0.909 = 2.119 \gt 2.1\). Euler was indeed too low. (The solution with \(y(1) = 1.5\) is \(C = \tfrac12\), giving \(y(10) = 100.05\), inside the predicted window.)
(a) isoclines \(y = 3x^2 - mx\); (b) too low (\(y'' = 2y/x^2 \gt 0\)); (c) \(2.1\); (d) strict inequalities by uniqueness; (e) \(y = x^2 + C/x\), exact \(y(1.1) \approx 2.119\).
Review: · ·
2A population \(p(t)\) follows \(\dfrac{dp}{dt} = p^3 - 4p^2 + 4p\). Without solving: (a) find all critical points and classify their stability with a phase line; (b) sketch the family of solutions and describe the long run if \(p(0) = 1\) and if \(p(0) = 3\); (c) explain why the rate information alone was enough.
Solution
(a) \(p^3 - 4p^2 + 4p = p(p - 2)^2\): critical points \(p = 0\) and \(p = 2\). Signs of \(p'\): for \(p \lt 0\), \(p \lt 0\) and \((p - 2)^2 \gt 0\), so \(p' \lt 0\) (decreasing, moving away from 0); for \(0 \lt p \lt 2\), \(p' \gt 0\) (increasing toward 2); for \(p \gt 2\), \(p' \gt 0\) (increasing, moving away from 2).
- \(p = 0\) arrows point away on both sides: unstable (source). Also \(f'(0) = 4 \gt 0\).
- \(p = 2\) approached from below, repelled above: semistable. Here \(f'(2) = 0\) (double root), which is exactly the inconclusive case; the sign chart decides.
(b) Horizontal lines at \(p = 0\) and \(p = 2\). In the band \(0 \lt p \lt 2\) solutions rise and level off toward 2; above 2 they rise ever faster; below 0 they fall. With \(p(0) = 1\) the population increases and approaches 2 asymptotically (never reaching it). With \(p(0) = 3\) it increases without bound, and because \(p' \sim p^3\) grows faster than linearly it blows up in finite time.
(c) The equation is autonomous: the rate depends only on \(p\), so the sign of \(p'\) at each level fixes the direction of motion everywhere, solutions are monotone between critical points, and uniqueness forbids crossing the constant solutions. Direction and the location of the equilibria are all a long-run question needs; the exact speed, which solving would give, is irrelevant.
(a) \(p = 0\) unstable, \(p = 2\) semistable; (b) \(p(0) = 1 \Rightarrow p \to 2\); \(p(0) = 3 \Rightarrow p \to \infty\) (in finite time); (c) autonomous: only the sign of \(p'\) matters.
Review:
3Use Euler’s method with \(h = 0.5\) to approximate \(y(1)\) for \(y' = y - t^2\), \(y(0) = 1\). Is the result too high or too low? Compare with the exact solution.
Solution
\[y_1 = 1 + 0.5\,(1 - 0^2) = 1.5\] \[y_2 = 1.5 + 0.5\,(1.5 - 0.5^2) = 1.5 + 0.5(1.25) = 2.125.\]So \(y(1) \approx 2.125\).
Concavity. \(y'' = y' - 2t = y - t^2 - 2t\). At \((0, 1)\) this is \(1 \gt 0\) and at \((0.5, 1.5)\) it is \(1.5 - 0.25 - 1 = 0.25 \gt 0\): the solution is concave up along the path, so Euler is too low.
Exact. Standard form \(y' - y = -t^2\), so \(p = -1\) and the integrating factor is \(e^{\int(-1)\,dt} = e^{-t}\): \((e^{-t}y)' = -t^2e^{-t}\). Integrating by parts twice (or guessing \((at^2 + bt + c)e^{-t}\) and matching: its derivative is \((-at^2 + (2a - b)t + (b - c))e^{-t}\), so \(a = 1\), \(b = 2\), \(c = 2\)) gives \(e^{-t}y = (t^2 + 2t + 2)e^{-t} + C\), so \(y = t^2 + 2t + 2 + Ce^t\). Check: \(y' = 2t + 2 + Ce^t\) and \(y - t^2 = 2t + 2 + Ce^t\). From \(y(0) = 1\): \(2 + C = 1\), \(C = -1\):
\[y = t^2 + 2t + 2 - e^t\] \[y(1) = 5 - e \approx 2.282.\]Euler’s \(2.125\) is low by about \(0.16\); with \(h = 0.25\) the error would be roughly half that.
Euler: \(y(1) \approx 2.125\), too low; exact \(y = t^2 + 2t + 2 - e^t\), \(y(1) \approx 2.282\).
Review:
4Find the general solution: (a) \(f'(t) = \dfrac{1}{t + 1}\); (b) \(f''(t) = e^t + t\).
Solution
(a) Integrate once: \(f(t) = \ln|t + 1| + C\), valid on either side of \(t = -1\) (the equation is undefined there, and the two sides carry independent constants).
(b) Integrate twice: \(f'(t) = e^t + \dfrac{t^2}{2} + C_1\), then
\[f(t) = e^t + \frac{t^3}{6} + C_1t + C_2.\]Two constants for a second-order equation. Check: \(f'' = e^t + t\).
(a) \(\ln|t + 1| + C\); (b) \(e^t + t^3/6 + C_1t + C_2\).
Review:
5Radioactive material flows into a container at rate \(f(t)\) (curies per unit time) starting at \(t = 0\), and decays with rate constant \(k\). Let \(R(t)\) be the amount present. (a) Write the DE for \(R\) and solve it in terms of \(k\), \(f\) and \(R_0 = R(0)\). (b) Show that the solution with \(R(0) = 0\) is a convolution integral; identify the weight function \(w\) and the DE it satisfies.
Solution
(a) Rate in minus rate out: \(R' = f(t) - kR\), i.e. \(R' + kR = f(t)\). Integrating factor \(e^{kt}\): \((e^{kt}R)' = e^{kt}f(t)\), so \(e^{kt}R(t) = R_0 + \displaystyle\int_0^te^{k\tau}f(\tau)\,d\tau\) and
\[R(t) = R_0e^{-kt} + \int_0^te^{-k(t - \tau)}f(\tau)\,d\tau.\]The first term is the decayed initial stock; the integral adds up every inflow \(f(\tau)\,d\tau\), decayed for the time \(t - \tau\) it has been in the container.
(b) With \(R_0 = 0\),
\[R(t) = \int_0^tw(t - \tau)f(\tau)\,d\tau = (w * f)(t)\] \[w(t) = e^{-kt}.\]The weight function \(w\) is the unit impulse response: it solves \(w' + kw = 0\) with \(w(0) = 1\) (equivalently \(w' + kw = \delta(t)\) with rest initial conditions), and its Laplace transform is the transfer function \(1/(s + k)\). Physically, \(w(t)\) is what remains at time \(t\) of one curie dumped in at time 0.
(a) \(R' + kR = f\), \(R = R_0e^{-kt} + \int_0^te^{-k(t-\tau)}f(\tau)\,d\tau\); (b) \(R = w * f\) with \(w = e^{-kt}\), \(w' + kw = 0\), \(w(0) = 1\).
Review: ·
6A 500 L tank contains 20 kg of dissolved salt. Brine with 0.2 kg/L flows in at 5 L/min, the mixture is kept uniform and flows out at 5 L/min. Find the salt \(x(t)\), the long-run amount, and the time until the tank holds 60 kg.
Solution
Rate in: \(5 \times 0.2 = 1\) kg/min. Rate out: \(5 \times \dfrac{x}{500} = \dfrac{x}{100}\) kg/min (the volume stays at 500 L). So
\[x' = 1 - \frac{x}{100}\] \[x(0) = 20.\]In the form \(x' + kx = q\): \(k = 0.01\), \(q = 1\), steady state \(q/k = 100\) kg (the whole tank at the inflow concentration \(0.2\) kg/L). Hence
\[x(t) = 100 + (20 - 100)e^{-t/100} = 100 - 80e^{-t/100}.\]Check: \(x(0) = 20\) and \(x' = 0.8e^{-t/100} = 1 - \dfrac{100 - 80e^{-t/100}}{100}\).
\(x = 60\) when \(80e^{-t/100} = 40\), i.e. \(e^{-t/100} = \tfrac12\), \(t = 100\ln2 \approx 69.3\) min. Half of the gap to the steady state closes every \(69.3\) minutes.
\(x(t) = 100 - 80e^{-t/100}\) kg; \(x \to 100\) kg; \(60\) kg at \(t = 100\ln2 \approx 69.3\) min.
Review:
Set 2: second-order linear equations
Differential Equations · Exam-style problems 7 to 12
Problems 7 to 12
These problems follow the practice final for MIT 18.03 and a selection of final-exam questions on the same material. Every problem opens to a full, step-by-step solution with the final answer highlighted. Try it on paper first. The Review link at the end of each solution jumps back to the tab that teaches the idea.
7Let \(p(D) = D^2 + bD + 5\). (a) For what \(b\) do the solutions of \(p(D)y = 0\) oscillate? (b) For \(b = 4\), solve (i) \(p(D)y = 4e^{2t}\sin t\) and (ii) \(p(D)y = 4e^{2t}\cos t\) with the Exponential Response Formula; give the answers in both amplitude-phase and rectangular form. (c) For \(b = 2\), for which \(\omega\) does \(p(D)y = \cos\omega t\) have the largest response?
Solution
(a) Roots \(r = \dfrac{-b \pm \sqrt{b^2 - 20}}{2}\) are complex iff \(b^2 \lt 20\), i.e. \(|b| \lt 2\sqrt5 \approx 4.47\). For a damping constant \(b \ge 0\): \(0 \le b \lt 2\sqrt5\).
(b) Both inputs are parts of \(4e^{(2 + i)t}\). With \(b = 4\),
\[p(2 + i) = (2 + i)^2 + 4(2 + i) + 5 = (3 + 4i) + (8 + 4i) + 5 = 16 + 8i\](using \((2 + i)^2 = 4 + 4i + i^2 = 3 + 4i\); then \(\dfrac{4}{16 + 8i} = \dfrac{1}{4 + 2i} = \dfrac{4 - 2i}{(4 + 2i)(4 - 2i)} = \dfrac{4 - 2i}{20}\)).
\[z_p = \frac{4e^{(2 + i)t}}{16 + 8i} = \frac{e^{(2 + i)t}}{4 + 2i} = \frac{(4 - 2i)e^{(2 + i)t}}{20} = \frac{(2 - i)}{10}e^{2t}(\cos t + i\sin t).\]Expanding: \(z_p = \dfrac{e^{2t}}{10}\big[(2\cos t + \sin t) + i(2\sin t - \cos t)\big]\).
(i) Input \(4e^{2t}\sin t = \operatorname{Im}(4e^{(2+i)t})\): \(y_p = \operatorname{Im}z_p = \dfrac{e^{2t}}{10}(2\sin t - \cos t)\). (ii) Input \(4e^{2t}\cos t\): \(y_p = \operatorname{Re}z_p = \dfrac{e^{2t}}{10}(2\cos t + \sin t)\).
Amplitude-phase: \(\left|\dfrac{2 - i}{10}\right| = \dfrac{\sqrt5}{10} = \dfrac{1}{2\sqrt5}\) and the phase lag is \(\phi = \arg(4 + 2i) = \arctan\tfrac12 \approx 0.464\). So
\[\text{(i)}\ y_p = \frac{e^{2t}}{2\sqrt5}\sin(t - \phi)\] \[\text{(ii)}\ y_p = \frac{e^{2t}}{2\sqrt5}\cos(t - \phi)\] \[\phi = \arctan\tfrac12.\]Check (i): \(\sin(t - \phi) = \sin t\cos\phi - \cos t\sin\phi = \dfrac{2\sin t - \cos t}{\sqrt5}\), and dividing by \(2\sqrt5\) gives \(\dfrac{2\sin t - \cos t}{10}\).
(c) With \(b = 2\), the gain is \(1/|p(i\omega)|\) with \(|p(i\omega)|^2 = (5 - \omega^2)^2 + 4\omega^2\). Set \(u = \omega^2\) and minimize \((5 - u)^2 + 4u\): derivative \(-2(5 - u) + 4 = 0\) gives \(u = 3\). The largest response is at \(\omega = \sqrt3\) (practical resonance; also \(\omega_r^2 = \omega_0^2 - b^2/2 = 5 - 2\)), where the gain is \(1/\sqrt{4 + 12} = \tfrac14\).
(a) \(0 \le b \lt 2\sqrt5\); (b) \(y_p = \tfrac{e^{2t}}{10}(2\sin t - \cos t)\) and \(\tfrac{e^{2t}}{10}(2\cos t + \sin t)\), i.e. \(\tfrac{e^{2t}}{2\sqrt5}\sin(t - \phi)\), \(\tfrac{e^{2t}}{2\sqrt5}\cos(t - \phi)\) with \(\phi = \arctan\tfrac12\); (c) \(\omega = \sqrt3\).
Review: · · ·
8Find the general solution of \((D^3 - 1)y = e^x\), expressed with real-valued functions only.
Solution
Homogeneous. \(r^3 = 1\) has roots \(1\) and \(e^{\pm 2\pi i/3} = -\tfrac12 \pm i\tfrac{\sqrt3}{2}\):
\[y_h = c_1e^x + e^{-x/2}\left(c_2\cos\frac{\sqrt3}{2}x + c_3\sin\frac{\sqrt3}{2}x\right).\]Particular. The input \(e^x\) is resonant: \(p(1) = 0\). Since \(p'(r) = 3r^2\), \(p'(1) = 3 \ne 0\), and the ERF gives
\[y_p = \frac{xe^x}{p'(1)} = \frac{xe^x}{3}.\]Check: each derivative of \(xe^x\) adds one more \(e^x\), so \((xe^x)' = (x + 1)e^x\), \((xe^x)'' = (x + 2)e^x\), \((xe^x)''' = (x + 3)e^x\); hence \((D^3 - 1)(xe^x) = (x + 3)e^x - xe^x = 3e^x\), and dividing by 3 gives \(e^x\). The homogeneous part came from the roots of unity: \(e^{\pm 2\pi i/3} = \cos\tfrac{2\pi}{3} \pm i\sin\tfrac{2\pi}{3}\), real part \(-\tfrac12\) and imaginary part \(\pm\tfrac{\sqrt3}{2}\), which become the \(e^{-x/2}\) and the \(\tfrac{\sqrt3}{2}x\) inside the cosine and sine.
\[y = c_1e^x + e^{-x/2}\left(c_2\cos\frac{\sqrt3}{2}x + c_3\sin\frac{\sqrt3}{2}x\right) + \frac{xe^x}{3}.\]\(y = c_1e^x + e^{-x/2}(c_2\cos\tfrac{\sqrt3}{2}x + c_3\sin\tfrac{\sqrt3}{2}x) + \tfrac13xe^x\).
Review: ·
9Find the general solution of each: (a) \(f'' + f = t + 2\); (b) \(f'' - 2f' + f = e^t\); (c) \(f'' - f = e^t + \sin t\); (d) \(f'' - f = e^{-3t}\).
Solution
(a) \(f_h = c_1\cos t + c_2\sin t\). Try \(f_p = At + B\): \(0 + At + B = t + 2\), so \(f_p = t + 2\). \(f = c_1\cos t + c_2\sin t + t + 2\).
(b) \(p(r) = (r - 1)^2\): \(f_h = (c_1 + c_2t)e^t\). The input \(e^t\) is doubly resonant: \(p(1) = p'(1) = 0\), \(p''(1) = 2\), so \(f_p = \dfrac{t^2e^t}{2}\). Check: \((t^2e^t)'' - 2(t^2e^t)' + t^2e^t = (t^2 + 4t + 2)e^t - 2(t^2 + 2t)e^t + t^2e^t = 2e^t\). \(f = (c_1 + c_2t)e^t + \tfrac12t^2e^t\).
(c) \(p(r) = r^2 - 1\): \(f_h = c_1e^t + c_2e^{-t}\). For \(e^t\): resonant, \(p'(1) = 2\), giving \(\tfrac12te^t\). For \(\sin t = \operatorname{Im}e^{it}\): \(p(i) = -1 - 1 = -2\), giving \(\operatorname{Im}\dfrac{e^{it}}{-2} = -\tfrac12\sin t\). Superpose:
\[f = c_1e^t + c_2e^{-t} + \tfrac12te^t - \tfrac12\sin t.\](d) \(p(-3) = 9 - 1 = 8\): \(f_p = \tfrac18e^{-3t}\), so \(f = c_1e^t + c_2e^{-t} + \tfrac18e^{-3t}\).
(a) \(c_1\cos t + c_2\sin t + t + 2\); (b) \((c_1 + c_2t)e^t + \tfrac12t^2e^t\); (c) \(c_1e^t + c_2e^{-t} + \tfrac12te^t - \tfrac12\sin t\); (d) \(c_1e^t + c_2e^{-t} + \tfrac18e^{-3t}\).
Review: ·
10Solve \(y'' + y = \tan t\) on \(-\pi/2 \lt t \lt \pi/2\).
Solution
Undetermined coefficients cannot handle \(\tan t\); use variation of parameters with \(y_1 = \cos t\), \(y_2 = \sin t\), \(W = \cos^2t + \sin^2t = 1\):
\[y_p = -\cos t\int\sin t\tan t\,dt + \sin t\int\cos t\tan t\,dt.\]Second integral: \(\int\cos t\tan t\,dt = \int\sin t\,dt = -\cos t\). First integral: \(\int\dfrac{\sin^2t}{\cos t}\,dt = \int\dfrac{1 - \cos^2t}{\cos t}\,dt = \int(\sec t - \cos t)\,dt = \ln|\sec t + \tan t| - \sin t\). Therefore
\[y_p = -\cos t\big(\ln|\sec t + \tan t| - \sin t\big) - \sin t\cos t = -\cos t\,\ln|\sec t + \tan t|\]the \(\sin t\cos t\) terms cancelling. General solution:
\[y = c_1\cos t + c_2\sin t - \cos t\,\ln(\sec t + \tan t)\] \[|t| \lt \tfrac\pi2\]where \(\sec t + \tan t \gt 0\) on this interval so the absolute value can be dropped. Check: with \(L = \ln(\sec t + \tan t)\), \(L' = \dfrac{\sec t\tan t + \sec^2t}{\sec t + \tan t} = \sec t\); then \(y_p = -\cos t\,L\) gives \(y_p' = \sin t\,L - \cos t\sec t = \sin t\,L - 1\) and \(y_p'' = \cos t\,L + \sin t\sec t\), so \(y_p'' + y_p = \cos t\,L + \tan t - \cos t\,L = \tan t\).
\(y = c_1\cos t + c_2\sin t - \cos t\,\ln(\sec t + \tan t)\).
Review:
11(a) Write \(2\cos3t - 2\sin3t\) in the form \(A\cos(3t - \phi)\). (b) Compute \((\sqrt3 + i)^6\). (c) Find all solutions of \(z^4 = -16\).
Solution
(a) \(a = 2\), \(b = -2\): \(A = \sqrt{4 + 4} = 2\sqrt2\) and \(\phi\) is the angle of the point \((2, -2)\), namely \(-\pi/4\). So
\[2\cos3t - 2\sin3t = 2\sqrt2\cos\!\left(3t + \tfrac\pi4\right).\]Check: \(2\sqrt2\cos(3t + \tfrac\pi4) = 2\sqrt2\left(\cos3t\cdot\tfrac{1}{\sqrt2} - \sin3t\cdot\tfrac{1}{\sqrt2}\right) = 2\cos3t - 2\sin3t\).
(b) \(\sqrt3 + i = 2e^{i\pi/6}\) (modulus \(\sqrt{3 + 1} = 2\), angle \(\arctan\tfrac{1}{\sqrt3} = \tfrac\pi6\)). Then \((\sqrt3 + i)^6 = 2^6e^{i\pi} = -64\).
(c) \(-16 = 16e^{i\pi}\), so \(z_k = 16^{1/4}e^{i(\pi + 2\pi k)/4} = 2e^{i\pi/4}, 2e^{3i\pi/4}, 2e^{5i\pi/4}, 2e^{7i\pi/4}\):
\[z = \sqrt2 + i\sqrt2,\quad -\sqrt2 + i\sqrt2,\quad -\sqrt2 - i\sqrt2,\quad \sqrt2 - i\sqrt2\]the four points \(\pm\sqrt2 \pm i\sqrt2\) on the circle of radius 2. Check one: \((\sqrt2 + i\sqrt2)^2 = 2 + 4i - 2 = 4i\), and \((4i)^2 = -16\). These are the roots needed to solve \(y^{(4)} + 16y = 0\), whose real solutions are \(e^{\pm\sqrt2t}\cos\sqrt2t\) and \(e^{\pm\sqrt2t}\sin\sqrt2t\).
(a) \(2\sqrt2\cos(3t + \pi/4)\); (b) \(-64\); (c) \(z = \pm\sqrt2 \pm i\sqrt2\).
Review:
12For \(x'' + bx' + 4x = 0\), classify the damping when \(b = 2\), \(b = 4\) and \(b = 6\), and write the general solution in each case. For \(b = 2\) solve with \(x(0) = 0\), \(x'(0) = 2\) and give the pseudo-period.
Solution
\(m = 1\), \(k = 4\), \(\omega_0 = 2\); the dividing value is \(b = 2\sqrt{mk} = 4\).
- \(b = 2\) \(r^2 + 2r + 4 = 0\), \(r = -1 \pm i\sqrt3\): underdamped, \(x = e^{-t}(c_1\cos\sqrt3t + c_2\sin\sqrt3t)\), pseudo-frequency \(\omega_d = \sqrt3\).
- \(b = 4\) \((r + 2)^2 = 0\): critically damped, \(x = (c_1 + c_2t)e^{-2t}\).
- \(b = 6\) \(r^2 + 6r + 4 = 0\), \(r = \dfrac{-6 \pm\sqrt{36 - 16}}{2} = -3 \pm \sqrt5 \approx -0.76, -5.24\), both negative: overdamped, \(x = c_1e^{(-3 + \sqrt5)t} + c_2e^{(-3 - \sqrt5)t}\), no oscillation.
\(b = 2\) with \(x(0) = 0\), \(x'(0) = 2\). \(x(0) = c_1 = 0\), so \(x = c_2e^{-t}\sin\sqrt3t\) and \(x' = c_2e^{-t}(\sqrt3\cos\sqrt3t - \sin\sqrt3t)\); \(x'(0) = \sqrt3c_2 = 2\) gives \(c_2 = 2/\sqrt3\):
\[x(t) = \frac{2}{\sqrt3}e^{-t}\sin\sqrt3t\] \[\text{pseudo-period } \frac{2\pi}{\sqrt3} \approx 3.63.\]The undamped period would be \(2\pi/2 = \pi \approx 3.14\); damping lengthens it. The amplitude envelope \(\tfrac{2}{\sqrt3}e^{-t}\) falls by the factor \(e^{-2\pi/\sqrt3} \approx 0.027\) every pseudo-period.
\(b = 2\) underdamped, \(b = 4\) critical, \(b = 6\) overdamped; \(x = \tfrac{2}{\sqrt3}e^{-t}\sin\sqrt3t\), pseudo-period \(2\pi/\sqrt3\).
Review:
Set 3: Fourier series and Laplace transform
Differential Equations · Exam-style problems 13 to 19
Problems 13 to 19
These problems follow the practice final for MIT 18.03 and a selection of final-exam questions on the same material. Every problem opens to a full, step-by-step solution with the final answer highlighted. Try it on paper first. The Review link at the end of each solution jumps back to the tab that teaches the idea.
13Let \(f(t) = t\) on \(-1 \lt t \lt 1\), periodic with period 2. (a) Sketch \(f\) over several periods, marking the values to which its Fourier series converges at the jumps. (b) Compute the Fourier series. (c) Find the steady-periodic solution of \(x'' + 10x = f(t)\). Does near-resonance occur? Which frequency in \(f\) is responsible?
Solution
(a) A sawtooth: straight segments of slope 1 from \(-1\) to \(1\) on each interval \((2k - 1, 2k + 1)\), jumping from \(1\) down to \(-1\) at every odd integer. At those jumps the series converges to the midpoint, \(0\); mark a dot at \((\pm1, 0), (\pm3, 0), \dots\).
(b) \(f\) is odd with \(L = 1\) (period \(2L = 2\), frequencies \(n\pi\)), so \(a_n = 0\) and \(b_n = \tfrac21\int_0^1 t\sin(n\pi t)\,dt\). Integrate by parts with \(u = t\), \(dv = \sin(n\pi t)\,dt\), \(v = -\dfrac{\cos n\pi t}{n\pi}\); the leftover integral of \(\cos n\pi t\) over \([0, 1]\) is \(\dfrac{\sin n\pi}{n\pi} = 0\):
\[b_n = 2\int_0^1t\sin(n\pi t)\,dt = 2\left[-\frac{t\cos n\pi t}{n\pi}\right]_0^1 + \frac{2}{n\pi}\int_0^1\cos n\pi t\,dt = -\frac{2\cos n\pi}{n\pi} + 0 = \frac{2(-1)^{n+1}}{n\pi}.\] \[f(t) = \frac2\pi\sum_{n=1}^\infty\frac{(-1)^{n+1}}{n}\sin n\pi t = \frac2\pi\left(\sin\pi t - \frac{\sin2\pi t}{2} + \frac{\sin3\pi t}{3} - \cdots\right).\](c) The response of \(x'' + 10x\) to \(\sin n\pi t\) is \(\dfrac{\sin n\pi t}{10 - n^2\pi^2}\), so
\[x_p(t) = \frac2\pi\sum_{n=1}^\infty\frac{(-1)^{n+1}\sin n\pi t}{n(10 - n^2\pi^2)}.\]The natural frequency is \(\sqrt{10} \approx 3.16\) and the input’s fundamental frequency is \(\pi \approx 3.14\): for \(n = 1\) the denominator is \(10 - \pi^2 \approx 0.130\), so that term has coefficient \(\dfrac{2/\pi}{0.130} \approx 4.9\), about eight times the input’s own \(2/\pi \approx 0.64\), while the \(n = 2\) term has coefficient \(\dfrac{2/\pi}{2(10 - 4\pi^2)} \approx -0.011\). Near-resonance occurs, caused by the \(n = 1\) harmonic \(\sin\pi t\) (frequency \(\pi\)); the response is almost a pure sinusoid at that frequency.
(b) \(f = \tfrac2\pi\sum(-1)^{n+1}\sin(n\pi t)/n\); (c) \(x_p = \tfrac2\pi\sum\frac{(-1)^{n+1}\sin n\pi t}{n(10 - n^2\pi^2)}\); near-resonance from the \(n = 1\) term, frequency \(\pi \approx \sqrt{10}\).
Review: ·
14Let \(f(x) = 1\) for \(1 \lt |x| \le \pi\) and \(f(x) = -1\) for \(|x| \le 1\), extended with period \(2\pi\). (a) Find its Fourier series. (b) Find the sum of the squares of all its Fourier coefficients.
Solution
(a) \(f\) is even, so \(b_n = 0\). The constant term is the average value: over one period of length \(2\pi\), \(f = -1\) on an interval of length \(2\) and \(f = 1\) on the remaining length \(2\pi - 2\), so
\[a_0 = \frac1\pi\int_{-\pi}^{\pi}f\,dx = \frac1\pi\big[(-1)(2) + (1)(2\pi - 2)\big] = \frac{2\pi - 4}{\pi} = 2 - \frac4\pi\] \[\frac{a_0}{2} = 1 - \frac2\pi.\]For \(n \ge 1\), using evenness:
\[a_n = \frac2\pi\left(\int_0^1(-1)\cos nx\,dx + \int_1^\pi\cos nx\,dx\right) = \frac2\pi\left(-\frac{\sin n}{n} + \frac{\sin n\pi - \sin n}{n}\right) = -\frac{4\sin n}{n\pi}.\] \[f(x) = \left(1 - \frac2\pi\right) - \frac4\pi\sum_{n=1}^\infty\frac{\sin n}{n}\cos nx.\]At the jumps \(x = \pm1\) the series converges to \(0\), the midpoint of \(-1\) and \(1\).
(b) By Parseval’s identity the squared coefficients add up to the mean square of \(f\):
\[\frac{a_0^2}{2} + \sum_{n=1}^\infty a_n^2 = \frac1\pi\int_{-\pi}^{\pi}f(x)^2\,dx = \frac1\pi\cdot 2\pi = 2\]since \(f^2 \equiv 1\). (In the orthonormal convention, where the constant basis function is \(1/\sqrt2\) and the coefficient of it is \(a_0/\sqrt2\), this says exactly that the sum of the squares of all the coefficients is \(\|f\|^2 = 2\).) As a by-product, \(\displaystyle\sum_{n=1}^\infty\frac{\sin^2n}{n^2} = \frac{\pi^2}{16}\left(2 - \frac{(2 - 4/\pi)^2}{2}\right) = \frac{\pi - 1}{2}\).
(a) \(f = (1 - \tfrac2\pi) - \tfrac4\pi\sum\frac{\sin n}{n}\cos nx\); (b) the sum of the squared coefficients is \(2\).
Review:
15Derive the formula for \(\mathcal{L}\{\cos t\}\) by expressing \(\cos t\) in terms of complex exponentials.
Solution
\(\cos t = \dfrac{e^{it} + e^{-it}}{2}\), and \(\mathcal{L}\{e^{at}\} = \dfrac{1}{s - a}\) for \(\operatorname{Re}(s - a) \gt 0\), which holds for \(a = \pm i\) whenever \(s \gt 0\). By linearity,
\[\mathcal{L}\{\cos t\} = \frac12\left(\frac{1}{s - i} + \frac{1}{s + i}\right) = \frac12\cdot\frac{(s + i) + (s - i)}{(s - i)(s + i)} = \frac12\cdot\frac{2s}{s^2 + 1} = \frac{s}{s^2 + 1}\] \[s \gt 0.\]The same computation with a minus sign and a factor \(\dfrac{1}{2i}\) gives \(\mathcal{L}\{\sin t\} = \dfrac{1}{s^2 + 1}\), and replacing \(i\) by \(i\omega\) gives the general entries \(\dfrac{s}{s^2 + \omega^2}\) and \(\dfrac{\omega}{s^2 + \omega^2}\).
\(\mathcal{L}\{\cos t\} = \dfrac{s}{s^2 + 1}\) for \(s \gt 0\).
Review:
16Compute \(f(t) = \mathcal{L}^{-1}\left\{\dfrac1s - \dfrac{e^{-s}}{s(s + 1)}\right\}\) in both u-form and cases form, and sketch its graph.
Solution
Partial fractions: \(\dfrac{1}{s(s + 1)} = \dfrac1s - \dfrac{1}{s + 1}\), whose inverse transform is \(1 - e^{-t}\). The factor \(e^{-s}\) delays by 1 and switches on at \(t = 1\):
\[\mathcal{L}^{-1}\left\{\frac{e^{-s}}{s(s + 1)}\right\} = u(t - 1)\big(1 - e^{-(t - 1)}\big).\]u-form:
\[f(t) = 1 - u(t - 1)\big(1 - e^{-(t - 1)}\big).\]Cases form: for \(t \lt 1\) the step is 0 and \(f = 1\); for \(t \ge 1\) the step is 1 and \(f = 1 - 1 + e^{-(t - 1)} = e^{-(t - 1)}\):
\[f(t) = \begin{cases} 1 & 0 \le t \lt 1 \\ e^{-(t - 1)} & t \ge 1. \end{cases}\]Graph: a horizontal line at height 1 up to \(t = 1\), then an exponential decay starting from the value 1 at \(t = 1\) and approaching 0. The function is continuous at \(t = 1\) (both pieces equal 1) but has a corner there, where the slope jumps from 0 to \(-1\).
\(f = 1 - u(t-1)(1 - e^{-(t-1)})\); equals \(1\) for \(t \lt 1\) and \(e^{-(t-1)}\) for \(t \ge 1\).
Review: ·
17Use the Laplace transform to solve (a) \(y'' - y' - 2y = 0\), \(y(0) = 0\), \(y'(0) = 2\); (b) \(y'' + 4y = \cos t\), \(y(0) = y'(0) = 0\).
Solution
(a) \((s^2Y - 0 - 2) - (sY - 0) - 2Y = 0\), so \((s^2 - s - 2)Y = 2\) and
\[Y = \frac{2}{(s - 2)(s + 1)} = \frac{2/3}{s - 2} - \frac{2/3}{s + 1}\] \[\Longrightarrow\ y(t) = \tfrac23\left(e^{2t} - e^{-t}\right).\](Cover-up: to get the coefficient of \(\dfrac{1}{s - 2}\), cover the factor \(s - 2\) and evaluate the rest at \(s = 2\): \(\dfrac{2}{2 + 1} = \dfrac23\); for \(\dfrac{1}{s + 1}\), cover \(s + 1\) and evaluate at \(s = -1\): \(\dfrac{2}{-1 - 2} = -\dfrac23\).) Check: \(y(0) = 0\), \(y'(0) = \tfrac23(2 + 1) = 2\), and the roots \(2, -1\) of \(s^2 - s - 2\) are exactly the exponents, as they must be.
(b) \(s^2Y + 4Y = \dfrac{s}{s^2 + 1}\), so
\[Y = \frac{s}{(s^2 + 1)(s^2 + 4)} = \frac13\left(\frac{s}{s^2 + 1} - \frac{s}{s^2 + 4}\right)\] \[\Longrightarrow\ y(t) = \frac{\cos t - \cos2t}{3}.\](Treat \(s^2\) as the variable: \(\dfrac{1}{(v + 1)(v + 4)} = \dfrac13\left(\dfrac{1}{v + 1} - \dfrac{1}{v + 4}\right)\).) Check: \(y(0) = \tfrac{1 - 1}{3} = 0\), \(y' = \tfrac13(-\sin t + 2\sin2t)\), \(y'(0) = 0\), and \(y'' + 4y = \tfrac13(-\cos t + 4\cos2t + 4\cos t - 4\cos2t) = \cos t\). This is a beat: two frequencies, 1 and 2, with the natural frequency 2 excited by the zero initial conditions.
(a) \(y = \tfrac23(e^{2t} - e^{-t})\); (b) \(y = \tfrac13(\cos t - \cos2t)\).
Review:
18An undamped spring-mass system \(x'' + x = f(t)\) starts at \(x(0) = 0\) with velocity \(x'(0) = 1\). The force is an impulse of magnitude \(F_0\) at \(t = \pi\) and zero otherwise. Solve for \(x(t)\) by Laplace transform, in u-form and cases form, and explain what happens when \(F_0 = 1\).
Solution
\(f(t) = F_0\delta(t - \pi)\), so \(F(s) = F_0e^{-\pi s}\). Transforming:
\[s^2X - s\cdot 0 - 1 + X = F_0e^{-\pi s}\] \[\Longrightarrow\ X = \frac{1}{s^2 + 1} + F_0\frac{e^{-\pi s}}{s^2 + 1}.\]Inverting, with the delayed sine for the second term:
\[x(t) = \sin t + F_0\,u(t - \pi)\sin(t - \pi) = \sin t - F_0\,u(t - \pi)\sin t\]since \(\sin(t - \pi) = -\sin t\). Cases form:
\[x(t) = \begin{cases} \sin t & 0 \le t \lt \pi \\ (1 - F_0)\sin t & t \ge \pi. \end{cases}\]Graph: one arch of \(\sin t\) up to \(t = \pi\), then a sinusoid of amplitude \(|1 - F_0|\) (in phase with \(\sin t\) if \(F_0 \lt 1\), inverted if \(F_0 \gt 1\)). The position is continuous at \(t = \pi\) (both pieces vanish there); the velocity jumps from \(\cos\pi = -1\) to \((1 - F_0)(-1)\), a change of \(+F_0\), the impulse divided by the unit mass.
\(F_0 = 1\): \(x \equiv 0\) for \(t \ge \pi\). At \(t = \pi\) the mass passes through equilibrium moving with velocity \(-1\); a unit impulse in the positive direction adds exactly \(+1\) to the velocity, bringing the mass to rest at equilibrium, where it stays. The impulse cancels the motion perfectly because it is applied at the right moment with the right size.
\(x = \sin t - F_0u(t - \pi)\sin t\): \(\sin t\) for \(t \lt \pi\), \((1 - F_0)\sin t\) for \(t \ge \pi\); \(F_0 = 1\) stops the mass dead.
Review: ·
19Find the unit impulse response of \(x'' + 4x = f(t)\) and write the solution with rest initial conditions as a convolution. Evaluate it for \(f(t) = 1\) and check the result.
Solution
The transfer function is \(W(s) = \dfrac{1}{s^2 + 4} = \dfrac12\cdot\dfrac{2}{s^2 + 4}\), so the unit impulse response is
\[w(t) = \tfrac12\sin2t\]which also solves \(w'' + 4w = 0\) with \(w(0) = 0\), \(w'(0) = 1\). For any input, with rest initial conditions,
\[x(t) = (w * f)(t) = \frac12\int_0^t\sin2(t - \tau)\,f(\tau)\,d\tau.\]\(f \equiv 1\). Substituting \(u = t - \tau\) (so \(du = -d\tau\); \(\tau = 0\) becomes \(u = t\) and \(\tau = t\) becomes \(u = 0\), and the minus sign from \(du\) flips the limits back to \(0\) to \(t\)):
\[x(t) = \frac12\int_0^t\sin2u\,du = \frac12\left[-\frac{\cos2u}{2}\right]_0^t = \frac{1 - \cos2t}{4}.\]Check: \(x'' = \cos2t\) and \(x'' + 4x = \cos2t + 1 - \cos2t = 1\); \(x(0) = 0\), \(x'(0) = \tfrac12\sin0 = 0\). The same result comes from \(X = \dfrac{1}{s(s^2 + 4)} = \dfrac14\left(\dfrac1s - \dfrac{s}{s^2 + 4}\right)\): the unit step response is the integral of the impulse response.
\(w = \tfrac12\sin2t\); \(x = \tfrac12\int_0^t\sin2(t - \tau)f(\tau)\,d\tau\); for \(f = 1\), \(x = \tfrac14(1 - \cos2t)\).
Review:
Set 4: linear and nonlinear systems
Differential Equations · Exam-style problems 20 to 26
Problems 20 to 26
These problems follow the practice final for MIT 18.03 and a selection of final-exam questions on the same material. Every problem opens to a full, step-by-step solution with the final answer highlighted. Try it on paper first. The Review link at the end of each solution jumps back to the tab that teaches the idea.
20Find the general real solution of \(x' = x - 2y\), \(y' = 4x + 3y\) by the eigenvalue method.
Solution
\(A = \begin{bmatrix} 1 & -2 \\ 4 & 3 \end{bmatrix}\), \(\operatorname{tr}A = 4\), \(\det A = 3 + 8 = 11\): \(\lambda^2 - 4\lambda + 11 = 0\), \(\lambda = 2 \pm i\sqrt7\). Complex eigenvalues with positive real part: a spiral source.
Eigenvector for \(\lambda = 2 + i\sqrt7\): the first row of \(A - \lambda I\) is \((-1 - i\sqrt7,\ -2)\), so \((-1 - i\sqrt7)v_1 - 2v_2 = 0\); take \(v_1 = 2\), \(v_2 = -1 - i\sqrt7\):
\[\mathbf{v} = \begin{bmatrix} 2 \\ -1 - i\sqrt7 \end{bmatrix} = \underbrace{\begin{bmatrix} 2 \\ -1 \end{bmatrix}}_{\mathbf{p}} + i\underbrace{\begin{bmatrix} 0 \\ -\sqrt7 \end{bmatrix}}_{\mathbf{q}}.\]Real and imaginary parts of \(e^{2t}(\cos\sqrt7t + i\sin\sqrt7t)(\mathbf{p} + i\mathbf{q}) = e^{2t}\big[(\mathbf{p}\cos\sqrt7t - \mathbf{q}\sin\sqrt7t) + i(\mathbf{p}\sin\sqrt7t + \mathbf{q}\cos\sqrt7t)\big]\), with \(\mathbf{p} = (2, -1)\) and \(\mathbf{q} = (0, -\sqrt7)\):
\[\mathbf{x}_1 = e^{2t}\begin{bmatrix} 2\cos\sqrt7t \\ -\cos\sqrt7t + \sqrt7\sin\sqrt7t \end{bmatrix}\] \[\mathbf{x}_2 = e^{2t}\begin{bmatrix} 2\sin\sqrt7t \\ -\sin\sqrt7t - \sqrt7\cos\sqrt7t \end{bmatrix}\] \[\begin{bmatrix} x \\ y \end{bmatrix} = c_1\mathbf{x}_1 + c_2\mathbf{x}_2.\]Check \(\mathbf{x}_1\) at \(t = 0\): \(\mathbf{x}_1(0) = (2, -1)\) and \(\mathbf{x}_1'(0) = 2\mathbf{p} - \sqrt7\mathbf{q} = (4, -2 + 7) = (4, 5)\), while \(A(2, -1) = (2 + 2, 8 - 3) = (4, 5)\). The rotation is counterclockwise (at \((1, 0)\) the velocity is \((1, 4)\)).
\(\mathbf{x} = c_1e^{2t}(2\cos\sqrt7t,\ -\cos\sqrt7t + \sqrt7\sin\sqrt7t) + c_2e^{2t}(2\sin\sqrt7t,\ -\sin\sqrt7t - \sqrt7\cos\sqrt7t)\).
Review:
21For \(\mathbf{x}' = A_a\mathbf{x}\) with \(A_a = \begin{bmatrix} a & 1 \\ 1 & a \end{bmatrix}\): (a) find the values of \(a\) for which the origin is (i) a source node, (ii) a sink node, (iii) a saddle. (b) Choose a convenient \(a\) of each type, solve, and sketch the trajectories near the origin.
Solution
(a) \(\operatorname{tr}A_a = 2a\), \(\det A_a = a^2 - 1\), discriminant \(4a^2 - 4(a^2 - 1) = 4 \gt 0\): the eigenvalues are always real, \(\lambda = a \pm 1\), with eigenvectors \((1, 1)\) for \(a + 1\) and \((1, -1)\) for \(a - 1\) (independent of \(a\)).
- Source node both eigenvalues positive: \(a - 1 \gt 0\), i.e. \(a \gt 1\).
- Sink node both negative: \(a + 1 \lt 0\), i.e. \(a \lt -1\).
- Saddle opposite signs: \(-1 \lt a \lt 1\) (\(\det \lt 0\)).
At \(a = \pm1\) one eigenvalue is zero: a line of equilibria, the borderline between the cases.
(b) In every case \(\mathbf{x} = c_1e^{(a + 1)t}\begin{bmatrix} 1 \\ 1 \end{bmatrix} + c_2e^{(a - 1)t}\begin{bmatrix} 1 \\ -1 \end{bmatrix}\).
- \(a = 2\) \(\lambda = 3, 1\): \(\mathbf{x} = c_1e^{3t}(1, 1) + c_2e^{t}(1, -1)\). Trajectories leave the origin tangent to the slow line \(y = -x\) and bend toward the fast direction \(y = x\) as \(t\) increases; all arrows point outward.
- \(a = -2\) \(\lambda = -1, -3\): \(\mathbf{x} = c_1e^{-t}(1, 1) + c_2e^{-3t}(1, -1)\). The \(e^{-3t}\) part dies first, so trajectories come in parallel to \(y = -x\) far out and arrive tangent to the slow line \(y = x\); arrows inward.
- \(a = 0\) \(\lambda = \pm1\): \(\mathbf{x} = c_1e^{t}(1, 1) + c_2e^{-t}(1, -1)\). Trajectories enter along \(y = -x\) and leave along \(y = x\); the others are hyperbolas \(x^2 - y^2 = \text{const}\) (indeed \(\frac{d}{dt}(x^2 - y^2) = 2xy - 2yx = 0\)).
(a) source node \(a \gt 1\); sink node \(a \lt -1\); saddle \(-1 \lt a \lt 1\). (b) \(\mathbf{x} = c_1e^{(a+1)t}(1,1) + c_2e^{(a-1)t}(1,-1)\).
Review: ·
22For \(x' = x - 2y\), \(y' = 4x - x^3\): (a) find the critical points; (b) classify each by its linearization (type, stability, structural stability); (c) compute the eigenvectors needed and sketch the phase portrait. Is there more than one possibility for the shape near each critical point?
Solution
(a) \(x' = 0\) gives \(y = x/2\); \(y' = 0\) gives \(x(4 - x^2) = 0\), \(x = 0, \pm2\). Critical points: \((0, 0)\), \((2, 1)\), \((-2, -1)\).
(b) With \(f = x - 2y\) and \(g = 4x - x^3\): \(f_x = 1\), \(f_y = -2\), \(g_x = 4 - 3x^2\), \(g_y = 0\), so \(J = \begin{bmatrix} 1 & -2 \\ 4 - 3x^2 & 0 \end{bmatrix}\). Only the lower-left entry changes from point to point.
- \((0,0)\) \(J = \begin{bmatrix} 1 & -2 \\ 4 & 0 \end{bmatrix}\): \(T = 1\), \(D = 8\), \(T^2 - 4D = -31 \lt 0\). Complex eigenvalues \(\tfrac12 \pm i\tfrac{\sqrt{31}}{2}\) with positive real part: spiral source, unstable. Rotation: at \((1, 0)\) the velocity is \((1, 4)\), counterclockwise.
- \((\pm2, \pm1)\) \(4 - 3(4) = -8\): \(J = \begin{bmatrix} 1 & -2 \\ -8 & 0 \end{bmatrix}\), \(D = -16 \lt 0\): saddles, unstable.
All three are robust (structurally stable) types: nodes, saddles and spirals with \(T \ne 0\) keep their type under small perturbations, so the nonlinear system has exactly these local pictures.
(c) At the saddles \(\lambda^2 - \lambda - 16 = 0\), \(\lambda = \dfrac{1 \pm \sqrt{65}}{2} \approx 4.53, -3.53\). From the first row, \((1 - \lambda)v_1 - 2v_2 = 0\), so \(\mathbf{v} = (2, 1 - \lambda)\): unstable direction \((2, -3.53)\) (steep, down to the right) and stable direction \((2, 4.53)\) (steep, up to the right), the same at both saddles.
Portrait: trajectories spiral counterclockwise outward from the origin; the stable separatrices of the two saddles form the boundary that the spiral eventually crosses, after which trajectories leave along the unstable directions, heading off toward large \(|y|\) (where \(y' \approx -x^3\) and \(x' \approx -2y\) dominate). Because every linearized type here is structurally stable, there is only one possibility for the local shape and stability at each point; a linear center would have left the question open, but none occurs.
(a) \((0,0), (2,1), (-2,-1)\); (b) spiral source at the origin, saddles at \((\pm2, \pm1)\), all structurally stable; (c) saddle eigenvectors \((2, 1 - \lambda)\), \(\lambda = \tfrac{1 \pm \sqrt{65}}{2}\); only one possibility.
Review: ·
23Same questions for \(x' = y\), \(y' = 2x - x^2\).
Solution
(a) \(y = 0\) and \(x(2 - x) = 0\): critical points \((0, 0)\) and \((2, 0)\).
(b) \(J = \begin{bmatrix} 0 & 1 \\ 2 - 2x & 0 \end{bmatrix}\).
- \((0,0)\) \(J = \begin{bmatrix} 0 & 1 \\ 2 & 0 \end{bmatrix}\), \(D = -2\): saddle (structurally stable). Eigenvalues \(\pm\sqrt2\), eigenvectors \((1, \sqrt2)\) (unstable) and \((1, -\sqrt2)\) (stable).
- \((2,0)\) \(J = \begin{bmatrix} 0 & 1 \\ -2 & 0 \end{bmatrix}\), \(T = 0\), \(D = 2\): a linear center, eigenvalues \(\pm i\sqrt2\). This is a borderline, structurally unstable case: the linearization cannot tell a center from a slow spiral.
(c) Settle the center with a conserved quantity. The system is \(x'' = 2x - x^2\), a conservative equation with potential \(V(x) = -x^2 + \tfrac13x^3\) (so that \(-V' = 2x - x^2\)) and energy
\[E(x, y) = \tfrac12y^2 - x^2 + \tfrac13x^3\] \[\frac{dE}{dt} = yy' - 2xx' + x^2x' = y(2x - x^2) - (2x - x^2)y = 0.\]Trajectories are level curves of \(E\). Since \(V'(2) = 0\) and \(V''(2) = -2 + 4 = 2 \gt 0\), \(V\) has a local minimum at \(x = 2\), the level curves near \((2, 0)\) are closed, and \((2, 0)\) is a genuine center: periodic orbits (neutrally stable).
Portrait: a saddle at the origin with separatrices along slopes \(\pm\sqrt2\); the level curve \(E = 0\) through the origin forms a loop (homoclinic orbit) enclosing the center at \((2, 0)\), filled with closed orbits; outside the loop, trajectories come in from the lower right, swing around, and leave to the upper left (for \(x \lt 0\), \(y' = 2x - x^2 \lt 0\), so motion is downward there). Here there was more than one possibility from the linearization alone (center or spiral at \((2, 0)\)); the conserved quantity resolved it.
(a) \((0,0)\) saddle, \((2,0)\) linear center; (b) saddle robust, center borderline; (c) \(E = \tfrac12y^2 - x^2 + \tfrac13x^3\) is conserved, so \((2,0)\) is a true center.
Review: ·
24For \(\dfrac{dx}{dt} = x + y - xy\), \(\dfrac{dy}{dt} = x - 3y + xy\): (a) find the equilibrium points; (b) find the Jacobian at each; (c) decide the stability of each; (d) describe the phase portrait well enough to pick it out of a lineup.
Solution
(a) \(x + y = xy\) and \(x - 3y = -xy\). Adding: \(2x - 2y = 0\), so \(x = y\); then \(2x = x^2\), \(x = 0\) or \(2\). Equilibria \((0, 0)\) and \((2, 2)\).
(b) \(J = \begin{bmatrix} 1 - y & 1 - x \\ 1 + y & -3 + x \end{bmatrix}\):
\[J(0, 0) = \begin{bmatrix} 1 & 1 \\ 1 & -3 \end{bmatrix}\] \[J(2, 2) = \begin{bmatrix} -1 & -1 \\ 3 & -1 \end{bmatrix}.\](c) At \((0, 0)\): \(T = 1 - 3 = -2\), \(D = (1)(-3) - (1)(1) = -4 \lt 0\), a saddle, unstable; eigenvalues \(\dfrac{-2 \pm\sqrt{4 + 16}}{2} = -1 \pm\sqrt5\). At \((2, 2)\): \(T = -2\), \(D = (-1)(-1) - (-1)(3) = 4\), \(T^2 - 4D = -12 \lt 0\), eigenvalues \(-1 \pm i\sqrt3\): a spiral sink, asymptotically stable (negative real part). Both are structurally stable types, so these are the true nonlinear types too.
(d) A saddle at the origin and a stable spiral in the first quadrant at \((2, 2)\), into which nearby trajectories wind. Rotation sense: at \((3, 2)\) the velocity is \((3 + 2 - 6,\ 3 - 6 + 6) = (-1, 3)\), up and to the left from the right side of the sink, so the spiral turns counterclockwise. Saddle directions at the origin: eigenvector for \(-1 + \sqrt5 \approx 1.24\) is \((1, \sqrt5 - 2) \approx (1, 0.24)\) (unstable, nearly along the \(x\)-axis), for \(-1 - \sqrt5\) it is \((1, -\sqrt5 - 2) \approx (1, -4.24)\) (stable, steep). In a lineup, the picture with the spiral up and to the right of the origin is the one; pictures with the spiral in the third quadrant, or with a node instead of a spiral, are ruled out.
(a) \((0,0), (2,2)\); (b) as displayed; (c) saddle (unstable) at the origin, spiral sink (stable) at \((2,2)\); (d) counterclockwise spiral sink in the first quadrant with a saddle at the origin.
Review: ·
25Compute \(e^{At}\) for \(A = \begin{bmatrix} 0 & 1 \\ -2 & -3 \end{bmatrix}\) and use it to solve \(\mathbf{x}' = A\mathbf{x}\), \(\mathbf{x}(0) = (1, 0)\). Relate the answer to the equation \(y'' + 3y' + 2y = 0\).
Solution
\(\lambda^2 + 3\lambda + 2 = (\lambda + 1)(\lambda + 2)\): \(\lambda = -1\) with eigenvector \((1, -1)\), \(\lambda = -2\) with eigenvector \((1, -2)\) (for a companion matrix the eigenvector of \(\lambda\) is \((1, \lambda)\)). So
\[P = \begin{bmatrix} 1 & 1 \\ -1 & -2 \end{bmatrix}\](\(\det P = (1)(-2) - (1)(-1) = -1\), and the inverse of \(\begin{bmatrix} a & b \\ c & d \end{bmatrix}\) is \(\dfrac{1}{ad - bc}\begin{bmatrix} d & -b \\ -c & a \end{bmatrix}\).)
\[P^{-1} = \frac{1}{-1}\begin{bmatrix} -2 & -1 \\ 1 & 1 \end{bmatrix} = \begin{bmatrix} 2 & 1 \\ -1 & -1 \end{bmatrix}\] \[e^{At} = P\begin{bmatrix} e^{-t} & 0 \\ 0 & e^{-2t} \end{bmatrix}P^{-1} = \begin{bmatrix} e^{-t} & e^{-2t} \\ -e^{-t} & -2e^{-2t} \end{bmatrix}\begin{bmatrix} 2 & 1 \\ -1 & -1 \end{bmatrix} = \begin{bmatrix} 2e^{-t} - e^{-2t} & e^{-t} - e^{-2t} \\ -2e^{-t} + 2e^{-2t} & -e^{-t} + 2e^{-2t} \end{bmatrix}.\]At \(t = 0\) this is \(I\), as it must be. With \(\mathbf{x}(0) = (1, 0)\), the solution is the first column:
\[\mathbf{x}(t) = \begin{bmatrix} 2e^{-t} - e^{-2t} \\ -2e^{-t} + 2e^{-2t} \end{bmatrix}.\]\(A\) is the companion matrix of \(y'' + 3y' + 2y = 0\) with \(x_1 = y\), \(x_2 = y'\). The first component \(y = 2e^{-t} - e^{-2t}\) solves that equation with \(y(0) = 1\), \(y'(0) = 0\), and the second component is indeed its derivative. The first row of \(e^{At}\) says in general: \(y(t) = (2e^{-t} - e^{-2t})y(0) + (e^{-t} - e^{-2t})y'(0)\).
\(e^{At} = \begin{bmatrix} 2e^{-t} - e^{-2t} & e^{-t} - e^{-2t} \\ -2e^{-t} + 2e^{-2t} & -e^{-t} + 2e^{-2t} \end{bmatrix}\); \(\mathbf{x} = (2e^{-t} - e^{-2t},\ -2e^{-t} + 2e^{-2t})\).
Review:
26Solve \(\mathbf{x}' = \begin{bmatrix} 1 & 1 \\ -1 & 3 \end{bmatrix}\mathbf{x}\) with \(\mathbf{x}(0) = (1, 2)\), and classify the origin.
Solution
\(T = 4\), \(D = 3 + 1 = 4\), \(T^2 - 4D = 0\): a repeated eigenvalue \(\lambda = 2\). \(A - 2I = \begin{bmatrix} -1 & 1 \\ -1 & 1 \end{bmatrix}\) has rank 1, so there is only one eigenvector direction, \(\mathbf{v} = (1, 1)\): the origin is a degenerate (improper) node, a source since \(\lambda \gt 0\).
Generalized eigenvector: solve \((A - 2I)\mathbf{w} = \mathbf{v}\), i.e. \(-w_1 + w_2 = 1\) (both rows say the same); take \(\mathbf{w} = (0, 1)\), and check \((A - 2I)(0, 1)^{\mathsf T} = (1, 1)^{\mathsf T} = \mathbf{v}\). Any other choice, such as \((1, 2)\), differs from this one by a multiple of \(\mathbf{v}\) and gives the same family of solutions. Then
\[\mathbf{x} = c_1e^{2t}\begin{bmatrix} 1 \\ 1 \end{bmatrix} + c_2e^{2t}\left(t\begin{bmatrix} 1 \\ 1 \end{bmatrix} + \begin{bmatrix} 0 \\ 1 \end{bmatrix}\right).\]Initial condition: \(c_1(1, 1) + c_2(0, 1) = (1, 2)\) gives \(c_1 = 1\), \(c_2 = 1\):
\[\mathbf{x}(t) = e^{2t}\begin{bmatrix} 1 + t \\ 2 + t \end{bmatrix}.\]Check: \(\mathbf{x}' = e^{2t}(3 + 2t,\ 5 + 2t)\) and \(A\mathbf{x} = e^{2t}(1 + t + 2 + t,\ -1 - t + 6 + 3t) = e^{2t}(3 + 2t,\ 5 + 2t)\). All trajectories leave the origin tangent to the line \(y = x\) (the \(t\mathbf{v}\) term dominates for large \(|t|\)), curling around it once, as improper nodes do.
Repeated \(\lambda = 2\), improper source node; \(\mathbf{x} = e^{2t}(1 + t,\ 2 + t)\).
Review: ·
Challenge 1: first-order equations
Differential Equations · Challenge problems 27 to 46
Problems 27 to 46
One hundred harder problems, still within the scope of the course: bifurcations, resonance in all its forms, Fourier and Laplace manipulations, systems with repeated or complex eigenvalues, and nonlinear portraits settled by conserved quantities and Lyapunov functions. Each opens to a complete solution with every step shown and the final answer highlighted. Expect to need pencil and paper, and use the Review links to go back to the relevant tab.
27Solve the Bernoulli equation \(y' + y = y^2\) by the substitution \(v = 1/y\). Then solve it a second way, as an autonomous separable equation, and reconcile the two answers. Which solutions blow up in finite time?
Solution
Substitution. With \(v = y^{-1}\), \(v' = -y^{-2}y'\). Divide the equation by \(y^2\): \(y^{-2}y' + y^{-1} = 1\), i.e. \(-v' + v = 1\), a linear equation \(v' - v = -1\). Integrating factor \(e^{-t}\): \((e^{-t}v)' = -e^{-t}\), so \(e^{-t}v = e^{-t} + C\), \(v = 1 + Ce^t\), and
\[y = \frac{1}{1 + Ce^t}.\]The constant solution \(y = 0\) (lost when dividing by \(y^2\)) must be added; \(y = 1\) is \(C = 0\).
Separation. \(y' = y^2 - y = y(y - 1)\), so \(\int\dfrac{dy}{y(y - 1)} = \int dt\). Partial fractions \(\dfrac{1}{y(y-1)} = \dfrac{1}{y - 1} - \dfrac1y\) give \(\ln\left|\dfrac{y - 1}{y}\right| = t + c\), so \(\dfrac{y - 1}{y} = Ke^t\), \(1 - \dfrac1y = Ke^t\), \(y = \dfrac{1}{1 - Ke^t}\). This is the same family with \(C = -K\).
Blow-up. The phase line has equilibria 0 (stable: \(f'(0) = -1\)) and 1 (unstable: \(f'(1) = 1\)). Solutions with \(0 \lt y(0) \lt 1\) decay to 0; those with \(y(0) \lt 0\) rise to 0. Those with \(y(0) \gt 1\) have \(C \lt 0\) in \(y = 1/(1 + Ce^t)\) with \(|C| \lt 1\), so the denominator reaches 0 at \(t^* = \ln(1/|C|) = \ln\dfrac{y(0)}{y(0) - 1}\): they blow up in finite time, e.g. \(y(0) = 2\) blows up at \(t^* = \ln 2\).
\(y = \dfrac{1}{1 + Ce^t}\) (plus \(y \equiv 0\)); solutions with \(y(0) \gt 1\) blow up at \(t^* = \ln\frac{y(0)}{y(0)-1}\).
Review: ·
28Solve \(y' = \dfrac{y}{x} + 1\) for \(x \gt 0\) in two ways: as a linear equation, and with the substitution \(v = y/x\). Find the solution through \((1, 2)\).
Solution
Linear. \(y' - \dfrac1xy = 1\), integrating factor \(e^{-\int dx/x} = \dfrac1x\): \(\left(\dfrac yx\right)' = \dfrac1x\), so \(\dfrac yx = \ln x + C\) and
\[y = x\ln x + Cx.\]Substitution. \(y = xv\), \(y' = v + xv'\). The equation becomes \(v + xv' = v + 1\), so \(xv' = 1\), \(v = \ln x + C\), the same answer. The substitution \(v = y/x\) works for any equation of the form \(y' = F(y/x)\) (homogeneous of degree zero) and always produces a separable equation for \(v\).
Through \((1, 2)\): \(2 = 0 + C\), so \(y = x\ln x + 2x\). Check: \(y' = \ln x + 1 + 2 = \ln x + 3\) and \(\dfrac yx + 1 = \ln x + 2 + 1\). Every solution has \(y(x)/x \to \infty\) slowly; the solution curves all pass through the origin in the limit \(x \to 0^+\) (since \(x\ln x \to 0\)), where the equation itself is undefined and uniqueness fails.
\(y = x\ln x + Cx\); through \((1,2)\): \(y = x\ln x + 2x\).
Review:
29A fish population follows the logistic equation with harvesting, \(p' = p(1 - p) - h\), \(h \ge 0\) constant. Find the equilibria as functions of \(h\), their stability, and the critical harvesting rate above which the population dies out from every starting size. Sketch the bifurcation diagram.
Solution
Equilibria solve \(p^2 - p + h = 0\):
\[p_\pm = \frac{1 \pm\sqrt{1 - 4h}}{2}\] \[\text{real iff } h \le \tfrac14.\]With \(f(p) = -p^2 + p - h\), \(f'(p) = 1 - 2p\). At \(p_+\) (above \(\tfrac12\)) \(f'(p_+) = 1 - (1 + \sqrt{1 - 4h}) = -\sqrt{1 - 4h} \lt 0\): stable. At \(p_-\) (below \(\tfrac12\)) \(f'(p_-) = +\sqrt{1 - 4h} \gt 0\): unstable, a threshold. For \(0 \lt h \lt \tfrac14\) the picture is: \(p' \lt 0\) for \(p \lt p_-\) (the population collapses to 0 and then, in the model, goes negative, i.e. extinction), \(p' \gt 0\) between the equilibria (recovery toward \(p_+\)), \(p' \lt 0\) above \(p_+\).
Critical rate. At \(h = \tfrac14\) the two equilibria merge at \(p = \tfrac12\) (semistable, \(f'(\tfrac12) = 0\)). For \(h \gt \tfrac14\) there are no equilibria and \(f(p) = -(p - \tfrac12)^2 - (h - \tfrac14) \lt 0\) everywhere: every population decreases without bound, so the species dies out whatever its initial size. The maximum sustainable yield is \(h = \tfrac14\), the maximum of the growth function \(p(1 - p)\); harvesting at exactly that rate is fragile, since any perturbation below \(\tfrac12\) leads to collapse.
Bifurcation diagram (\(h\) horizontal, \(p\) vertical): the parabola \(h = p(1 - p)\) opening to the left with vertex \((\tfrac14, \tfrac12)\); the upper branch (stable) drawn solid, the lower branch (unstable) dashed; for \(h \gt \tfrac14\) nothing. A saddle-node bifurcation at \(h = \tfrac14\).
\(p_\pm = \tfrac{1 \pm\sqrt{1 - 4h}}{2}\): \(p_+\) stable, \(p_-\) unstable; extinction for all starts when \(h \gt \tfrac14\).
Review:
30Solve \(y' = y^2\), \(y(0) = 1\), and find the largest interval on which the solution exists. Explain why the existence theorem did not predict this, and compare with \(y' = y\), \(y(0) = 1\).
Solution
Separate: \(\int y^{-2}\,dy = \int dt\), so \(-\dfrac1y = t + C\). With \(y(0) = 1\): \(-1 = 0 + C\), so \(C = -1\) and \(-\dfrac1y = t - 1\), i.e.
\[y(t) = \frac{1}{1 - t}\] \[\text{defined for } -\infty \lt t \lt 1.\]As \(t \to 1^-\), \(y \to +\infty\): the solution blows up in finite time. The maximal interval of existence is \((-\infty, 1)\); the formula also defines a function for \(t \gt 1\), but that is a different solution (negative, with \(y \to -\infty\) as \(t \to 1^+\)), not a continuation of ours.
Why the theorem is silent. \(f(t, y) = y^2\) and \(f_y = 2y\) are continuous everywhere, so the existence and uniqueness theorem guarantees a unique solution on some interval around \(t = 0\); it is a local theorem and says nothing about how long the interval is. Nonlinear equations whose right side grows faster than linearly in \(y\) can run out of time like this. For \(y' = y\), \(y(0) = 1\), the solution \(y = e^t\) exists for all \(t\): linear equations with continuous coefficients always have global solutions, because \(|f| \le a(t)|y| + b(t)\) prevents blow-up.
The blow-up time depends on the initial value: \(y(0) = y_0 \gt 0\) gives \(y = \dfrac{y_0}{1 - y_0t}\), exploding at \(t^* = 1/y_0\); larger starts explode sooner.
\(y = 1/(1 - t)\) on \((-\infty, 1)\); the existence theorem is only local; \(y' = y\) gives \(e^t\) for all \(t\).
Review: ·
31Solve \(ty' + 2y = \sin t\) with \(y(\pi) = 0\), for \(t \gt 0\). What happens to the solution as \(t \to \infty\)? As \(t \to 0^+\)?
Solution
Standard form: \(y' + \dfrac2ty = \dfrac{\sin t}{t}\). Integrating factor \(e^{\int 2\,dt/t} = e^{2\ln t} = t^2\). Then \((t^2y)' = t^2\cdot\dfrac{\sin t}{t} = t\sin t\), and integrating by parts with \(u = t\), \(dv = \sin t\,dt\) (\(\int t\sin t\,dt = -t\cos t + \int\cos t\,dt\)),
\[t^2y = -t\cos t + \sin t + C.\]At \(t = \pi\): \(\pi^2\cdot 0 = -\pi(-1) + 0 + C\), so \(C = -\pi\). Hence
\[y(t) = \frac{\sin t - t\cos t - \pi}{t^2}.\]Check: \(y(\pi) = \dfrac{0 + \pi - \pi}{\pi^2} = 0\). Differentiating \(t^2y = \sin t - t\cos t - \pi\) gives \(2ty + t^2y' = \cos t - \cos t + t\sin t = t\sin t\), i.e. \(ty' + 2y = \sin t\).
\(t \to \infty\): the numerator is bounded by \(|t| + 1 + \pi\), so \(|y| \le \dfrac{t + 1 + \pi}{t^2} \to 0\); the solution decays like \(-\dfrac{\cos t}{t}\), an oscillation of shrinking amplitude. \(t \to 0^+\): \(\sin t - t\cos t \approx t - \tfrac{t^3}{6} - t + \tfrac{t^3}{2} = \tfrac{t^3}{3} \to 0\), so the numerator tends to \(-\pi\) and \(y \approx -\pi/t^2 \to -\infty\). Only the solution with \(C = 0\) (which has \(y(\pi) = 1/\pi\), not 0) stays bounded at the origin; the coefficient \(2/t\) is singular there, so the initial condition at \(t = \pi\) cannot control behaviour across \(t = 0\).
\(y = \dfrac{\sin t - t\cos t - \pi}{t^2}\); \(y \to 0\) as \(t \to \infty\), \(y \to -\infty\) as \(t \to 0^+\).
Review:
32For \(y' = y - t^2\): find the general solution, identify the one solution that is a polynomial, and use it as a fence to show that every solution with \(y(0) \lt 2\) tends to \(-\infty\) while every solution with \(y(0) \gt 2\) tends to \(+\infty\). Where are the minima of the solutions?
Solution
Linear with integrating factor \(e^{-t}\): \((e^{-t}y)' = -t^2e^{-t}\). Two integrations by parts give \(\int t^2e^{-t}\,dt = -(t^2 + 2t + 2)e^{-t}\), so \(e^{-t}y = (t^2 + 2t + 2)e^{-t} + C\):
\[y = t^2 + 2t + 2 + Ce^t.\]The polynomial solution is \(C = 0\): \(y_p = t^2 + 2t + 2 = (t + 1)^2 + 1\). Check: \(y_p' = 2t + 2 = y_p - t^2\).
Fence argument. Solutions cannot cross \(y_p\). The solution with \(y(0) = y_0\) has \(C = y_0 - 2\). If \(y_0 \lt 2\) then \(C \lt 0\) and \(y - y_p = Ce^t \to -\infty\): the solution falls away from the parabola exponentially, so \(y \to -\infty\). If \(y_0 \gt 2\), \(C \gt 0\) and \(y \to +\infty\) faster than the parabola. The parabola is the unique solution that neither diverges exponentially upward nor downward; it is the "separatrix" of this equation.
Minima. \(y' = 0\) on the nullcline \(y = t^2\). A solution has a minimum where it crosses \(y = t^2\) going from decreasing to increasing; since \(y'' = y' - 2t = y - t^2 - 2t\) equals \(-2t\) on the nullcline, crossings with \(t \lt 0\) are minima and crossings with \(t \gt 0\) are maxima. The parabola solution has its minimum at \(t = -1\), where indeed \(y_p = 1 = (-1)^2\).
\(y = t^2 + 2t + 2 + Ce^t\); the parabola \(C = 0\) is the fence; \(y(0) \lt 2 \Rightarrow -\infty\), \(y(0) \gt 2 \Rightarrow +\infty\); extrema on \(y = t^2\).
Review: ·
33For \(y' = y\), \(y(0) = 1\), take one step of size \(h = 0.5\) with Euler’s method and with the improved Euler (Heun) method. Compare both with the exact value and explain the orders of the two errors.
Solution
Euler. \(y_1 = 1 + 0.5\cdot f(0, 1) = 1 + 0.5 = 1.5\).
Improved Euler. Predict with Euler, \(\tilde y = 1.5\); average the slopes at the start and at the predicted end:
\[y_1 = 1 + \frac{h}{2}\big(f(0, 1) + f(0.5, 1.5)\big) = 1 + 0.25(1 + 1.5) = 1.625.\]Exact. \(y(0.5) = e^{0.5} = 1.6487\).
Errors: Euler \(0.149\), improved Euler \(0.024\). For \(y' = y\) the Euler step is \(1 + h\), the first two terms of \(e^h = 1 + h + \tfrac{h^2}{2} + \cdots\), so its local error is about \(\tfrac{h^2}{2} = 0.125\) (observed \(0.149\)). The improved Euler step is \(1 + h + \tfrac{h^2}{2}\), matching \(e^h\) through the quadratic term, with local error about \(\tfrac{h^3}{6} = 0.021\) (observed \(0.024\)). Over a fixed interval with \(1/h\) steps the global errors are proportional to \(h\) and \(h^2\) respectively: halving \(h\) halves Euler’s error but quarters Heun’s. Runge–Kutta 4 would reproduce \(e^h\) through the \(h^4\) term.
Euler \(1.5\), Heun \(1.625\), exact \(1.6487\); local errors \(\approx h^2/2\) and \(h^3/6\).
Review:
34Apply Euler’s method to \(y' = y\), \(y(0) = 1\), on \([0, 1]\) with \(n\) equal steps. Show that \(y_n = (1 + 1/n)^n\), compute the error for \(n = 10\), and show that the error is approximately \(e/(2n)\) for large \(n\).
Solution
Each step multiplies by \(1 + h\) with \(h = 1/n\): \(y_{k+1} = y_k + hy_k = (1 + h)y_k\). After \(n\) steps,
\[y_n = (1 + h)^n = \left(1 + \frac1n\right)^n \to e\]the classical limit. For \(n = 10\): \(1.1^{10} = 2.5937\) versus \(e = 2.7183\), error \(0.1246\).
Error estimate. \(\ln y_n = n\ln(1 + \tfrac1n) = n\left(\tfrac1n - \tfrac{1}{2n^2} + \tfrac{1}{3n^3} - \cdots\right) = 1 - \tfrac{1}{2n} + O(n^{-2})\). Exponentiating, \(y_n = e\cdot e^{-1/(2n) + \cdots} \approx e\left(1 - \tfrac{1}{2n}\right)\), so
\[e - y_n \approx \frac{e}{2n}.\]For \(n = 10\) this predicts \(0.136\), close to the observed \(0.125\) (the next term improves the agreement). The error is proportional to \(1/n = h\): Euler is a first-order method, and every doubling of \(n\) halves the error, so reaching three correct decimals would need about \(n \approx 1400\) steps, where a fourth-order method needs a handful.
\(y_n = (1 + 1/n)^n\); \(n = 10\): \(2.5937\), error \(0.125\); error \(\approx e/(2n)\).
Review:
35For the family \(y' = y^2 - 2y + a\), find the equilibria and their stability for every real \(a\), identify the bifurcation value, and draw the bifurcation diagram. For \(a = 0\), what is the fate of solutions with \(y(0) = 1\) and \(y(0) = 3\)?
Solution
Equilibria: \(y^2 - 2y + a = 0\), \(y = 1 \pm\sqrt{1 - a}\), real iff \(a \le 1\). With \(f(y) = y^2 - 2y + a\), \(f'(y) = 2y - 2\): at \(y_- = 1 - \sqrt{1 - a}\), \(f' = -2\sqrt{1 - a} \lt 0\), stable; at \(y_+ = 1 + \sqrt{1 - a}\), \(f' \gt 0\), unstable.
- \(a \lt 1\) two equilibria; \(y' \gt 0\) outside them, \(y' \lt 0\) between. Solutions below \(y_+\) tend to \(y_-\); solutions above \(y_+\) blow up (in finite time, since \(f \sim y^2\)).
- \(a = 1\) \(f = (y - 1)^2 \ge 0\): a single semistable equilibrium at 1, approached from below, repelled above. The bifurcation value.
- \(a \gt 1\) \(f \gt 0\) everywhere: no equilibria, every solution increases and blows up.
Bifurcation diagram (\(a\) horizontal, \(y\) vertical): the parabola \(a = 2y - y^2 = 1 - (y - 1)^2\) opening to the left with vertex at \((1, 1)\); lower branch solid (stable), upper branch dashed (unstable). A saddle-node bifurcation.
\(a = 0\): \(y' = y(y - 2)\), equilibria 0 (stable) and 2 (unstable). \(y(0) = 1\) lies between them where \(y' \lt 0\): the solution decreases to 0. \(y(0) = 3\) lies above 2: increases to infinity. Solving exactly by partial fractions, \(\displaystyle\int\frac{dy}{y(y - 2)} = \frac12\ln\left|\frac{y - 2}{y}\right| = t + C'\), so \(\dfrac{y - 2}{y} = Ce^{2t}\) with \(C = \tfrac{3 - 2}{3} = \tfrac13\), giving \(y = \dfrac{2}{1 - Ce^{2t}}\), which blows up when \(Ce^{2t} = 1\), at \(t = \tfrac12\ln3 \approx 0.55\).
Equilibria \(1 \pm\sqrt{1 - a}\) (lower stable, upper unstable) for \(a \lt 1\); semistable at \(a = 1\); none for \(a \gt 1\). For \(a = 0\): \(y(0) = 1 \to 0\), \(y(0) = 3 \to \infty\) at \(t = \tfrac12\ln 3\).
Review:
36A body obeys Newton’s law of cooling \(T' = -k(T - T_{\text{ext}})\) with \(k = 1\) in a room whose temperature oscillates, \(T_{\text{ext}}(t) = 20 + 10\sin t\). Find the general solution, the steady-state temperature oscillation, its amplitude and its time lag behind the room.
Solution
The equation is \(T' + T = 20 + 10\sin t\). Homogeneous solution \(Ce^{-t}\). Particular solutions by superposition: for the constant, \(T = 20\). For \(10\sin t = \operatorname{Im}(10e^{it})\), the complex replacement gives \(z = \dfrac{10e^{it}}{p(i)} = \dfrac{10e^{it}}{1 + i} = 5(1 - i)e^{it}\), and
\[\operatorname{Im}\big(5(1 - i)(\cos t + i\sin t)\big) = 5(\sin t - \cos t).\] \[T(t) = 20 + 5(\sin t - \cos t) + Ce^{-t}.\]Check: \(T' + T = 5(\cos t + \sin t) - Ce^{-t} + 20 + 5\sin t - 5\cos t + Ce^{-t} = 20 + 10\sin t\).
Steady state. After the transient dies, \(T_{sp} = 20 + 5(\sin t - \cos t) = 20 + 5\sqrt2\sin(t - \tfrac\pi4)\). Amplitude \(5\sqrt2 \approx 7.07\), smaller than the room’s 10 by the gain \(1/|1 + i| = 1/\sqrt2\); the body lags the room by the phase \(\arg(1 + i) = \pi/4\), i.e. one eighth of a period. Physically, the body cannot follow the room instantly: the faster the room oscillates (larger \(\omega\)), the smaller the body’s swing, \(10/\sqrt{1 + \omega^2}\), and the closer the lag gets to a quarter period.
\(T = 20 + 5(\sin t - \cos t) + Ce^{-t}\); steady amplitude \(5\sqrt2\), lag \(\pi/4\).
Review: ·
37A 100 L tank initially holds pure water. Brine at 1 g/L flows in at 3 L/min, the mixture is stirred and drains at 2 L/min. Find the amount of salt \(x(t)\) until the tank (capacity 200 L) overflows, and the concentration at that moment.
Solution
The volume grows: \(V(t) = 100 + t\) litres, reaching 200 L at \(t = 100\) min. Salt in: \(3\cdot 1 = 3\) g/min. Salt out: \(2\cdot\dfrac{x}{100 + t}\) g/min.
\[x' + \frac{2}{100 + t}x = 3\] \[x(0) = 0.\]Integrating factor \(\exp\left(\int\dfrac{2\,dt}{100 + t}\right) = (100 + t)^2\). Then \(\big((100 + t)^2x\big)' = 3(100 + t)^2\), so \((100 + t)^2x = (100 + t)^3 + C\), and
\[x(t) = (100 + t) + \frac{C}{(100 + t)^2}\] \[x(0) = 0 \Rightarrow C = -100^3 = -10^6.\] \[x(t) = (100 + t) - \frac{10^6}{(100 + t)^2}.\]Check: \(x(0) = 100 - 100 = 0\); \(x' = 1 + \dfrac{2\cdot 10^6}{(100 + t)^3}\) and \(3 - \dfrac{2x}{100 + t} = 3 - 2 + \dfrac{2\cdot 10^6}{(100 + t)^3}\). Correct.
At overflow, \(t = 100\): \(x = 200 - \dfrac{10^6}{40000} = 200 - 25 = 175\) g in 200 L, concentration \(0.875\) g/L. The concentration \(\dfrac{x}{V} = 1 - \dfrac{10^6}{(100 + t)^3}\) rises toward the inflow’s 1 g/L but has not reached it; with equal flow rates the approach would have been exponential, here it is algebraic because the dilution volume keeps growing.
\(x(t) = 100 + t - \dfrac{10^6}{(100 + t)^2}\) for \(0 \le t \le 100\); at overflow \(175\) g, \(0.875\) g/L.
Review:
38In a radioactive chain \(A \to B \to C\), \(a' = -k_1a\) and \(b' = k_1a - k_2b\) with \(a(0) = a_0\), \(b(0) = 0\), \(k_1 \ne k_2\). Find \(b(t)\), the time at which \(B\) is most abundant, and the behaviour when \(k_2 \gg k_1\).
Solution
\(a(t) = a_0e^{-k_1t}\). Then \(b' + k_2b = k_1a_0e^{-k_1t}\), linear with integrating factor \(e^{k_2t}\):
\[(e^{k_2t}b)' = k_1a_0e^{(k_2 - k_1)t}\] \[\Longrightarrow\ e^{k_2t}b = \frac{k_1a_0}{k_2 - k_1}e^{(k_2 - k_1)t} + C.\]With \(b(0) = 0\), \(C = -\dfrac{k_1a_0}{k_2 - k_1}\), so
\[b(t) = \frac{k_1a_0}{k_2 - k_1}\left(e^{-k_1t} - e^{-k_2t}\right).\](By the ERF: the input \(k_1a_0e^{-k_1t}\) into \(D + k_2\) gives \(\dfrac{k_1a_0e^{-k_1t}}{k_2 - k_1}\), plus the homogeneous \(Ce^{-k_2t}\).) \(b\) starts at 0, rises, and returns to 0: it is positive for all \(t \gt 0\) whichever rate is larger, since the fraction and the bracket change sign together.
Maximum. \(b' = 0\) when \(k_1e^{-k_1t} = k_2e^{-k_2t}\), i.e. \(e^{(k_2 - k_1)t} = k_2/k_1\):
\[t_{\max} = \frac{\ln(k_2/k_1)}{k_2 - k_1}.\]At that moment \(b' = 0\) means \(k_1a = k_2b\): production of \(B\) exactly balances its decay. \(k_2 \gg k_1\): \(e^{-k_2t}\) dies almost at once and \(b \approx \dfrac{k_1}{k_2}a_0e^{-k_1t} = \dfrac{k_1}{k_2}a(t)\): \(B\) is always in "secular equilibrium" with \(A\), present in the small fixed ratio \(k_1/k_2\) and decaying at \(A\)’s slow rate rather than its own.
\(b = \dfrac{k_1a_0}{k_2 - k_1}(e^{-k_1t} - e^{-k_2t})\); maximum at \(t = \dfrac{\ln(k_2/k_1)}{k_2 - k_1}\); for \(k_2 \gg k_1\), \(b \approx (k_1/k_2)a\).
Review: ·
39An RL circuit with inductance \(L = 2\) H and resistance \(R = 4\ \Omega\) is connected at \(t = 0\) to a constant \(12\) V source: \(Li' + Ri = 12\), \(i(0) = 0\). Find \(i(t)\), the time constant, the time to reach 95% of the final current, and what changes if the source is \(12\cos 2t\).
Solution
\(2i' + 4i = 12\), i.e. \(i' + 2i = 6\). Steady state \(6/2 = 3\) A, transient \(Ce^{-2t}\), and \(i(0) = 0\) gives
\[i(t) = 3\left(1 - e^{-2t}\right) \text{ A}\] \[\text{time constant } \tau = \frac LR = \frac12 \text{ s}.\]95% of the final current: \(1 - e^{-2t} = 0.95\), \(e^{-2t} = 0.05\), \(t = \tfrac12\ln 20 \approx 1.50\) s, about three time constants (\(e^{-3} \approx 0.05\)), the usual engineering rule.
Sinusoidal source. \(i' + 2i = 6\cos2t\). Complex replacement: \(z = \dfrac{6e^{2it}}{2 + 2i} = \dfrac{6(2 - 2i)e^{2it}}{8} = \tfrac32(1 - i)e^{2it}\), real part \(\tfrac32(\cos2t + \sin2t) = \tfrac{3}{\sqrt2}\cos(2t - \tfrac\pi4)\). So
\[i(t) = \frac{3}{\sqrt2}\cos\!\left(2t - \frac\pi4\right) + Ce^{-2t}\] \[i(0) = 0 \Rightarrow C = -\frac32.\]Instead of settling to a constant, the current settles to an oscillation of amplitude \(3/\sqrt2 \approx 2.12\) A (the amplitude is \(6/|2 + 2i| = 6/(2\sqrt2) = 3/\sqrt2\), reduced from the DC value 3 A) lagging the voltage by \(45^\circ\); the inductor resists changes in current, so the faster the source oscillates the smaller and later the current response.
\(i = 3(1 - e^{-2t})\), \(\tau = 0.5\) s, 95% at \(t = \tfrac12\ln20 \approx 1.5\) s; with \(12\cos2t\): steady \(\tfrac{3}{\sqrt2}\cos(2t - \pi/4)\).
Review:
40A loan of \(A_0 = 100{,}000\) is repaid continuously at a rate \(p\) per year while interest accrues continuously at \(r = 5\%\): \(A' = rA - p\). Find \(A(t)\), the payment rate that clears the loan in \(T = 20\) years, and the total amount paid. What happens if \(p \lt rA_0\)?
Solution
Linear with constant coefficients: equilibrium \(A^* = p/r\), so
\[A(t) = \frac pr + \left(A_0 - \frac pr\right)e^{rt}.\]Check: \(A(0) = A_0\) and \(A' = r(A_0 - p/r)e^{rt} = r(A - p/r) = rA - p\).
Clearing in time \(T\). Set \(A(T) = 0\): \(\dfrac pr = \left(\dfrac pr - A_0\right)e^{rT}\), so \(\dfrac pr(e^{rT} - 1) = A_0e^{rT}\) and
\[p = \frac{rA_0e^{rT}}{e^{rT} - 1} = \frac{rA_0}{1 - e^{-rT}} = \frac{5000}{1 - e^{-1}} \approx 7910 \text{ per year}.\]Total paid: \(pT \approx 158{,}200\), of which \(58{,}200\) is interest. (A 10-year schedule would need \(p = 5000/(1 - e^{-0.5}) \approx 12{,}707\) per year, total \(127{,}070\): faster repayment costs less in total.)
If \(p \lt rA_0 = 5000\): the payments do not even cover the interest; \(A_0 - p/r \gt 0\) and the balance grows exponentially without bound. \(p = rA_0\) exactly holds the balance constant forever (interest-only). The equilibrium \(p/r\) is unstable: balances above it explode, balances below it are paid off in finite time.
\(A = \tfrac pr + (A_0 - \tfrac pr)e^{rt}\); \(p = \dfrac{rA_0}{1 - e^{-rT}} \approx 7910\)/yr; total \(\approx 158{,}200\); \(p \lt 5000\) means the debt grows forever.
Review:
41Show that the initial value problem \(y' = 3y^{2/3}\), \(y(0) = 0\) has more than one solution, and explain which hypothesis of the existence and uniqueness theorem fails. Find all solutions.
Solution
\(y \equiv 0\) is a solution. Separating variables for \(y \ne 0\): \(\int y^{-2/3}\,dy = \int 3\,dt\), so \(3y^{1/3} = 3t + c\), \(y = (t + c)^3\); with \(y(0) = 0\), \(c = 0\): \(y = t^3\) is a second solution (check: \(y' = 3t^2 = 3(t^3)^{2/3}\)). Two different solutions through the same point.
Which hypothesis fails. \(f(t, y) = 3y^{2/3}\) is continuous, but \(f_y = 2y^{-1/3}\) is unbounded as \(y \to 0\): the partial derivative in \(y\) is not continuous (not even defined) at \(y = 0\). Continuity of \(f\) alone guarantees existence (Peano) but not uniqueness; the Lipschitz condition in \(y\) is what forbids branching, and it fails here.
All solutions. A solution may sit at 0 for a while and then leave along a cubic, in either time direction:
\[y(t) = \begin{cases} (t - a)^3 & t \lt a \\ 0 & a \le t \le b \\ (t - b)^3 & t \gt b \end{cases}\]for any \(a \le 0 \le b\) (with \(a = -\infty\) or \(b = +\infty\) allowed). Each piece is \(C^1\) at the junctions (the cubic and its derivative vanish there), so these are genuine solutions, a whole two-parameter family through the origin. Geometrically the direction field is horizontal along the \(t\)-axis and solution curves are tangent to it there, which is what lets them merge.
\(y = 0\) and \(y = t^3\) both work; \(f_y = 2y^{-1/3}\) is not continuous at \(y = 0\); all solutions are cubics glued to a stretch of the axis.
Review: ·
42Solve \(y' = 1 + y^2\), \(y(0) = 0\). Find the interval of existence and explain why the solution cannot be continued past it, although the right-hand side is a smooth function of \(y\) alone.
Solution
Separate: \(\int\dfrac{dy}{1 + y^2} = \int dt\), so \(\arctan y = t + C\); \(y(0) = 0\) gives \(C = 0\) and
\[y(t) = \tan t\] \[-\frac\pi2 \lt t \lt \frac\pi2.\]Check: \(y' = \sec^2t = 1 + \tan^2t\).
As \(t \to \pm\pi/2\), \(y \to \pm\infty\): the solution escapes to infinity in finite time, in both time directions. The equation is autonomous with no equilibria (\(1 + y^2 \gt 0\)), so every solution increases monotonically; a solution cannot approach a finite limit (that would make \(y' \to 0\), impossible), so it must go to \(+\infty\), and because \(y'\) grows like \(y^2\) it does so in finite time: the time to reach infinity from \(y_0\) is \(\displaystyle\int_{y_0}^\infty\frac{dy}{1 + y^2} = \frac\pi2 - \arctan y_0 \lt \infty\). Smoothness of \(f\) guarantees local existence and uniqueness, never global existence; a sufficient condition for global existence is linear growth, \(|f(y)| \le a|y| + b\), which \(1 + y^2\) violates. Every other solution is a horizontal translate \(\tan(t - t_0)\), each alive for exactly \(\pi\) time units.
\(y = \tan t\) on \((-\pi/2, \pi/2)\); finite escape time because \(\int^\infty dy/(1 + y^2)\) converges.
Review:
43For \(y' = x^2 + y^2\): describe the isoclines, show that the solution through the origin has an inflection point there, and show that every solution is increasing and that the solution through \((0, 0)\) satisfies \(y(x) \ge x^3/3\) for \(x \gt 0\).
Solution
Isoclines. \(x^2 + y^2 = m\) is the circle of radius \(\sqrt m\) centred at the origin (empty for \(m \lt 0\), the single point \((0,0)\) for \(m = 0\)): slopes grow with distance from the origin and are the same all around each circle. Since \(y' \ge 0\) everywhere, every solution is nondecreasing, and strictly increasing except at the origin.
Inflection at the origin. Differentiate along a solution: \(y'' = 2x + 2yy' = 2x + 2y(x^2 + y^2)\). At \((0, 0)\), \(y'' = 0\); for the solution through the origin, \(y'' \lt 0\) just to the left (where \(x \lt 0\) and \(y \lt 0\)) and \(y'' \gt 0\) just to the right, so the concavity changes: an inflection point with horizontal tangent (\(y'(0) = 0\)).
Lower bound. For \(x \gt 0\) the solution through the origin has \(y \ge 0\) (it is increasing from 0), so \(y' = x^2 + y^2 \ge x^2\). Integrating from 0 to \(x\): \(y(x) - y(0) \ge \displaystyle\int_0^x s^2\,ds = \frac{x^3}{3}\). (Comparison with the sub-solution \(x^3/3\) of \(y' = x^2\).) In fact the solution blows up before \(x = 2\): once \(y \gt 1\), \(y' \ge y^2\) and the Riccati equation \(y' = x^2 + y^2\) has no elementary solution but a finite escape time, just as \(y' = 1 + y^2\) does.
Isoclines are circles; \(y'' = 2x + 2y(x^2 + y^2)\) changes sign at the origin; \(y' \ge x^2\) gives \(y \ge x^3/3\).
Review:
44Apply Euler’s method to \(y' = -10y\), \(y(0) = 1\), with step \(h\). Show that \(y_n = (1 - 10h)^n\), and find the values of \(h\) for which the numerical solution (a) decays monotonically, (b) oscillates but decays, (c) grows without bound, although the true solution \(e^{-10t}\) decays for every \(t\).
Solution
\(y_{n+1} = y_n + h(-10y_n) = (1 - 10h)y_n\), so \(y_n = (1 - 10h)^n\). The behaviour is governed by the amplification factor \(g = 1 - 10h\):
- \(0 \lt h \lt 0.1\) \(0 \lt g \lt 1\): \(y_n\) decays monotonically, qualitatively like the true solution.
- \(0.1 \lt h \lt 0.2\) \(-1 \lt g \lt 0\): \(y_n\) alternates in sign while shrinking. The true solution never changes sign; the oscillation is a numerical artifact.
- \(h \gt 0.2\) \(g \lt -1\): \(|y_n| \to \infty\) with alternating signs. Numerical instability: the method produces nonsense for a perfectly tame problem.
(\(h = 0.1\) gives \(y_n = 0\) for \(n \ge 1\); \(h = 0.2\) gives \(y_n = (-1)^n\), neither decaying nor growing.)
The lesson: for \(y' = \lambda y\) with \(\lambda \lt 0\), Euler is stable only when \(|1 + \lambda h| \lt 1\), i.e. \(h \lt 2/|\lambda|\). Fast-decaying components (large \(|\lambda|\), "stiff" problems) force tiny steps even after they have died out. The backward Euler method \(y_{n+1} = y_n + hf(t_{n+1}, y_{n+1})\) gives \(y_{n+1} = y_n/(1 + 10h)\), which decays for every \(h \gt 0\); that is why implicit methods are used for stiff equations.
\(y_n = (1 - 10h)^n\): monotone decay for \(h \lt 0.1\), oscillating decay for \(0.1 \lt h \lt 0.2\), unbounded growth for \(h \gt 0.2\).
Review:
45Find the orthogonal trajectories of the family of parabolas \(y = Cx^2\): the curves that cross every parabola of the family at a right angle.
Solution
Differential equation of the family. From \(y = Cx^2\), \(y' = 2Cx\). Eliminate \(C = y/x^2\): \(y' = \dfrac{2y}{x}\). Every parabola in the family satisfies this equation, and the slope at \((x, y)\) is \(2y/x\).
Orthogonal family. Perpendicular curves have the negative reciprocal slope: \(y' = -\dfrac{x}{2y}\). This is separable: \(2y\,dy = -x\,dx\), so \(y^2 = -\dfrac{x^2}{2} + K\), i.e.
\[\frac{x^2}{2} + y^2 = K\]a family of ellipses centred at the origin with the \(x\)-semi-axis \(\sqrt2\) times the \(y\)-semi-axis.
Check at a point: the parabola \(y = x^2\) at \((1, 1)\) has slope 2; the ellipse through \((1, 1)\) is \(\tfrac{x^2}{2} + y^2 = \tfrac32\), with slope \(-\dfrac{x}{2y} = -\tfrac12\) there. The product of the slopes is \(-1\). Orthogonal trajectories appear as equipotential lines versus field lines in electrostatics and as isotherms versus heat flow lines; the computation is always "write the ODE of the family, flip the slope, solve."
Family: \(y' = 2y/x\); orthogonal: \(y' = -x/(2y)\), giving the ellipses \(x^2/2 + y^2 = K\).
Review:
46Solve \(y' = (x + y)^2\) using the substitution \(v = x + y\). Find the solution with \(y(0) = 0\) and its interval of existence.
Solution
With \(v = x + y\), \(v' = 1 + y' = 1 + v^2\). This is separable: \(\dfrac{dv}{1 + v^2} = dx\), so \(\arctan v = x + C\), \(v = \tan(x + C)\), and since \(y = v - x\),
\[y = \tan(x + C) - x.\]Check: \(y' = \sec^2(x + C) - 1 = \tan^2(x + C) = (x + y)^2\).
With \(y(0) = 0\): \(\tan C = 0\), \(C = 0\), so \(y = \tan x - x\), defined for \(-\dfrac\pi2 \lt x \lt \dfrac\pi2\). The solution blows up at both ends of this interval (to \(+\infty\) on the right, \(-\infty\) on the left), although the equation is smooth everywhere. Near the origin \(y \approx \dfrac{x^3}{3}\), consistent with \(y' \approx x^2\) when \(y\) is still small.
The substitution \(v = ax + by + c\) linearizes any equation of the form \(y' = F(ax + by + c)\) into the autonomous equation \(v' = a + bF(v)\); together with \(v = y/x\) for homogeneous equations and \(v = y^{1-n}\) for Bernoulli equations, it covers most first-order equations that are not already separable or linear.
\(y = \tan(x + C) - x\); with \(y(0) = 0\), \(y = \tan x - x\) on \((-\pi/2, \pi/2)\).
Review:
Challenge 2: second-order equations and resonance
Differential Equations · Challenge problems 47 to 66
Problems 47 to 66
One hundred harder problems, still within the scope of the course: bifurcations, resonance in all its forms, Fourier and Laplace manipulations, systems with repeated or complex eigenvalues, and nonlinear portraits settled by conserved quantities and Lyapunov functions. Each opens to a complete solution with every step shown and the final answer highlighted. Expect to need pencil and paper, and use the Review links to go back to the relevant tab.
47Solve \(y'' + 4y' + 4y = 0\) with \(y(0) = 1\), \(y'(0) = v_0\). For which \(v_0\) does the solution ever cross zero? Sketch the cases.
Solution
\(r^2 + 4r + 4 = (r + 2)^2\): repeated root, \(y = (c_1 + c_2t)e^{-2t}\). \(y(0) = c_1 = 1\); \(y' = (c_2 - 2c_1 - 2c_2t)e^{-2t}\), so \(y'(0) = c_2 - 2 = v_0\), \(c_2 = v_0 + 2\):
\[y(t) = \big(1 + (v_0 + 2)t\big)e^{-2t}.\](The derivative uses the product rule: \(y' = c_2e^{-2t} - 2(c_1 + c_2t)e^{-2t}\).) Since \(e^{-2t} \gt 0\), \(y = 0\) iff \(1 + (v_0 + 2)t = 0\), i.e. \(t = -\dfrac{1}{v_0 + 2}\). This is a positive time exactly when \(v_0 + 2 \lt 0\), i.e. \(v_0 \lt -2\): the mass is pushed toward equilibrium hard enough to overshoot once, after which it creeps back to 0 from below. For \(v_0 \ge -2\) the solution never crosses zero: with \(v_0 = 0\) it is \((1 + 2t)e^{-2t}\), which has \(y' = -4te^{-2t} \le 0\) and decreases monotonically from 1; with \(v_0 \gt 0\) it first rises to a maximum at \(t = \dfrac{v_0}{2(v_0 + 2)}\) and then decays.
Critical damping gives the fastest approach to equilibrium without oscillation, and at most one zero crossing; the same "at most once" holds for overdamping, while any underdamped solution crosses infinitely often.
\(y = (1 + (v_0 + 2)t)e^{-2t}\); crosses zero (once, at \(t = -1/(v_0 + 2)\)) iff \(v_0 \lt -2\).
Review:
48Prove that a nontrivial solution of an overdamped equation \(my'' + by' + ky = 0\) (\(b^2 \gt 4mk\), all constants positive) can be zero for at most one value of \(t\). Then show that an underdamped solution has infinitely many zeros, equally spaced.
Solution
Overdamped. The roots \(r_1 \ne r_2\) are real (and negative), and \(y = c_1e^{r_1t} + c_2e^{r_2t}\). If \(c_1 = 0\) or \(c_2 = 0\) the solution is a single exponential, never zero. Otherwise \(y(t) = 0\) iff \(c_1e^{r_1t} = -c_2e^{r_2t}\), i.e. \(e^{(r_1 - r_2)t} = -c_2/c_1\). The left side is a strictly monotone function of \(t\) (exponential with nonzero exponent), so this equation has at most one solution; it has exactly one when \(-c_2/c_1 \gt 0\), i.e. when \(c_1\) and \(c_2\) have opposite signs.
Underdamped. Here \(y = Ae^{-\alpha t}\cos(\omega_dt - \phi)\) with \(A \ne 0\), \(\omega_d = \sqrt{k/m - b^2/4m^2} \gt 0\). The exponential never vanishes, so the zeros are those of \(\cos(\omega_dt - \phi)\): \(\omega_dt - \phi = \tfrac\pi2 + n\pi\), i.e.
\[t_n = \frac{\phi + \pi/2 + n\pi}{\omega_d}\] \[t_{n+1} - t_n = \frac{\pi}{\omega_d}\]infinitely many, spaced half a pseudo-period apart. The amplitude at successive peaks drops by the constant factor \(e^{-\alpha\pi/\omega_d}\), the logarithmic decrement, which is how damping is measured experimentally: count the spacing of the zeros for \(\omega_d\) and the decay of the peaks for \(\alpha\).
\(e^{(r_1 - r_2)t} = -c_2/c_1\) has at most one solution; underdamped zeros occur every \(\pi/\omega_d\).
Review:
49Boundary value problems. For \(y'' + y = 0\) decide how many solutions satisfy (a) \(y(0) = 0\), \(y(\pi) = 1\); (b) \(y(0) = 0\), \(y(\pi) = 0\); (c) \(y(0) = 1\), \(y(\pi/2) = 3\). Explain why boundary problems behave differently from initial value problems.
Solution
General solution \(y = c_1\cos t + c_2\sin t\).
(a) \(y(0) = c_1 = 0\), then \(y(\pi) = c_2\sin\pi = 0 \ne 1\). No solution.
(b) \(c_1 = 0\) and \(y(\pi) = 0\) holds for every \(c_2\): infinitely many solutions \(y = c\sin t\).
(c) \(c_1 = 1\), \(y(\pi/2) = c_2 = 3\): the unique solution \(y = \cos t + 3\sin t\).
Why. An initial value problem prescribes \(y\) and \(y'\) at one point, and the existence-uniqueness theorem guarantees exactly one solution. A boundary value problem prescribes \(y\) at two points, which gives a \(2\times 2\) linear system for \((c_1, c_2)\) whose matrix \(\begin{bmatrix} \cos t_0 & \sin t_0 \\ \cos t_1 & \sin t_1 \end{bmatrix}\) may be singular. Here with \(t_0 = 0\), \(t_1 = \pi\) the matrix is \(\begin{bmatrix} 1 & 0 \\ -1 & 0 \end{bmatrix}\), singular, so the problem has either no solution or infinitely many depending on the data, exactly like \(A\mathbf{x} = \mathbf{b}\) with a singular \(A\). The interval length \(\pi\) is special because \(\sin t\) vanishes at both ends: \(\lambda = 1\) is an eigenvalue of \(-y'' = \lambda y\) with these boundary conditions. For \(t_1 = \pi/2\) the matrix is \(I\) and everything is unique.
(a) none; (b) \(y = c\sin t\); (c) \(y = \cos t + 3\sin t\). Two-point data give a linear system that can be singular.
Review:
50Find a particular solution of \(y'' + y = t\sin t\).
Solution
The input \(t\sin t\) is resonant: \(\sin t\) solves the homogeneous equation. The trial form (polynomial of degree 1 times \(\cos t\) and \(\sin t\), multiplied by \(t\) because of resonance) is
\[y_p = t(At + B)\cos t + t(Ct + D)\sin t.\]It is quicker to use complex replacement: \(t\sin t = \operatorname{Im}(te^{it})\). Solve \(z'' + z = te^{it}\) with \(z = (at^2 + bt)e^{it}\) (the degree is raised by one because \(i\) is a simple root). Then \(z'' + z = e^{it}\big[(at^2 + bt)(i^2 + 1) + 2i(2at + b) + 2a\big] = e^{it}\big[4ait + (2bi + 2a)\big]\). Matching \(te^{it}\): \(4ai = 1\) gives \(a = -\tfrac i4\); \(2bi + 2a = 0\) gives \(b = -a/i = \tfrac{1}{4}\). So \(z = \left(-\tfrac i4t^2 + \tfrac14t\right)(\cos t + i\sin t)\) and
\[y_p = \operatorname{Im}z = -\frac{t^2}{4}\cos t + \frac t4\sin t.\]Check: with \(u = -\tfrac{t^2}{4}\cos t\), \(u'' = -\tfrac12\cos t + t\sin t + \tfrac{t^2}{4}\cos t\); with \(v = \tfrac t4\sin t\), \(v'' = \tfrac12\cos t - \tfrac t4\sin t\). Then \(y_p'' + y_p = (u'' + u) + (v'' + v) = t\sin t + 0 = t\sin t\). The general solution is \(c_1\cos t + c_2\sin t + y_p\), and the \(t^2\cos t\) term shows the amplitude growing quadratically: resonance driven by an input whose own amplitude grows.
\(y_p = -\dfrac{t^2}{4}\cos t + \dfrac t4\sin t\).
Review:
51Solve \(y'' + 2y' + y = e^{-t}\), and then \(y'' + 2y' + y = e^{-t} + t\), with \(y(0) = 0\), \(y'(0) = 0\) for the second.
Solution
\(p(r) = (r + 1)^2\), \(y_h = (c_1 + c_2t)e^{-t}\). The input \(e^{-t}\) is doubly resonant: \(p(-1) = p'(-1) = 0\), \(p''(-1) = 2\). ERF:
\[y_p = \frac{t^2e^{-t}}{p''(-1)} = \frac{t^2e^{-t}}{2}.\]Check: with \(y = \tfrac12t^2e^{-t}\), \(y' = (t - \tfrac12t^2)e^{-t}\), \(y'' = (1 - 2t + \tfrac12t^2)e^{-t}\), and \(y'' + 2y' + y = (1 - 2t + \tfrac12t^2 + 2t - t^2 + \tfrac12t^2)e^{-t} = e^{-t}\).
Adding \(t\). For the polynomial input try \(At + B\): \(0 + 2A + At + B = t\), so \(A = 1\), \(B = -2\): \(y_{p_2} = t - 2\). Superposition:
\[y = (c_1 + c_2t)e^{-t} + \tfrac12t^2e^{-t} + t - 2.\]Initial conditions on the full solution: \(y(0) = c_1 - 2 = 0\), \(c_1 = 2\). \(y' = (c_2 - c_1 - c_2t)e^{-t} + (t - \tfrac12t^2)e^{-t} + 1\), so \(y'(0) = c_2 - 2 + 1 = 0\), \(c_2 = 1\).
\[y(t) = (2 + t)e^{-t} + \tfrac12t^2e^{-t} + t - 2 = \left(2 + t + \tfrac12t^2\right)e^{-t} + t - 2.\]Check \(y(0) = 2 - 2 = 0\). For large \(t\) the solution tracks the line \(t - 2\): the steady response to a ramp input lags the ramp by \(2 = p'(0)/p(0)\).
\(y_p = \tfrac12t^2e^{-t}\); with the ramp and rest ICs, \(y = (2 + t + \tfrac12t^2)e^{-t} + t - 2\).
Review:
52Solve \(y'' + 2y' + 2y = e^{-t}\cos t\). Explain why the response grows in amplitude even though the input decays.
Solution
\(p(r) = r^2 + 2r + 2\), roots \(-1 \pm i\), so \(y_h = e^{-t}(c_1\cos t + c_2\sin t)\). The input is \(\operatorname{Re}e^{(-1 + i)t}\), and \(-1 + i\) is a root of \(p\): resonance. \(p'(r) = 2r + 2\), \(p'(-1 + i) = 2i\). ERF:
\[z_p = \frac{te^{(-1 + i)t}}{2i} = -\frac i2\,te^{-t}(\cos t + i\sin t) = \frac{te^{-t}}{2}(\sin t - i\cos t)\] \[y_p = \operatorname{Re}z_p = \frac t2e^{-t}\sin t.\]Check: with \(y = \tfrac12te^{-t}\sin t\), direct differentiation (or substitution into \(p(D)\) via the exponential shift \(p(D)(e^{-t}u) = e^{-t}p(D - 1)u = e^{-t}(D^2 + 1)u\) with \(u = \tfrac12t\sin t\), and \((D^2 + 1)(\tfrac12t\sin t) = \cos t\)) gives \(y'' + 2y' + 2y = e^{-t}\cos t\).
Why it "grows". Relative to the natural motion \(e^{-t}\sin t\), the response has the extra factor \(t\): the input oscillates at exactly the damped natural frequency and decays at exactly the natural rate, so it keeps pushing in phase with the system’s own motion. The absolute amplitude \(\tfrac t2e^{-t}\) rises to a maximum of \(\tfrac{1}{2e}\) at \(t = 1\) and then decays, since the exponential eventually wins; but it is larger than the input’s envelope \(e^{-t}\) by the factor \(t/2\) for \(t \gt 2\). Resonance does not require sustained oscillation, only matching the characteristic root.
\(y_p = \tfrac t2e^{-t}\sin t\); the input matches the complex root \(-1 + i\), so the ERF gives the resonant factor \(t\).
Review: ·
53For \(x'' + \tfrac12x' + 4x = \cos\omega t\): find the gain \(g(\omega)\), the practical resonance frequency, the peak gain, and compare the gain at \(\omega_0 = 2\) and at \(\omega = 0\). Sketch the frequency response curve.
Solution
\(p(i\omega) = (4 - \omega^2) + \tfrac12i\omega\), so
\[g(\omega) = \frac{1}{\sqrt{(4 - \omega^2)^2 + \tfrac14\omega^2}}.\]Resonance. Minimize \(h(u) = (4 - u)^2 + \tfrac14u\) with \(u = \omega^2\): \(h'(u) = -2(4 - u) + \tfrac14 = 0\) gives \(u = 4 - \tfrac18 = \tfrac{31}{8}\), so \(\omega_r = \sqrt{31/8} \approx 1.968\), just below \(\omega_0 = 2\) (formula: \(\omega_r^2 = \omega_0^2 - \tfrac{b^2}{2m^2} = 4 - \tfrac18\)). There \(h = \tfrac{1}{64} + \tfrac{31}{32} = \tfrac{63}{64}\), so the peak gain is
\[g_{\max} = \frac{8}{\sqrt{63}} \approx 1.008.\]At \(\omega_0 = 2\): \(g = \dfrac{1}{\tfrac12\cdot 2} = 1\). At \(\omega = 0\): \(g = \tfrac14\) (static deflection \(1/k\)). For large \(\omega\), \(g \approx 1/\omega^2 \to 0\).
The curve starts at \(0.25\), stays nearly flat for small \(\omega\), climbs steeply to a sharp peak of about \(1.01\) near \(\omega \approx 1.97\), and falls off like \(1/\omega^2\). The peak is four times the static response: light damping (\(b = \tfrac12\) against \(2\sqrt{mk} = 4\) for critical) makes a narrow, tall resonance. The phase lag passes through \(\pi/2\) exactly at \(\omega = 2\), not at the peak.
\(g = \big((4 - \omega^2)^2 + \omega^2/4\big)^{-1/2}\); \(\omega_r = \sqrt{31/8} \approx 1.97\), \(g_{\max} = 8/\sqrt{63} \approx 1.008\); \(g(2) = 1\), \(g(0) = 0.25\).
Review:
54Solve \(x'' + 9x = \cos 2.9t\) with \(x(0) = x'(0) = 0\), write the answer as a product of two sines, and describe the beats: their envelope amplitude and the time between successive "silences".
Solution
Not resonant (\(2.9 \ne 3\)), so \(x_p = \dfrac{\cos2.9t}{9 - 2.9^2} = \dfrac{\cos2.9t}{0.59}\). General solution \(x = c_1\cos3t + c_2\sin3t + \dfrac{\cos2.9t}{0.59}\). \(x(0) = 0\) gives \(c_1 = -\dfrac{1}{0.59}\); \(x'(0) = 3c_2 = 0\) gives \(c_2 = 0\):
\[x(t) = \frac{\cos2.9t - \cos3t}{0.59}.\]With \(\cos A - \cos B = -2\sin\tfrac{A + B}{2}\sin\tfrac{A - B}{2}\) and \(A = 2.9t\), \(B = 3t\): \(\sin\tfrac{A - B}{2} = \sin(-0.05t) = -\sin0.05t\), so
\[x(t) = \frac{2}{0.59}\sin(0.05t)\sin(2.95t) \approx 3.39\,\sin(0.05t)\sin(2.95t).\]A fast oscillation at frequency \(2.95\) (the average of the natural and driving frequencies) inside a slow envelope \(3.39|\sin0.05t|\). The envelope reaches its maximum \(3.39\), about 30 times the forcing amplitude, and vanishes whenever \(0.05t = n\pi\): the motion dies out completely every \(\pi/0.05 \approx 62.8\) time units, then builds up again. The full beat period of the envelope function \(\sin0.05t\) is \(2\pi/0.05 \approx 125.7\), containing two silences. As the driving frequency approaches 3 the envelope grows (\(2/(9 - \omega^2) \to \infty\)) and the silences move off to infinity, turning beats into the linear growth of pure resonance.
\(x = \dfrac{\cos2.9t - \cos3t}{0.59} = \dfrac{2}{0.59}\sin(0.05t)\sin(2.95t)\); envelope \(\approx 3.39\), silences every \(\approx 62.8\).
Review:
55Solve \(x'' + 4x = \sin2t\) with \(x(0) = x'(0) = 0\). Find the first time the amplitude of the oscillation exceeds 5.
Solution
Pure resonance: \(\sin2t = \operatorname{Im}e^{2it}\) and \(p(2i) = 0\). With \(p'(r) = 2r\), \(p'(2i) = 4i\), the ERF gives
\[z_p = \frac{te^{2it}}{4i} = -\frac i4t(\cos2t + i\sin2t) = \frac t4\sin2t - \frac i4t\cos2t\] \[x_p = \operatorname{Im}z_p = -\frac t4\cos2t.\]General solution \(x = c_1\cos2t + c_2\sin2t - \tfrac t4\cos2t\). \(x(0) = c_1 = 0\). \(x' = 2c_2\cos2t - \tfrac14\cos2t + \tfrac t2\sin2t\), so \(x'(0) = 2c_2 - \tfrac14 = 0\), \(c_2 = \tfrac18\):
\[x(t) = \frac18\sin2t - \frac t4\cos2t.\]Check: \(x' = \tfrac14\cos2t - \tfrac14\cos2t + \tfrac t2\sin2t = \tfrac t2\sin2t\), \(x'' = \tfrac12\sin2t + t\cos2t\), and \(x'' + 4x = \tfrac12\sin2t + t\cos2t + \tfrac12\sin2t - t\cos2t = \sin2t\).
Amplitude. For large \(t\) the term \(-\tfrac t4\cos2t\) dominates: the envelope grows like \(t/4\), with the \(\tfrac18\sin2t\) term shifting it slightly. The peaks of \(|x|\) occur near \(\cos2t = \pm1\), where \(|x| \approx t/4\) exactly (since \(\sin2t = 0\) there). \(t/4 = 5\) at \(t = 20\); the peak nearest after that is at \(2t = 13\pi\), \(t = 20.4\), where \(|x| = 5.1\). So the amplitude first exceeds 5 at about \(t \approx 20\), after roughly six and a half periods of the forcing. No real system follows this forever: nonlinearity or breakage intervenes.
\(x = \tfrac18\sin2t - \tfrac t4\cos2t\); the envelope \(t/4\) passes 5 at \(t \approx 20\).
Review: ·
56Solve \(y'' + 4y = \sec2t\) on \(|t| \lt \pi/4\) by variation of parameters.
Solution
\(y_1 = \cos2t\), \(y_2 = \sin2t\), \(W = y_1y_2' - y_1'y_2 = 2\cos^22t + 2\sin^22t = 2\). Then
\[y_p = -\cos2t\int\frac{\sin2t\sec2t}{2}\,dt + \sin2t\int\frac{\cos2t\sec2t}{2}\,dt = -\frac{\cos2t}{2}\int\tan2t\,dt + \frac{\sin2t}{2}\int dt.\]With \(\int\tan2t\,dt = -\tfrac12\ln|\cos2t|\),
\[y_p = \frac14\cos2t\,\ln|\cos2t| + \frac t2\sin2t.\]General solution: \(y = c_1\cos2t + c_2\sin2t + \tfrac14\cos2t\ln(\cos2t) + \tfrac t2\sin2t\) (the absolute value is unnecessary on \(|t| \lt \pi/4\), where \(\cos2t \gt 0\)).
Check: \((D^2 + 4)(\tfrac t2\sin2t) = 2\cos2t\). For the logarithm piece let \(L = \ln\cos2t\), so \(L' = -2\tan2t\); with \(u = \tfrac14\cos2t\,L\), \(u' = -\tfrac12\sin2t\,(L + 1)\) and \(u'' = -\cos2t\,(L + 1) + \sin2t\tan2t\), hence \((D^2 + 4)u = -\cos2t + \sin2t\tan2t = -\dfrac{\cos4t}{\cos2t}\). Adding, \(\dfrac{2\cos^22t - \cos4t}{\cos2t} = \dfrac{1}{\cos2t} = \sec2t\). The general pattern: \(y'' + \omega^2y = \sec\omega t\) has \(y_p = \tfrac{1}{\omega^2}\cos\omega t\ln|\cos\omega t| + \tfrac t\omega\sin\omega t\).
\(y = c_1\cos2t + c_2\sin2t + \tfrac14\cos2t\,\ln(\cos2t) + \tfrac t2\sin2t\).
Review:
57Given that \(y_1 = t\) and \(y_2 = t^2\) solve \(t^2y'' - 2ty' + 2y = 0\), find the general solution of \(t^2y'' - 2ty' + 2y = t^3\) for \(t \gt 0\).
Solution
Check the homogeneous solutions: \(t^2\cdot 0 - 2t\cdot 1 + 2t = 0\) and \(t^2\cdot 2 - 2t\cdot 2t + 2t^2 = 0\). Good. Put the equation in standard form by dividing by \(t^2\): \(y'' - \dfrac2ty' + \dfrac{2}{t^2}y = t\), so \(g(t) = t\) (not \(t^3\)).
Wronskian \(W = y_1y_2' - y_1'y_2 = t\cdot 2t - 1\cdot t^2 = t^2\). Variation of parameters:
\[y_p = -y_1\int\frac{y_2g}{W}\,dt + y_2\int\frac{y_1g}{W}\,dt = -t\int\frac{t^2\cdot t}{t^2}\,dt + t^2\int\frac{t\cdot t}{t^2}\,dt = -t\cdot\frac{t^2}{2} + t^2\cdot t = \frac{t^3}{2}.\]Check: \(y_p'' = 3t\), \(y_p' = \tfrac32t^2\); \(t^2(3t) - 2t(\tfrac32t^2) + 2(\tfrac12t^3) = 3t^3 - 3t^3 + t^3 = t^3\).
\[y = c_1t + c_2t^2 + \frac{t^3}{2}.\](This is an Euler equation; the trial \(y = t^r\) gives \(r(r - 1) - 2r + 2 = (r - 1)(r - 2)\), which is where \(t\) and \(t^2\) come from, and the particular solution could also be guessed as \(At^3\) with \(A(6 - 6 + 2) = 1\). Variation of parameters needs no such guess, but it does need the division by \(t^2\) first: using \(g = t^3\) would give an answer four times too large.)
\(y = c_1t + c_2t^2 + \tfrac12t^3\).
Review:
58(Abel’s formula) Show that the Wronskian of any two solutions of \(y'' + p(t)y' + q(t)y = 0\) satisfies \(W' = -p(t)W\), hence \(W(t) = W(0)e^{-\int_0^tp}\). Compute the Wronskian of \(e^{-t}\cos2t\) and \(e^{-t}\sin2t\) for \(y'' + 2y' + 5y = 0\) and confirm.
Solution
\(W = y_1y_2' - y_1'y_2\), so \(W' = y_1y_2'' + y_1'y_2' - y_1''y_2 - y_1'y_2' = y_1y_2'' - y_1''y_2\). Substitute \(y_i'' = -py_i' - qy_i\):
\[W' = y_1(-py_2' - qy_2) - (-py_1' - qy_1)y_2 = -p(y_1y_2' - y_1'y_2) = -pW.\]This first-order linear equation gives \(W(t) = W(0)e^{-\int_0^tp(s)\,ds}\). Consequence: \(W\) is either identically zero or never zero, so independence of two solutions can be tested at a single point.
Example. \(p = 2\), so \(W(t) = W(0)e^{-2t}\). Directly, with \(y_1 = e^{-t}\cos2t\), \(y_2 = e^{-t}\sin2t\): \(y_1' = e^{-t}(-\cos2t - 2\sin2t)\), \(y_2' = e^{-t}(-\sin2t + 2\cos2t)\),
\[W = e^{-2t}\big[\cos2t(-\sin2t + 2\cos2t) - (-\cos2t - 2\sin2t)\sin2t\big] = e^{-2t}\big[2\cos^22t + 2\sin^22t\big] = 2e^{-2t}.\]So \(W(0) = 2\) and \(W(t) = 2e^{-2t}\), as Abel predicts, and it never vanishes: the two solutions are independent for all \(t\). For constant-coefficient equations \(W\) decays like \(e^{-bt/m}\), the square of the amplitude envelope \(e^{-bt/2m}\).
\(W' = y_1y_2'' - y_1''y_2 = -pW\); here \(W = 2e^{-2t}\).
Review: ·
59Reduction of order: given that \(y_1 = e^t\) solves \(y'' - 2y' + y = 0\), find a second independent solution by substituting \(y = v(t)e^t\). Then do the same for \(t^2y'' + ty' - y = 0\) with \(y_1 = t\).
Solution
First equation. \(y = ve^t\), \(y' = (v' + v)e^t\), \(y'' = (v'' + 2v' + v)e^t\). Substituting: \((v'' + 2v' + v) - 2(v' + v) + v = v'' = 0\). So \(v = at + b\); taking \(v = t\) gives the new solution
\[y_2 = te^t\]independent of \(e^t\) (their ratio \(t\) is not constant). This is the origin of the \(te^{rt}\) rule for repeated roots: the equation for \(v\) always collapses to \(v'' = 0\) when \(r\) is a double root.
Second equation. \(y = tv\), \(y' = v + tv'\), \(y'' = 2v' + tv''\). Then \(t^2(2v' + tv'') + t(v + tv') - tv = t^3v'' + 3t^2v' = 0\), i.e. \(tv'' + 3v' = 0\). Let \(w = v'\): \(w' = -\tfrac3tw\), \(w = Ct^{-3}\), \(v = -\tfrac C2t^{-2}\) (plus a constant that just reproduces \(y_1\)). With \(C = -2\), \(v = t^{-2}\) and
\[y_2 = t\cdot t^{-2} = \frac1t.\]Check: \(t^2(2t^{-3}) + t(-t^{-2}) - t^{-1} = 2t^{-1} - t^{-1} - t^{-1} = 0\). General solution \(y = c_1t + c_2/t\). (Trial \(t^r\) gives \(r^2 - 1 = 0\), confirming \(r = \pm1\).) Reduction of order works for any second-order linear equation once one solution is known; the substitution always produces a first-order equation for \(v'\).
\(y_2 = te^t\); for the Euler equation \(y_2 = 1/t\).
Review:
60For the undamped oscillator \(x'' + 9x = 0\) with \(x(0) = 1\), \(x'(0) = 6\), show that the energy \(E = \tfrac12x'^2 + \tfrac92x^2\) is conserved, and use it to find the amplitude without solving. Then solve and write the solution in amplitude-phase form.
Solution
\(\dfrac{dE}{dt} = x'x'' + 9xx' = x'(x'' + 9x) = 0\), so \(E\) is constant: \(E = \tfrac12(36) + \tfrac92(1) = 18 + 4.5 = 22.5\).
At a turning point \(x' = 0\) and \(|x| = A\) (the amplitude), so \(\tfrac92A^2 = 22.5\), \(A^2 = 5\), \(A = \sqrt5\). At the equilibrium crossing \(x = 0\) the speed is maximal: \(\tfrac12v_{\max}^2 = 22.5\), \(v_{\max} = 3\sqrt5 = \omega_0A\), as it must be.
Solving. \(x = c_1\cos3t + c_2\sin3t\), \(c_1 = 1\), \(3c_2 = 6\), \(c_2 = 2\): \(x = \cos3t + 2\sin3t\). Amplitude \(\sqrt{1 + 4} = \sqrt5\) (agreeing with the energy argument) and phase \(\phi\) with \((\cos\phi, \sin\phi) = (1, 2)/\sqrt5\), \(\phi = \arctan2 \approx 1.107\):
\[x(t) = \sqrt5\cos(3t - 1.107).\]The energy method gives amplitude and maximum speed from the initial data alone, and it extends to nonlinear springs (\(x'' = -V'(x)\), \(E = \tfrac12x'^2 + V(x)\)) where no closed-form solution exists.
\(E = 22.5\) constant; \(A = \sqrt5\); \(x = \cos3t + 2\sin3t = \sqrt5\cos(3t - \arctan2)\).
Review: ·
61Solve \((D - 1)(D + 2)y = e^{-2t}\) in two ways: with the ERF, and by solving two first-order equations in succession.
Solution
ERF. \(p(r) = (r - 1)(r + 2) = r^2 + r - 2\). The input \(e^{-2t}\) is resonant (\(p(-2) = 0\)); \(p'(r) = 2r + 1\), \(p'(-2) = -3\). So \(y_p = \dfrac{te^{-2t}}{-3}\) and
\[y = c_1e^t + c_2e^{-2t} - \frac13te^{-2t}.\]Two first-order steps. Set \(u = (D + 2)y = y' + 2y\). Then \((D - 1)u = e^{-2t}\), i.e. \(u' - u = e^{-2t}\): integrating factor \(e^{-t}\), \((e^{-t}u)' = e^{-3t}\), \(u = -\tfrac13e^{-2t} + c_1e^t\). Now solve \(y' + 2y = -\tfrac13e^{-2t} + c_1e^t\): integrating factor \(e^{2t}\), \((e^{2t}y)' = -\tfrac13 + c_1e^{3t}\), so \(e^{2t}y = -\tfrac13t + \tfrac{c_1}{3}e^{3t} + c_2\) and
\[y = -\frac13te^{-2t} + \frac{c_1}{3}e^t + c_2e^{-2t}\]the same family (rename \(c_1/3\)). The factored operator shows where the \(t\) comes from: the second step integrates a constant (\(-\tfrac13\)) because \(e^{-2t}\) is killed by \(D + 2\). Check: \((D + 2)(-\tfrac13te^{-2t}) = -\tfrac13e^{-2t}\), and \((D - 1)(-\tfrac13e^{-2t}) = \tfrac23e^{-2t} + \tfrac13e^{-2t} = e^{-2t}\).
\(y = c_1e^t + c_2e^{-2t} - \tfrac13te^{-2t}\).
Review: ·
62Solve \(y''' - y'' + y' - y = 0\) with \(y(0) = 0\), \(y'(0) = 1\), \(y''(0) = 0\).
Solution
\(p(r) = r^3 - r^2 + r - 1 = r^2(r - 1) + (r - 1) = (r - 1)(r^2 + 1)\): roots \(1, \pm i\).
\[y = c_1e^t + c_2\cos t + c_3\sin t\] \[y' = c_1e^t - c_2\sin t + c_3\cos t\] \[y'' = c_1e^t - c_2\cos t - c_3\sin t.\]At \(t = 0\): \(c_1 + c_2 = 0\), \(c_1 + c_3 = 1\), \(c_1 - c_2 = 0\). The first and third give \(c_1 = c_2 = 0\), then \(c_3 = 1\):
\[y(t) = \sin t.\]Check: \(y''' - y'' + y' - y = -\cos t + \sin t + \cos t - \sin t = 0\), and \(y(0) = 0\), \(y'(0) = 1\), \(y''(0) = 0\). The initial data happened to lie entirely in the \(\pm i\) part of the solution space, so the \(e^t\) mode is never excited; a small change in \(y''(0)\) would bring in \(c_1 \ne 0\) and the solution would eventually grow exponentially. Third-order equations need three initial conditions, one per root.
\(y = \sin t\).
Review:
63Find the constant-coefficient linear differential equation of lowest order that has \(y = te^{-t} + \sin2t\) as a solution, and write its general solution.
Solution
\(te^{-t}\) requires \(-1\) to be a root of multiplicity at least 2 (to get the factor \(t\)); \(\sin2t\) requires the roots \(\pm2i\). The characteristic polynomial of least degree is
\[p(r) = (r + 1)^2(r^2 + 4) = (r^2 + 2r + 1)(r^2 + 4) = r^4 + 2r^3 + 5r^2 + 8r + 4\] \[y^{(4)} + 2y''' + 5y'' + 8y' + 4y = 0.\]Its general solution has four constants, one per root (counting multiplicity):
\[y = (c_1 + c_2t)e^{-t} + c_3\cos2t + c_4\sin2t\]and the given function is the member with \(c_1 = 0\), \(c_2 = 1\), \(c_3 = 0\), \(c_4 = 1\). No lower-order equation works: a third-order one has only three roots, but we need \(-1\) twice and \(\pm2i\). Check \(te^{-t}\) directly with the operator form: \((D + 1)^2(te^{-t}) = 0\) by the exponential shift (\(D^2t = 0\)), so \(p(D)(te^{-t}) = (D^2 + 4)(D + 1)^2(te^{-t}) = 0\); similarly \((D^2 + 4)\sin2t = 0\) and the factors commute.
\(y^{(4)} + 2y''' + 5y'' + 8y' + 4y = 0\); general solution \((c_1 + c_2t)e^{-t} + c_3\cos2t + c_4\sin2t\).
Review:
64Find the steady-state response of \(x'' + 2x' + 5x = 10\cos t\), in rectangular and in amplitude-phase form, and state the gain and phase lag.
Solution
Complex replacement: \(p(i) = i^2 + 2i + 5 = 4 + 2i\), so
\[z_p = \frac{10e^{it}}{4 + 2i} = \frac{10(4 - 2i)e^{it}}{20} = \frac{(4 - 2i)}{2}e^{it} = (2 - i)(\cos t + i\sin t).\](Clearing the complex denominator: \((4 + 2i)(4 - 2i) = 16 + 4 = 20\).) Multiply out: \((2 - i)(\cos t + i\sin t) = 2\cos t + \sin t + i(2\sin t - \cos t)\), since \(-i\cdot i\sin t = +\sin t\).
\[x_{sp} = \operatorname{Re}z_p = 2\cos t + \sin t.\]Check: \(x'' + 2x' + 5x = (-2\cos t - \sin t) + 2(-2\sin t + \cos t) + 5(2\cos t + \sin t) = 10\cos t\).
Amplitude-phase. \(A = \sqrt{4 + 1} = \sqrt5\), \(\phi\) = angle of \((2, 1)\) = \(\arctan\tfrac12 \approx 0.4636\):
\[x_{sp} = \sqrt5\cos(t - 0.4636).\]Gain and lag. Gain \(= \dfrac{1}{|p(i)|} = \dfrac{1}{\sqrt{20}} = \dfrac{1}{2\sqrt5}\), so an input of amplitude 10 produces output amplitude \(10/(2\sqrt5) = \sqrt5\), consistent. Phase lag \(\phi = \arg p(i) = \arg(4 + 2i) = \arctan\tfrac12\), about \(26.6^\circ\) or \(0.074\) of a period. The driving frequency 1 is well below the natural frequency \(\sqrt5 \approx 2.24\), so the response is nearly in phase (small lag) and its amplitude \(\sqrt5 \approx 2.24\) is close to the static value \(10/5 = 2\).
\(x_{sp} = 2\cos t + \sin t = \sqrt5\cos(t - \arctan\tfrac12)\); gain \(1/(2\sqrt5)\), lag \(\arctan\tfrac12\).
Review:
65Solve \(x'' + 2x' + 5x = 10\cos t\) with \(x(0) = 0\), \(x'(0) = 0\). Identify the transient and the steady state, and estimate when the transient has dropped below 1% of the steady amplitude.
Solution
From the previous problem \(x_{sp} = 2\cos t + \sin t\). Homogeneous: \(r^2 + 2r + 5 = 0\), \(r = -1 \pm 2i\), \(x_h = e^{-t}(c_1\cos2t + c_2\sin2t)\).
\[x = 2\cos t + \sin t + e^{-t}(c_1\cos2t + c_2\sin2t).\]\(x(0) = 2 + c_1 = 0\) (using \(\cos 0 = 1\), \(\sin 0 = 0\), \(e^0 = 1\)), so \(c_1 = -2\). Derivative (product rule on \(e^{-t}\) times the bracket): \(x' = -2\sin t + \cos t + e^{-t}\big((-c_1 + 2c_2)\cos2t + (-c_2 - 2c_1)\sin2t\big)\), so \(x'(0) = 1 - c_1 + 2c_2 = 1 + 2 + 2c_2 = 0\), \(c_2 = -\tfrac32\):
\[x(t) = \underbrace{2\cos t + \sin t}_{\text{steady state}} - \underbrace{e^{-t}\left(2\cos2t + \tfrac32\sin2t\right)}_{\text{transient}}.\]Check \(x(0) = 2 - 2 = 0\). The transient has envelope \(e^{-t}\sqrt{4 + 9/4} = e^{-t}\sqrt{25/4} = \tfrac52e^{-t}\) and oscillates at the damped natural frequency 2, while the steady state oscillates at the driving frequency 1 with amplitude \(\sqrt5\). The transient is below 1% of \(\sqrt5\) when \(\tfrac52e^{-t} \lt 0.01\sqrt5\), i.e. \(e^{-t} \lt 0.00894\), \(t \gt 4.72\). After about five time constants the motion is indistinguishable from the steady state; the initial conditions have been forgotten, which is why the steady-periodic solution is all that matters for a long-running driven system.
\(x = 2\cos t + \sin t - e^{-t}(2\cos2t + \tfrac32\sin2t)\); transient under 1% after \(t \approx 4.7\).
Review: ·
66A series RLC circuit satisfies \(Lq'' + Rq' + \tfrac1Cq = E(t)\) with \(L = 1\) H and \(C = 0.2\) F. (a) Find the natural frequency and the resistance for critical damping. (b) For \(R = 2\ \Omega\), find the damped frequency, the practical resonance frequency, and the amplitude of the steady charge oscillation when \(E = 10\cos2t\).
Solution
(a) \(\omega_0 = \dfrac{1}{\sqrt{LC}} = \dfrac{1}{\sqrt{0.2}} = \sqrt5 \approx 2.24\) rad/s. Critical damping needs \(R^2 = 4L/C = 20\): \(R = 2\sqrt5 \approx 4.47\ \Omega\). Smaller \(R\) gives ringing, larger gives sluggish return.
(b) \(R = 2\): the equation is \(q'' + 2q' + 5q = E(t)\). Roots \(-1 \pm 2i\): damped frequency \(\omega_d = 2\) (pseudo-period \(\pi\)), transients decay like \(e^{-t}\). Practical resonance: \(\omega_r^2 = \omega_0^2 - \dfrac{R^2}{2L^2} = 5 - 2 = 3\), \(\omega_r = \sqrt3 \approx 1.73\), where the gain is \(1/\sqrt{(5 - 3)^2 + 12} = \tfrac14\).
With \(E = 10\cos2t\): \(p(2i) = 5 - 4 + 4i = 1 + 4i\), \(|p(2i)| = \sqrt{17}\), so the steady charge has amplitude
\[\frac{10}{\sqrt{17}} \approx 2.43 \text{ coulombs}\] \[\text{phase lag } \arctan4 \approx 1.33 \text{ rad}.\]The current \(i = q'\) then has amplitude \(2\cdot 2.43 = 4.85\) A. Note the three frequencies differ: natural \(\sqrt5 \approx 2.24\), damped \(2\), practical resonance \(\sqrt3 \approx 1.73\); driving at the natural frequency does not maximize the charge amplitude, and for the current the maximum is at \(\omega_0\) itself (the impedance \(|R + i(\omega L - 1/\omega C)|\) is minimal there).
(a) \(\omega_0 = \sqrt5\), critical \(R = 2\sqrt5\); (b) \(\omega_d = 2\), \(\omega_r = \sqrt3\), steady amplitude \(10/\sqrt{17} \approx 2.43\).
Review: ·
Challenge 3: Fourier series and Laplace transform
Differential Equations · Challenge problems 67 to 86
Problems 67 to 86
One hundred harder problems, still within the scope of the course: bifurcations, resonance in all its forms, Fourier and Laplace manipulations, systems with repeated or complex eigenvalues, and nonlinear portraits settled by conserved quantities and Lyapunov functions. Each opens to a complete solution with every step shown and the final answer highlighted. Expect to need pencil and paper, and use the Review links to go back to the relevant tab.
67Find the Fourier series of \(f(t) = t^2\) on \([-\pi, \pi]\) (period \(2\pi\)), and use it to evaluate \(\sum_{n=1}^\infty\frac1{n^2}\) and \(\sum_{n=1}^\infty\frac{(-1)^{n+1}}{n^2}\).
Solution
\(f\) is even, so \(b_n = 0\). \(a_0 = \dfrac2\pi\displaystyle\int_0^\pi t^2\,dt = \dfrac{2\pi^2}{3}\), so the constant term is \(\dfrac{a_0}{2} = \dfrac{\pi^2}{3}\). For \(n \ge 1\), integrating by parts twice,
\[a_n = \frac2\pi\int_0^\pi t^2\cos nt\,dt = \frac2\pi\left(\left[\frac{t^2\sin nt}{n}\right]_0^\pi - \frac2n\int_0^\pi t\sin nt\,dt\right) = -\frac{4}{n\pi}\cdot\frac{-\pi\cos n\pi}{n} = \frac{4(-1)^n}{n^2}.\] \[t^2 = \frac{\pi^2}{3} + 4\sum_{n=1}^\infty\frac{(-1)^n}{n^2}\cos nt = \frac{\pi^2}{3} - 4\cos t + \cos2t - \frac49\cos3t + \cdots\]The periodic extension is continuous (with corners at \(\pm\pi\)), so the series converges to \(t^2\) everywhere on \([-\pi, \pi]\); the coefficients decay like \(1/n^2\), as corners dictate.
\(t = \pi\): \(\pi^2 = \dfrac{\pi^2}{3} + 4\displaystyle\sum\frac{(-1)^n(-1)^n}{n^2} = \frac{\pi^2}{3} + 4\sum\frac{1}{n^2}\), so \(\displaystyle\sum_{n=1}^\infty\frac1{n^2} = \frac{\pi^2}{6}\).
\(t = 0\): \(0 = \dfrac{\pi^2}{3} + 4\displaystyle\sum\frac{(-1)^n}{n^2}\), so \(\displaystyle\sum_{n=1}^\infty\frac{(-1)^{n+1}}{n^2} = \frac{\pi^2}{12}\). Parseval gives a third identity: \(\dfrac1\pi\displaystyle\int_{-\pi}^\pi t^4\,dt = \frac{2\pi^4}{5} = \frac{a_0^2}{2} + \sum a_n^2 = \frac{2\pi^4}{9} + 16\sum\frac1{n^4}\), hence \(\sum 1/n^4 = \pi^4/90\).
\(t^2 = \tfrac{\pi^2}{3} + 4\sum(-1)^n\cos(nt)/n^2\); \(\sum1/n^2 = \pi^2/6\), \(\sum(-1)^{n+1}/n^2 = \pi^2/12\).
Review:
68Find the half-range sine series and the half-range cosine series of \(f(t) = 1\) on \(0 \lt t \lt \pi\). To what does each series converge at \(t = 0\), \(t = \pi/2\), \(t = \pi\)?
Solution
Sine series (odd extension, period \(2\pi\), \(L = \pi\)):
\[b_n = \frac2\pi\int_0^\pi\sin nt\,dt = \frac2\pi\cdot\frac{1 - \cos n\pi}{n} = \begin{cases} \dfrac{4}{n\pi} & n \text{ odd} \\ 0 & n \text{ even} \end{cases}\] \[1 = \frac4\pi\left(\sin t + \frac{\sin3t}{3} + \frac{\sin5t}{5} + \cdots\right)\ (0 \lt t \lt \pi).\]This is the square wave series. The odd extension jumps from \(-1\) to \(1\) at \(t = 0\) and from \(1\) to \(-1\) at \(t = \pi\); at those points the series converges to the midpoint \(0\) (every term vanishes there), while at \(t = \pi/2\) it converges to \(1\), giving \(1 - \tfrac13 + \tfrac15 - \cdots = \tfrac\pi4\).
Cosine series (even extension): \(a_0 = \dfrac2\pi\displaystyle\int_0^\pi 1\,dt = 2\) and \(a_n = \dfrac2\pi\displaystyle\int_0^\pi\cos nt\,dt = 0\) for \(n \ge 1\). The series is just the constant \(1\): the even extension of a constant is the constant, already its own Fourier series. It converges to \(1\) at every point, including \(0\) and \(\pi\), where the even extension is continuous.
Same function on \((0, \pi)\), two different series: which one to use depends on the boundary behaviour you want (the sine series is forced to vanish at the ends, the cosine series to have zero slope there), the choice that matters when solving heat and wave equations.
Sine: \(\tfrac4\pi\sum_{\text{odd}}\sin(nt)/n\), converging to \(0, 1, 0\) at \(0, \pi/2, \pi\); cosine: the constant \(1\) everywhere.
Review:
69Find the Fourier series of \(f(t) = |\sin t|\) (period \(\pi\)). Use it to find the average value of a full-wave rectified sine and the amplitude of its largest harmonic relative to the average.
Solution
\(|\sin t|\) has period \(\pi\) and is even, so with \(L = \pi/2\) the series contains only cosines of \(\dfrac{n\pi t}{L} = 2nt\):
\[a_0 = \frac{2}{\pi}\int_0^{\pi}\sin t\,dt = \frac4\pi\] \[a_n = \frac2\pi\int_0^\pi\sin t\cos2nt\,dt.\]Using \(\sin t\cos2nt = \tfrac12\big[\sin(1 + 2n)t + \sin(1 - 2n)t\big]\) and \(\displaystyle\int_0^\pi\sin kt\,dt = \frac{1 - \cos k\pi}{k} = \frac2k\) for odd \(k\):
\[a_n = \frac1\pi\left(\frac{2}{1 + 2n} + \frac{2}{1 - 2n}\right) = \frac2\pi\cdot\frac{2}{1 - 4n^2} = -\frac{4}{\pi(4n^2 - 1)}.\] \[|\sin t| = \frac2\pi - \frac4\pi\sum_{n=1}^\infty\frac{\cos2nt}{4n^2 - 1} = \frac2\pi - \frac4\pi\left(\frac{\cos2t}{3} + \frac{\cos4t}{15} + \frac{\cos6t}{35} + \cdots\right).\]Check at \(t = 0\): \(0 = \dfrac2\pi - \dfrac4\pi\sum\dfrac{1}{4n^2 - 1}\), and indeed \(\sum\dfrac{1}{4n^2 - 1} = \tfrac12\sum\left(\dfrac{1}{2n - 1} - \dfrac{1}{2n + 1}\right) = \tfrac12\).
Rectifier. The average (DC) value of a full-wave rectified sine of amplitude 1 is \(\dfrac2\pi \approx 0.637\). The largest ripple harmonic is \(\dfrac{4}{3\pi}\cos2t\), at twice the line frequency, with amplitude \(\dfrac{4}{3\pi} \approx 0.424\), i.e. \(\tfrac23\) of the DC level; the next harmonic is five times smaller. A smoothing filter only needs to suppress frequencies from \(2\omega\) upward, which is why full-wave rectification is easier to smooth than half-wave.
\(|\sin t| = \tfrac2\pi - \tfrac4\pi\sum\frac{\cos2nt}{4n^2 - 1}\); average \(2/\pi\), largest harmonic \(\tfrac{4}{3\pi}\cos2t\), ratio \(2/3\).
Review:
70State Parseval’s identity for a function of period \(2\pi\) and apply it to the sawtooth \(f(t) = t\) on \((-\pi, \pi)\) to evaluate \(\sum_{n\ge1}1/n^2\). Then find what fraction of the sawtooth’s energy is carried by its first three harmonics.
Solution
Parseval. If \(f = \dfrac{a_0}{2} + \sum(a_n\cos nt + b_n\sin nt)\), then
\[\frac1\pi\int_{-\pi}^\pi f(t)^2\,dt = \frac{a_0^2}{2} + \sum_{n=1}^\infty\left(a_n^2 + b_n^2\right).\]It is Pythagoras in the function space: the squared length of \(f\) equals the sum of the squared lengths of its orthogonal components.
Sawtooth. \(f(t) = t\) has \(a_n = 0\) and \(b_n = \dfrac{2(-1)^{n+1}}{n}\). The left side is \(\dfrac1\pi\displaystyle\int_{-\pi}^\pi t^2\,dt = \frac1\pi\left[\frac{t^3}{3}\right]_{-\pi}^{\pi} = \frac1\pi\cdot\frac{2\pi^3}{3} = \frac{2\pi^2}{3}\). The right side is \(\sum b_n^2 = \sum\dfrac{4}{n^2}\), the sign \((-1)^{n+1}\) disappearing when squared. Hence
\[\sum_{n=1}^\infty\frac1{n^2} = \frac{2\pi^2}{3}\cdot\frac14 = \frac{\pi^2}{6}.\]Energy fraction. The first three harmonics carry \(b_1^2 + b_2^2 + b_3^2 = 4\left(1 + \tfrac14 + \tfrac19\right) = 4\cdot\tfrac{49}{36} = \tfrac{49}{9} \approx 5.444\) out of the total \(\tfrac{2\pi^2}{3} \approx 6.580\): about \(82.7\%\). The first harmonic alone carries \(4/6.580 \approx 60.8\%\). Because the sawtooth has jumps, its coefficients decay only like \(1/n\) and the energy in the tail \(\sum_{n \gt N}4/n^2 \approx 4/N\) decays slowly; a continuous function like \(|t|\) (coefficients \(\sim 1/n^2\)) would reach \(99\%\) of its energy with the first harmonic.
\(\tfrac1\pi\int f^2 = \tfrac{a_0^2}{2} + \sum(a_n^2 + b_n^2)\); \(\tfrac{2\pi^2}{3} = \sum 4/n^2\) gives \(\pi^2/6\); first three harmonics \(\approx 82.7\%\).
Review: ·
71Find the steady-periodic solution of the damped system \(x'' + x' + x = \operatorname{sq}(t)\), where \(\operatorname{sq}(t) = \tfrac4\pi\sum_{n\ \text{odd}}\frac{\sin nt}{n}\) is the square wave. Give the first two terms explicitly and explain why the response looks almost sinusoidal.
Solution
For each harmonic \(\sin nt\), the steady response of \(p(D) = D^2 + D + 1\) is \(\dfrac{\sin(nt - \phi_n)}{|p(in)|}\) with \(p(in) = (1 - n^2) + in\):
\[|p(in)| = \sqrt{(1 - n^2)^2 + n^2}\] \[\phi_n = \arg\big((1 - n^2) + in\big).\] \[x_{sp}(t) = \frac4\pi\sum_{n\ \text{odd}}\frac{\sin(nt - \phi_n)}{n\sqrt{(1 - n^2)^2 + n^2}}.\]\(n = 1\): \(p(i) = i\), \(|p(i)| = 1\), \(\phi_1 = \pi/2\): the term is \(\dfrac4\pi\sin(t - \tfrac\pi2) = -\dfrac4\pi\cos t\), amplitude \(1.273\), the same amplitude as the input’s fundamental (gain 1 at the natural frequency \(\omega_0 = 1\), where the damping term alone resists).
\(n = 3\): \(p(3i) = -8 + 3i\), \(|p(3i)| = \sqrt{73} \approx 8.54\), \(\phi_3 = \pi - \arctan\tfrac38 \approx 2.78\): the term is \(\dfrac{4}{3\pi\sqrt{73}}\sin(3t - 2.78)\), amplitude \(\approx 0.050\), about \(4\%\) of the fundamental’s.
The system is a low-pass filter: the gain falls like \(1/n^2\) and the square wave’s own coefficients fall like \(1/n\), so the \(n\)-th harmonic of the output is down by \(1/n^3\): \(1, 0.037, 0.008, \dots\) relative to the fundamental. The sharp-cornered input produces a smooth, nearly pure cosine output of amplitude \(\approx 1.27\), delayed by a quarter period. This is the principle behind using an oscillator (or an RLC circuit) to extract a sine wave from a square wave.
\(x_{sp} = \tfrac4\pi\sum_{\text{odd}}\frac{\sin(nt - \phi_n)}{n\sqrt{(1-n^2)^2 + n^2}}\): \(-\tfrac4\pi\cos t + 0.050\sin(3t - 2.78) + \cdots\); higher harmonics are suppressed like \(1/n^3\).
Review:
72Consider \(x'' + 25x = \operatorname{sq}(t)\) with the square wave of the previous problem. Which harmonic resonates? Write the response to that harmonic and to the others, and describe the solution for large \(t\).
Solution
The natural frequency is \(5\), and the square wave contains the odd harmonics \(1, 3, 5, 7, \dots\). The \(n = 5\) term, \(\dfrac{4}{5\pi}\sin5t\), has exactly the natural frequency: pure resonance.
Resonant term. For \(p(D) = D^2 + 25\), \(p(5i) = 0\) and \(p'(5i) = 10i\). ERF for \(\sin5t = \operatorname{Im}e^{5it}\): \(\operatorname{Im}\dfrac{te^{5it}}{10i} = \operatorname{Im}\left(-\dfrac{i}{10}t(\cos5t + i\sin5t)\right) = -\dfrac{t\cos5t}{10}\). Multiplying by the coefficient \(\dfrac{4}{5\pi}\):
\[x_5(t) = -\frac{4}{5\pi}\cdot\frac{t\cos5t}{10} = -\frac{2t\cos5t}{25\pi}.\]Other harmonics (\(n \ne 5\), odd): \(\dfrac{4}{\pi}\cdot\dfrac{\sin nt}{n(25 - n^2)}\), bounded: \(n = 1\): \(\dfrac{4}{24\pi}\sin t \approx 0.053\sin t\); \(n = 3\): \(\dfrac{4}{48\pi}\sin3t \approx 0.027\sin3t\); \(n = 7\): \(-\dfrac{4}{168\pi}\sin7t\); and so on, with the sign flipping for \(n \gt 5\).
\[x(t) = c_1\cos5t + c_2\sin5t - \frac{2t\cos5t}{25\pi} + \frac4\pi\sum_{n\ \text{odd},\ n \ne 5}\frac{\sin nt}{n(25 - n^2)}.\]For large \(t\) the resonant term dominates: the solution is essentially a cosine at frequency 5 whose amplitude grows linearly, \(\dfrac{2t}{25\pi} \approx 0.025t\), reaching 1 after about 40 time units, with a small periodic ripple superimposed. Had the natural frequency been \(4\) or \(6\) (even), no harmonic would match and the response would stay bounded; the square wave can resonate only with odd natural frequencies.
\(n = 5\) resonates: \(x_5 = -\tfrac{2t\cos5t}{25\pi}\); the other harmonics give bounded terms \(\tfrac{4\sin nt}{\pi n(25 - n^2)}\); amplitude grows like \(0.025t\).
Review: ·
73Let \(f(t) = t\) for \(0 \le t \lt 1\) and \(f(t) = 1\) for \(t \ge 1\). Write \(f\) in u-form, find its Laplace transform, and check the result by computing the transform directly from the definition.
Solution
u-form. \(f(t) = t - (t - 1)u(t - 1)\): for \(t \lt 1\) the step is 0 and \(f = t\); for \(t \ge 1\), \(f = t - (t - 1) = 1\). The subtracted term is already written as a function of \(t - 1\), ready for the shift rule.
\[F(s) = \mathcal{L}\{t\} - e^{-s}\mathcal{L}\{t\} = \frac{1}{s^2} - \frac{e^{-s}}{s^2} = \frac{1 - e^{-s}}{s^2}.\]Direct check.
(The first integral is by parts with \(u = t\), \(dv = e^{-st}\,dt\): \(-\dfrac{te^{-st}}{s} + \dfrac1s\displaystyle\int e^{-st}\,dt = -\dfrac{te^{-st}}{s} - \dfrac{e^{-st}}{s^2}\). The second is \(\left[-\dfrac{e^{-st}}{s}\right]_1^\infty = \dfrac{e^{-s}}{s}\) for \(s \gt 0\).)
\[F(s) = \int_0^1te^{-st}\,dt + \int_1^\infty e^{-st}\,dt = \left[-\frac{te^{-st}}{s} - \frac{e^{-st}}{s^2}\right]_0^1 + \frac{e^{-s}}{s} = -\frac{e^{-s}}{s} - \frac{e^{-s}}{s^2} + \frac1{s^2} + \frac{e^{-s}}{s}\] \[= \frac{1 - e^{-s}}{s^2}.\]Agreed. Note \(f\) is continuous (both pieces equal 1 at \(t = 1\)) but has a corner there; its derivative is \(f' = 1 - u(t - 1)\), a step function, with transform \(\dfrac{1 - e^{-s}}{s} = sF(s) - f(0)\), as the derivative rule requires. A ramp that levels off is the standard way to switch a load on gradually.
\(f = t - (t - 1)u(t - 1)\); \(F(s) = \dfrac{1 - e^{-s}}{s^2}\).
Review: ·
74Find \(\mathcal{L}\{te^{-2t}\sin3t\}\) using the rules, and \(\mathcal{L}^{-1}\left\{\dfrac{s}{(s^2 + 4)^2}\right\}\).
Solution
Forward. Start from \(\mathcal{L}\{\sin3t\} = \dfrac{3}{s^2 + 9}\). The \(s\)-shift for \(e^{-2t}\) gives \(\mathcal{L}\{e^{-2t}\sin3t\} = \dfrac{3}{(s + 2)^2 + 9}\). Multiplication by \(t\) differentiates with a minus sign:
\[\mathcal{L}\{te^{-2t}\sin3t\} = -\frac{d}{ds}\frac{3}{(s + 2)^2 + 9} = \frac{6(s + 2)}{\big((s + 2)^2 + 9\big)^2}.\](Order matters only for convenience; shifting after differentiating gives the same result.)
Inverse. Recognise \(\dfrac{s}{(s^2 + 4)^2}\) as a derivative: \(\dfrac{d}{ds}\dfrac{1}{s^2 + 4} = -\dfrac{2s}{(s^2 + 4)^2}\), so \(\dfrac{s}{(s^2 + 4)^2} = -\dfrac12\dfrac{d}{ds}\dfrac{1}{s^2 + 4} = -\dfrac12\cdot\dfrac12\dfrac{d}{ds}\dfrac{2}{s^2 + 4}\). Since \(-\dfrac{d}{ds}G(s) = \mathcal{L}\{tg(t)\}\) with \(g = \sin2t\) for \(G = \dfrac{2}{s^2 + 4}\):
\[\mathcal{L}^{-1}\left\{\frac{s}{(s^2 + 4)^2}\right\} = \frac14\,t\sin2t.\]Check with the table entry \(\mathcal{L}\{t\sin\omega t\} = \dfrac{2\omega s}{(s^2 + \omega^2)^2}\): with \(\omega = 2\), \(\mathcal{L}\{t\sin2t\} = \dfrac{4s}{(s^2 + 4)^2}\), so dividing by 4 gives the claim. Alternatively, \(\dfrac{s}{(s^2 + 4)^2} = \dfrac{s}{s^2 + 4}\cdot\dfrac{1}{s^2 + 4}\) is the transform of the convolution \(\cos2t * \tfrac12\sin2t\), which evaluates to the same \(\tfrac14t\sin2t\). These transforms are exactly what appears in resonance problems.
\(\dfrac{6(s + 2)}{((s + 2)^2 + 9)^2}\); \(\tfrac14t\sin2t\).
Review:
75Find \(\mathcal{L}^{-1}\left\{\dfrac{2s + 3}{s^2 + 4s + 13}\right\}\) and \(\mathcal{L}^{-1}\left\{\dfrac{s^2 + 1}{s(s + 1)^2}\right\}\).
Solution
First. Complete the square: \(s^2 + 4s + 13 = (s + 2)^2 + 9\). Write the numerator in terms of \(s + 2\): \(2s + 3 = 2(s + 2) - 1\) (since \(2(s + 2) = 2s + 4\), one too many). The \(-1\) must be written as \(-\tfrac13\cdot 3\) so that the sine entry \(\dfrac{3}{(s+2)^2 + 9}\) appears with its \(\omega = 3\) in the numerator. Then
\[\frac{2s + 3}{(s + 2)^2 + 9} = 2\cdot\frac{s + 2}{(s + 2)^2 + 9} - \frac13\cdot\frac{3}{(s + 2)^2 + 9}\] \[\Longrightarrow\ f(t) = 2e^{-2t}\cos3t - \frac13e^{-2t}\sin3t.\]Check \(f(0) = 2\), which matches the initial value theorem \(\lim_{s\to\infty}sF(s) = 2\).
Second. Partial fractions with a repeated factor: \(\dfrac{s^2 + 1}{s(s + 1)^2} = \dfrac As + \dfrac{B}{s + 1} + \dfrac{C}{(s + 1)^2}\). Cover-up: \(A = \dfrac{0 + 1}{(0 + 1)^2} = 1\); \(C = \dfrac{1 + 1}{-1} = -2\). For \(B\), compare the \(s^2\) coefficients after clearing denominators: \(s^2 + 1 = A(s + 1)^2 + Bs(s + 1) + Cs\) gives \(1 = A + B\), so \(B = 0\). Thus
\[\frac{s^2 + 1}{s(s + 1)^2} = \frac1s - \frac{2}{(s + 1)^2}\] \[\Longrightarrow\ f(t) = 1 - 2te^{-t}.\]Check at \(s = 1\): left side \(\dfrac{2}{4} = \tfrac12\); right side \(1 - \tfrac24 = \tfrac12\). And \(f(0) = 1 = \lim sF(s)\). The absence of a \(\dfrac{1}{s + 1}\) term means no pure \(e^{-t}\) in the answer, only the resonant \(te^{-t}\).
\(2e^{-2t}\cos3t - \tfrac13e^{-2t}\sin3t\); \(1 - 2te^{-t}\).
Review:
76Solve \(y'' + 3y' + 2y = u(t - 2)\) with \(y(0) = y'(0) = 0\). Give the answer in u-form and in cases form, and find \(\lim_{t\to\infty}y(t)\).
Solution
Transform: \((s^2 + 3s + 2)Y = \dfrac{e^{-2s}}{s}\), so \(Y = e^{-2s}\cdot\dfrac{1}{s(s + 1)(s + 2)}\). Partial fractions by cover-up:
\[\frac{1}{s(s + 1)(s + 2)} = \frac{1/2}{s} - \frac{1}{s + 1} + \frac{1/2}{s + 2}\] \[\Longrightarrow\ h(t) = \frac12 - e^{-t} + \frac12e^{-2t}\]the unit step response of the system (check \(h(0) = \tfrac12 - 1 + \tfrac12 = 0\)). The factor \(e^{-2s}\) delays it by 2:
\[y(t) = u(t - 2)\,h(t - 2) = u(t - 2)\left(\frac12 - e^{-(t - 2)} + \frac12e^{-2(t - 2)}\right).\]Cases: \(y = 0\) for \(t \lt 2\); \(y = \tfrac12 - e^{-(t - 2)} + \tfrac12e^{-2(t - 2)}\) for \(t \ge 2\). The solution is continuous at \(t = 2\) with \(y(2) = 0\) and \(y'(2) = 0\) (\(h'(0) = 1 - 1 = 0\)): a step input moves the position only gradually, since the force must first build up velocity.
Limit. \(y \to \tfrac12 = \dfrac{1}{p(0)}\), the static response to a unit constant force; the final value theorem \(\lim_{s\to0}sY(s) = \lim_{s\to0}\dfrac{e^{-2s}}{(s + 1)(s + 2)} = \tfrac12\) agrees. The approach is overdamped (roots \(-1, -2\)), with no overshoot.
\(y = u(t-2)\big(\tfrac12 - e^{-(t-2)} + \tfrac12e^{-2(t-2)}\big)\); \(y \to \tfrac12\).
Review: ·
77Solve \(y'' + y = \delta(t - \pi/2)\) with \(y(0) = 1\), \(y'(0) = 0\). Describe what happens physically.
Solution
Transform with the initial conditions: \(s^2Y - s\cdot 1 - 0 + Y = e^{-\pi s/2}\), so
\[Y = \frac{s}{s^2 + 1} + \frac{e^{-\pi s/2}}{s^2 + 1}\] \[\Longrightarrow\ y(t) = \cos t + u\!\left(t - \tfrac\pi2\right)\sin\!\left(t - \tfrac\pi2\right).\]Since \(\sin(t - \tfrac\pi2) = -\cos t\),
\[y(t) = \cos t - u\!\left(t - \tfrac\pi2\right)\cos t = \begin{cases} \cos t & 0 \le t \lt \pi/2 \\ 0 & t \ge \pi/2. \end{cases}\]Physically. The mass is released from rest at \(x = 1\) and swings toward equilibrium, reaching \(x = 0\) at \(t = \pi/2\) with velocity \(y'(\pi/2) = -\sin(\pi/2) = -1\). At that instant a unit impulse in the positive direction adds \(+1\) to the velocity, bringing the mass to rest exactly at equilibrium, where it stays forever. The position is continuous at \(t = \pi/2\) (both pieces are 0) and the velocity jumps from \(-1\) to \(0\). The impulse was perfectly timed and sized to cancel the motion; an impulse of size \(2\) instead would have reversed the velocity, giving \(y = \cos t - 2u(t - \tfrac\pi2)\cos t = -\cos t\) after the kick: the mirror-image swing. This is the one-shot version of the "stop the swing" problem.
\(y = \cos t - u(t - \tfrac\pi2)\cos t\): the impulse stops the mass dead at equilibrium.
Review: ·
78Use the convolution theorem to find \(\mathcal{L}^{-1}\left\{\dfrac{1}{s^2(s + 1)}\right\}\), and check by partial fractions.
Solution
\(\dfrac{1}{s^2(s + 1)} = \dfrac{1}{s^2}\cdot\dfrac{1}{s + 1} = \mathcal{L}\{t\}\cdot\mathcal{L}\{e^{-t}\}\), so the inverse transform is the convolution \(t * e^{-t}\):
\[(t * e^{-t})(t) = \int_0^t(t - \tau)e^{-\tau}\,d\tau = t\int_0^te^{-\tau}\,d\tau - \int_0^t\tau e^{-\tau}\,d\tau = t(1 - e^{-t}) - \big[-\tau e^{-\tau} - e^{-\tau}\big]_0^t\] \[= t - te^{-t} - \big(-te^{-t} - e^{-t} + 1\big) = t - 1 + e^{-t}.\]Partial fractions. \(\dfrac{1}{s^2(s + 1)} = \dfrac As + \dfrac{B}{s^2} + \dfrac{C}{s + 1}\): cover-up gives \(B = 1\) (at \(s = 0\) after multiplying by \(s^2\)) and \(C = 1\) (at \(s = -1\)); comparing \(s^2\) coefficients in \(1 = As(s + 1) + B(s + 1) + Cs^2\) gives \(0 = A + C\), \(A = -1\). So \(\dfrac{1}{s^2(s + 1)} = -\dfrac1s + \dfrac1{s^2} + \dfrac{1}{s + 1}\), inverse \(-1 + t + e^{-t}\). Agreed.
Interpretation: \(t - 1 + e^{-t}\) is the response of the first-order system \(x' + x = f\) (weight function \(e^{-t}\)) to the ramp input \(f = t\), from rest. For large \(t\) it follows the ramp with a lag of 1 (the time constant); the \(e^{-t}\) is the transient that makes \(x(0) = x'(0) = 0\).
\(t * e^{-t} = t - 1 + e^{-t}\).
Review:
79Solve the integral equation \(y(t) = t + \int_0^t(t - \tau)y(\tau)\,d\tau\) by Laplace transform, and verify the answer by converting the equation to an initial value problem.
Solution
The integral is the convolution \((t * y)(t)\). Transforming, with \(\mathcal{L}\{t\} = 1/s^2\):
\[Y = \frac{1}{s^2} + \frac{1}{s^2}Y\] \[\Longrightarrow\ Y\left(1 - \frac1{s^2}\right) = \frac1{s^2}\] \[\Longrightarrow\ Y = \frac{1}{s^2 - 1} = \frac12\left(\frac{1}{s - 1} - \frac{1}{s + 1}\right).\] \[y(t) = \frac{e^t - e^{-t}}{2} = \sinh t.\]Verification. Differentiate the equation twice (Leibniz rule): \(y' = 1 + \displaystyle\int_0^ty(\tau)\,d\tau\) (the boundary term \((t - t)y(t)\) vanishes), and \(y'' = y\). Initial values from the equation: \(y(0) = 0\), \(y'(0) = 1\). The IVP \(y'' = y\), \(y(0) = 0\), \(y'(0) = 1\) has solution \(\sinh t\), confirming the Laplace result. Direct check in the integral equation: \(\displaystyle\int_0^t(t - \tau)\sinh\tau\,d\tau = \big[(t - \tau)\cosh\tau\big]_0^t + \int_0^t\cosh\tau\,d\tau = -t + \sinh t\), so the right side is \(t - t + \sinh t = \sinh t = y(t)\).
Integral equations of this convolution type (Volterra equations) are the natural setting for the Laplace transform, since convolution becomes multiplication and the equation becomes algebra.
\(y = \sinh t\).
Review: ·
80A system has transfer function \(W(s) = \dfrac{1}{s^2 + 2s + 10}\). Find its poles, the unit impulse response, the decay rate and frequency of the transient, the practical resonance frequency, and the peak gain. Sketch the pole diagram and the frequency response curve.
Solution
Poles. \(s^2 + 2s + 10 = (s + 1)^2 + 9 = 0\) gives \(s = -1 \pm 3i\): a conjugate pair in the left half-plane, so the system is stable.
Impulse response. \(W(s) = \dfrac13\cdot\dfrac{3}{(s + 1)^2 + 9}\), so \(w(t) = \dfrac13e^{-t}\sin3t\). Transients decay like \(e^{-t}\) (the real part of the poles, distance from the imaginary axis) and oscillate with frequency 3 (the imaginary part), pseudo-period \(2\pi/3\).
Frequency response. \(g(\omega) = |W(i\omega)| = \dfrac{1}{\sqrt{(10 - \omega^2)^2 + 4\omega^2}}\). With \(m = 1\), \(b = 2\), \(k = 10\): \(\omega_0 = \sqrt{10} \approx 3.16\) and
\[\omega_r = \sqrt{\omega_0^2 - \frac{b^2}{2m^2}} = \sqrt{10 - 2} = 2\sqrt2 \approx 2.83\] \[g_{\max} = \frac{1}{b\sqrt{\omega_0^2 - b^2/4m^2}} = \frac{1}{2\sqrt{9}} = \frac16.\]Check: \(g(2\sqrt2) = 1/\sqrt{(10 - 8)^2 + 32} = 1/\sqrt{36} = \tfrac16\) (here \(\omega^2 = 8\), so \(4\omega^2 = 32\)). Compared with the static gain \(g(0) = 1/\sqrt{100} = \tfrac1{10}\), the peak is only \(1.67\) times higher: moderate damping (\(b = 2\) against the critical \(2\sqrt{10} \approx 6.3\)) gives a broad, low bump rather than a spike.
Pictures. Pole diagram: two crosses at \(-1 \pm 3i\). The distance from a point \(i\omega\) on the imaginary axis to the poles is smallest near \(\omega \approx 3\), which is where \(|W(i\omega)| = 1/(\text{product of the distances})\) peaks; the peak sits slightly below 3 (at \(2\sqrt2\)) because the far pole’s distance also matters. Frequency response: starts at \(0.1\), rises to \(0.167\) at \(\omega \approx 2.83\), and decays like \(1/\omega^2\).
Poles \(-1 \pm 3i\); \(w = \tfrac13e^{-t}\sin3t\); decay \(e^{-t}\), frequency 3; \(\omega_r = 2\sqrt2\), \(g_{\max} = 1/6\).
Review:
81Prove by induction that \(\mathcal{L}\{t^n\} = \dfrac{n!}{s^{n+1}}\), using the rule \(\mathcal{L}\{tf(t)\} = -F'(s)\). Then find \(\mathcal{L}\{t^3e^{2t}\}\) and \(\mathcal{L}^{-1}\left\{\dfrac{1}{(s - 2)^4}\right\}\).
Solution
Base case. \(\mathcal{L}\{1\} = \displaystyle\int_0^\infty e^{-st}\,dt = \frac1s = \frac{0!}{s^1}\) for \(s \gt 0\).
Step. Assume \(\mathcal{L}\{t^n\} = \dfrac{n!}{s^{n+1}}\). Then \(t^{n+1} = t\cdot t^n\), and the multiplication rule gives
\[\mathcal{L}\{t^{n+1}\} = -\frac{d}{ds}\frac{n!}{s^{n+1}} = n!\,(n + 1)s^{-(n+2)} = \frac{(n + 1)!}{s^{n+2}}.\]So the formula holds for all \(n \ge 0\). (The multiplication rule itself comes from differentiating \(F(s) = \int_0^\infty e^{-st}f(t)\,dt\) under the integral sign: \(F'(s) = -\int_0^\infty te^{-st}f(t)\,dt\).)
Applications. \(\mathcal{L}\{t^3\} = \dfrac{6}{s^4}\), and the \(s\)-shift gives \(\mathcal{L}\{t^3e^{2t}\} = \dfrac{6}{(s - 2)^4}\). Reading this backwards,
\[\mathcal{L}^{-1}\left\{\frac{1}{(s - 2)^4}\right\} = \frac{t^3e^{2t}}{6}.\]These entries are what appear when a root is repeated four times, e.g. the general solution of \((D - 2)^4y = 0\) is \((c_0 + c_1t + c_2t^2 + c_3t^3)e^{2t}\), whose transforms are exactly the fractions \(\dfrac{k!}{(s - 2)^{k+1}}\).
Induction via \(-\frac{d}{ds}\); \(\mathcal{L}\{t^3e^{2t}\} = \frac{6}{(s-2)^4}\); \(\mathcal{L}^{-1}\{(s-2)^{-4}\} = \frac{t^3e^{2t}}{6}\).
Review:
82Solve \(y' + 2y = e^{-2t}\), \(y(0) = 0\) with the Laplace transform, and compare with the integrating-factor method. Then solve \(y' + 2y = e^{-2t}\) with \(y(0) = 3\).
Solution
Laplace. \(sY - 0 + 2Y = \dfrac{1}{s + 2}\), so \(Y = \dfrac{1}{(s + 2)^2}\) and \(y = te^{-2t}\). The repeated factor signals resonance: the input decays at exactly the system’s own rate.
Integrating factor. Multiply by \(e^{2t}\): \((e^{2t}y)' = 1\), so \(e^{2t}y = t + C\), \(y = (t + C)e^{-2t}\); \(y(0) = 0\) gives \(C = 0\). Same answer, and the integrating factor shows why the \(t\) appears: the right side became the constant 1, whose integral is \(t\).
With \(y(0) = 3\). Laplace: \(sY - 3 + 2Y = \dfrac{1}{s + 2}\), \(Y = \dfrac{3}{s + 2} + \dfrac{1}{(s + 2)^2}\), so
\[y = 3e^{-2t} + te^{-2t} = (3 + t)e^{-2t}.\]The two pieces of \(Y\) are the free response (initial-condition term \(\dfrac{y(0)}{s + 2}\)) and the forced response \(\dfrac{F(s)}{s + 2}\); the Laplace method separates them automatically. Check: \(y' = (1 - 6 - 2t)e^{-2t} = (-5 - 2t)e^{-2t}\) and \(y' + 2y = (-5 - 2t + 6 + 2t)e^{-2t} = e^{-2t}\), with \(y(0) = 3\).
\(y = te^{-2t}\); with \(y(0) = 3\), \(y = (3 + t)e^{-2t}\).
Review:
83Solve the system \(x' = x + y\), \(y' = 4x + y\) with \(x(0) = 1\), \(y(0) = 0\) using Laplace transforms. Check the answer against the eigenvalue method.
Solution
Transform both equations: \(sX - 1 = X + Y\) and \(sY = 4X + Y\). From the second, \(Y = \dfrac{4X}{s - 1}\). Substitute into the first: \((s - 1)X - 1 = \dfrac{4X}{s - 1}\), so \(X\big((s - 1)^2 - 4\big) = s - 1\) and
\[X = \frac{s - 1}{(s - 3)(s + 1)} = \frac{1/2}{s - 3} + \frac{1/2}{s + 1}\] \[Y = \frac{4}{(s - 3)(s + 1)} = \frac{1}{s - 3} - \frac{1}{s + 1}.\] \[x(t) = \frac{e^{3t} + e^{-t}}{2}\] \[y(t) = e^{3t} - e^{-t}.\](Cover-up for \(X\): at \(s = 3\), \(\dfrac{2}{4} = \tfrac12\); at \(s = -1\), \(\dfrac{-2}{-4} = \tfrac12\). For \(Y\): \(\dfrac44 = 1\) and \(\dfrac{4}{-4} = -1\).) Check: \(x(0) = 1\), \(y(0) = 0\); \(x' = \tfrac12(3e^{3t} - e^{-t})\) and \(x + y = \tfrac32e^{3t} - \tfrac12e^{-t}\). Agreed.
Eigenvalue method. \(A = \begin{bmatrix} 1 & 1 \\ 4 & 1 \end{bmatrix}\) has \(\lambda = 3\) (eigenvector \((1, 2)\)) and \(\lambda = -1\) (eigenvector \((1, -2)\)); the denominators \((s - 3)(s + 1)\) are the characteristic polynomial. Writing \((1, 0) = \tfrac12(1, 2) + \tfrac12(1, -2)\) gives \(\mathbf{x} = \tfrac12e^{3t}(1, 2) + \tfrac12e^{-t}(1, -2)\), whose components are exactly the Laplace result. The Laplace route needs no eigenvectors, but the eigenvalues reappear as poles.
\(x = \tfrac12(e^{3t} + e^{-t})\), \(y = e^{3t} - e^{-t}\).
Review: ·
84Find the unit step response of \(y'' + 3y' + 2y = f(t)\), i.e. the solution with \(f = u(t)\) and rest initial conditions. Show it is the integral of the unit impulse response, and find its final value two ways.
Solution
With \(f = u(t)\), \(F = 1/s\), and \(Y = \dfrac{1}{s(s + 1)(s + 2)} = \dfrac{1/2}{s} - \dfrac{1}{s + 1} + \dfrac{1/2}{s + 2}\):
\[y_{\text{step}}(t) = \frac12 - e^{-t} + \frac12e^{-2t}.\]Check \(y(0) = 0\), \(y'(0) = 1 - 1 = 0\).
Impulse response. \(W(s) = \dfrac{1}{(s + 1)(s + 2)} = \dfrac{1}{s + 1} - \dfrac{1}{s + 2}\), so \(w(t) = e^{-t} - e^{-2t}\). Integrating from 0: \(\displaystyle\int_0^tw = \big[-e^{-\tau} + \tfrac12e^{-2\tau}\big]_0^t = -e^{-t} + \tfrac12e^{-2t} + 1 - \tfrac12 = \tfrac12 - e^{-t} + \tfrac12e^{-2t}\), which is \(y_{\text{step}}\). In the \(s\)-domain this is just \(Y = W(s)\cdot\dfrac1s\), and division by \(s\) is integration; equivalently \(u = \int\delta\) and the system is linear and time-invariant. Conversely \(w = y_{\text{step}}'\).
Final value. (i) From the formula, \(y \to \tfrac12\) as the exponentials die. (ii) Final value theorem: \(\lim_{t\to\infty}y = \lim_{s\to0}sY(s) = \lim_{s\to0}\dfrac{1}{(s + 1)(s + 2)} = \tfrac12 = \dfrac{1}{p(0)} = W(0)\), the static gain. The theorem is legitimate because all poles of \(sY\) lie in the left half-plane.
\(y_{\text{step}} = \tfrac12 - e^{-t} + \tfrac12e^{-2t} = \int_0^tw\) with \(w = e^{-t} - e^{-2t}\); final value \(\tfrac12\).
Review: ·
85Find the Fourier series of the even square wave \(f(t) = 1\) for \(|t| \lt \pi/2\), \(f(t) = -1\) for \(\pi/2 \lt |t| \le \pi\) (period \(2\pi\)), and relate it to the standard odd square wave \(\operatorname{sq}(t)\).
Solution
\(f\) is even with mean zero (it is \(+1\) on half the period and \(-1\) on the other half), so \(b_n = 0\), \(a_0 = 0\), and, using \(\int\cos nt\,dt = \dfrac{\sin nt}{n}\) on each piece,
\[a_n = \frac2\pi\left(\int_0^{\pi/2}\cos nt\,dt - \int_{\pi/2}^\pi\cos nt\,dt\right) = \frac2\pi\left(\frac{\sin\frac{n\pi}{2}}{n} - \frac{\sin n\pi - \sin\frac{n\pi}{2}}{n}\right) = \frac{4\sin\frac{n\pi}{2}}{n\pi}.\]For even \(n\), \(\sin\frac{n\pi}{2} = 0\); for \(n = 2k + 1\), \(\sin\frac{n\pi}{2} = (-1)^k\):
\[f(t) = \frac4\pi\left(\cos t - \frac{\cos3t}{3} + \frac{\cos5t}{5} - \frac{\cos7t}{7} + \cdots\right) = \frac4\pi\sum_{k=0}^\infty\frac{(-1)^k\cos(2k + 1)t}{2k + 1}.\]Relation to \(\operatorname{sq}\). \(f(t) = \operatorname{sq}(t + \tfrac\pi2)\): shifting the odd square wave a quarter period to the left centres a positive plateau at \(t = 0\). Shifting \(\sin nt\) gives \(\sin(nt + \tfrac{n\pi}{2})\), which for odd \(n = 2k + 1\) equals \((-1)^k\cos nt\), reproducing the coefficients above term by term. At the jumps \(t = \pm\pi/2\) the series converges to 0; at \(t = 0\) it gives \(1 = \tfrac4\pi(1 - \tfrac13 + \tfrac15 - \cdots)\), the Leibniz series for \(\pi/4\) once more. The same function, shifted, trades sines for cosines and alternating signs for all-positive ones, but keeps the \(1/n\) decay and the odd harmonics only.
\(f = \tfrac4\pi\sum_k\frac{(-1)^k\cos(2k+1)t}{2k+1}\), which is \(\operatorname{sq}(t + \pi/2)\).
Review:
86What fraction of the energy (mean square) of the square wave \(\operatorname{sq}(t)\) is carried by its fundamental harmonic? By the first three nonzero harmonics? Compare with the triangle wave \(|t|\) on \([-\pi, \pi]\) (centred to have mean zero).
Solution
Square wave. \(\operatorname{sq}^2 \equiv 1\), so the mean square is \(\dfrac1\pi\displaystyle\int_{-\pi}^\pi\operatorname{sq}^2\,dt = 2\) (Parseval’s left side). The coefficients are \(b_n = \dfrac{4}{n\pi}\) for odd \(n\), so the fundamental carries \(b_1^2 = \dfrac{16}{\pi^2} \approx 1.621\): a fraction
\[\frac{16/\pi^2}{2} = \frac{8}{\pi^2} \approx 0.811.\]First three nonzero harmonics (\(n = 1, 3, 5\)): \(\dfrac{16}{\pi^2}\left(1 + \tfrac19 + \tfrac1{25}\right) = \dfrac{16}{\pi^2}\cdot 1.151 \approx 1.866\), fraction \(\approx 0.933\). (Parseval also gives \(\sum_{\text{odd}}1/n^2 = \pi^2/8\) from this.)
Triangle wave. \(|t| - \dfrac\pi2 = -\dfrac4\pi\displaystyle\sum_{n\ \text{odd}}\frac{\cos nt}{n^2}\). Mean square: \(\dfrac1\pi\displaystyle\int_{-\pi}^\pi\left(|t| - \tfrac\pi2\right)^2dt = \frac2\pi\int_0^\pi\left(t - \tfrac\pi2\right)^2dt = \frac2\pi\cdot\frac{2}{3}\left(\tfrac\pi2\right)^3 = \frac{\pi^2}{6} \approx 1.645\). Fundamental: \(a_1^2 = \dfrac{16}{\pi^2} \approx 1.621\), fraction \(\approx 0.986\); with \(n = 3\) added, \(1 + \tfrac1{81}\) times that, fraction \(\approx 0.998\).
The triangle wave is continuous (coefficients \(\sim 1/n^2\), energies \(\sim 1/n^4\)) and is almost a pure cosine; the square wave has jumps (coefficients \(\sim 1/n\), energies \(\sim 1/n^2\)) and needs many harmonics. Smoothness in time means fast decay in frequency, which is why a square-wave input to a resonant system can excite high harmonics that a triangle wave would not.
Square wave: \(8/\pi^2 \approx 81\%\) in the fundamental, \(\approx 93\%\) in \(n = 1, 3, 5\); triangle wave: \(\approx 98.6\%\) and \(99.8\%\).
Review: ·
Challenge 4: linear systems
Differential Equations · Challenge problems 87 to 106
Problems 87 to 106
One hundred harder problems, still within the scope of the course: bifurcations, resonance in all its forms, Fourier and Laplace manipulations, systems with repeated or complex eigenvalues, and nonlinear portraits settled by conserved quantities and Lyapunov functions. Each opens to a complete solution with every step shown and the final answer highlighted. Expect to need pencil and paper, and use the Review links to go back to the relevant tab.
87Solve \(\mathbf{x}' = \begin{bmatrix} 3 & -2 \\ 2 & -2 \end{bmatrix}\mathbf{x}\), classify the origin, and sketch the phase portrait with the separatrices labelled.
Solution
\(T = 1\), \(D = -6 + 4 = -2 \lt 0\): a saddle. Eigenvalues from \(\lambda^2 - \lambda - 2 = (\lambda - 2)(\lambda + 1)\): \(\lambda = 2, -1\).
\(\lambda = 2\): \(A - 2I = \begin{bmatrix} 1 & -2 \\ 2 & -4 \end{bmatrix}\), \(v_1 = 2v_2\), eigenvector \((2, 1)\). \(\lambda = -1\): \(A + I = \begin{bmatrix} 4 & -2 \\ 2 & -1 \end{bmatrix}\), \(v_2 = 2v_1\), eigenvector \((1, 2)\).
\[\mathbf{x}(t) = c_1e^{2t}\begin{bmatrix} 2 \\ 1 \end{bmatrix} + c_2e^{-t}\begin{bmatrix} 1 \\ 2 \end{bmatrix}.\]Check the first: \(A(2, 1) = (6 - 2, 4 - 2) = (4, 2) = 2(2, 1)\).
Portrait. The line \(y = 2x\) (direction \((1, 2)\), \(\lambda = -1\)) is the stable separatrix: trajectories on it move straight into the origin. The line \(y = x/2\) (direction \((2, 1)\), \(\lambda = 2\)) is the unstable separatrix, with motion straight away from the origin. Every other trajectory comes in roughly parallel to \(y = 2x\), bends near the origin, and leaves parallel to \(y = x/2\), like hyperbolas in the skewed coordinates. The four quadrants cut out by the two lines each contain one family of curves. Only initial points exactly on \(y = 2x\) ever reach the origin; everything else escapes along \((2, 1)\) with \(|\mathbf{x}| \sim e^{2t}\).
Saddle: \(\mathbf{x} = c_1e^{2t}(2, 1) + c_2e^{-t}(1, 2)\); stable line \(y = 2x\), unstable line \(y = x/2\).
Review: ·
88Solve \(\mathbf{x}' = \begin{bmatrix} 0 & 2 \\ -2 & 0 \end{bmatrix}\mathbf{x}\) with \(\mathbf{x}(0) = (1, 0)\). Describe the trajectory, its direction of rotation, and the period. Find a conserved quantity.
Solution
\(T = 0\), \(D = 4\): a center, eigenvalues \(\pm 2i\). Rather than find complex eigenvectors, note the system says \(x' = 2y\), \(y' = -2x\), so \(x'' = 2y' = -4x\): \(x = c_1\cos2t + c_2\sin2t\) and \(y = x'/2 = -c_1\sin2t + c_2\cos2t\). With \(\mathbf{x}(0) = (1, 0)\): \(c_1 = 1\), \(c_2 = 0\):
\[\mathbf{x}(t) = \begin{bmatrix} \cos2t \\ -\sin2t \end{bmatrix}.\]Check: \(x' = -2\sin2t = 2y\) and \(y' = -2\cos2t = -2x\).
Trajectory. \(x^2 + y^2 = 1\): the unit circle, traversed with period \(2\pi/2 = \pi\). At \((1, 0)\) the velocity is \((0, -2)\), pointing down, so the motion is clockwise (the general rule: at \((1, 0)\) the velocity is \((a_{11}, a_{21}) = (0, -2)\); \(a_{21} \lt 0\) means clockwise).
Conserved quantity. \(\dfrac{d}{dt}(x^2 + y^2) = 2xx' + 2yy' = 2x(2y) + 2y(-2x) = 0\), so \(E = x^2 + y^2\) is constant and every trajectory is a circle of radius \(\|\mathbf{x}(0)\|\). This is the phase plane of the harmonic oscillator \(x'' + 4x = 0\) with \(y = x'/2\); the matrix is \(2\) times a rotation generator, \(e^{At} = \begin{bmatrix} \cos2t & \sin2t \\ -\sin2t & \cos2t \end{bmatrix}\), an orthogonal matrix for every \(t\).
\(\mathbf{x} = (\cos2t, -\sin2t)\): unit circle, clockwise, period \(\pi\); \(x^2 + y^2\) conserved.
Review: ·
89Solve \(\mathbf{x}' = \begin{bmatrix} 2 & 1 \\ -1 & 4 \end{bmatrix}\mathbf{x}\), classify the origin, and describe how the trajectories leave it.
Solution
\(T = 6\), \(D = 8 + 1 = 9\), \(T^2 - 4D = 36 - 36 = 0\): a repeated eigenvalue \(\lambda = 3\). \(A - 3I = \begin{bmatrix} -1 & 1 \\ -1 & 1 \end{bmatrix}\) has rank 1, so only one eigenvector direction, \(\mathbf{v} = (1, 1)\): a degenerate (improper) node, a source since \(\lambda \gt 0\).
Generalized eigenvector: solve \((A - 3I)\mathbf{w} = \mathbf{v}\), i.e. \(-w_1 + w_2 = 1\); take \(\mathbf{w} = (0, 1)\). Then
\[\mathbf{x}(t) = c_1e^{3t}\begin{bmatrix} 1 \\ 1 \end{bmatrix} + c_2e^{3t}\left(t\begin{bmatrix} 1 \\ 1 \end{bmatrix} + \begin{bmatrix} 0 \\ 1 \end{bmatrix}\right) = e^{3t}\begin{bmatrix} c_1 + c_2t \\ c_1 + c_2 + c_2t \end{bmatrix}.\]Check the second solution at \(t = 0\): it equals \(\mathbf{w} = (0, 1)\) and its derivative is \(3\mathbf{w} + \mathbf{v} = (1, 4)\), which is \(A\mathbf{w} = (1, 4)\). Correct.
Leaving the origin. For \(t \to -\infty\) (near the origin) the \(c_2t\mathbf{v}\) term dominates, so trajectories emerge tangent to the line \(y = x\); for \(t \to +\infty\) the same term dominates again and they become parallel to \(y = x\) far away, but on the other side: each trajectory makes a single S-shaped half-turn around the eigenline. Which way it curls is fixed by \(\mathbf{w}\): with \(c_1 = 0\), \(c_2 = 1\) the trajectory passes through \((0, 1)\) moving in direction \((1, 4)\), i.e. the curves above the line \(y = x\) sweep counterclockwise. Perturbing the matrix slightly would split \(\lambda = 3\) into two nearby real eigenvalues (an ordinary node) or a complex pair (a slow spiral); the improper node is the borderline between them.
\(\lambda = 3\) double, one eigenvector \((1,1)\): improper source node; \(\mathbf{x} = e^{3t}\big(c_1(1,1) + c_2(t(1,1) + (0,1))\big)\).
Review: ·
90Compute \(e^{At}\) for \(A = \begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix}\) in two ways: from the power series, and from a fundamental matrix. Interpret the result.
Solution
Power series. \(A^2 = \begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix}\begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix} = \begin{bmatrix} -1 & 0 \\ 0 & -1 \end{bmatrix} = -I\), so \(A^3 = -A\), \(A^4 = I\), and the powers cycle with period 4. Group the even powers (multiples of \(I\)) and the odd powers (multiples of \(A\)):
\[e^{At} = I + At + \frac{A^2t^2}{2!} + \frac{A^3t^3}{3!} + \cdots = I\left(1 - \frac{t^2}{2!} + \frac{t^4}{4!} - \cdots\right) + A\left(t - \frac{t^3}{3!} + \cdots\right) = I\cos t + A\sin t\] \[e^{At} = \begin{bmatrix} \cos t & \sin t \\ -\sin t & \cos t \end{bmatrix}.\]This is the matrix analogue of \(e^{it} = \cos t + i\sin t\), with \(A\) playing the role of \(i\) (\(A^2 = -I\)).
Fundamental matrix. The system \(x' = y\), \(y' = -x\) gives \(x'' = -x\); two solutions are \((\cos t, -\sin t)\) (from \(x = \cos t\)) and \((\sin t, \cos t)\). So \(\Phi(t) = \begin{bmatrix} \cos t & \sin t \\ -\sin t & \cos t \end{bmatrix}\), with \(\Phi(0) = I\), hence \(e^{At} = \Phi(t)\Phi(0)^{-1} = \Phi(t)\). Agreed.
Interpretation. \(e^{At}\) is a rotation by the angle \(-t\) (clockwise), so every solution \(\mathbf{x}(t) = e^{At}\mathbf{x}(0)\) moves on a circle at unit angular speed: the phase plane of \(x'' + x = 0\). Each \(e^{At}\) is orthogonal, \(\det e^{At} = e^{(\operatorname{tr}A)t} = e^0 = 1\), and \(e^{A\cdot2\pi} = I\). For \(A = \begin{bmatrix} 0 & \omega \\ -\omega & 0 \end{bmatrix}\) the same computation gives rotation at angular speed \(\omega\), and adding \(aI\) (which commutes with everything) multiplies by \(e^{at}\): \(e^{(aI + A)t} = e^{at}e^{At}\), the spiral.
\(e^{At} = \begin{bmatrix} \cos t & \sin t \\ -\sin t & \cos t \end{bmatrix}\), a clockwise rotation by \(t\).
Review:
91Solve the forced system \(x_1' = -x_1 + 1\), \(x_2' = -2x_2 + e^{-t}\) with \(x_1(0) = x_2(0) = 0\), and then write the solution in the form \(\mathbf{x} = e^{At}\mathbf{x}(0) + \int_0^te^{A(t - \tau)}\mathbf{f}(\tau)\,d\tau\) to check the variation-of-parameters formula.
Solution
The system is decoupled (\(A = \operatorname{diag}(-1, -2)\)), so solve each equation. \(x_1' + x_1 = 1\): \(x_1 = 1 + c_1e^{-t}\), \(x_1(0) = 0\) gives \(c_1 = -1\), \(x_1 = 1 - e^{-t}\). \(x_2' + 2x_2 = e^{-t}\): ERF gives \(\dfrac{e^{-t}}{-1 + 2} = e^{-t}\), so \(x_2 = e^{-t} + c_2e^{-2t}\), \(x_2(0) = 0\) gives \(c_2 = -1\), \(x_2 = e^{-t} - e^{-2t}\).
\[\mathbf{x}(t) = \begin{bmatrix} 1 - e^{-t} \\ e^{-t} - e^{-2t} \end{bmatrix}.\]Variation of parameters. \(e^{At} = \operatorname{diag}(e^{-t}, e^{-2t})\), \(\mathbf{f}(\tau) = (1, e^{-\tau})\), \(\mathbf{x}(0) = \mathbf{0}\):
\[\int_0^te^{A(t - \tau)}\mathbf{f}(\tau)\,d\tau = \begin{bmatrix} \displaystyle\int_0^te^{-(t - \tau)}\,d\tau \\[8pt] \displaystyle\int_0^te^{-2(t - \tau)}e^{-\tau}\,d\tau \end{bmatrix} = \begin{bmatrix} e^{-t}\big[e^\tau\big]_0^t \\[4pt] e^{-2t}\big[e^{\tau}\big]_0^t \end{bmatrix} = \begin{bmatrix} 1 - e^{-t} \\ e^{-t} - e^{-2t} \end{bmatrix}.\]Same answer: each component is the convolution of the input with the weight function \(e^{\lambda_it}\) of that mode. For a coupled \(A\) the formula is identical with \(e^{At} = Pe^{Dt}P^{-1}\); in the eigenbasis the system decouples into exactly these scalar problems.
\(\mathbf{x} = (1 - e^{-t},\ e^{-t} - e^{-2t})\), matching \(\int_0^te^{A(t-\tau)}\mathbf{f}(\tau)\,d\tau\).
Review: ·
92Convert \(y'' + 5y' + 6y = 0\) to a first-order system, find its eigenvalues and eigenvectors, and show how they reproduce the solution of the second-order equation. Then go the other way: eliminate \(y\) from \(x' = x - 2y\), \(y' = 4x + 3y\).
Solution
To a system. With \(x_1 = y\), \(x_2 = y'\): \(x_1' = x_2\), \(x_2' = -6x_1 - 5x_2\), i.e. \(\mathbf{x}' = \begin{bmatrix} 0 & 1 \\ -6 & -5 \end{bmatrix}\mathbf{x}\) (companion matrix). \(T = -5\), \(D = 6\): \(\lambda^2 + 5\lambda + 6 = (\lambda + 2)(\lambda + 3)\), the characteristic polynomial of the ODE. Eigenvectors are \((1, \lambda)\): \((1, -2)\) and \((1, -3)\). So
\[\mathbf{x} = c_1e^{-2t}\begin{bmatrix} 1 \\ -2 \end{bmatrix} + c_2e^{-3t}\begin{bmatrix} 1 \\ -3 \end{bmatrix}\] \[y = x_1 = c_1e^{-2t} + c_2e^{-3t}\]and the second component is automatically \(y' = -2c_1e^{-2t} - 3c_2e^{-3t}\). The eigenvector \((1, \lambda)\) just records that \(y' = \lambda y\) along each mode.
To a single equation. From \(x' = x - 2y\): \(y = \tfrac12(x - x')\), so \(y' = \tfrac12(x' - x'')\). Substitute into \(y' = 4x + 3y\): \(\tfrac12(x' - x'') = 4x + \tfrac32(x - x')\), i.e. \(x' - x'' = 8x + 3x - 3x'\), so
\[x'' - 4x' + 11x = 0\]whose characteristic polynomial \(\lambda^2 - 4\lambda + 11\) is \(\lambda^2 - (\operatorname{tr}A)\lambda + \det A\) for \(A = \begin{bmatrix} 1 & -2 \\ 4 & 3 \end{bmatrix}\) (trace 4, determinant 11). Roots \(2 \pm i\sqrt7\): \(x = e^{2t}(c_1\cos\sqrt7t + c_2\sin\sqrt7t)\), and \(y = \tfrac12(x - x')\) follows. Elimination always yields the same characteristic polynomial, which is why trace and determinant alone classify the system.
Companion matrix \(\begin{bmatrix} 0 & 1 \\ -6 & -5 \end{bmatrix}\), eigenvectors \((1, -2), (1, -3)\); elimination gives \(x'' - 4x' + 11x = 0\).
Review: ·
93For \(\mathbf{x}' = \begin{bmatrix} a & -1 \\ 1 & a \end{bmatrix}\mathbf{x}\), classify the origin for every real \(a\), find the general solution, and describe how the phase portrait changes as \(a\) passes through 0.
Solution
\(T = 2a\), \(D = a^2 + 1 \gt 0\), \(T^2 - 4D = 4a^2 - 4a^2 - 4 = -4 \lt 0\) for every \(a\): the eigenvalues are always complex, \(\lambda = a \pm i\).
- \(a \lt 0\) spiral sink (asymptotically stable).
- \(a = 0\) center (closed circles, neutrally stable).
- \(a \gt 0\) spiral source (unstable).
Rotation sense: at \((1, 0)\) the velocity is \((a, 1)\), with positive \(y\)-component, so counterclockwise for every \(a\).
Solution. \(A = aI + \begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix}\) and the two pieces commute, so \(e^{At} = e^{at}\begin{bmatrix} \cos t & -\sin t \\ \sin t & \cos t \end{bmatrix}\) and
\[\mathbf{x}(t) = e^{at}\begin{bmatrix} c_1\cos t - c_2\sin t \\ c_1\sin t + c_2\cos t \end{bmatrix}\] \[r(t) = e^{at}r(0),\quad \theta(t) = \theta(0) + t.\]In polar coordinates the system is simply \(r' = ar\), \(\theta' = 1\): the angle advances at unit speed while the radius grows or shrinks exponentially. As \(a\) increases through 0 the sink’s inward spirals flatten into circles and then open into outward spirals: a Hopf-type transition in which a pair of complex eigenvalues crosses the imaginary axis. The center at \(a = 0\) is structurally unstable, destroyed by the smallest change in \(a\), whereas the spirals on either side are robust.
\(\lambda = a \pm i\): spiral sink for \(a \lt 0\), center at \(a = 0\), spiral source for \(a \gt 0\), always counterclockwise; \(r = r_0e^{at}\), \(\theta = \theta_0 + t\).
Review:
94For \(\mathbf{x}' = \begin{bmatrix} 1 & 2 \\ -1 & -1 \end{bmatrix}\mathbf{x}\), classify the origin, determine the direction of rotation, and find a conserved quantity whose level curves are the trajectories. What shape are they?
Solution
\(T = 0\), \(D = -1 + 2 = 1 \gt 0\): a center, eigenvalues \(\pm i\). At \((1, 0)\) the velocity is \((1, -1)\), pointing down and to the right, so the rotation is clockwise.
Conserved quantity. Along trajectories \(\dfrac{dy}{dx} = \dfrac{-x - y}{x + 2y}\), i.e. \((x + y)\,dx + (x + 2y)\,dy = 0\). This is exact: \(\partial_y(x + y) = 1 = \partial_x(x + 2y)\). A potential is \(H(x, y) = \tfrac12x^2 + xy + y^2\) (check: \(H_x = x + y\), \(H_y = x + 2y\)). Verify directly:
\[\frac{dH}{dt} = (x + y)x' + (x + 2y)y' = (x + y)(x + 2y) + (x + 2y)(-x - y) = 0.\]So the trajectories are the level curves \(x^2 + 2xy + 2y^2 = C\).
Shape. The quadratic form has matrix \(\begin{bmatrix} 1 & 1 \\ 1 & 2 \end{bmatrix}\), with determinant \(1 \gt 0\) and trace \(3 \gt 0\): positive definite, eigenvalues \(\tfrac{3 \pm\sqrt5}{2} \approx 2.618, 0.382\). The level curves are ellipses, tilted, with major axis along the eigenvector for \(0.382\), i.e. \((1, \tfrac{1 - \sqrt5}{2}) \approx (1, -0.618)\), and axis ratio \(\sqrt{2.618/0.382} \approx 2.6\). Every solution is periodic with period \(2\pi/1 = 2\pi\) (from the eigenvalues \(\pm i\)), traversing its ellipse clockwise. For any linear center the conserved quantity is a positive definite quadratic form; for a general \(2\times 2\) matrix with \(T = 0\) it is \(H = \tfrac12(a_{21}x^2 - 2a_{11}xy - a_{12}y^2)\) up to sign.
Center, clockwise; \(x^2 + 2xy + 2y^2 = C\), tilted ellipses, period \(2\pi\).
Review: ·
95Solve \(\mathbf{x}' = \begin{bmatrix} 1 & 0 & 0 \\ 1 & 2 & 0 \\ 1 & 1 & 3 \end{bmatrix}\mathbf{x}\) and find the solution with \(\mathbf{x}(0) = (1, 0, 0)\). Describe the behaviour as \(t \to \infty\) and as \(t \to -\infty\).
Solution
The matrix is lower triangular: eigenvalues \(1, 2, 3\) (all distinct, so diagonalizable).
- \(\lambda = 3\) \((A - 3I)\mathbf{v} = \mathbf{0}\): \(-2v_1 = 0\), \(v_1 - v_2 = 0\), \(v_1 + v_2 = 0\) give \(v_1 = v_2 = 0\): \(\mathbf{v}_3 = (0, 0, 1)\).
- \(\lambda = 2\) \(-v_1 = 0\), \(v_1 = 0\), \(v_1 + v_2 + v_3 = 0\): \(\mathbf{v}_2 = (0, 1, -1)\).
- \(\lambda = 1\) \(0 = 0\), \(v_1 + v_2 = 0\), \(v_1 + v_2 + 2v_3 = 0\): \(\mathbf{v}_1 = (1, -1, 0)\).
Initial condition. \((1, 0, 0) = c_1(1, -1, 0) + c_2(0, 1, -1) + c_3(0, 0, 1)\): first component \(c_1 = 1\); second \(-1 + c_2 = 0\), \(c_2 = 1\); third \(-1 + c_3 = 0\), \(c_3 = 1\). So
\[\mathbf{x}(t) = \begin{bmatrix} e^t \\ -e^t + e^{2t} \\ -e^{2t} + e^{3t} \end{bmatrix}.\]Check: \(x_2' = -e^t + 2e^{2t}\) and \(x_1 + 2x_2 = e^t - 2e^t + 2e^{2t}\). Correct. (Triangular systems can also be solved top-down: \(x_1 = e^t\), then \(x_2' = 2x_2 + e^t\) by the ERF, then \(x_3\).) As \(t \to \infty\) the \(e^{3t}\) term wins and \(\mathbf{x}\) heads off along \(\mathbf{v}_3 = (0, 0, 1)\); as \(t \to -\infty\) all terms vanish and \(\mathbf{x} \to \mathbf{0}\) along the slowest direction \(\mathbf{v}_1 = (1, -1, 0)\). The origin is a source node in three dimensions.
\(\mathbf{x} = c_1e^t(1,-1,0) + c_2e^{2t}(0,1,-1) + c_3e^{3t}(0,0,1)\); with \(\mathbf{x}(0) = (1,0,0)\), \(c_1 = c_2 = c_3 = 1\).
Review:
96For \(A = \begin{bmatrix} 1 & -1 \\ 1 & -1 \end{bmatrix}\): find the eigenvalues, show \(A^2 = 0\), compute \(e^{At}\), solve \(\mathbf{x}' = A\mathbf{x}\), and describe the phase portrait. Is the origin stable?
Solution
\(T = 0\), \(D = -1 + 1 = 0\): the eigenvalue \(0\) with multiplicity 2. \(A^2 = \begin{bmatrix} 1 - 1 & -1 + 1 \\ 1 - 1 & -1 + 1 \end{bmatrix} = 0\): \(A\) is nilpotent. Only one eigenvector direction: \(A\mathbf{v} = \mathbf{0}\) gives \(v_1 = v_2\), \(\mathbf{v} = (1, 1)\).
Since \(A^2 = 0\), the power series stops:
\[e^{At} = I + At = \begin{bmatrix} 1 + t & -t \\ t & 1 - t \end{bmatrix}\] \[\mathbf{x}(t) = e^{At}\mathbf{x}(0) = \begin{bmatrix} x_0 + (x_0 - y_0)t \\ y_0 + (x_0 - y_0)t \end{bmatrix}.\]Check: \(\mathbf{x}' = (x_0 - y_0)(1, 1)\) and \(A\mathbf{x} = (x - y)(1, 1) = (x_0 - y_0)(1, 1)\) since \(x - y = x_0 - y_0\) is constant.
Portrait. Every point of the line \(y = x\) is an equilibrium (\(A\mathbf{v} = \mathbf{0}\)). Every other trajectory is a straight line parallel to \(y = x\), traversed at the constant velocity \((x_0 - y_0)(1, 1)\): points with \(x_0 \gt y_0\) (below the line \(y = x\)) move in the direction \((1, 1)\), points above it move in the direction \((-1, -1)\). Solutions grow linearly in \(t\), not exponentially.
Stability. The origin is not stable: a solution starting at \((\epsilon, 0)\), arbitrarily close, is \((\epsilon + \epsilon t, \epsilon t)\) and runs off to infinity. The eigenvalue test "\(\operatorname{Re}\lambda \le 0\)" is not enough when a repeated eigenvalue 0 lacks a full set of eigenvectors; with \(A = 0\) (full eigenspace) every point would be a stable equilibrium instead. This is the \(D = 0\), \(T = 0\) corner of the trace–determinant plane.
\(\lambda = 0\) double, \(A^2 = 0\), \(e^{At} = I + At\); line of equilibria \(y = x\), other trajectories parallel lines with linear growth; unstable.
Review: ·
97Decouple \(\mathbf{x}' = \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix}\mathbf{x}\) by introducing \(u = x_1 + x_2\) and \(v = x_1 - x_2\). Solve for \(u, v\), recover \(\mathbf{x}\), and explain the connection with the eigenvectors.
Solution
Add and subtract the equations \(x_1' = 2x_1 + x_2\), \(x_2' = x_1 + 2x_2\):
\[u' = x_1' + x_2' = 3x_1 + 3x_2 = 3u\] \[v' = x_1' - x_2' = x_1 - x_2 = v.\]Two independent scalar equations: \(u = u_0e^{3t}\), \(v = v_0e^{t}\). Recover \(x_1 = \tfrac12(u + v)\), \(x_2 = \tfrac12(u - v)\):
\[\mathbf{x}(t) = \frac{u_0}{2}e^{3t}\begin{bmatrix} 1 \\ 1 \end{bmatrix} + \frac{v_0}{2}e^{t}\begin{bmatrix} 1 \\ -1 \end{bmatrix}\] \[u_0 = x_1(0) + x_2(0),\ v_0 = x_1(0) - x_2(0).\]Connection. The new variables are the coordinates of \(\mathbf{x}\) in the eigenbasis \((1, 1), (1, -1)\) (up to the factor \(\tfrac12\)): \(A\) has eigenvalues \(3\) and \(1\) with exactly those eigenvectors, and \(u, v\) are obtained by dotting \(\mathbf{x}\) with the eigenvectors (legitimate because \(A\) is symmetric, so the eigenvectors are orthogonal and the left eigenvectors coincide with the right ones). In matrix language, \(\begin{bmatrix} u \\ v \end{bmatrix} = P^{-1}\mathbf{x}\) with \(P = \begin{bmatrix} 1 & 1 \\ 1 & -1 \end{bmatrix}\) up to scaling, and \(P^{-1}AP = \operatorname{diag}(3, 1)\). Decoupling is diagonalization: in eigen-coordinates every linear system with distinct eigenvalues is a list of independent first-order equations \(u_i' = \lambda_iu_i\).
Portrait: a source node, trajectories leaving tangent to the slow direction \((1, -1)\) and bending toward the fast direction \((1, 1)\); indeed \(u/v^3 = \) const, so in \((v, u)\) coordinates the curves are cubics.
\(u' = 3u\), \(v' = v\); \(\mathbf{x} = \tfrac{u_0}{2}e^{3t}(1,1) + \tfrac{v_0}{2}e^t(1,-1)\); \(u, v\) are eigen-coordinates.
Review: ·
98Solve the forced system \(x' = y\), \(y' = -x + \cos t\) with \(x(0) = y(0) = 0\). Explain the growth of the solution in terms of the eigenvalues of the system matrix.
Solution
Eliminate: \(x'' = y' = -x + \cos t\), so \(x'' + x = \cos t\): a second-order equation driven at its natural frequency 1. Resonance: \(\cos t = \operatorname{Re}e^{it}\), \(p(i) = 0\), \(p'(i) = 2i\), so \(x_p = \operatorname{Re}\dfrac{te^{it}}{2i} = \operatorname{Re}\left(-\dfrac{i}{2}t(\cos t + i\sin t)\right) = \dfrac t2\sin t\).
General solution \(x = c_1\cos t + c_2\sin t + \tfrac t2\sin t\). \(x(0) = c_1 = 0\); \(y = x' = c_2\cos t + \tfrac12\sin t + \tfrac t2\cos t\), \(y(0) = c_2 = 0\). Hence
\[x(t) = \frac t2\sin t\] \[y(t) = \frac12\sin t + \frac t2\cos t.\]Check: \(y' = \tfrac12\cos t + \tfrac12\cos t - \tfrac t2\sin t = \cos t - x\). Correct.
Growth. The system matrix \(A = \begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix}\) has eigenvalues \(\pm i\), so the unforced system is a center with natural frequency 1 and no damping. The forcing \((0, \cos t)\) oscillates at exactly that frequency, i.e. at the imaginary part of the eigenvalues: in the \(s\)-domain, \(X(s) = \dfrac{s}{(s^2 + 1)^2}\) has a double pole at \(s = \pm i\), whose inverse transform carries the factor \(t\). The trajectory in the phase plane is a spiral that unwinds outward linearly (radius \(\approx t/2\)), not exponentially: resonance in a system is the same phenomenon as in a scalar equation, triggered when the forcing frequency equals an eigenvalue’s imaginary part while its real part is zero. Any damping (eigenvalues with negative real part) would cap the amplitude.
\(x = \tfrac t2\sin t\), \(y = \tfrac12\sin t + \tfrac t2\cos t\); forcing at the eigenfrequency \(\pm i\) of an undamped center gives linear growth.
Review: ·
99Two equal masses on three equal springs obey \(x_1'' = -2x_1 + x_2\), \(x_2'' = x_1 - 2x_2\). Find the normal modes and their frequencies, write the general solution, and solve with \(x_1(0) = 1\), \(x_2(0) = 0\), \(x_1'(0) = x_2'(0) = 0\).
Solution
Write \(\mathbf{x}'' = K\mathbf{x}\) with \(K = \begin{bmatrix} -2 & 1 \\ 1 & -2 \end{bmatrix}\). Try \(\mathbf{x} = \mathbf{v}\cos\omega t\): \(-\omega^2\mathbf{v} = K\mathbf{v}\), so \(\mathbf{v}\) is an eigenvector of \(K\) with eigenvalue \(-\omega^2\). \(K\) has eigenvalues \(-2 + 1 = -1\) (eigenvector \((1, 1)\)) and \(-2 - 1 = -3\) (eigenvector \((1, -1)\)).
- Mode 1 \(\mathbf{v}_1 = (1, 1)\), \(\omega_1 = 1\): the masses move together; the middle spring is never stretched.
- Mode 2 \(\mathbf{v}_2 = (1, -1)\), \(\omega_2 = \sqrt3\): the masses move oppositely; the middle spring works hardest, so the frequency is higher.
Four constants for a system equivalent to four first-order equations.
Initial conditions. Zero initial velocities kill \(b_1, b_2\). \(\mathbf{x}(0) = (1, 0) = a_1(1, 1) + a_2(1, -1)\) gives \(a_1 = a_2 = \tfrac12\):
\[x_1(t) = \frac{\cos t + \cos\sqrt3t}{2}\] \[x_2(t) = \frac{\cos t - \cos\sqrt3t}{2}.\]Check: \(x_1'' = -\tfrac12\cos t - \tfrac32\cos\sqrt3t\) and \(-2x_1 + x_2 = -\tfrac12\cos t - \tfrac32\cos\sqrt3t\). The motion is a superposition of two incommensurate frequencies (\(\sqrt3\) is irrational), so it never exactly repeats, and energy sloshes back and forth between the masses: \(x_2 = \sin\tfrac{(\sqrt3 - 1)t}{2}\sin\tfrac{(\sqrt3 + 1)t}{2}\), a beat pattern in which the second mass gradually takes over the motion and then hands it back.
Modes \((1,1)\) at \(\omega = 1\) and \((1,-1)\) at \(\omega = \sqrt3\); \(x_1 = \tfrac12(\cos t + \cos\sqrt3t)\), \(x_2 = \tfrac12(\cos t - \cos\sqrt3t)\).
Review: ·
100The three matrices \(A = \begin{bmatrix} -2 & 1 \\ 1 & -2 \end{bmatrix}\), \(B = \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix}\), \(C = \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix}\) share the eigenvectors \((1, 1)\) and \((1, -1)\). Classify the origin for each system \(\mathbf{x}' = M\mathbf{x}\) and describe the three phase portraits precisely enough to tell them apart.
Solution
Each matrix has the form \(\begin{bmatrix} a & b \\ b & a \end{bmatrix}\) with eigenvalues \(a + b\) on \((1, 1)\) and \(a - b\) on \((1, -1)\).
- \(A\) eigenvalues \(-1\) on \((1,1)\), \(-3\) on \((1,-1)\): sink node. Trajectories approach the origin; far out they run parallel to the fast direction \((1,-1)\), and they arrive tangent to the slow direction \((1,1)\) (the \(e^{-3t}\) component dies first). Arrows all point inward.
- \(B\) eigenvalues \(3\) on \((1,1)\), \(1\) on \((1,-1)\): source node. Same curves as a sink with the roles reversed: trajectories leave tangent to the slow direction \((1,-1)\) and bend toward the fast direction \((1,1)\). Arrows outward. (Note that \(B \ne -A\): the slow and fast directions are swapped between \(A\) and \(B\), which is how the pictures differ beyond the arrows.)
- \(C\) eigenvalues \(1\) on \((1,1)\), \(-1\) on \((1,-1)\): saddle. Trajectories come in along \(y = -x\) and go out along \(y = x\); the others are the hyperbolas \(x^2 - y^2 = \) const (since \(\tfrac{d}{dt}(x^2 - y^2) = 2xy - 2yx = 0\)).
Telling them apart: \(C\) has trajectories that approach and then leave (hyperbolas); \(A\) and \(B\) have trajectories that stay on one side of the origin, and differ in arrow direction and in which eigenline the curves hug near the origin: \(y = x\) for \(A\) (slow direction of the sink), \(y = -x\) for \(B\) (slow direction of the source). In the trace–determinant plane: \(A\) at \((T, D) = (-4, 3)\), \(B\) at \((4, 3)\), \(C\) at \((0, -1)\).
\(A\): sink node (slow axis \(y = x\)); \(B\): source node (slow axis \(y = -x\)); \(C\): saddle with hyperbolas \(x^2 - y^2 = c\).
Review:
101Find the equilibrium of the forced linear system \(x' = -x + y\), \(y' = -2y + 2\), decide its stability, and solve with \(x(0) = y(0) = 0\).
Solution
Equilibrium: set the right sides to zero: \(-2y + 2 = 0\) gives \(y^* = 1\), then \(-x + y = 0\) gives \(x^* = 1\). So \(\mathbf{x}^* = (1, 1) = -A^{-1}\mathbf{b}\) with \(A = \begin{bmatrix} -1 & 1 \\ 0 & -2 \end{bmatrix}\), \(\mathbf{b} = (0, 2)\).
Stability. Let \(\mathbf{u} = \mathbf{x} - \mathbf{x}^*\); then \(\mathbf{u}' = A\mathbf{u}\) (the constant forcing cancels). \(A\) is triangular with eigenvalues \(-1, -2\), both negative: the equilibrium is an asymptotically stable sink node. Every solution tends to \((1, 1)\).
Solving. The second equation is independent: \(y' + 2y = 2\), \(y = 1 + c_2e^{-2t}\), \(y(0) = 0\) gives \(y = 1 - e^{-2t}\). Then \(x' + x = 1 - e^{-2t}\): particular solutions \(1\) (for the constant) and \(\dfrac{-e^{-2t}}{-2 + 1} = e^{-2t}\) (ERF), so \(x = 1 + e^{-2t} + c_1e^{-t}\), and \(x(0) = 0\) gives \(c_1 = -2\):
\[\mathbf{x}(t) = \begin{bmatrix} 1 - 2e^{-t} + e^{-2t} \\ 1 - e^{-2t} \end{bmatrix} = \begin{bmatrix} 1 \\ 1 \end{bmatrix} - 2e^{-t}\begin{bmatrix} 1 \\ 0 \end{bmatrix} + e^{-2t}\begin{bmatrix} 1 \\ -1 \end{bmatrix}.\]The last form is \(\mathbf{x}^* + \) (eigenvector expansion of the deviation): \((1, 0)\) and \((1, -1)\) are the eigenvectors of \(A\) for \(-1\) and \(-2\). Check: \(x' = 2e^{-t} - 2e^{-2t}\) and \(-x + y = -1 + 2e^{-t} - e^{-2t} + 1 - e^{-2t}\). Correct. The approach to \((1, 1)\) is eventually along the slow eigenvector \((1, 0)\): \(y\) settles first, then \(x\) catches up.
Equilibrium \((1, 1)\), stable (eigenvalues \(-1, -2\)); \(\mathbf{x} = (1 - 2e^{-t} + e^{-2t},\ 1 - e^{-2t})\).
Review: ·
102Compute \(e^{At}\) for \(A = \begin{bmatrix} 1 & 1 \\ 0 & 1 \end{bmatrix}\) and solve \(\mathbf{x}' = A\mathbf{x}\), \(\mathbf{x}(0) = (1, 2)\). Why does \(te^t\) appear?
Solution
Write \(A = I + N\) with \(N = \begin{bmatrix} 0 & 1 \\ 0 & 0 \end{bmatrix}\), \(N^2 = 0\). Since \(I\) commutes with \(N\), \(e^{At} = e^{It}e^{Nt} = e^t(I + Nt)\):
\[e^{At} = e^t\begin{bmatrix} 1 & t \\ 0 & 1 \end{bmatrix}.\]Check: at \(t = 0\) this is \(I\), and \(\dfrac{d}{dt}e^{At} = e^t\begin{bmatrix} 1 & t \\ 0 & 1 \end{bmatrix} + e^t\begin{bmatrix} 0 & 1 \\ 0 & 0 \end{bmatrix} = e^t\begin{bmatrix} 1 & 1 + t \\ 0 & 1 \end{bmatrix}\), while \(Ae^{At} = e^t\begin{bmatrix} 1 & t + 1 \\ 0 & 1 \end{bmatrix}\). Agreed.
\[\mathbf{x}(t) = e^{At}\begin{bmatrix} 1 \\ 2 \end{bmatrix} = e^t\begin{bmatrix} 1 + 2t \\ 2 \end{bmatrix}.\]Check: \(x_1' = e^t(3 + 2t)\) and \(x_1 + x_2 = e^t(1 + 2t + 2)\); \(x_2' = 2e^t = x_2\).
Why \(te^t\). \(A\) has the repeated eigenvalue 1 with only one eigenvector, \((1, 0)\). The second equation \(x_2' = x_2\) gives \(x_2 = 2e^t\), and this then forces the first equation, \(x_1' - x_1 = 2e^t\), at its own resonant rate; the ERF for a resonant input produces \(te^t\). Equivalently, in the Jordan form the off-diagonal 1 couples the two modes, and the solution involves the generalized eigenvector \((0, 1)\): \(\mathbf{x} = e^t\big(1\cdot(1, 0) + 2(t(1, 0) + (0, 1))\big)\). The origin is an improper source node; trajectories leave tangent to the \(x_1\)-axis.
\(e^{At} = e^t\begin{bmatrix} 1 & t \\ 0 & 1 \end{bmatrix}\); \(\mathbf{x} = e^t(1 + 2t, 2)\); the \(te^t\) comes from the resonant coupling of the repeated eigenvalue.
Review:
103Solve \(\mathbf{x}' = \begin{bmatrix} 0 & -1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & -1 \end{bmatrix}\mathbf{x}\) and describe the trajectories in \(\mathbb{R}^3\).
Solution
The matrix is block diagonal: a \(2\times 2\) rotation block \(\begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix}\) acting on \((x_1, x_2)\) and the scalar \(-1\) acting on \(x_3\). The blocks do not interact.
Rotation block: eigenvalues \(\pm i\); \(x_1' = -x_2\), \(x_2' = x_1\) gives \(x_1'' = -x_1\), so \(x_1 = c_1\cos t - c_2\sin t\) and \(x_2 = -x_1' = c_1\sin t + c_2\cos t\). Third component: \(x_3 = c_3e^{-t}\).
\[\mathbf{x}(t) = \begin{bmatrix} c_1\cos t - c_2\sin t \\ c_1\sin t + c_2\cos t \\ c_3e^{-t} \end{bmatrix}\] \[e^{At} = \begin{bmatrix} \cos t & -\sin t & 0 \\ \sin t & \cos t & 0 \\ 0 & 0 & e^{-t} \end{bmatrix}.\]Check: \(x_1' = -c_1\sin t - c_2\cos t = -x_2\). Correct.
Trajectories. \(x_1^2 + x_2^2 = c_1^2 + c_2^2\) is conserved while \(x_3\) decays: each trajectory lies on a vertical cylinder of radius \(\sqrt{c_1^2 + c_2^2}\) and spirals around it counterclockwise (viewed from above, since at \((1, 0, \cdot)\) the horizontal velocity is \((0, 1)\)) while sinking toward the plane \(x_3 = 0\), one turn per \(2\pi\) time units, height shrinking by \(e^{-2\pi}\) per turn. Every trajectory approaches the circle \(x_1^2 + x_2^2 = r_0^2\), \(x_3 = 0\), which is itself a periodic orbit; the whole \(x_1x_2\)-plane is filled with such closed orbits (a center), and the \(x_3\)-axis is the stable manifold of the origin. The origin is stable but not asymptotically stable. Eigenvalues \(\pm i, -1\): one negative real part gives the contraction, the imaginary pair gives the rotation.
\(\mathbf{x} = (c_1\cos t - c_2\sin t,\ c_1\sin t + c_2\cos t,\ c_3e^{-t})\): helices on cylinders, descending onto circles in the plane \(x_3 = 0\).
Review: ·
104Find the general real solution of \(\mathbf{x}' = \begin{bmatrix} 1 & -4 \\ 1 & 1 \end{bmatrix}\mathbf{x}\), check one solution, and sketch the phase portrait.
Solution
\(T = 2\), \(D = 1 + 4 = 5\), \(T^2 - 4D = -16\): \(\lambda = 1 \pm 2i\), a spiral source.
Eigenvector for \(\lambda = 1 + 2i\): \(A - \lambda I = \begin{bmatrix} -2i & -4 \\ 1 & -2i \end{bmatrix}\); the first row gives \(-2iv_1 - 4v_2 = 0\), so \(v_2 = -\tfrac i2v_1\); take \(\mathbf{v} = (2, -i) = \underbrace{(2, 0)}_{\mathbf{p}} + i\underbrace{(0, -1)}_{\mathbf{q}}\).
Real solutions \(e^{t}(\mathbf{p}\cos2t - \mathbf{q}\sin2t)\) and \(e^{t}(\mathbf{p}\sin2t + \mathbf{q}\cos2t)\):
\[\mathbf{x}(t) = c_1e^t\begin{bmatrix} 2\cos2t \\ \sin2t \end{bmatrix} + c_2e^t\begin{bmatrix} 2\sin2t \\ -\cos2t \end{bmatrix}.\]Check the first: \(\mathbf{x}_1' = e^t(2\cos2t - 4\sin2t,\ \sin2t + 2\cos2t)\), and \(A\mathbf{x}_1 = e^t(2\cos2t - 4\sin2t,\ 2\cos2t + \sin2t)\). Agreed.
Portrait. At \((1, 0)\) the velocity is \((1, 1)\), pointing up: counterclockwise rotation. The spirals expand by the factor \(e^{\pi} \approx 23\) per revolution (real part 1 of the eigenvalue times the rotation period \(\pi\)), so they open up very fast. The curves are stretched horizontally: without the exponential factor, \((2\cos2t, \sin2t)\) traces the ellipse \(\tfrac{x^2}{4} + y^2 = 1\), twice as wide as tall, so the spiral is an expanding version of that ellipse.
\(\mathbf{x} = c_1e^t(2\cos2t, \sin2t) + c_2e^t(2\sin2t, -\cos2t)\); counterclockwise spiral source.
Review:
105Solve the initial value problem \(\mathbf{x}' = \begin{bmatrix} 1 & 1 \\ 4 & 1 \end{bmatrix}\mathbf{x}\), \(\mathbf{x}(0) = (3, 2)\), and find the direction in which the solution travels for large positive and large negative \(t\).
Solution
\(\lambda^2 - 2\lambda - 3 = (\lambda - 3)(\lambda + 1)\): eigenvalues \(3\) and \(-1\) with eigenvectors \((1, 2)\) and \((1, -2)\) (from \(A - 3I = \begin{bmatrix} -2 & 1 \\ 4 & -2 \end{bmatrix}\) and \(A + I = \begin{bmatrix} 2 & 1 \\ 4 & 2 \end{bmatrix}\)). A saddle.
General solution \(\mathbf{x} = c_1e^{3t}(1, 2) + c_2e^{-t}(1, -2)\). Initial condition: \(c_1 + c_2 = 3\) and \(2c_1 - 2c_2 = 2\), i.e. \(c_1 - c_2 = 1\); adding, \(c_1 = 2\), \(c_2 = 1\):
\[\mathbf{x}(t) = 2e^{3t}\begin{bmatrix} 1 \\ 2 \end{bmatrix} + e^{-t}\begin{bmatrix} 1 \\ -2 \end{bmatrix} = \begin{bmatrix} 2e^{3t} + e^{-t} \\ 4e^{3t} - 2e^{-t} \end{bmatrix}.\]Check: \(\mathbf{x}(0) = (3, 2)\); \(x_1' = 6e^{3t} - e^{-t}\) and \(x_1 + x_2 = 6e^{3t} - e^{-t}\).
Directions. As \(t \to +\infty\) the \(e^{3t}\) term dominates: the solution moves away along the unstable eigenline, in the direction \((1, 2)\) (first quadrant, slope 2), with \(\|\mathbf{x}\| \sim 2\sqrt5e^{3t}\). As \(t \to -\infty\) the \(e^{-t}\) term dominates: the trajectory came in from the direction \((1, -2)\) (fourth quadrant), asymptotic to the stable eigenline \(y = -2x\). The path starts near the line \(y = -2x\) far out, swings past the origin (closest approach near \(t \approx 0\)), and leaves along \(y = 2x\): a typical saddle trajectory. Only if \(c_1\) had been 0, i.e. \(\mathbf{x}(0)\) on the line \(y = -2x\), would the solution have reached the origin.
\(\mathbf{x} = 2e^{3t}(1, 2) + e^{-t}(1, -2)\); leaves along \((1, 2)\), came in along \((1, -2)\).
Review:
106For the family \(\mathbf{x}' = \begin{bmatrix} a & b \\ b & a \end{bmatrix}\mathbf{x}\), describe the type and stability of the origin in terms of \(a\) and \(b\), and draw the regions in the \((a, b)\)-plane. Which values give a center or a spiral?
Solution
The eigenvalues are \(a + b\) (eigenvector \((1, 1)\)) and \(a - b\) (eigenvector \((1, -1)\)), always real: the discriminant \(T^2 - 4D = 4a^2 - 4(a^2 - b^2) = 4b^2 \ge 0\). So this symmetric family never produces spirals or centers; the trace–determinant parabola is never crossed. (That is general: a symmetric matrix has real eigenvalues, so symmetric systems cannot rotate.)
- Saddle eigenvalues of opposite sign: \(|b| \gt |a|\), i.e. \(D = a^2 - b^2 \lt 0\). The region between the lines \(b = \pm a\) containing the \(b\)-axis.
- Sink node both negative: \(a + b \lt 0\) and \(a - b \lt 0\), i.e. \(a \lt -|b|\). The wedge to the left of the lines \(b = \pm a\).
- Source node both positive: \(a \gt |b|\). The wedge to the right.
- Degenerate on the lines \(b = \pm a\) one eigenvalue is 0: a line of equilibria (and \(a = b = 0\) gives \(A = 0\), everything fixed). \(b = 0\) with \(a \ne 0\) is a star node (\(A = aI\)).
In every node the slow direction is the eigenvector of the eigenvalue of smaller absolute value: for the sink with \(a \lt -|b|\), that is \((1, 1)\) if \(b \gt 0\) (then \(|a + b| \lt |a - b|\)) and \((1, -1)\) if \(b \lt 0\). Picture in the \((a, b)\)-plane: two diagonal lines through the origin dividing it into four wedges: left = sinks, right = sources, top and bottom = saddles, with the lines themselves degenerate. Stability (sink) holds exactly when \(a \lt 0\) and \(|b| \lt |a|\), the condition \(T \lt 0\), \(D \gt 0\).
Eigenvalues \(a \pm b\), always real: saddle if \(|b| \gt |a|\), sink node if \(a \lt -|b|\), source node if \(a \gt |b|\); never a spiral or center.
Review:
Challenge 5: nonlinear systems and mixed
Differential Equations · Challenge problems 107 to 126
Problems 107 to 126
One hundred harder problems, still within the scope of the course: bifurcations, resonance in all its forms, Fourier and Laplace manipulations, systems with repeated or complex eigenvalues, and nonlinear portraits settled by conserved quantities and Lyapunov functions. Each opens to a complete solution with every step shown and the final answer highlighted. Expect to need pencil and paper, and use the Review links to go back to the relevant tab.
107For the Lotka–Volterra predator–prey system \(x' = x - xy\), \(y' = -y + xy\) (\(x\) = prey, \(y\) = predators): find the equilibria and their linear types, show that \(H(x, y) = x - \ln x + y - \ln y\) is conserved, and conclude that the positive equilibrium is a true center.
Solution
Equilibria. \(x(1 - y) = 0\) and \(y(x - 1) = 0\): \((0, 0)\) and \((1, 1)\).
Jacobian. \(J = \begin{bmatrix} 1 - y & -x \\ y & x - 1 \end{bmatrix}\). At \((0, 0)\): \(\operatorname{diag}(1, -1)\), a saddle (prey grow, predators starve). At \((1, 1)\): \(\begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix}\), \(T = 0\), \(D = 1\): a linear center, eigenvalues \(\pm i\), the borderline case where linearization is inconclusive.
Conserved quantity.
\[\frac{dH}{dt} = \left(1 - \frac1x\right)x' + \left(1 - \frac1y\right)y' = \left(1 - \frac1x\right)x(1 - y) + \left(1 - \frac1y\right)y(x - 1) = (x - 1)(1 - y) + (y - 1)(x - 1)\] \[= 0.\]So trajectories lie on level curves of \(H\). Near \((1, 1)\), \(H \approx 2 + \tfrac12(x - 1)^2 + \tfrac12(y - 1)^2\) (the function \(u - \ln u\) has a strict minimum at \(u = 1\)), so the level sets are closed curves around \((1, 1)\), and since \(H\) is strictly convex on the open quadrant every level set \(H = c \gt 2\) is a single closed curve. Trajectories are therefore periodic orbits: \((1, 1)\) is a genuine center, and the populations oscillate forever with an amplitude set by the initial conditions. The rotation is counterclockwise (at \((2, 1)\): \(y' = -1 + 2 = 1 \gt 0\)): prey peak first, predators peak a quarter cycle later. This is the classic case where a conserved quantity, not the Jacobian, decides.
Saddle at \((0,0)\), linear center at \((1,1)\); \(H = x - \ln x + y - \ln y\) is conserved and convex, so \((1,1)\) is a true center with periodic orbits.
Review: ·
108The damped pendulum is \(x' = y\), \(y' = -\sin x - \tfrac12y\). Find all equilibria, classify each, and describe the phase portrait, including the fate of a pendulum started at the bottom with a large initial velocity.
Solution
Equilibria. \(y = 0\) and \(\sin x = 0\): \((n\pi, 0)\) for all integers \(n\). Even \(n\): pendulum hanging down; odd \(n\): balanced upside down.
Jacobian. \(J = \begin{bmatrix} 0 & 1 \\ -\cos x & -\tfrac12 \end{bmatrix}\).
- \((2k\pi, 0)\) \(\cos x = 1\): \(J = \begin{bmatrix} 0 & 1 \\ -1 & -\tfrac12 \end{bmatrix}\), \(T = -\tfrac12\), \(D = 1\), \(T^2 - 4D \lt 0\): spiral sink, eigenvalues \(-\tfrac14 \pm i\tfrac{\sqrt{15}}{4}\). Small swings die out with pseudo-frequency \(\sqrt{15}/4 \approx 0.97\) and amplitude envelope \(e^{-t/4}\).
- \(((2k + 1)\pi, 0)\) \(\cos x = -1\): \(J = \begin{bmatrix} 0 & 1 \\ 1 & -\tfrac12 \end{bmatrix}\), \(D = -1\): saddle, eigenvalues \(\tfrac{-1 \pm\sqrt{17}}{4} \approx 0.78, -1.28\).
Both types are structurally stable, so these are the true nonlinear types.
Portrait. Along the \(x\)-axis sinks at \(0, \pm2\pi, \dots\) alternate with saddles at \(\pm\pi, \pm3\pi, \dots\). The stable separatrices of the saddles (the trajectories that end exactly balanced upside down) divide the plane into basins: everything inside a basin spirals into that basin’s bottom position. Energy \(E = \tfrac12y^2 - \cos x\) satisfies \(E' = -\tfrac12y^2 \le 0\): it decreases whenever the pendulum moves, so no periodic orbits exist and every trajectory ends at some equilibrium (sinks, generically).
Large initial velocity. Started at \(x = 0\) with \(y_0\) large, the pendulum goes over the top repeatedly (\(x\) increases through \(\pi, 3\pi, \dots\)), losing energy on each revolution; eventually it fails to clear a saddle, swings back, and spirals into the nearest sink \((2k\pi, 0)\) for some \(k \ge 1\): it ends hanging down after exactly \(k\) full turns. Which \(k\) depends sensitively on \(y_0\); the boundaries between the \(k\)-basins are the saddle separatrices.
Sinks (spiral) at \((2k\pi, 0)\), saddles at \(((2k+1)\pi, 0)\); energy decreases, so every motion ends hanging down after finitely many revolutions.
Review: ·
109For the undamped pendulum \(x' = y\), \(y' = -\sin x\): classify the equilibria by linearization, find the conserved energy, decide the true type of the linear centers, and find the equation of the separatrix between swinging and whirling motions.
Solution
\(J = \begin{bmatrix} 0 & 1 \\ -\cos x & 0 \end{bmatrix}\). At \((2k\pi, 0)\): \(\begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix}\), a linear center (borderline). At \(((2k + 1)\pi, 0)\): \(\begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix}\), a saddle with eigenvalues \(\pm1\) and eigenvectors \((1, \pm1)\).
Energy. \(E(x, y) = \tfrac12y^2 - \cos x\) satisfies \(E' = yy' + \sin x\cdot x' = -y\sin x + y\sin x = 0\). Trajectories are level curves of \(E\).
Centers are genuine. Near \((0, 0)\), \(E \approx -1 + \tfrac12y^2 + \tfrac12x^2\): the level curves are closed ovals around the minimum of \(E\), so the equilibrium is a true center with periodic small oscillations (period \(\to 2\pi\) as the amplitude \(\to 0\), the linearized value, and increasing with amplitude).
Separatrix. The saddles have energy \(E = \tfrac12\cdot 0 - \cos\pi = 1\). The level curve \(E = 1\) consists of the trajectories entering and leaving the saddles:
\[\tfrac12y^2 - \cos x = 1\] \[\Longleftrightarrow\ y = \pm\sqrt{2(1 + \cos x)} = \pm2\cos\frac x2.\]Inside the "eye" \(E \lt 1\) the pendulum swings back and forth (closed orbits around \((0,0)\)); outside, \(E \gt 1\), \(y\) never vanishes and the pendulum whirls over the top forever (wavy curves running left or right). The separatrix itself is the motion that takes infinite time to arrive at the inverted position with exactly zero speed. The minimum speed at the bottom needed to go over the top is \(y = 2\) (from \(E = 1\) at \(x = 0\)).
Linear centers at \((2k\pi, 0)\) are true centers (level curves of \(E = \tfrac12y^2 - \cos x\)); saddles at odd multiples of \(\pi\); separatrix \(y = \pm2\cos(x/2)\).
Review:
110Competing species: \(x' = x(3 - 2x - y)\), \(y' = y(2 - x - y)\). Find and classify all equilibria, and show that this model predicts stable coexistence. Sketch the portrait in the first quadrant.
Solution
Equilibria. \(x = 0\) or \(2x + y = 3\); \(y = 0\) or \(x + y = 2\). Combinations: \((0, 0)\); \(x = 0, y = 2\): \((0, 2)\); \(y = 0, x = \tfrac32\): \((\tfrac32, 0)\); both lines: subtracting, \(x = 1\), \(y = 1\): \((1, 1)\).
With \(f = 3x - 2x^2 - xy\) and \(g = 2y - xy - y^2\): \(f_x = 3 - 4x - y\), \(f_y = -x\), \(g_x = -y\), \(g_y = 2 - x - 2y\), so
\[J = \begin{bmatrix} 3 - 4x - y & -x \\ -y & 2 - x - 2y \end{bmatrix}.\]- \((0, 0)\) \(\operatorname{diag}(3, 2)\): source node (both species grow when rare).
- \((\tfrac32, 0)\) \(\begin{bmatrix} -3 & -\tfrac32 \\ 0 & \tfrac12 \end{bmatrix}\): eigenvalues \(-3, \tfrac12\), a saddle. The \(y\)-species can invade (\(\tfrac12 \gt 0\)).
- \((0, 2)\) \(\begin{bmatrix} 1 & 0 \\ -2 & -2 \end{bmatrix}\): eigenvalues \(1, -2\), a saddle. The \(x\)-species can invade.
- \((1, 1)\) \(\begin{bmatrix} -2 & -1 \\ -1 & -1 \end{bmatrix}\): \(T = -3\), \(D = 2 - 1 = 1\), \(T^2 - 4D = 5 \gt 0\): sink node, eigenvalues \(\tfrac{-3 \pm\sqrt5}{2} \approx -0.38, -2.62\).
All types are structurally stable, so they are the true types. Coexistence. Both single-species equilibria are saddles whose unstable direction points into the quadrant (each species invades the other’s monoculture), and the interior equilibrium is a sink: every trajectory starting with both populations positive converges to \((1, 1)\). This is the "weak competition" case: each species limits itself more than it limits the other (compare the self-coefficients \(2\) and \(1\) with the cross-coefficients \(1\) and \(1\) relative to the growth rates). In the opposite case the interior point is a saddle and one species always wins.
Portrait. Nullclines \(2x + y = 3\) (vertical motion) and \(x + y = 2\) (horizontal motion) cross at \((1, 1)\). Trajectories leave the origin, are deflected by the two boundary saddles, and funnel into \((1, 1)\), approaching along the slow eigenvector for \(\lambda \approx -0.38\): from \((J - \lambda I)\mathbf{v} = \mathbf{0}\), \(-1.62v_1 - v_2 = 0\), direction \((1, -1.62)\), a steep line through \((1, 1)\) from upper-left to lower-right.
\((0,0)\) source, \((\tfrac32, 0)\) and \((0, 2)\) saddles, \((1,1)\) sink node: stable coexistence.
Review: ·
111The Van der Pol oscillator is \(x' = y\), \(y' = -x + (1 - x^2)y\). Classify the origin, show that trajectories near the origin spiral outward while trajectories far away lose energy, and explain what this implies.
Solution
Origin. The only equilibrium (\(y = 0\) forces \(x = 0\)). \(J(0, 0) = \begin{bmatrix} 0 & 1 \\ -1 & 1 \end{bmatrix}\), \(T = 1\), \(D = 1\), \(T^2 - 4D = -3 \lt 0\): spiral source, eigenvalues \(\tfrac12 \pm i\tfrac{\sqrt3}{2}\). Structurally stable, so the nonlinear system also spirals outward near the origin.
Energy. With \(E = \tfrac12(x^2 + y^2)\):
\[E' = xx' + yy' = xy + y\big(-x + (1 - x^2)y\big) = (1 - x^2)y^2.\]For \(|x| \lt 1\), \(E' \ge 0\): energy is pumped in (negative damping), consistent with the outward spiral. For \(|x| \gt 1\), \(E' \le 0\): energy is removed (positive damping). A trajectory far from the origin spends most of its time at \(|x| \gt 1\) and shrinks; one near the origin grows.
Implication. The annular region between a small circle (which trajectories cross outward) and a large closed curve (which they cross inward) is trapped, contains no equilibrium, and so by the Poincaré–Bendixson theorem contains a closed orbit: a limit cycle, which is in fact unique and attracts every trajectory except the origin. Unlike the closed orbits of a center (a continuous family, amplitude fixed by initial conditions), this periodic orbit is isolated and has a definite amplitude (about 2 in \(x\)) determined by the equation itself. Van der Pol’s equation modelled vacuum-tube oscillators; the same structure, linear instability at rest plus nonlinear saturation, describes heartbeats, violin strings and clock escapements. For the damped linear oscillator no such self-sustained oscillation is possible: the sign of \(E'\) never changes.
Spiral source at the origin; \(E' = (1 - x^2)y^2\) is positive inside \(|x| \lt 1\) and negative outside, so a stable limit cycle exists.
Review: ·
112For \(x' = -y - x^3\), \(y' = x - y^3\): show that the linearization at the origin is a center, then use \(V = x^2 + y^2\) to prove that the origin is in fact asymptotically stable.
Solution
Linearization. \(J(0, 0) = \begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix}\) (the cubic terms have zero derivative at the origin): \(T = 0\), \(D = 1\), a linear center. This is the borderline case, so the linearization cannot decide whether the nonlinear origin is a center, a spiral sink or a spiral source.
Lyapunov function. Along trajectories,
\[\frac{dV}{dt} = 2xx' + 2yy' = 2x(-y - x^3) + 2y(x - y^3) = -2xy - 2x^4 + 2xy - 2y^4 = -2(x^4 + y^4).\]This is strictly negative except at the origin. So \(V = x^2 + y^2\), the squared distance to the origin, decreases strictly along every trajectory other than the equilibrium: trajectories cross every circle inward, and since \(V\) is bounded below and keeps decreasing (at a rate bounded away from zero outside any small disc), \(V \to 0\), i.e. every trajectory tends to the origin. The origin is asymptotically stable, a nonlinear spiral sink, even though the linear part would have predicted neutral circles. The cubic terms, invisible to the Jacobian, supply the damping; they act like a drag force \(-x^3\) in each component.
In polar coordinates: \(r' = -r^3(\cos^4\theta + \sin^4\theta) \le -\tfrac12r^3\), so \(r\) decays like \(1/\sqrt t\), far slower than any exponential, another sign that the linear part is doing no stabilizing work. Reversing the signs of the cubic terms (\(x' = -y + x^3\), \(y' = x + y^3\)) gives \(V' = +2(x^4 + y^4)\) and an unstable origin with the identical linearization.
\(J\) is a center; \(V' = -2(x^4 + y^4) \lt 0\), so the origin is asymptotically stable.
Review:
113Consider \(x' = y + x(x^2 + y^2)\), \(y' = -x + y(x^2 + y^2)\). Show the linearization at the origin is a center, convert to polar coordinates, and determine the true behaviour. Compare with the previous problem.
Solution
\(J(0, 0) = \begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix}\): linear center, eigenvalues \(\pm i\). Borderline again.
Polar coordinates. With \(r^2 = x^2 + y^2\), \(rr' = xx' + yy'\) and \(r^2\theta' = xy' - yx'\):
\[rr' = x\big(y + xr^2\big) + y\big(-x + yr^2\big) = (x^2 + y^2)r^2 = r^4\] \[\Longrightarrow\ r' = r^3\] \[r^2\theta' = x(-x + yr^2) - y(y + xr^2) = -(x^2 + y^2) = -r^2\] \[\Longrightarrow\ \theta' = -1.\]So the angle decreases at unit rate (clockwise rotation, as the linear part says) while the radius obeys \(r' = r^3\), which grows: \(r(t) = \dfrac{r_0}{\sqrt{1 - 2r_0^2t}}\), reaching infinity at the finite time \(t^* = \dfrac{1}{2r_0^2}\). Every trajectory except the origin spirals outward and escapes to infinity in finite time: the origin is an unstable spiral source in the nonlinear system.
Comparison. Same linearization as the previous problem, opposite conclusion: there the cubic terms pointed inward (\(r' \sim -r^3\)), here outward. A linear center is structurally unstable precisely because arbitrarily small higher-order terms can tip it either way (or leave it a center, as for the pendulum, which has a conserved quantity). The three outcomes are indistinguishable at the level of the Jacobian; deciding among them needs a conserved quantity, a Lyapunov function, polar coordinates or a symmetry argument.
Linear center, but \(r' = r^3\), \(\theta' = -1\): trajectories spiral outward clockwise and blow up at \(t = 1/(2r_0^2)\); unstable.
Review: ·
114For \(x' = y - x\), \(y' = x^2 - y\): find the equilibria, classify them, and identify any case where the linearization leaves the type uncertain. Sketch the nullclines and the portrait.
Solution
Equilibria. \(y = x\) and \(y = x^2\): \(x = x^2\) gives \(x = 0\) or \(1\): \((0, 0)\) and \((1, 1)\).
\[J = \begin{bmatrix} -1 & 1 \\ 2x & -1 \end{bmatrix}.\]\((1, 1)\): \(J = \begin{bmatrix} -1 & 1 \\ 2 & -1 \end{bmatrix}\), \(D = 1 - 2 = -1 \lt 0\): a saddle, eigenvalues \(-1 \pm\sqrt2\), eigenvectors \((1, \pm\sqrt2)\); the unstable direction is \((1, \sqrt2)\). Structurally stable, so a true saddle.
\((0, 0)\): \(J = \begin{bmatrix} -1 & 1 \\ 0 & -1 \end{bmatrix}\), \(T = -2\), \(D = 1\), \(T^2 - 4D = 0\): a repeated eigenvalue \(-1\) with a single eigenvector \((1, 0)\), a degenerate (improper) sink node. This is a borderline case: a small perturbation of the matrix could make it an ordinary node or a slow spiral. What is not uncertain is stability: both eigenvalues have negative real part, and that property is robust (it is an open condition), so the nonlinear origin is asymptotically stable whatever its precise shape. Only the fine geometry (node versus very slow spiral) is undetermined by linearization.
Nullclines and portrait. \(x' = 0\) on the line \(y = x\) (vertical motion there); \(y' = 0\) on the parabola \(y = x^2\) (horizontal motion). Between them: above the line and above the parabola, \(x' \gt 0\) and \(y' \lt 0\) (down-right); below both, \(x' \lt 0\), \(y' \gt 0\) (up-left), and so on. The stable separatrix of the saddle \((1, 1)\) (direction \((1, -\sqrt2)\) through the point) bounds the basin of the origin: starts below it drift into the origin, approaching tangent to the \(x\)-axis (the single eigendirection); starts above it escape, with \(y \sim x^2\) growing without bound along the unstable direction. The parabola \(y = x^2\) itself is nearly followed by trajectories for large \(x\).
\((1,1)\) saddle; \((0,0)\) degenerate sink node (type uncertain, stability certain); basin boundary = stable separatrix of the saddle.
Review: ·
115The Duffing equation \(x'' = x - x^3\) as a system \(x' = y\), \(y' = x - x^3\). Find the conserved energy, classify all equilibria, sketch the portrait, and describe the separatrix.
Solution
Energy. With potential \(V(x)\) such that \(-V' = x - x^3\), \(V = -\tfrac12x^2 + \tfrac14x^4\), and
\[E = \tfrac12y^2 - \tfrac12x^2 + \tfrac14x^4\] \[E' = yy' + (-x + x^3)x' = y(x - x^3) + (x^3 - x)y = 0.\]Equilibria. \(y = 0\), \(x - x^3 = 0\): \((0, 0)\), \((\pm1, 0)\). \(J = \begin{bmatrix} 0 & 1 \\ 1 - 3x^2 & 0 \end{bmatrix}\). At \((0, 0)\): \(\begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix}\), \(D = -1\): saddle, eigenvectors \((1, \pm1)\). At \((\pm1, 0)\): \(\begin{bmatrix} 0 & 1 \\ -2 & 0 \end{bmatrix}\), \(T = 0\), \(D = 2\): linear centers. Since \(E\) is conserved and \(V\) has strict local minima at \(x = \pm1\) (\(V'' = -1 + 3x^2 = 2 \gt 0\) there), the level curves near \((\pm1, 0)\) are closed: genuine centers, with small-oscillation frequency \(\sqrt{V''(\pm1)} = \sqrt2\), which is also \(\sqrt{D}\) for the linearization \(T = 0\), \(D = 2\).
Portrait. The potential is a double well with a hump at \(x = 0\) (\(V(0) = 0\)) and minima \(V(\pm1) = -\tfrac14\). Orbits with \(-\tfrac14 \lt E \lt 0\) are closed curves around one well: the particle oscillates in the left or right well without crossing the hump. Orbits with \(E \gt 0\) are large closed curves around all three equilibria: the particle swings across both wells. (All bounded, since \(V \to \infty\).)
Separatrix. The level set \(E = 0\) (the saddle’s energy): \(\tfrac12y^2 = \tfrac12x^2 - \tfrac14x^4\), i.e. \(y = \pm x\sqrt{1 - x^2/2}\), a figure-eight through the origin with lobes reaching \(x = \pm\sqrt2\). Each lobe is a homoclinic orbit leaving the saddle along \((1, 1)\) or \((-1, -1)\) and returning along \((1, -1)\) or \((-1, 1)\), taking infinite time at both ends. Inside a lobe: single-well oscillations; outside the figure-eight: double-well oscillations. Adding a little damping would turn the centers into spiral sinks and the figure-eight into the boundary between the two basins of attraction.
\(E = \tfrac12y^2 - \tfrac12x^2 + \tfrac14x^4\); saddle at \(0\), centers at \(\pm1\); separatrix \(E = 0\): the figure-eight \(y = \pm x\sqrt{1 - x^2/2}\).
Review: ·
116For \(x' = a + x^2\), find the equilibria and their stability for all real \(a\), draw the bifurcation diagram, and name the bifurcation. What is the behaviour of solutions when \(a \gt 0\)?
Solution
- \(a \lt 0\) equilibria \(x = \pm\sqrt{-a}\). With \(f(x) = a + x^2\), \(f'(x) = 2x\): \(f'(-\sqrt{-a}) \lt 0\), so \(-\sqrt{-a}\) is stable; \(f'(\sqrt{-a}) \gt 0\), so \(\sqrt{-a}\) is unstable. Sign chart: \(x' \gt 0\) outside the pair, \(x' \lt 0\) between them.
- \(a = 0\) \(x' = x^2 \ge 0\): a single semistable equilibrium at 0, approached from the left and left behind on the right.
- \(a \gt 0\) \(x' \ge a \gt 0\): no equilibria; every solution increases.
Diagram (\(a\) horizontal, \(x\) vertical): the parabola \(a = -x^2\) opening to the left, vertex at the origin; lower branch solid (stable), upper branch dashed (unstable); nothing for \(a \gt 0\). Two equilibria collide and annihilate as \(a\) increases through 0: a saddle-node bifurcation (also called a fold or blue-sky bifurcation), the generic way equilibria appear or disappear.
\(a \gt 0\). Solve: \(\dfrac{dx}{a + x^2} = dt\) gives \(\dfrac{1}{\sqrt a}\arctan\dfrac{x}{\sqrt a} = t + C\), so \(x = \sqrt a\tan\big(\sqrt a(t + C)\big)\): every solution runs from \(-\infty\) to \(+\infty\) in the finite time \(\pi/\sqrt a\). Near \(a = 0^+\) the passage through the region around \(x = 0\) is very slow (the "ghost" of the vanished equilibria, where \(x' \approx a\) is tiny), taking a time of order \(\pi/\sqrt a \to \infty\): a solution lingers near where the equilibria used to be before shooting off. This bottleneck is a hallmark of a system just past a saddle-node bifurcation.
\(a \lt 0\): \(-\sqrt{-a}\) stable, \(\sqrt{-a}\) unstable; \(a = 0\): semistable 0; \(a \gt 0\): none, \(x = \sqrt a\tan(\sqrt a(t + C))\) blows up in time \(\pi/\sqrt a\). Saddle-node bifurcation.
Review:
117For \(x' = \sin x\), find all equilibria and classify them, sketch the phase line and some solutions, and find the solution with \(x(0) = \pi/2\) explicitly. What is \(\lim_{t\to\infty}x(t)\) for an arbitrary initial value?
Solution
Equilibria. \(\sin x = 0\): \(x = n\pi\). With \(f(x) = \sin x\), \(f'(n\pi) = \cos n\pi = (-1)^n\): unstable for even \(n\) (\(f' = 1 \gt 0\)), stable for odd \(n\) (\(f' = -1 \lt 0\)). Phase line: arrows point up on \((0, \pi)\), \((2\pi, 3\pi)\), … (where \(\sin x \gt 0\)) and down on \((\pi, 2\pi)\), \((-\pi, 0)\), …; stable and unstable equilibria alternate, every stable one at an odd multiple of \(\pi\) collecting solutions from both sides.
Explicit solution. \(\displaystyle\int\frac{dx}{\sin x} = \int dt\) gives \(\ln\left|\tan\frac x2\right| = t + C\). With \(x(0) = \pi/2\): \(\tan\frac\pi4 = 1\), \(C = 0\), so \(\tan\frac x2 = e^t\) and
\[x(t) = 2\arctan(e^t).\]Check: \(x(0) = 2\cdot\tfrac\pi4 = \tfrac\pi2\); \(x' = \dfrac{2e^t}{1 + e^{2t}} = \dfrac{2}{e^{-t} + e^t} = \operatorname{sech}t\), and \(\sin x = \sin(2\arctan e^t) = \dfrac{2e^t}{1 + e^{2t}}\) (double-angle formula). Correct. As \(t \to \infty\), \(x \to 2\cdot\tfrac\pi2 = \pi\); as \(t \to -\infty\), \(x \to 0\): the solution connects the unstable equilibrium 0 to the stable equilibrium \(\pi\), as the phase line says, with the S-shaped profile of a kink.
For \(x(0)\) in \((2k\pi, (2k + 2)\pi)\), the solution tends to the stable equilibrium \((2k + 1)\pi\) in that interval (from below if \(x(0) \lt (2k + 1)\pi\), from above otherwise). For \(x(0) = 2k\pi\) exactly, it stays there forever. The solutions are all horizontal translates of \(2\arctan(e^t)\) shifted vertically by multiples of \(2\pi\), or their mirror images in the descending intervals.
Equilibria \(n\pi\): stable for odd \(n\), unstable for even \(n\); \(x = 2\arctan(e^t)\); \(x(t) \to\) the odd multiple of \(\pi\) nearest in the same interval.
Review:
118A particle moves under the nonlinear restoring force \(x'' = -x^3\). Find the conserved energy, show the origin is a center although the linearization is degenerate, and show that an oscillation of amplitude \(A\) has maximum speed \(A^2/\sqrt2\). How does the period depend on \(A\)?
Solution
As a system, \(x' = y\), \(y' = -x^3\). \(J(0, 0) = \begin{bmatrix} 0 & 1 \\ 0 & 0 \end{bmatrix}\): a repeated eigenvalue 0 with a single eigenvector, the most degenerate case; linearization says nothing (the linear system \(x' = y\), \(y' = 0\) has a line of equilibria).
Energy. \(V(x) = \tfrac14x^4\) (so that \(-V' = -x^3\)), and
\[E = \tfrac12y^2 + \tfrac14x^4\] \[E' = yy' + x^3x' = -yx^3 + x^3y = 0.\]The level curves \(\tfrac12y^2 + \tfrac14x^4 = E\) are closed, convex curves around the origin for every \(E \gt 0\) (both terms are nonnegative and grow without bound), so the origin is a center: every solution is periodic. The curves are "squarish" ovals, flatter than ellipses.
Maximum speed. At the turning point \(x = A\), \(y = 0\), so \(E = \tfrac14A^4\). At the origin \(x = 0\) the speed is maximal: \(\tfrac12y_{\max}^2 = \tfrac14A^4\), hence
\[y_{\max} = \frac{A^2}{\sqrt2}.\](For a linear spring \(y_{\max} = \omega A\) is proportional to \(A\); here it grows like \(A^2\).)
Period. Rescaling: if \(x(t)\) is a solution then \(x_A(t) = Ax(At)\) is also a solution, since \(x_A'' = A^3x''(At) = -A^3x(At)^3 = -x_A^3\). So the solution of amplitude \(A\) is the amplitude-1 solution sped up by the factor \(A\): the period is \(T(A) = T(1)/A\). Larger oscillations are faster (a "hardening" spring), the opposite of the pendulum, and unlike the linear oscillator the period is not independent of amplitude. Explicitly \(T(1) = 4\displaystyle\int_0^1\frac{dx}{\sqrt{(1 - x^4)/2}} \approx 7.42\).
\(E = \tfrac12y^2 + \tfrac14x^4\) conserved, closed level curves: a center; \(y_{\max} = A^2/\sqrt2\); period \(\propto 1/A\).
Review:
119For \(x' = -x + y^2\), \(y' = -y + x^2\): find the real equilibria, classify them, and sketch the portrait. Which initial conditions lead to the origin?
Solution
Equilibria. \(x = y^2\) and \(y = x^2\), so \(x = x^4\): \(x = 0\) or \(x = 1\) (the other roots are complex). Real equilibria \((0, 0)\) and \((1, 1)\).
\[J = \begin{bmatrix} -1 & 2y \\ 2x & -1 \end{bmatrix}.\]\((0, 0)\): \(J = -I\), eigenvalue \(-1\) twice with a full eigenspace: a star sink (every direction is an eigendirection; trajectories approach radially in the linearization). Both eigenvalues negative, so asymptotically stable; the star shape is a borderline type (any perturbation of \(J\) changes it), but the nonlinear quadratic terms are negligible near the origin and stability is certain.
\((1, 1)\): \(J = \begin{bmatrix} -1 & 2 \\ 2 & -1 \end{bmatrix}\), \(T = -2\), \(D = 1 - 4 = -3 \lt 0\): a saddle, eigenvalues \(1\) (eigenvector \((1, 1)\)) and \(-3\) (eigenvector \((1, -1)\)).
Portrait. The system is symmetric under \(x \leftrightarrow y\), so the diagonal \(y = x\) is invariant: on it \(x' = -x + x^2 = x(x - 1)\), a one-dimensional flow with the origin stable and \(1\) unstable. The saddle’s unstable manifold lies along the diagonal: one branch runs down to the origin, the other out to infinity (where \(x, y\) blow up in finite time, since \(x' \approx x^2\) along the diagonal). Its stable manifold (tangent to \((1, -1)\) at \((1, 1)\)) is the boundary of the basin of the origin. Initial conditions leading to the origin: everything on the origin’s side of that curve, a region containing the whole third quadrant and roughly the set where \(x + y \lt 2\) near the diagonal; points beyond the stable separatrix of the saddle (large \(x\) and \(y\)) escape to infinity. The nullclines \(x = y^2\) and \(y = x^2\) (two parabolas) cross exactly at the two equilibria.
\((0,0)\): star sink (stable); \((1,1)\): saddle with unstable direction along \(y = x\); the saddle’s stable separatrix bounds the basin of the origin.
Review:
120A gradient system is \(x' = -\partial f/\partial x\), \(y' = -\partial f/\partial y\). For \(f(x, y) = x^2 + 2y^2\): solve the system, show that \(f\) decreases along every trajectory, find the equation of the trajectories, and explain why gradient systems never have spirals or closed orbits.
Solution
\(f_x = 2x\), \(f_y = 4y\), so \(x' = -2x\), \(y' = -4y\): decoupled, with \(x = x_0e^{-2t}\), \(y = y_0e^{-4t}\). The origin is a sink node with eigenvalues \(-2\) (slow, along the \(x\)-axis) and \(-4\) (fast, along the \(y\)-axis).
Descent. \(\dfrac{df}{dt} = f_xx' + f_yy' = -(f_x^2 + f_y^2) = -|\nabla f|^2 \le 0\), with equality only at critical points of \(f\). Trajectories run downhill, perpendicular to the level curves of \(f\) (the velocity is \(-\nabla f\)), and \(f\) itself is a Lyapunov function. Here \(f(t) = x_0^2e^{-4t} + 2y_0^2e^{-8t} \to 0\).
Trajectories. Eliminating \(t\): \(e^{-4t} = (x/x_0)^2\), so \(y = y_0(x/x_0)^2\), i.e. \(y = Cx^2\): parabolas tangent to the \(x\)-axis at the origin (the slow direction), crossing the ellipses \(x^2 + 2y^2 = c\) at right angles. Check at \((1, 1)\): the ellipse has slope \(-x/(2y) = -\tfrac12\), the parabola \(y = x^2\) has slope 2; product \(-1\).
No spirals or cycles. On a closed orbit \(f\) would have to return to its starting value, but \(f\) strictly decreases along any non-constant trajectory. So gradient systems have no periodic orbits. At an equilibrium the Jacobian is \(-\)(Hessian of \(f\)), a symmetric matrix, whose eigenvalues are real: nodes and saddles only, never spirals or centers. Minima of \(f\) are sinks, maxima are sources, saddle points of \(f\) are saddles of the flow. Gradient descent in optimization is this system discretized in time.
\(x = x_0e^{-2t}\), \(y = y_0e^{-4t}\); \(f' = -|\nabla f|^2\); trajectories \(y = Cx^2\); symmetric Jacobians forbid rotation, descent forbids cycles.
Review: ·
121For \(x' = -y + x(1 - x^2 - y^2)\), \(y' = x + y(1 - x^2 - y^2)\): convert to polar coordinates, find all equilibria and periodic orbits, and determine their stability. Sketch the portrait.
Solution
With \(r^2 = x^2 + y^2\): \(rr' = xx' + yy' = x(-y) + x^2(1 - r^2) + xy + y^2(1 - r^2) = r^2(1 - r^2)\), and \(r^2\theta' = xy' - yx' = x^2 + xy(1 - r^2) + y^2 - xy(1 - r^2) = r^2\). So
\[r' = r(1 - r^2)\] \[\theta' = 1.\]The system decouples: the angle increases at unit speed (counterclockwise) and the radius obeys an autonomous first-order equation whose phase line has equilibria \(r = 0\) (unstable: \(r' \approx r \gt 0\) for small \(r\)) and \(r = 1\) (stable: \(r' \gt 0\) for \(r \lt 1\), \(r' \lt 0\) for \(r \gt 1\)).
- Equilibrium only the origin (\(r = 0\)); \(J(0,0) = \begin{bmatrix} 1 & -1 \\ 1 & 1 \end{bmatrix}\), \(T = 2\), \(D = 2\): spiral source, consistent with \(r' \approx r\), \(\theta' = 1\).
- Periodic orbit the circle \(r = 1\), traversed counterclockwise with period \(2\pi\): a stable limit cycle. Trajectories inside spiral outward toward it, trajectories outside spiral inward toward it.
Solving \(r' = r(1 - r^2)\) explicitly (Bernoulli, or separate): \(r(t) = \dfrac{1}{\sqrt{1 + Ce^{-2t}}}\), so the approach to the cycle is exponential with rate 2. The portrait: an unstable focus at the origin surrounded by a circle that all other trajectories wind onto, from both sides. This is the normal form of a supercritical Hopf bifurcation: in the family \(r' = r(\mu - r^2)\), the cycle of radius \(\sqrt\mu\) is born from the origin as \(\mu\) increases through 0, exactly when the origin’s eigenvalues \(\mu \pm i\) cross the imaginary axis. Here \(\mu = 1\).
\(r' = r(1 - r^2)\), \(\theta' = 1\): spiral source at the origin, stable limit cycle \(r = 1\) attracting everything else.
Review:
122Compare the small-amplitude behaviour of three oscillators: \(x'' = -\sin x\) (pendulum), \(x'' = -x - x^3\) (hardening spring), \(x'' = -x + x^3\) (softening spring). Find the linearized frequency of each about \(x = 0\), and say how the period changes with amplitude in each case, using the energy.
Solution
All three linearize at the origin to \(x'' = -x\) (since \(\sin x \approx x\) and the cubic terms vanish to first order): linearized frequency \(\omega = 1\), period \(2\pi\), for all three. The differences appear only at finite amplitude, through the energy \(E = \tfrac12y^2 + V(x)\).
- Pendulum \(V = 1 - \cos x = \tfrac{x^2}{2} - \tfrac{x^4}{24} + \cdots\): the potential is softer than the parabola, the restoring force \(\sin x \lt x\) for \(x \gt 0\). A larger swing feels a weaker-than-linear pull, so it takes longer: the period increases with amplitude (\(T \approx 2\pi(1 + A^2/16)\) for moderate \(A\)), tending to infinity as \(A \to \pi\), the separatrix.
- Hardening \(V = \tfrac{x^2}{2} + \tfrac{x^4}{4}\): stiffer than the parabola, force \(x + x^3 \gt x\). Large oscillations are pulled back harder and faster: the period decreases with amplitude, approaching the pure quartic behaviour \(T \propto 1/A\) for large \(A\). All orbits are closed (\(V \to \infty\)).
- Softening \(V = \tfrac{x^2}{2} - \tfrac{x^4}{4}\): softer than the parabola, with maxima \(V = \tfrac14\) at \(x = \pm1\) (saddle points of the flow). Period increases with amplitude and becomes infinite on the separatrix \(E = \tfrac14\); orbits with \(E \gt \tfrac14\) are not periodic at all but escape to infinity in finite time.
Rule: compare \(V(x)\) with \(\tfrac12\omega^2x^2\). Where the potential rises more slowly than the parabola the oscillator slows down at large amplitude; where it rises faster it speeds up. The linearization never sees this: isochronism (period independent of amplitude) is a special property of the exactly linear spring.
All have \(\omega = 1\) at small amplitude; period grows with amplitude for the pendulum and the softening spring (infinite at the separatrix), shrinks for the hardening spring.
Review: ·
123The SIR epidemic model is \(S' = -\beta SI\), \(I' = \beta SI - \gamma I\) (\(S\) susceptible, \(I\) infected, \(R = N - S - I\) recovered). Show that \(I\) grows initially iff \(S(0) \gt \gamma/\beta\), find the equilibria, explain why they are not isolated, and find the relation between \(S\) and \(I\) along trajectories.
Solution
Threshold. \(I' = I(\beta S - \gamma)\), so \(I\) increases exactly when \(S \gt \gamma/\beta\). With \(S(0) \approx N\) this is \(R_0 = \beta N/\gamma \gt 1\): the basic reproduction number. Since \(S\) only decreases, once \(S\) falls below \(\gamma/\beta\) the epidemic wanes; the peak of \(I\) occurs exactly when \(S = \gamma/\beta\).
Equilibria. \(S' = 0\) and \(I' = 0\) require \(SI = 0\) and \(I(\beta S - \gamma) = 0\): every point \((S, 0)\) with \(I = 0\) is an equilibrium. The whole \(S\)-axis is a line of equilibria, so they are not isolated, and the Jacobian \(J(S, 0) = \begin{bmatrix} 0 & -\beta S \\ 0 & \beta S - \gamma \end{bmatrix}\) always has a zero eigenvalue (the direction along the line): a degenerate, non-hyperbolic case where the trace–determinant classification does not apply. The second eigenvalue \(\beta S - \gamma\) is positive for \(S \gt \gamma/\beta\) (those disease-free states are unstable: introducing one infected starts an outbreak) and negative for \(S \lt \gamma/\beta\) (those are stable endpoints).
Trajectories. Divide: \(\dfrac{dI}{dS} = \dfrac{\beta SI - \gamma I}{-\beta SI} = -1 + \dfrac{\gamma}{\beta S}\), so
\[I(S) = I_0 + S_0 - S + \frac\gamma\beta\ln\frac{S}{S_0}.\]Each trajectory moves leftward (decreasing \(S\)), rising while \(S \gt \gamma/\beta\), peaking at \(S = \gamma/\beta\) with \(I_{\max} = I_0 + S_0 - \tfrac\gamma\beta + \tfrac\gamma\beta\ln\tfrac{\gamma}{\beta S_0}\), and ending on the axis at the \(S_\infty\) solving \(I(S_\infty) = 0\), which is strictly positive: the epidemic ends because susceptibles run low, not because they run out. This final-size equation \(\ln(S_0/S_\infty) = \tfrac{\beta}{\gamma}(S_0 + I_0 - S_\infty)\) is the key quantitative prediction of the model, and herd immunity is the statement that reducing \(S_0\) below \(\gamma/\beta\) prevents growth altogether.
\(I' = I(\beta S - \gamma)\): growth iff \(S \gt \gamma/\beta\); equilibria fill the \(S\)-axis (zero eigenvalue); \(I = I_0 + S_0 - S + \tfrac\gamma\beta\ln(S/S_0)\).
Review: ·
124For \(x'' = -x + x^3\) as the system \(x' = y\), \(y' = -x + x^3\): find the energy, classify the equilibria, and describe which initial conditions give periodic motion. Contrast with \(x'' = x - x^3\).
Solution
Energy. \(V(x) = \tfrac12x^2 - \tfrac14x^4\) (so \(-V' = -x + x^3\)), \(E = \tfrac12y^2 + \tfrac12x^2 - \tfrac14x^4\), conserved.
Equilibria. \(y = 0\), \(x(x^2 - 1) = 0\): \((0, 0)\), \((\pm1, 0)\). \(J = \begin{bmatrix} 0 & 1 \\ -1 + 3x^2 & 0 \end{bmatrix}\). At \((0, 0)\): \(\begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix}\), a linear center; since \(V\) has a strict minimum there, the level curves of \(E\) nearby are closed and it is a true center. At \((\pm1, 0)\): \(\begin{bmatrix} 0 & 1 \\ 2 & 0 \end{bmatrix}\), \(D = -2\): saddles, eigenvalues \(\pm\sqrt2\), located at the maxima \(V(\pm1) = \tfrac14\) of the potential.
Periodic motion. The potential is a single well with hump tops at \(x = \pm1\), height \(\tfrac14\). Motion is periodic iff the trajectory is trapped in the well: \(E \lt \tfrac14\) and \(|x| \lt 1\) (the trajectory must start inside the well; a point with \(|x| \gt 1\) and small energy is outside, rolling away). The separatrices are the level set \(E = \tfrac14\): \(\tfrac12y^2 = \tfrac14 - \tfrac12x^2 + \tfrac14x^4 = \tfrac14(1 - x^2)^2\), i.e. \(y = \pm\tfrac{1}{\sqrt2}(1 - x^2)\), two parabolic arcs joining the saddles (heteroclinic orbits) and bounding the eye of closed orbits around the origin. Outside the eye, trajectories with \(E \gt \tfrac14\) pass over a hump and escape to infinity in finite time (since \(x' \sim x^2\) effectively), as do those starting beyond \(|x| = 1\) with any energy.
Contrast. \(x'' = x - x^3\) has the opposite potential, a double well with saddle at the origin and centers at \(\pm1\): all motions bounded and periodic, separatrix a figure-eight. Flipping the sign of the cubic term turns a bounded two-well system into a one-well system with escape; the linearizations at corresponding points swap center and saddle.
\(E = \tfrac12y^2 + \tfrac12x^2 - \tfrac14x^4\); center at 0, saddles at \(\pm1\); periodic iff \(E \lt \tfrac14\) and \(|x| \lt 1\); separatrix \(y = \pm(1 - x^2)/\sqrt2\).
Review: ·
125Mutualism: \(x' = x(1 - x + \tfrac12y)\), \(y' = y(1 + \tfrac12x - y)\). Find and classify all equilibria and describe the long-run outcome for two populations that start positive.
Solution
Equilibria. \(x = 0\) or \(x - \tfrac12y = 1\); \(y = 0\) or \(y - \tfrac12x = 1\). Combinations: \((0, 0)\); \(x = 0, y = 1\): \((0, 1)\); \(y = 0, x = 1\): \((1, 0)\); both lines: from the first \(x = 1 + \tfrac12y\), substituted into the second, \(y - \tfrac12 - \tfrac14y = 1\), \(\tfrac34y = \tfrac32\), \(y = 2\), \(x = 2\): \((2, 2)\).
With \(f = x - x^2 + \tfrac12xy\) and \(g = y + \tfrac12xy - y^2\): \(f_x = 1 - 2x + \tfrac12y\), \(f_y = \tfrac12x\), \(g_x = \tfrac12y\), \(g_y = 1 + \tfrac12x - 2y\). At \((2, 2)\), for instance, \(f_x = 1 - 4 + 1 = -2\) and \(g_y = 1 + 1 - 4 = -2\).
\[J = \begin{bmatrix} 1 - 2x + \tfrac12y & \tfrac12x \\ \tfrac12y & 1 + \tfrac12x - 2y \end{bmatrix}.\]- \((0, 0)\) \(J = I\): star source; both species grow when rare.
- \((1, 0)\) \(\begin{bmatrix} -1 & \tfrac12 \\ 0 & \tfrac32 \end{bmatrix}\): eigenvalues \(-1, \tfrac32\), a saddle (the second species invades).
- \((0, 1)\) \(\begin{bmatrix} \tfrac32 & 0 \\ \tfrac12 & -1 \end{bmatrix}\): eigenvalues \(\tfrac32, -1\), a saddle.
- \((2, 2)\) \(\begin{bmatrix} -2 & 1 \\ 1 & -2 \end{bmatrix}\): eigenvalues \(-1\) (eigenvector \((1, 1)\)) and \(-3\) (eigenvector \((1, -1)\)): sink node.
All structurally stable, hence true types. Outcome. Every trajectory starting with \(x, y \gt 0\) tends to \((2, 2)\): each species, alone, would level off at its carrying capacity 1, but the mutual benefit (the \(+\tfrac12y\) and \(+\tfrac12x\) terms) raises both to 2. The approach is along the slow direction \((1, 1)\) (eigenvalue \(-1\)): the populations equalize quickly (the \((1, -1)\) difference decays like \(e^{-3t}\)) and then grow together toward \((2, 2)\). The axes are invariant, and the two boundary saddles have their unstable directions pointing into the quadrant, so no trajectory from the interior ever reaches them. Had the mutualism coefficients been \(\ge 1\) instead of \(\tfrac12\), the nullclines would not cross in the quadrant and both populations would grow without bound, the "orgy of mutual benefaction" that makes naive mutualism models unrealistic.
\((0,0)\) star source, \((1,0)\) and \((0,1)\) saddles, \((2,2)\) sink node (eigenvalues \(-1, -3\)): both populations tend to 2.
Review: ·
126Classify the origin for each system, stating in each case whether the linearization is decisive: (a) \(x' = y\), \(y' = -x - y\); (b) \(x' = x + y^2\), \(y' = y\); (c) \(x' = -x + xy\), \(y' = y - xy\); (d) \(x' = y - x^3\), \(y' = -x\).
Solution
(a) Linear: \(J = \begin{bmatrix} 0 & 1 \\ -1 & -1 \end{bmatrix}\), \(T = -1\), \(D = 1\), \(T^2 - 4D = -3\): spiral sink, eigenvalues \(-\tfrac12 \pm i\tfrac{\sqrt3}{2}\). Decisive (the system is linear, and in any case a spiral with \(T \ne 0\) is robust). This is the damped oscillator \(x'' + x' + x = 0\).
(b) \(J(0, 0) = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}\): both eigenvalues 1, a star source. Stability is decided (unstable, robustly), but the star is a borderline type: the nonlinear term can bend the radial lines. Indeed \(y = y_0e^t\) and \(x' = x + y_0^2e^{2t}\) gives \(x = (x_0 - y_0^2)e^t + y_0^2e^{2t}\), so trajectories leave along curves tangent to the directions through the origin but curving toward the \(x\)-axis: a source, not a perfect star. Linearization decisive for stability, not for the fine shape.
(c) \(J(0, 0) = \begin{bmatrix} -1 & 0 \\ 0 & 1 \end{bmatrix}\): saddle, decisive (hyperbolic). The \(x\)-axis is the stable direction (\(x' = -x\) on it) and the \(y\)-axis the unstable one; both axes are invariant lines. (There is a second equilibrium at \((1, 1)\), a linear center of a Lotka–Volterra type, but the question concerns the origin.)
(d) \(J(0, 0) = \begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix}\): a linear center, not decisive. Use \(V = x^2 + y^2\): \(V' = 2x(y - x^3) + 2y(-x) = -2x^4 \le 0\). \(V\) never increases and decreases whenever \(x \ne 0\); a trajectory cannot stay on the line \(x = 0\) (there \(x' = y \ne 0\) unless \(y = 0\)), so \(V\) keeps decreasing and the origin is an asymptotically stable spiral sink, with the slow algebraic decay typical of cubic damping. The same linearization as the undamped oscillator, a different answer, found only by going beyond the Jacobian.
(a) spiral sink, decisive; (b) unstable (star-type source), stability decisive; (c) saddle, decisive; (d) linear center, actually a spiral sink by \(V = x^2 + y^2\), \(V' = -2x^4\).
Review: ·