Week3 Note
Week3 Note
(ODEs)
1 Introduction
1.1 Level Set Definition
A level set of a function f (x, y) is the set of all points (x, y) such that:
f (x, y) = C
f (x, y) = x2 + y 2
f (x) = |x|
x2 + y 2 = r 2
1
dy
2x + 2y =0
dx
This leads to the first-order ODE:
dy
x+y =0
dx
The general solution to this ODE is:
x2 + y 2 = r 2
This shows how level sets, such as circles, can represent solutions to ODEs.
∂F ∂F
= M (x, y) and = N (x, y)
∂x ∂y
2
4.2 Step 2: Find the Potential Function F (x, y)
To find F (x, y), perform the following integration:
Z
F (x, y) = M (x, y) dx + g(y)
∂F
= N (x, y)
∂y
This equation helps determine g ′ (y). Once you have g ′ (y), integrate it to
find g(y).
F (x, y) = C
∂M ∂N
= 42xy 2 and = 42xy 2
∂y ∂x
∂M ∂N
Since ∂y = ∂x , the equation is exact.
3
5.2 Step 2: Find the Potential Function
Integrate M (x, y) = 14xy
∂F
= 21x2 y 2 + g ′ (y)
∂y
F (x, y) = 7x2 y 3 + K
Set F (x, y) = C:
7x2 y 3 + K = C
x2 y 3 = C ′
6 Additional Example
Consider the exact ODE:
dy
x cos(xy) + y cos(xy) =0
dx
4
6.1 Step 1: Test for Exactness
Here, M (x, y) = x cos(xy) and N (x, y) = y cos(xy). We check the exactness
condition:
∂M
= cos(xy) − xy sin(xy)
∂y
∂N
= cos(xy) − xy sin(xy)
∂x
∂M ∂N
Since ∂y = ∂x , the equation is exact.
sin(xy)
F (x, y) = + g(y)
y
Set this equal to N (x, y) = y cos(xy) and solve for g ′ (y). Integrate to find
g(y).
7 Non-Exact Equations
If the equation is not exact, we can sometimes make it exact by multiplying
the equation by an integrating factor, which can be a function of x, y, or both.
The integrating factor converts the non-exact equation into an exact one, after
which the methods discussed above can be applied.
5
8 Example: Solving Another ODE
Consider the following ODE:
dy
14xy 3 + 21x2 y 2 =0
dx
∂M ∂N
= 42xy 2 and = 42xy 2
∂y ∂x
∂M ∂N
Since ∂y = ∂x , the equation is exact.
∂F
= 21x2 y 2 + g ′ (y)
∂y
This gives:
g ′ (y) = 0
F (x, y) = 7x2 y 3 + K
7x2 y 3 + K = C
6
Rearranging, we get:
C −K
x2 y 3 =
7
Since K is a constant, it can be absorbed into C, yielding the final solution:
x2 y 3 = C ′
∂N
= cos(xy) − xy sin(xy)
∂x
∂M ∂N
Since ∂y = ∂x , the equation is exact.
sin(xy)
F (x, y) = + g(y)
y
7
9.3 Step 3: Find g(y)
Next, differentiate F (x, y) with respect to y:
∂F ∂ sin(xy)
= + g(y)
∂y ∂y y
Simplifying:
∂F
= x cos(xy) + g ′ (y)
∂y
g ′ (y) = (y − x) cos(xy)
sin(xy)
+ g(y) = C
y
—
10 Non-Exact Equations
If the equation is not exact, we can sometimes make it exact by multiplying
the equation by an integrating factor, which can be a function of x, y, or both.
The integrating factor converts the non-exact equation into an exact one, after
which the methods discussed above can be applied.