9.4.3 Linear Differential Equations
What Makes a Differential Equation Linear?
A differential equation is linear when the dependent variable and all its derivatives appear only in the first power and are not multiplied together. The standard form of a first order linear differential equation is:
dxdy+Py=Q
where P and Q are constants or functions of x only. The key point is that y appears alone — never as y2, siny, or ydxdy.
The coefficient of dxdy must be 1. If it isn't, divide the entire equation by that coefficient first.
| Equation | P | Q |
|---|
| dxdy+y=sinx | 1 | sinx |
| dxdy+xy=ex | x1 | ex |
| dxdy+xlogxy=x1 | xlogx1 | x1 |
The Alternative Form: When x is the Dependent Variable
Sometimes it is more convenient to treat x as the dependent variable and y as the independent variable:
dydx+P1x=Q1
where P1 and Q1 are constants or functions of y only.
| Equation | P1 | Q1 |
|---|
| dydx+x=cosy | 1 | cosy |
| dydx−y2x=y2e−y | −y2 | y2e−y |
The Integrating Factor
The method for dxdy+Py=Q multiplies both sides by a specially chosen function g(x) so that the left-hand side becomes the derivative of a product. Multiplying by g(x):
g(x)dxdy+P⋅g(x)⋅y=Q⋅g(x)
We want the left side to equal dxd[y⋅g(x)]=g(x)dxdy+y⋅g′(x). Matching terms requires P⋅g(x)=g′(x), i.e.
g(x)g′(x)=P⇒log∣g(x)∣=∫Pdx⇒g(x)=e∫Pdx
g(x)=e∫Pdx is the Integrating Factor (I.F.) — the function that, when multiplied through, makes the left-hand side a perfect derivative.
The General Solution
Multiplying dxdy+Py=Q by the I.F., the left-hand side becomes dxd(ye∫Pdx), so
dxd(ye∫Pdx)=Qe∫Pdx
Integrating gives the general solution ye∫Pdx=∫Qe∫Pdxdx+C.
General Solution of dxdy+Py=Q
y⋅(I.F.)=∫Q⋅(I.F.)dx+C,I.F.=e∫Pdx
Procedure: write the equation in standard form and identify P,Q; compute I.F.=e∫Pdx; apply the formula above; then evaluate the integral and solve for y.
When computing ∫Pdx you need not add a constant of integration — any constant cancels when forming the I.F.
The Case dydx+P1x=Q1 …