Practice / Calculus

Second-order linear differential equations with constant coefficients

Ten second-order linear differential equations with constant coefficients: distinct real roots with an initial value problem, a repeated root and the extra factor of t, complex roots and a decaying oscillation, a spring's angular frequency, period and amplitude, underdamped, critically damped and overdamped springs, undetermined coefficients for a polynomial and an exponential input, the resonant case that needs t times the guess, a sinusoidal input with its steady-state amplitude and lag, superposition of two inputs, and the first-order system x′ = Ax whose eigenvalues are the characteristic roots, with worked solutions and the mistakes of giving a repeated root two copies of one exponential, flipping the sign of the decay, guessing a solution of the homogeneous equation and applying the initial conditions before the particular solution is added.

Before you start

A second-order linear equation with constant coefficients, ay′′+by′+cy=f(t)ay'' + by' + cy = f(t), describes anything that has inertia and a restoring force: a mass on a spring, a circuit with an inductor and a capacitor, a pendulum swinging through small angles, and gradient descent with momentum on a quadratic loss. The homogeneous equation, with f=0f = 0, is solved by exponentials erte^{rt}, and putting one in turns the differential equation into a quadratic for rr. Its two roots decide everything: two real roots give two exponentials, a repeated root needs an extra factor of tt, and complex roots give oscillations inside an exponential envelope. A forcing term f(t)f(t) adds one particular solution, found by guessing its form. The work goes wrong at a handful of places: the repeated root, the sign of the real part of complex roots, a guess that already solves the homogeneous equation, and initial conditions applied too early. These ten problems cover each of them.

  • Characteristic equation. Putting y=erty = e^{rt} into ay′′+by′+cy=0ay'' + by' + cy = 0 gives ert(ar2+br+c)=0e^{rt}(ar^2 + br + c) = 0, so rr must solve ar2+br+c=0ar^2 + br + c = 0.
  • Distinct real roots r1≠r2r_1 \ne r_2: y=c1er1t+c2er2ty = c_1e^{r_1t} + c_2e^{r_2t}.
  • A repeated root rr (when b2=4acb^2 = 4ac): y=(c1+c2t)erty = (c_1 + c_2t)e^{rt}. The second solution is tertte^{rt}, not a second copy of erte^{rt}.
  • Complex roots r=α±iβr = \alpha \pm i\beta: y=eαt(c1cos⁡βt+c2sin⁡βt)y = e^{\alpha t}(c_1\cos\beta t + c_2\sin\beta t), from Euler's formula eiβt=cos⁡βt+isin⁡βte^{i\beta t} = \cos\beta t + i\sin\beta t. The solution decays if α<0\alpha < 0 and grows if α>0\alpha > 0. β\beta is an angular frequency in radians per unit time: the oscillation has period 2πβ\tfrac{2\pi}{\beta} and makes β2π\tfrac{\beta}{2\pi} cycles per unit time.
  • Initial conditions. A second-order equation needs two: y(0)y(0) and y′(0)y'(0). Two constants, two conditions.
  • Springs. mx′′+cx′+kx=0mx'' + cx' + kx = 0, with mass mm, damping cc and stiffness kk. Without damping, x′′+ω2x=0x'' + \omega^2x = 0 with ω=k/m\omega = \sqrt{k/m}, and Acos⁡ωt+Bsin⁡ωtA\cos\omega t + B\sin\omega t has amplitude A2+B2\sqrt{A^2 + B^2}. With damping, the discriminant c2−4mkc^2 - 4mk decides: negative is underdamped (it oscillates), zero is critically damped, positive is overdamped.
  • Undetermined coefficients. For ay′′+by′+cy=f(t)ay'' + by' + cy = f(t), y=yh+ypy = y_h + y_p: the general homogeneous solution plus one particular solution. Guess ypy_p in the form of ff: a polynomial of the same degree for a polynomial, AektAe^{kt} for ekte^{kt}, Acos⁡ωt+Bsin⁡ωtA\cos\omega t + B\sin\omega t for either a cosine or a sine. If the guess solves the homogeneous equation, multiply it by tt (by t2t^2 for a repeated root). For a sum of inputs, add the particular solutions.
  • Constants last. Apply the initial conditions to yh+ypy_h + y_p, the full solution, never to yhy_h alone.

