219-W2
219-W2
219-W2
We have stated the existence uniqueness theorem for first-order initial value problems
written in the canonical form:
dy
= f (t, y), y(t0 ) = y0
dt
No general method exists to find solutions to a given differential equation, even
when we know a solution exists. However, we can find solutions for some classes
of differential equations. Last week, we discussed the case when the equation is
separable; such equations can be written in differential form as follows:
M (t) dt = N (y) dy
Note that M depends only on t, and N depends only on y. Now, we are going to
discuss another class of first-order differential equations. They are called homoge-
neous equations. Such equations can be transformed into separable equations, for
which we know how to find solutions.
1
Example: Solve the IVP:
t2 y ′ = y 2 + 2ty y(1) = −1
The equation is not separable and cannot be separated like we did in the first week.
However, it is homogeneous. To see that, divide all terms by t2 to get
y 2 y
′
y = +2
t t
Putting v = y/t as above, we get
v + tv ′ = v 2 + 2v =⇒ tv ′ = v 2 + v
This equation can be separated now:
Z Z
dv dt dv dt
= =⇒ =
v2 + v t v2 + v t
We apply the partial fraction decomposition to the left side:
1 1 A B
=⇒ = + =⇒ A = 1, B = −1
v2 + v v(v + 1) v v+1
Thus, after the integration, we get
v
ln = ln |t| + C
v+1
The ln trick: Remember that
domain(ln x) = (0, ∞) and range(ln x) = (−∞, ∞)
Therefore, any real number C can be written as C = ln K for some positive number
K > 0. Therefore, we can replace any real number C with ln C where C > 0.
2
Putting v = y/t again, we get
y Ct2
= Ct =⇒ y = Cty + Ct2 =⇒ y= , C ̸= 0
y+t 1 − Ct
CAUTION: Always remember that along the process of separation, we may lose
some constant solutions. Remembering the equation before separation
tv ′ = v 2 + v = v(v + 1)
we see that
v=0 =⇒ y = 0 and v = −1 =⇒ y = −t
are solutions, too. Therefore, the general solution is
Ct2
y= , y = −t
1 − Ct
Note that, the general solution above contains the solution y(t) = 0 (when C = 0).
3
Relation between homogeneous differential equations and homogeneous
polynomials: Again, consider a first-order differential equation written in its canon-
ical form:
y ′ = f (t, y)
If f is a ratio of homogeneous polynomials of the same degree, then the differential
equation can be easily transformed into a homogeneous differential equation. More
precisely, let P (t, y) and Q(t, y) be two homogeneous polynomials of the same degree,
say d, and let f = P/Q. Then,
P (t, y)
y ′ = f (t, y) =
Q(t, y)
Now, one can divide every term on the right side by td where d = deg P = deg Q.
4y − 3t
Example: Solve y ′ = .
2t − y
Referring to the notations above, P (t, y) = 4y − 3t and Q(t, y) = 2t − y are homoge-
neous polynomials of degree d = 1. Therefore, dividing every term on the right by
td = t we get a homogeneous differential equation of the form y ′ = F (y/t):
4y − 3t 4y/t − 3
y′ = =⇒ y′ = = F (y/t)
2t − y 2 − y/t
Substituting v = y/t =⇒ y ′ = v + tv ′ , we get a separable equation in v:
′ 4v − 3 ′ v 2 + 2v − 3 (2 − v)dv dt
v + tv = =⇒ tv = =⇒ 2
=
2−v 2−v v + 2v − 3 t
To integrate the left side, we apply partial fraction decomposition:
(2 − v) A B 5 1
= + =⇒ A=− , B=
v 2 + 2v − 3 v + 3 v − 1 4 4
Hence, after integrating, we get
ln |v − 1| − ln |v + 3|5 = C + ln |t|4
Again, let’s use the ln-trick to replace C by ln C where C > 0. Applying the
logarithm laws carefully, it follows that
v−1
5
= Ct4 , C > 0.
(v + 3)
Now, substitute v = y/t back and then multiply/divide the left side by t5 to get
y/t − 1 ⋆ yt4 − t5 y−t
5
= Ct4 =⇒ 5
= Ct4 =⇒ = C, C>0
(y/t + 3) (y + 3t) (y + 3t)5
4
t5
For ⋆ we multiplied the left-hand side by 5 (check the calculation). Letting C
t
retake negative values, we can remove the absolute value:
y − t = C(y + 3t)5 , C ̸= 0
Again, we check the equation before separation to see if any other solutions are lost
along the separation:
v 2 + 2v − 3 (v + 3)(v − 1)
tv ′ = =
2−v 2−v
Thus,
v=1 =⇒ y = t and v = −3 =⇒ y = −3t
are solutions, too. Hence, the general solution is
y − t = C(y + 3)5 , y = t, y = −3t, C ̸= 0
Observe that y = t is the solution when C = 0. Thus, one can write the general
solution as
y − t = C(y + 3)5 , y = t, C ∈ R
Several integration methods apply to various classes of problems for first-order equa-
tions. We have previously discussed the class of separable and homogeneous equa-
tions (the latter can be transformed into separable equations). Here, we consider
a class of equations known as exact equations for which there is also a well-
defined method of solution.
5
Remember that this process needs some care, as some constant solutions may
be lost during separation.
dy d
Ψt + Ψy = 0 =⇒ Ψ(t, y) = 0, (y = y(t) is the solution we are looking for)
dt dt
Hence, the general solution can be written as a family of implicit solutions:
Ψ(t, y) = C, C∈R
CAUTION: Note that
d ∂
Ψ(t, y) ̸= Ψ(t, y)
dt ∂t
For the left-hand side we need to use the Chain Rule for multivariable func-
tions where the unknown function y = y(t) depends on t:
t y
t
For the right-hand side however, we consider t and y as independent variables, i.e.
y is treated as a constant when partially differentiating Ψ with respect to t.
6
Example: All separable equations are exact. To see this, let’s take a separable
equation:
dy
M (t) + N (y) = 0
dt
It is easy to find a potential for F = ⟨M (t), N (y)⟩:
Z Z
Ψ(t, y) = M (t) dt + N (y) dy .
Question: Is the opposite of the implication stated in the theorem above true? In
other words, does F = ⟨M, N ⟩ always have a potential function when My = Nt ?
Answer: The answer is no, in general. In other words, My = Nt does not always
imply that F is conservative. However, the following is true:
7
Proof: We omit the proof because we don’t want to go all over MAT120 again! Just
a reminder, though a simply-connected region in R2 is a region without holes!
For instance, a disk t2 + y 2 < 5 is simply-connected as it does not have any hole in
it, whereas R2 − {(0, 0)} is not a simply-connected region.
This much review is enough to return to the study of Exact Equations. Let’s start
with an example.
Referring to the form given in the definition of exact equations above, we take
M = y cos t + 2tey and N = sin(t) + t2 ey − 1 =⇒ My = cos t + 2tey = Nt
So, we have
⋆ ⃝
Ψy = sin t + t2 ey + C ′ (y) and Ψy = N = sin t + t2 ey − 1 =⇒ C ′ (y) = −1
Choosing C(y) = −y, we get a potential function:
Ψ = y sin t + t2 − y.
Hence, Ψ = C gives the general solution as a family of implicit solutions:
y sin t + t2 ey − y = C
Example: Is the following equation exact?
t y
+ y′ = 0
(t2 + y 2 )3/2 (t2 + y 2 )3/2
8
Remember that the definition of exactness is given when the differential equation is
in the following form:
M + N y ′ = 0 or equivalently M dt + N dy = 0
In the discussion above, we noted that for an equation to be exact, the equality
My = Nt is necessary. It may not be sufficient, though, when the domain we
consider is not simply-connected.
Here, My = Nt holds:
t y ty
M= , N= =⇒ My = −3 = Nt
(t2 + y 2 )3/2 (t2 + y 2 )3/2 (t2 + y 2 )5/2
Here, the domain of consideration is not simply-connected as M and N is defined
on R − {(0, 0)}, which is not simply connected.
However, we can try the above standard procedure to find a potential Ψ for F. It
may not work, but what else would we lose except time if we try?
Z Z Z Z
t 1 −3/2 1
Ψ(t, y) = Ψt dt = M dt = 3/2
dt = u du = − √ + C(y)
2 2
(t + y ) 2 u
9
Keep in mind: In this example, we have seen that even though the domain is
not simply-connected, we pursued the fact that My = Nt to find a potential func-
tion. Sometimes, there is no potential function even if My = Nt when the domain is
simply-connected.
Integrating Factors
10
Example: y + (2t − yey )y ′ = 0
Thus,
N = Ψy =⇒ 2ty + C ′ (y) = 2ty − y 2 ey =⇒ C ′ (y) = −y 2 ey
Exercise: Apply integration by parts two times to get
C(y) = −y 2 ey + 2yey − 2ey
Hence, the general solution is
11