Methods of Solving First Order, First Degree Differential Equations
A differential equation of the form dxdy=f(x,y) is called first order, first degree: the highest derivative present is the first, and it appears only to the first power. We study three systematic methods, plus Bernoulli's equation, according to the form of f(x,y).
1. Differential Equations with Variables Separable
If f(x,y)=g(x)h(y) — a product of a function of x and a function of y — the equation has separable variables:
dxdy=g(x)h(y)
Method of solution:
- Separate the variables — all y terms (with dy) on one side, all x terms (with dx) on the other:
h(y)dy=g(x)dx
- Integrate both sides:
∫h(y)1dy=∫g(x)dx+C
- The resulting relation between x and y (involving C) is the general solution.
Dividing by h(y) assumes h(y)=0. Constant solutions y=y0 with h(y0)=0 must be checked separately; they are often singular solutions not obtainable from the general solution for any finite C.
Example: Solve dxdy=1+x21+y2. Separating and integrating:
1+y2dy=1+x2dx⇒tan−1y=tan−1x+C
Using tan−1a−tan−1b=tan−1(1+aba−b), this can be written as 1+xyy−x=k, i.e. y−x=k(1+xy), an implicit form of the solution.
2. Homogeneous Differential Equations
F(x,y) is homogeneous of degree n if F(λx,λy)=λnF(x,y) for any non-zero λ. The equation
dxdy=Q(x,y)P(x,y)
is homogeneous when P(x,y) and Q(x,y) are homogeneous of the same degree.
Equivalently, it is homogeneous if it can be written dxdy=F(xy) — the right-hand side depends only on the ratio y/x.
Method of solution (substitution y=vx):
- Write the equation as dxdy=F(xy).
- Substitute y=vx, so dxdy=v+xdxdv.
- The equation becomes v+xdxdv=F(v), which separates to
F(v)−vdv=xdx
- Integrate both sides and replace v by y/x to obtain the general solution.
The substitution y=vx always reduces a homogeneous equation to a separable one. The constant solution where F(v0)=v0 (giving y=v0x, a straight line through the origin) must be checked separately.
Example: Solve (x2+y2)dx−2xydy=0.
dxdy=2xyx2+y2=2(y/x)1+(y/x)2=F(xy)
Substitute y=vx, dxdy=v+xdxdv:
xdxdv=2v1+v2−v=2v1−v2⇒1−v22vdv=xdx
Integrating:
−ln∣1−v2∣=ln∣x∣+ln∣C∣⇒1−v21=Cx
Replacing v=y/x gives x=C(x2−y2), the general solution.
3. Linear Differential Equations
A first order linear differential equation has the form
dxdy+P(x)y=Q(x)
where P(x) and Q(x) are functions of x only (or constants).
The equation is "linear" because y and dxdy appear only to the first power and are not multiplied together. If Q(x)=0 it is homogeneous linear; otherwise non-homogeneous linear.
Method of solution (integrating factor): multiply through by a function μ(x) that makes the left-hand side an exact derivative.
- In standard form, compute the integrating factor
I.F.=e∫P(x)dx
- Multiplying through, the left-hand side becomes dxd(ye∫Pdx), so
dxd(ye∫Pdx)=Qe∫Pdx
- Integrate and solve for y:
ye∫Pdx=∫Qe∫Pdxdx+C⇒y=e−∫Pdx[∫Qe∫Pdxdx+C]
›Proof
Derivation of the integrating factor. We want μ(x) with μdxdy+μPy=dxd(μy)=μdxdy+ydxdμ. Cancelling μdxdy gives μPy=ydxdμ, i.e. μdμ=Pdx. Integrating, ln∣μ∣=∫Pdx, so μ=e∫Pdx.
Example: Solve dxdy+2y=e3x. Here P=2, Q=e3x, so I.F. =e2x:
dxd(ye2x)=e5x⇒ye2x=5e5x+C
y=5e3x+Ce−2x
4. Equations Reducible to Linear Form (Bernoulli's Equation)
An equation
dxdy+P(x)y=Q(x)yn(n=0,1)
is called Bernoulli's equation. It is not linear, but reduces to linear form by a substitution.
Method of solution:
- Divide by yn (assuming y=0): y−ndxdy+P(x)y1−n=Q(x). …