FP2.5 - Second order differential equations

Syllabus
2019
Topic
Level
A2

Learning objectives

Solve a linear second-order differential equation

For a constant-coefficient equation ad2ydx2+bdydx+cy=f(x),a0,a\frac{d^2y}{dx^2}+b\frac{dy}{dx}+cy=f(x),\qquad a\ne0, the general solution is the sum of the complementary function (CF), which solves the homogeneous equation, and one particular integral (PI), which accounts for f(x)f(x): y=CF+PIy=\mathrm{CF}+\mathrm{PI}.

Roots of am2+bm+c=0am^2+bm+c=0 Complementary function
Distinct real m1,m2m_1,m_2 Aem1x+Bem2xAe^{m_1x}+Be^{m_2x}
Repeated real mm (A+Bx)emx(A+Bx)e^{mx}
Complex α±iβ\alpha\pm i\beta eαx(Acosβx+Bsinβx)e^{\alpha x}(A\cos\beta x+B\sin\beta x)

The auxiliary equation comes from trying y=emxy=e^{mx} in the homogeneous equation. Each independent root solution contributes an arbitrary constant, so a second-order equation has two constants before conditions are imposed.

Form of f(x)f(x) Trial form for the PI
kepxke^{px} λepx\lambda e^{px}
A+BxA+Bx λx+μ\lambda x+\mu
p+qx+cx2p+qx+cx^2 λx2+μx+ν\lambda x^2+\mu x+\nu
mcosωx+nsinωxm\cos\omega x+n\sin\omega x λcosωx+μsinωx\lambda\cos\omega x+\mu\sin\omega x

Differentiate the trial, substitute it into the full equation and compare coefficients to determine its unknowns. If any part of the trial is already in the CF, multiply the whole trial by xx; use another factor of xx if the overlap is repeated.

For the official resonance model y+4y=sin2x,y''+4y=\sin2x, the auxiliary roots are ±2i\pm2i, so CF=Acos2x+Bsin2x.\mathrm{CF}=A\cos2x+B\sin2x. A trial Ccos2x+Dsin2xC\cos2x+D\sin2x duplicates the CF and contributes zero. Use an xx factor instead: yp=Kxcos2xy_p=Kx\cos2x. Since (xcos2x)+4xcos2x=4sin2x(x\cos2x)''+4x\cos2x=-4\sin2x, K=14K=-\tfrac14. Hence y=Acos2x+Bsin2x14xcos2x.y=A\cos2x+B\sin2x-\frac14x\cos2x.

Apply values of yy and yy' only after CF and PI have been combined, producing two simultaneous equations for AA and BB. A final substitution into the differential equation checks both the PI coefficients and any resonance factor.

Do not use the auxiliary equation on the non-homogeneous right side, and do not call the CF alone the general solution when f(x)0f(x)\ne0. A repeated root requires the factor xx in the CF; overlap between the PI trial and the CF also requires an extra factor xx. Keep the frequency ω\omega, exponential rate pp and all derivative signs exact.

Reduce a second-order equation using a given substitution

A given substitution can turn a variable-coefficient second-order equation into the constant-coefficient type just solved. The decisive step is to transform both derivatives with the chain rule before simplifying; every derivative must be taken with respect to the variable displayed in its denominator.

Given substitution Required derivative relations
t=g(x)t=g(x) dydx=dydtg(x)\dfrac{dy}{dx}=\dfrac{dy}{dt}g'(x) and d2ydx2=d2ydt2[g(x)]2+dydtg(x)\dfrac{d^2y}{dx^2}=\dfrac{d^2y}{dt^2}[g'(x)]^2+\dfrac{dy}{dt}g''(x)
x=h(t)x=h(t) dydx=dy/dtdx/dt\dfrac{dy}{dx}=\dfrac{dy/dt}{dx/dt} and d2ydx2=yttxtytxtt(xt)3\dfrac{d^2y}{dx^2}=\dfrac{y_{tt}x_t-y_tx_{tt}}{(x_t)^3}
y=q(x)v(x)y=q(x)v(x) y=qv+qvy'=q'v+qv' and y=qv+2qv+qvy''=q''v+2q'v'+qv''

Differentiate the supplied relation, replace yy', yy'' and every explicit occurrence of the old variable, then cancel common non-zero factors using the stated domain. Check that the resulting equation is exactly the claimed constant-coefficient form. Solve it as CF + PI in the new variable, and finally back-substitute both the variable and any dependent-variable relation.

For x2y+3xy3y=2lnx,x>0,x^2y''+3xy'-3y=2\ln x,\qquad x>0, take the given substitution t=lnxt=\ln x. Then y=1xyt,y=1x2(yttyt),y'=\frac1x y_t,\qquad y''=\frac1{x^2}(y_{tt}-y_t), so the equation becomes ytt+2yt3y=2t.y_{tt}+2y_t-3y=2t. Its auxiliary roots are 11 and 3-3. A PI at+bat+b gives a=23a=-\tfrac23 and b=49b=-\tfrac49, hence y=Aet+Be3t23t49.y=Ae^t+Be^{-3t}-\frac23t-\frac49. Returning to xx gives y=Ax+Bx323lnx49,x>0.y=Ax+Bx^{-3}-\frac23\ln x-\frac49,\qquad x>0.

The transformed equation and the final answer can be checked independently: substitute the derivative relations into the original equation for the first check, then replace the final yy and its xx-derivatives in the original equation for the second.

Do not replace xx in the coefficients while leaving derivatives in the old variable. For t=lnxt=\ln x the condition x>0x>0 is essential; for a square-root substitution, track the stated branch and domain. Constants AA and BB remain arbitrary through back-substitution, but the same letter must not be used ambiguously for both a coefficient and a new variable.