2.6 Differential equations
- Syllabus
- 9231–2028–2029
- Topic
- 2.6
- Level
- A2
Firstwrite\frac{dy}{dx}+P(x)y=Q(x).Then\mu(x)=e^{\int P(x),dx},\qquad \frac{d}{dx}(\mu y)=\mu Q,soy=\frac{1}{\mu}\left(\int\mu Q,dx+C\right).Divide by the original coefficient of $dy/dx$ before identifying $P$.
For $x>0$, solvey'+y\coth x=\cosh x.Since $\mu=e^{\int\coth x\,dx}=\sinh x$,\frac{d}{dx}(y\sinh x)=\sinh x\cosh x.Hencey\sinh x=\tfrac12\sinh^2x+C,\qquad y=\tfrac12\sinh x+C\operatorname{cosech}x.
Differentiate the final expression and substitute it into the standardised equation. The two C-terms cancel because the homogeneous part is exactly what the integrating factor method carries as the constant of integration.
The integrating factor multiplies every term. Its antiderivative constant is omitted because it only rescales the final arbitrary constant; domain restrictions such as x>0 still matter when logarithms or coth appear.
| part | equation it satisfies | constants | meaning |
|---|---|---|---|
| complementary function yc | L[yc]=0 | contains the full arbitrary constants | free/homogeneous behaviour |
| particular integral yp | L[yp]=f(x) | one chosen solution, no arbitrary constants | response to forcing |
| general solution | y=yc+yp | constants come from yc | every solution of L[y]=f(x) |
For a linear operator L, L[yc+yp]=L[yc]+L[yp]=0+f(x). Any two particular solutions differ by a homogeneous solution, so adding the complete CF supplies every possible solution.
Fory''-3y'+2y=e^{3x},the homogeneous roots are 1 and 2, so $y_c=C_1e^x+C_2e^{2x}$. Trying $y_p=Ae^{3x}$ gives $(9-9+2)Ae^{3x}=e^{3x}$, hence $A=1/2$. Thereforey=C_1e^x+C_2e^{2x}+\tfrac12e^{3x}.
A PI is not the general solution and must not contain a new arbitrary constant. Initial conditions act on the assembled CF + PI solution, not on the forcing trial alone.
For a constant-coefficient homogeneous equation, try $y=e^{mx}$. A first-order equation $ay'+by=0$ gives $am+b=0$. A second-order equationay''+by'+cy=0givestheauxiliaryequationam^2+bm+c=0.
| auxiliary roots | complementary function |
|---|---|
| first-order root m | Cemx |
| distinct real m1,m2 | C1em1x+C2em2x |
| repeated real m | (C1+C2x)emx |
| conjugate α±iβ | eαx(C1cosβx+C2sinβx) |
Fory''-4y'+13y=0,m^2-4m+13=0\quad\Rightarrow\quad m=2\pm3i.Hencey_c=e^{2x}(C_1\cos3x+C_2\sin3x).
Two identical copies of emx are not independent when a root repeats; the second solution needs the factor x. Conjugate roots combine into a real sine-cosine form when the equation has real coefficients.
| forcing term | initial PI trial |
|---|---|
| polynomial of degree n | general polynomial of degree n |
| aebx | Aebx |
| acospx+bsinpx | Acospx+Bsinpx |
If the trial overlaps the CF, multiply the whole trial by x; repeat with another x only if the overlap has higher multiplicity.
Differentiate the trial, substitute it into the differential equation, and equate coefficients of independent powers, exponentials, sine and cosine terms. The solved trial is one PI; the general solution is still CF + PI.
Forthesyllabuscasey''+4y=\sin2x,sine and cosine of 2x already belong to the CF, so use the supplied form $y_p=kx\cos2x$. Theny_p''+4y_p=-4k\sin2x.Matching $\sin2x$ givesk=-\tfrac14,so one PI is $y_p=-\tfrac14x\cos2x$.
For sinusoidal forcing, include both sine and cosine in an unrestricted trial because differentiation mixes them. A resonant unmodified trial collapses into the homogeneous equation and cannot determine its coefficients.
For the given substitution $x=e^t$ (so $t=\ln x$, $x>0$),x\frac{dy}{dx}=\frac{dy}{dt},\qquad x^2\frac{d^2y}{dx^2}=\frac{d^2y}{dt^2}-\frac{dy}{dt}.Thereforeax^2y''+bxy'+cy=F(x)becomesa\ddot y+(b-a)\dot y+cy=F(e^t),aconstant−coefficientequationwhenthetransformedrightsidepermitsit.
For a given homogeneous substitution $y=ux$,\frac{dy}{dx}=u+x\frac{du}{dx}.In\frac{dy}{dx}=\frac{x+y}{x-y},thisgivesu+xu'=\frac{1+u}{1-u},\qquad x\frac{du}{dx}=\frac{1+u^2}{1-u}.
Nowseparateandintegrate:\frac{1-u}{1+u^2},du=\frac{dx}{x},\tan^{-1}u-\tfrac12\ln(1+u^2)=\ln|x|+C.Finally substitute $u=y/x$ and retain any domain restrictions or separately lost constant solutions.
A substitution is not a relabelling. Derive the first and second derivative transformations before replacing terms, and inspect any division by x, u or another expression for excluded solutions.
First obtain the full general solution CF + PI. Differentiate it as many times as the conditions require, substitute all conditions at their stated input value, and solve the simultaneous equations for every arbitrary constant. A second-order equation normally needs two independent conditions.
Supposey=3+C_1e^{-t}+C_2e^{-2t},\qquad y(0)=5,\quad y'(0)=-6.ThenC_1+C_2=2,\qquad -C_1-2C_2=-6,so $C_1=-2$ and $C_2=4$. The particular solution isy=3-2e^{-t}+4e^{-2t}.
Interpret the variables and units; restrict the independent variable to the model's stated domain; check whether quantities that represent size, mass or population remain admissible; and compare dominant terms for long-term behaviour. Here both exponentials decay, so the model approaches the equilibrium value 3 as t→∞.
An exact algebraic solution is not automatically a valid real-world prediction outside the model's interval or assumptions. Do not discard transient terms before applying the initial conditions: they are what allow the trajectory to match the starting state.