Problems

  1. ·

    Solve y′′+y′−6y=0y'' + y' - 6y = 0 with y(0)=1y(0) = 1 and y′(0)=7y'(0) = 7.

  2. ·

    Solve y′′+6y′+9y=0y'' + 6y' + 9y = 0 with y(0)=2y(0) = 2 and y′(0)=−1y'(0) = -1.

  3. ··

    Solve y′′+2y′+5y=0y'' + 2y' + 5y = 0 with y(0)=1y(0) = 1 and y′(0)=3y'(0) = 3.

  4. ··

    A 22 kg mass hangs on a spring of stiffness 5050 N/m with no damping, so 2x′′+50x=02x'' + 50x = 0. It starts 0.10.1 m from equilibrium with velocity 11 m/s. Find x(t)x(t), its amplitude, its period and its frequency in cycles per second.

  5. ··

    A spring with m=1m = 1 and k=4k = 4 has damping cc, so x′′+cx′+4x=0x'' + cx' + 4x = 0. Classify the motion for c=1c = 1, c=4c = 4 and c=5c = 5, find the critical value of cc, and solve the critically damped case with x(0)=1x(0) = 1 and x′(0)=0x'(0) = 0.

  6. ··

    Solve y′′+y′−2y=4t2y'' + y' - 2y = 4t^2 with y(0)=0y(0) = 0 and y′(0)=0y'(0) = 0.

  7. ··

    Find a particular solution of y′′−y′−6y=12ety'' - y' - 6y = 12e^t, and then of y′′−y′−6y=10e3ty'' - y' - 6y = 10e^{3t}.

  8. ···

    A damped spring is driven by a periodic force: x′′+2x′+5x=10cos⁡tx'' + 2x' + 5x = 10\cos t. Find the steady-state solution, its amplitude and how far it lags the force, and find the driving frequency ω\omega that makes the steady-state amplitude of x′′+2x′+5x=10cos⁡ωtx'' + 2x' + 5x = 10\cos\omega t largest.

  9. ··

    Solve y′′+4y=8t+5e−ty'' + 4y = 8t + 5e^{-t} with y(0)=1y(0) = 1 and y′(0)=0y'(0) = 0.

  10. ···

    Write y′′+3y′+2y=0y'' + 3y' + 2y = 0 as a first-order system x′=Ax\mathbf x' = A\mathbf x for x=(y,y′)\mathbf x = (y, y'). Show that the eigenvalues of AA are the characteristic roots, find the eigenvectors, and solve with y(0)=1y(0) = 1, y′(0)=0y'(0) = 0.

Worked solutions

Problem 1

Solve y′′+y′−6y=0y'' + y' - 6y = 0 with y(0)=1y(0) = 1 and y′(0)=7y'(0) = 7.

  1. r2+r−6=(r+3)(r−2)=0r^2 + r - 6 = (r + 3)(r - 2) = 0, so r=2r = 2 or r=−3r = -3Put y=erty = e^{rt} in and divide by erte^{rt}, which is never 00.
  2. y=c1e2t+c2e−3ty = c_1e^{2t} + c_2e^{-3t}Two distinct real roots, two exponentials.
  3. y(0)=c1+c2=1y(0) = c_1 + c_2 = 1 and y′(0)=2c1−3c2=7y'(0) = 2c_1 - 3c_2 = 7Differentiate before substituting t=0t = 0.
  4. 2c1−3(1−c1)=72c_1 - 3(1 - c_1) = 7, so 5c1=105c_1 = 10 and c1=2c_1 = 2, c2=−1c_2 = -1Substitute c2=1−c1c_2 = 1 - c_1.
  5. y=2e2t−e−3ty = 2e^{2t} - e^{-3t}Check: y′′+y′−6y=(8+4−12)e2t+(−9+3+6)e−3t=0y'' + y' - 6y = (8 + 4 - 12)e^{2t} + (-9 + 3 + 6)e^{-3t} = 0, and y′(0)=4+3=7y'(0) = 4 + 3 = 7. The e2te^{2t} term takes over for large tt.

Problem 2

Solve y′′+6y′+9y=0y'' + 6y' + 9y = 0 with y(0)=2y(0) = 2 and y′(0)=−1y'(0) = -1.

  1. r2+6r+9=(r+3)2=0r^2 + 6r + 9 = (r + 3)^2 = 0, so r=−3r = -3 twiceThe discriminant 36−3636 - 36 is 00.
  2. y=(c1+c2t)e−3ty = (c_1 + c_2t)e^{-3t}A repeated root gives e−3te^{-3t} and te−3tte^{-3t}. Check the second: (te−3t)′′+6(te−3t)′+9te−3t=(9t−6)+6(1−3t)+9t=0(te^{-3t})'' + 6(te^{-3t})' + 9te^{-3t} = (9t - 6) + 6(1 - 3t) + 9t = 0, times e−3te^{-3t}.
  3. y(0)=c1=2y(0) = c_1 = 2t=0t = 0 removes the c2c_2 term.
  4. y′=(c2−3(c1+c2t))e−3ty' = \big(c_2 - 3(c_1 + c_2t)\big)e^{-3t}, so y′(0)=c2−3c1=−1y'(0) = c_2 - 3c_1 = -1 and c2=5c_2 = 5The product rule on (c1+c2t)e−3t(c_1 + c_2t)e^{-3t}.
  5. y=(2+5t)e−3ty = (2 + 5t)e^{-3t}Check: y′=(−1−15t)e−3ty' = (-1 - 15t)e^{-3t}, so y′(0)=−1y'(0) = -1, and y′′+6y′+9y=0y'' + 6y' + 9y = 0. One exponential alone could not meet both conditions (Mistake 1).

Problem 3

Solve y′′+2y′+5y=0y'' + 2y' + 5y = 0 with y(0)=1y(0) = 1 and y′(0)=3y'(0) = 3.

  1. r=−2±4−202=−2±4i2=−1±2ir = \dfrac{-2 \pm \sqrt{4 - 20}}{2} = \dfrac{-2 \pm 4i}{2} = -1 \pm 2iThe discriminant is −16-16, so the roots are complex.
  2. y=e−t(c1cos⁡2t+c2sin⁡2t)y = e^{-t}(c_1\cos2t + c_2\sin2t)α=−1\alpha = -1 is the real part and β=2\beta = 2 the imaginary part.
  3. y(0)=c1=1y(0) = c_1 = 1cos⁡0=1\cos0 = 1 and sin⁡0=0\sin0 = 0.
  4. y′=e−t((2c2−c1)cos⁡2t−(2c1+c2)sin⁡2t)y' = e^{-t}\big((2c_2 - c_1)\cos2t - (2c_1 + c_2)\sin2t\big), so y′(0)=2c2−c1=3y'(0) = 2c_2 - c_1 = 3 and c2=2c_2 = 2The product rule, then t=0t = 0.
  5. y=e−t(cos⁡2t+2sin⁡2t)y = e^{-t}(\cos2t + 2\sin2t)An oscillation with period 2π2=π\tfrac{2\pi}{2} = \pi inside the decaying envelope 5 e−t\sqrt5\,e^{-t}, where 12+22=5\sqrt{1^2 + 2^2} = \sqrt5.

Problem 4

A 22 kg mass hangs on a spring of stiffness 5050 N/m with no damping, so 2x′′+50x=02x'' + 50x = 0. It starts 0.10.1 m from equilibrium with velocity 11 m/s. Find x(t)x(t), its amplitude, its period and its frequency in cycles per second.

  1. x′′+25x=0x'' + 25x = 0, so r2+25=0r^2 + 25 = 0 and r=±5ir = \pm5iDivide by the mass. ω=k/m=50/2=5\omega = \sqrt{k/m} = \sqrt{50/2} = 5 rad/s.
  2. x=Acos⁡5t+Bsin⁡5tx = A\cos5t + B\sin5tα=0\alpha = 0: no decay.
  3. x(0)=A=0.1x(0) = A = 0.1 and x′(0)=5B=1x'(0) = 5B = 1, so B=0.2B = 0.2x′=−5Asin⁡5t+5Bcos⁡5tx' = -5A\sin5t + 5B\cos5t.
  4. Amplitude 0.12+0.22=0.05≈0.2236\sqrt{0.1^2 + 0.2^2} = \sqrt{0.05} \approx 0.2236 mAcos⁡ωt+Bsin⁡ωt=Rcos⁡(ωt−φ)A\cos\omega t + B\sin\omega t = R\cos(\omega t - \varphi) with R=A2+B2R = \sqrt{A^2 + B^2}.
  5. x=0.1cos⁡5t+0.2sin⁡5tx = 0.1\cos5t + 0.2\sin5t; amplitude ≈0.224\approx 0.224 m, period 2π5≈1.257\tfrac{2\pi}{5} \approx 1.257 s, frequency 52π≈0.796\tfrac{5}{2\pi} \approx 0.796 cycles per secondCheck: x(2π5)=0.1x\big(\tfrac{2\pi}{5}\big) = 0.1, back where it started. The period depends only on mm and kk, not on how far the spring is pulled.

Problem 5

A spring with m=1m = 1 and k=4k = 4 has damping cc, so x′′+cx′+4x=0x'' + cx' + 4x = 0. Classify the motion for c=1c = 1, c=4c = 4 and c=5c = 5, find the critical value of cc, and solve the critically damped case with x(0)=1x(0) = 1 and x′(0)=0x'(0) = 0.

  1. r2+cr+4=0r^2 + cr + 4 = 0 has discriminant c2−16c^2 - 16Critical damping is where it is 00: c=2mk=4c = 2\sqrt{mk} = 4.
  2. c=1c = 1: r=−1±i152r = \dfrac{-1 \pm i\sqrt{15}}{2}, underdampedIt oscillates at β=152≈1.936\beta = \tfrac{\sqrt{15}}{2} \approx 1.936 rad/s, a little slower than the undamped 22, inside the envelope e−t/2e^{-t/2}.
  3. c=5c = 5: r2+5r+4=(r+1)(r+4)r^2 + 5r + 4 = (r + 1)(r + 4), so r=−1,−4r = -1, -4, overdampedNo oscillation; the slow mode e−te^{-t} sets how fast it settles.
  4. c=4c = 4: r=−2r = -2 twice, so x=(c1+c2t)e−2tx = (c_1 + c_2t)e^{-2t} with c1=1c_1 = 1 and c2−2c1=0c_2 - 2c_1 = 0x′(0)=c2−2c1x'(0) = c_2 - 2c_1, as in Problem 2.
  5. Underdamped for c=1c = 1, critically damped for c=4c = 4, overdamped for c=5c = 5; x=(1+2t)e−2tx = (1 + 2t)e^{-2t} at c=4c = 4The critically damped spring settles fastest without overshooting, as e−2te^{-2t}: more damping (e−te^{-t} for c=5c = 5) or less (e−t/2e^{-t/2} for c=1c = 1) is slower.

Problem 6

Solve y′′+y′−2y=4t2y'' + y' - 2y = 4t^2 with y(0)=0y(0) = 0 and y′(0)=0y'(0) = 0.

  1. r2+r−2=(r+2)(r−1)r^2 + r - 2 = (r + 2)(r - 1), so yh=c1et+c2e−2ty_h = c_1e^t + c_2e^{-2t}The homogeneous equation first.
  2. Guess yp=At2+Bt+Cy_p = At^2 + Bt + C, so yp′=2At+By_p' = 2At + B and yp′′=2Ay_p'' = 2AA quadratic input needs a full quadratic guess, lower terms included.
  3. 2A+(2At+B)−2(At2+Bt+C)=−2At2+(2A−2B)t+(2A+B−2C)=4t22A + (2At + B) - 2(At^2 + Bt + C) = -2At^2 + (2A - 2B)t + (2A + B - 2C) = 4t^2Collect powers of tt.
  4. −2A=4-2A = 4, 2A−2B=02A - 2B = 0, 2A+B−2C=02A + B - 2C = 0 give A=−2A = -2, B=−2B = -2, C=−3C = -3Match the coefficients of t2t^2, tt and 11.
  5. y=83et+13e−2t−2t2−2t−3y = \tfrac83e^t + \tfrac13e^{-2t} - 2t^2 - 2t - 3The conditions go on the full solution: c1+c2−3=0c_1 + c_2 - 3 = 0 and c1−2c2−2=0c_1 - 2c_2 - 2 = 0, so c1=83c_1 = \tfrac83, c2=13c_2 = \tfrac13. Check: y(0)=83+13−3=0y(0) = \tfrac83 + \tfrac13 - 3 = 0.

Problem 7

Find a particular solution of y′′−y′−6y=12ety'' - y' - 6y = 12e^t, and then of y′′−y′−6y=10e3ty'' - y' - 6y = 10e^{3t}.

  1. r2−r−6=(r−3)(r+2)r^2 - r - 6 = (r - 3)(r + 2), so yh=c1e3t+c2e−2ty_h = c_1e^{3t} + c_2e^{-2t}Find the homogeneous solutions before guessing.
  2. yp=Aety_p = Ae^t: A(1−1−6)et=−6Aet=12etA(1 - 1 - 6)e^t = -6Ae^t = 12e^t, so A=−2A = -2ete^t is not a homogeneous solution, so the plain guess works.
  3. Ae3tAe^{3t} fails for the second input: it gives A(9−3−6)e3t=0A(9 - 3 - 6)e^{3t} = 0e3te^{3t} already solves the homogeneous equation (Mistake 3).
  4. yp=Ate3ty_p = Ate^{3t}: yp′=A(1+3t)e3ty_p' = A(1 + 3t)e^{3t}, yp′′=A(6+9t)e3ty_p'' = A(6 + 9t)e^{3t}, and A((6+9t)−(1+3t)−6t)e3t=5Ae3t=10e3tA\big((6 + 9t) - (1 + 3t) - 6t\big)e^{3t} = 5Ae^{3t} = 10e^{3t}The tt terms cancel, as they must; A=2A = 2.
  5. yp=−2ety_p = -2e^t for 12et12e^t, and yp=2te3ty_p = 2te^{3t} for 10e3t10e^{3t}The general solution of the second is c1e3t+c2e−2t+2te3tc_1e^{3t} + c_2e^{-2t} + 2te^{3t}.

Problem 8

A damped spring is driven by a periodic force: x′′+2x′+5x=10cos⁡tx'' + 2x' + 5x = 10\cos t. Find the steady-state solution, its amplitude and how far it lags the force, and find the driving frequency ω\omega that makes the steady-state amplitude of x′′+2x′+5x=10cos⁡ωtx'' + 2x' + 5x = 10\cos\omega t largest.

  1. xp=Acos⁡t+Bsin⁡tx_p = A\cos t + B\sin t, xp′=−Asin⁡t+Bcos⁡tx_p' = -A\sin t + B\cos t, xp′′=−Acos⁡t−Bsin⁡tx_p'' = -A\cos t - B\sin tA cosine input needs both a cosine and a sine in the guess.
  2. Cosines: −A+2B+5A=4A+2B=10-A + 2B + 5A = 4A + 2B = 10; sines: −B−2A+5B=4B−2A=0-B - 2A + 5B = 4B - 2A = 0Collect cos⁡t\cos t and sin⁡t\sin t separately.
  3. A=2BA = 2B, so 10B=1010B = 10: B=1B = 1 and A=2A = 2The homogeneous part e−t(c1cos⁡2t+c2sin⁡2t)e^{-t}(c_1\cos2t + c_2\sin2t) dies out, so xpx_p is what remains.
  4. Amplitude 22+12=5≈2.236\sqrt{2^2 + 1^2} = \sqrt5 \approx 2.236, lag φ=arctan⁡12≈0.464\varphi = \arctan\tfrac12 \approx 0.464 rad2cos⁡t+sin⁡t=5cos⁡(t−φ)2\cos t + \sin t = \sqrt5\cos(t - \varphi). The same comes from 10(5−ω2)2+(2ω)2=1020\dfrac{10}{\sqrt{(5 - \omega^2)^2 + (2\omega)^2}} = \dfrac{10}{\sqrt{20}} at ω=1\omega = 1.
  5. xp=2cos⁡t+sin⁡tx_p = 2\cos t + \sin t, amplitude 5\sqrt5, lag ≈0.464\approx 0.464 rad; the amplitude is largest at ω=3\omega = \sqrt3, where it is 2.52.5Minimize (5−ω2)2+4ω2=ω4−6ω2+25(5 - \omega^2)^2 + 4\omega^2 = \omega^4 - 6\omega^2 + 25: its derivative in ω2\omega^2 is 2ω2−62\omega^2 - 6, zero at ω2=3\omega^2 = 3, where it equals 1616 and the amplitude is 104\tfrac{10}{4}. Damping moves the peak below the natural frequency 5\sqrt5 and keeps it finite.

Problem 9

Solve y′′+4y=8t+5e−ty'' + 4y = 8t + 5e^{-t} with y(0)=1y(0) = 1 and y′(0)=0y'(0) = 0.

  1. r2+4=0r^2 + 4 = 0, so yh=c1cos⁡2t+c2sin⁡2ty_h = c_1\cos2t + c_2\sin2tr=±2ir = \pm2i.
  2. For 8t8t: y1=at+by_1 = at + b gives 4at+4b=8t4at + 4b = 8t, so y1=2ty_1 = 2ty1′′=0y_1'' = 0.
  3. For 5e−t5e^{-t}: y2=Ce−ty_2 = Ce^{-t} gives (1+4)Ce−t=5e−t(1 + 4)Ce^{-t} = 5e^{-t}, so y2=e−ty_2 = e^{-t}Superposition: solve for each input separately and add.
  4. y(0)=c1+1=1y(0) = c_1 + 1 = 1 and y′(0)=2c2+2−1=0y'(0) = 2c_2 + 2 - 1 = 0, so c1=0c_1 = 0 and c2=−12c_2 = -\tfrac12y′=−2c1sin⁡2t+2c2cos⁡2t+2−e−ty' = -2c_1\sin2t + 2c_2\cos2t + 2 - e^{-t}.
  5. y=2t+e−t−12sin⁡2ty = 2t + e^{-t} - \tfrac12\sin2tCheck: y′′=e−t+2sin⁡2ty'' = e^{-t} + 2\sin2t and 4y=8t+4e−t−2sin⁡2t4y = 8t + 4e^{-t} - 2\sin2t add to 8t+5e−t8t + 5e^{-t}.

Problem 10

Write y′′+3y′+2y=0y'' + 3y' + 2y = 0 as a first-order system x′=Ax\mathbf x' = A\mathbf x for x=(y,y′)\mathbf x = (y, y'). Show that the eigenvalues of AA are the characteristic roots, find the eigenvectors, and solve with y(0)=1y(0) = 1, y′(0)=0y'(0) = 0.

  1. A=(01−2−3)A = \begin{pmatrix}0 & 1\\ -2 & -3\end{pmatrix}The first row says (y)′=y′(y)' = y'; the second says (y′)′=−2y−3y′(y')' = -2y - 3y'.
  2. det⁡(A−rI)=(−r)(−3−r)+2=r2+3r+2\det(A - rI) = (-r)(-3 - r) + 2 = r^2 + 3r + 2The characteristic polynomial of AA is the characteristic polynomial of the equation, so the eigenvalues are r=−1r = -1 and r=−2r = -2.
  3. Eigenvectors (1,−1)(1, -1) for r=−1r = -1 and (1,−2)(1, -2) for r=−2r = -2The first row of (A−rI)v=0(A - rI)\mathbf v = 0 is −rv1+v2=0-rv_1 + v_2 = 0, so v=(1,r)\mathbf v = (1, r): a solution erte^{rt} and its derivative rertre^{rt}.
  4. x=c1e−t(1,−1)+c2e−2t(1,−2)\mathbf x = c_1e^{-t}(1, -1) + c_2e^{-2t}(1, -2) with c1+c2=1c_1 + c_2 = 1 and −c1−2c2=0-c_1 - 2c_2 = 0So c1=2c_1 = 2 and c2=−1c_2 = -1.
  5. y=2e−t−e−2ty = 2e^{-t} - e^{-2t}Every equation here is a 2×22\times2 system in disguise. Gradient descent with momentum on a quadratic of curvature λ\lambda behaves like y′′+γy′+λy=0y'' + \gamma y' + \lambda y = 0, and it converges fastest at the critical damping γ=2λ\gamma = 2\sqrt\lambda, as in Problem 5.

Where this goes wrong

1. A repeated root written as two copies of one exponential

The rule for distinct roots, one exponential per root, is applied to a double root.

  1. r2+6r+9=(r+3)2r^2 + 6r + 9 = (r + 3)^2, so r=−3r = -3 twiceRight so far: Problem 2.
  2. “Two roots, so two exponentials.”The step that causes the mistake: both roots give the same function.
  3. y=c1e−3t+c2e−3ty = c_1e^{-3t} + c_2e^{-3t}This is (c1+c2)e−3t(c_1 + c_2)e^{-3t}, a single constant times one function. y(0)=2y(0) = 2 forces Ce−3t=2e−3tCe^{-3t} = 2e^{-3t}, whose y′(0)y'(0) is −6-6, not the required −1-1; no choice fits both conditions. The second solution is te−3tte^{-3t}, and y=(2+5t)e−3ty = (2 + 5t)e^{-3t}.

2. The sign of the real part of complex roots flipped

The roots are complex, and the decay rate is read off the equation's coefficient instead of the roots.

  1. y′′+2y′+5y=0y'' + 2y' + 5y = 0 has r=−1±2ir = -1 \pm 2iRight so far: Problem 3.
  2. “The coefficient of y′y' is +2+2, so α=+1\alpha = +1.”The step that causes the mistake: α\alpha is the real part of the root, −b2a=−1-\tfrac{b}{2a} = -1.
  3. y=et(cos⁡2t+sin⁡2t)y = e^t(\cos2t + \sin2t)With y(0)=1y(0) = 1 and y′(0)=1+2c2=3y'(0) = 1 + 2c_2 = 3, this meets both conditions but grows instead of decaying. It solves y′′−2y′+5y=0y'' - 2y' + 5y = 0; in the original equation the left side is 4y′4y', which is 1212 at t=0t = 0, not 00. A positive damping coefficient always means decay: y=e−t(cos⁡2t+2sin⁡2t)y = e^{-t}(\cos2t + 2\sin2t).

3. Guessing a solution of the homogeneous equation

The input is e3te^{3t}, so the guess is e3te^{3t}, as it was for ete^t.

  1. y′′−y′−6y=10e3ty'' - y' - 6y = 10e^{3t}, with characteristic roots 33 and −2-2Right so far: Problem 7.
  2. Guess yp=Ae3ty_p = Ae^{3t}The step that causes the mistake: e3te^{3t} is already in yhy_h.
  3. A(9−3−6)e3t=10e3tA(9 - 3 - 6)e^{3t} = 10e^{3t}, so 0=100 = 10 and the equation has no particular solutionThe equation has one; the guess was in the wrong family. Anything that solves the homogeneous equation gives 00 on the left. Multiply the guess by tt: yp=2te3ty_p = 2te^{3t}.

4. Initial conditions applied before adding the particular solution

The constants are found from yhy_h, and the particular solution is added afterward.

  1. yh=c1et+c2e−2ty_h = c_1e^t + c_2e^{-2t} and yp=−2t2−2t−3y_p = -2t^2 - 2t - 3Right so far: Problem 6.
  2. c1+c2=0c_1 + c_2 = 0 and c1−2c2=0c_1 - 2c_2 = 0 from y(0)=0y(0) = 0 and y′(0)=0y'(0) = 0The step that causes the mistake: these conditions belong to yy, not to yhy_h.
  3. c1=c2=0c_1 = c_2 = 0, so y=−2t2−2t−3y = -2t^2 - 2t - 3This solves the differential equation but has y(0)=−3y(0) = -3 and y′(0)=−2y'(0) = -2, not 00 and 00. Apply both conditions to yh+ypy_h + y_p: c1=83c_1 = \tfrac83 and c2=13c_2 = \tfrac13.

5. The period taken as β/2π

ω=5\omega = 5 rad/s is right, and the period is written down from it the wrong way up.

  1. x=0.1cos⁡5t+0.2sin⁡5tx = 0.1\cos5t + 0.2\sin5tRight so far: Problem 4.
  2. “The period is ω\omega over 2π2\pi.”The step that causes the mistake: ω2π\tfrac{\omega}{2\pi} is the frequency, in cycles per second.
  3. Period =52π≈0.796= \tfrac{5}{2\pi} \approx 0.796 sAfter 0.7960.796 s the mass is at x≈−0.216x \approx -0.216 m, near the far end of its swing, not back at 0.10.1. One full cycle is 5t=2π5t = 2\pi, so the period is 2π5≈1.257\tfrac{2\pi}{5} \approx 1.257 s; check the units, since ω\omega is in radians per second.

Print this set: second-order-linear-differential-equations.pdf (problems, answers, and worked solutions on separate pages).

Read the guide: Second-order linear differential equations: the characteristic roots decide the form, and the constants come last