Lecture6 With Examples
Lecture6 With Examples
Dylan Zwick
Fall 2013
dy
= f (x, y).
dx
1
The function f (x, y) may contain a combination of the variables x and
y:
v = α(x, y)
y = β(x, v),
dy dv
= βx + βv .
dx dx
dy
= f (x, y)
dx
dv
= g(x, v),
dx
which we might be able to solve for v, and from there we can solve for
y. No problem, right?1
1
Yeah, it probably looks a little scary now. It will (hopefully) become more clear and
less frightening once you’ve worked through some examples.
2
Example - Find a general solution to the differential equation
p
yy ′ + x = x2 + y 2 .
v = x2 + y 2
dv
and using this substitutuion to solve for = v ′ we get:
dx
√
v ′ = 2 v.
dv
√ = 2dx.
v
Solving this for v, and playing a little fast and loose with the unknown
constant C, we get:
v = (x + C)2 .
x2 + y 2 = (x + C)2 .
3
Homogeneous Equations
A homogeneous first-order differential equation is one that can be written
in the form
dy y
=F .
dx x
y
If we make the substitutuion v = then we can transform our equation
x
into a separable equation
dv
x = F (v) − v.
dx
(x + y)y ′ = x − y.
1 − xy
y′ = .
1 + xy
y
This is a homogeneous equation, and so making the substitution v =
x
we get:
dv 1−v
x = − v.
dx 1+v
1+v 1
dv = dx.
1 − 2v − v 2 x
4
In order to take the integral on the left side,
1+v
Z
dv,
1 − 2v − v 2
1
Z
The integral on the right side above is dx = ln x + C. So, we get the
x
equality:
1
ln √ = ln x + C,
u
1
√ = Cx.
u
1 = Cx2 u.
y
Substituting u = 1 − 2v − v 2 and v = we get:
x
y2
2 y
1 = Cx 1−2 − 2 = C(x2 − 2xy − y 2 ).
x x
We can rewrite this equality, playing fast and loose with unknown con-
stants as always, as:
C = x2 − 2xy − y 2 .
5
Bernoulli Equations
A Bernoulli equation2 is a first-order differential equation of the form
dy
+ P (x)y = Q(x)y n .
dx
v = y 1−n
dv
+ (1 − n)P (x)v = (1 − n)Q(x),
dx
2
Named after one member of that famous 17th-century mathematical family. I’m not
sure which.
6
Example - Find the general solution to the differential equation
xy ′ + 6y = 3xy 4/3 .
dy 6 4
+ y = 3y 3 .
dx x
dv 1 6 1
− v= − 3.
dx 3 x 3
dv 2
− v = −1.
dx x
R 2
dx 1
ρ = e− x = ,
x2
d v 1
= − 2.
dx x2 x
v 1
= + C.
x2 x
7
Solving for v we get:
v = Cx2 + x.
1
Plugging back in v = y − 3 and solving for y gives us:
1
y(x) = .
(Cx2 + x)3
F (x, y) = C,
∂F ∂F dy
+ = 0;
∂x ∂y dx
solving for dy/dx:
∂F
dy ∂x
= − ∂F .
dx ∂y
∂F ∂F
dx + dy = 0.
∂x ∂y
8
M(x, y)dx + N(x, y)dy = 0.
If the functions M(x, y) and N(x, y) are such that there exists a function
F (x, y) such that
∂F
= M(x, y),
∂x
and
∂F
= N(x, y),
∂y
F (x, y) = C.
∂M ∂N
= .
∂y ∂x
This is a necessary condition. Turns out it’s also sufficient. That is to say
if we have the equality above, and both partial derivatives are continuous,
then our desired function F (x, y) exists.
Example - Solve the differential equation
9
∂
(2xy 2 + 3x2 ) = 4xy,
∂y
∂
(2x2 y + 4y 3) = 4xy.
∂x
So, it’s exact. That checks out. Now, to find F (x, y) we take the integral
of our function M with respect to x:
Z
(2xy 2 + 3x2 )dx = x2 y 2 + x3 + g(y).
∂ 2 2
(x y + x3 + g(y)) = 2x2 y + g ′ (y) = 2x2 y + 4y 3.
∂y
So, g ′(y) = 4y 3 , which means g(y) = y 4, and our function F (x, y) is:
F (x, y) = x2 y 2 + x3 + y 4 .
x2 y 2 + x3 + y 4 = C.
10
you’ll need another type of substitution, but in these cases it shouldn’t be
too hard to see a good one to use.
Problems 1.6.31 and 1.6.36 deal with exact differential equtaions, and
you just need to first verify that the differential equation is exact, then then
solve for the solution function F (x, y). Follow the method we used in the
example problem in these notes and you can’t go wrong!
Finally, problem 1.6.56 is just a verification that the substitutuion that
we use for the Bernoulli equation actually works.
11