FP2.5 - Second order differential equations
- Syllabus
- 2019
- Topic
- —
- Level
- A2
For a constant-coefficient equation adx2d2y+bdxdy+cy=f(x),a=0, 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): y=CF+PI.
| Roots of am2+bm+c=0 | Complementary function |
|---|---|
| Distinct real m1,m2 | Aem1x+Bem2x |
| Repeated real m | (A+Bx)emx |
| Complex α±iβ | eαx(Acosβx+Bsinβx) |
The auxiliary equation comes from trying y=emx 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) | Trial form for the PI |
|---|---|
| kepx | λepx |
| A+Bx | λx+μ |
| p+qx+cx2 | λx2+μx+ν |
| mcosωx+nsinωx | λcosωx+μsinω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 x; use another factor of x if the overlap is repeated.
For the official resonance model y′′+4y=sin2x, the auxiliary roots are ±2i, so CF=Acos2x+Bsin2x. A trial Ccos2x+Dsin2x duplicates the CF and contributes zero. Use an x factor instead: yp=Kxcos2x. Since (xcos2x)′′+4xcos2x=−4sin2x, K=−41. Hence y=Acos2x+Bsin2x−41xcos2x.
Apply values of y and y′ only after CF and PI have been combined, producing two simultaneous equations for A and B. 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)=0. A repeated root requires the factor x in the CF; overlap between the PI trial and the CF also requires an extra factor x. Keep the frequency ω, exponential rate p and all derivative signs exact.
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) | dxdy=dtdyg′(x) and dx2d2y=dt2d2y[g′(x)]2+dtdyg′′(x) |
| x=h(t) | dxdy=dx/dtdy/dt and dx2d2y=(xt)3yttxt−ytxtt |
| y=q(x)v(x) | y′=q′v+qv′ and y′′=q′′v+2q′v′+qv′′ |
Differentiate the supplied relation, replace y′, y′′ 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′′+3xy′−3y=2lnx,x>0, take the given substitution t=lnx. Then y′=x1yt,y′′=x21(ytt−yt), so the equation becomes ytt+2yt−3y=2t. Its auxiliary roots are 1 and −3. A PI at+b gives a=−32 and b=−94, hence y=Aet+Be−3t−32t−94. Returning to x gives y=Ax+Bx−3−32lnx−94,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 y and its x-derivatives in the original equation for the second.
Do not replace x in the coefficients while leaving derivatives in the old variable. For t=lnx the condition x>0 is essential; for a square-root substitution, track the stated branch and domain. Constants A and B remain arbitrary through back-substitution, but the same letter must not be used ambiguously for both a coefficient and a new variable.