Separable Differential Equations
A differential equation is called separable if it can be written as
f(y)dy = g(x)dx
To solve a separable differential equation
-
Get all the y's on the left hand side of the equation and all of
the x's on the right hand side.
-
Integrate both sides.
-
Plug in the given values to find the constant of integration (C)
-
Solve for y
Example:
Solve dy/dx = y(3 - x); y(0 )= 5
-
dy/y = (3 - x) dx
-
, lny = 3x - x2 + C
-
ln5 = 0 + 0 + C, C = ln5
-
y = exp(3x - x2 + ln5) = exp(3x - x2)exp(ln5) = 5exp(3x
- x2)
Exercises:
A) dy/dx = x/y; y(0) = 1 B) dy/dx = x(x+1); y(1) = 1
C) 2xy + dy/dx = x; y(0) = 2
A differential equation is called a homogeneous
differential equation if it can be written in
the form M(x,y)dx
+ N(x,y)dy = 0 where
M and N are of the same degree. To solve a homogeneous
differential equation
-
Rewrite the differential in
homogeneous form M(x,y)dx + N(x,y)dy
= 0
-
Make the substitution y = vx where v
is a variable.
-
Then use the product rule to get
dy = vdx + xdv
-
Substitute to rewrite the differential
equation in terms of v and x only
-
Divide by xd
where d is the degree of the polynomials M and N.
-
Follow the steps for solving separable
differential equations.
-
Resubstitute v = y/x.
Example
Solve y' = (x + y)/(x - y)
Solution
-
dy/dx = (x + y)/(x -
y) (x + y)dx + (y - x)dy
= 0
-
y = vx
-
dy = vdx + xdv
-
(x + vx)dx + (vx - x)(vdx + xdv) = 0
-
(1 + v)dx + (v - 1)(vdx + xdv) = 0
-
[(1 + v) + (v2 - v)]dx +
(xv - x)dv = 0 [1 + v2]dx
= (x - xv)dv
1/x dx = (1 - v)/(1 + v2)dv = 1/(1 + v2)dv -
v/(1 + v2)dv
-
At this point of the class, we do not
know the integral of 1/(1 + v2). In a later section, we
will see that an antiderivative is arctan(v), hence
ln|x| = arctan(v) - 1/2 ln(1 + v2) + C
-
ln|x| = arctan(y/x) - 1/2 ln(1 + (y/x)2)
+ C
|