






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







CH2 First-Order Differential Equations
2.1 Solution Curves Without a Solution
2.2 Separate Variables
Definition 2.2.1 Separate Equation
A first-order DE of the form
dy
dx
= g
x
h
y
is said to be separate.
Solution:
dy
dx
= g
x
h
y
dy
h(y)
= g(x)dx
Let p(y) =
1
h(y)
and y = ϕ(x)
p
y
dy = g
x
dx
∫ p(y)dy = ∫ g(x)dx
Let H(y) and G(x) are antiderivatives of p(y) and g(x), respectively.
y
x
2.3 Linear Equations
Definition 2.3.1 Linear Equation
A first-order ODE of the form
a 1
x
dy
dx
0
x
y = g
x
is a linear equation in the dependent variable y.
If g(x) = 0 , the linear equation is homogeneous.
If g(x) ≠ 0 , the linear equation is nonhomogeneous.
Standard form of a linear equation:
dy
dx
x
y = f
x
The Property:
Its solution is the sum of the two solutions: y = y c
p
y
c
is the solution of the homogeneous equation.
y p
is the solution of the nonhomogeneous equation.
d
dx
[y
c
p
] + P(x)[y
c
p
dy
c
dx
c
dy
p
dx
p
] = 0 + f(x) = f(x)
The homogeneous equation is separable.
dy
y
y
c
= ce
− ∫
P(x) dx
Let y
1
(x) = e
− ∫ P(x) dx
y c
= cy
1
The procedure:
We can find a particular solution of equation by variation of parameters.
Let u is a function such that y p
= u
x
y
1
x
= u
x
e
− ∫
P(x) dx
dy
p
dx
x
y
p
= f
x
du
dx
y
1
dy
1
dx
x
y
1
= f
x
du
dx
y
1
dy
1
dx
x
y
1
] = f
x
du
dx
y
1
= f
x
du =
f
x
y
1
dx
u = ∫
f
x
y
1
dx
y
p
= uy
1
f(x)
y
1
dx) e
− ∫
P(x) dx
= e
− ∫
P(x) dx
e
∫
P(x) dx
f
x
dx
y = y
c
p
= ce
− ∫
P(x) dx
− ∫
P(x) dx
e
∫
P(x) dx
f
x
dx
An easier way to solve the ODE:
e
∫
P(x) dx
y = c +
e
∫
P(x) dx
f
x
dx
d
dx
[e
∫
P(x) dx
y] = e
∫
P(x) dx
f
x
e
∫
P(x) dx
dy
dx
x
e
∫
P(x) dx
y = e
∫
P(x) dx
f
x
The equation would be easier to solve by multiplying e
∫
P(x) dx
to the equation.
x
− 4
y =
x − 1
e
x
y = x
5
e
x
− x
4
e
x
4
, 0 < x < ∞.
Values of x for which a
1
(x) = 0 are called singular points of the equation.
In ex3. x = 0 is a singular point.
Ex.
Solve
dy
dx
x
e
∫
P(x) dx
= e
x
e
x
dy
dx
x
y = xe
x
d
dx
e
x
y
= xe
x
e
x
y =
x − 1
e
x
y = x − 1 + ce
−x
y
= 0 − 1 + c = 4
c = 5
y = x − 1 + 5 e
−x
The contribute of y
c
= ce
−x
to the values of y becomes negligible for increasing
values of x. We say y
c
= ce
−x
is a transient term.
Ex6.
Solve
dy
dx
x
, y
= 0 where f
x
For x ∈ [ 0 , 1 ]
x
e
∫
P(x) dx
= e
x
e
x
dy
dx
x
y = e
x
d
dx
e
x
y
= e
x
e
x
y = e
x
y = 1 + ce
−x
y
= 1 + c = 0
c = − 1
y = 1 − e
−x
For x ∈ ( 1 , ∞)
d
dx
e
x
y
e
x
y = c
2
y = c 2
e
−x
y = {
−𝑥
2
−𝑥
Functions defined by integrals:
Error function:
erf(x) =
π
∫ e
−t
2
x
0
dt
erfc(x) =
π
∫ e
−t
2
∞
x
dt
Ex7.
Solve the IVP
dy
dx
− 2xy = 2 , y
x
= −2x
e
∫
P(x) dx
= e
−x
2
e
−x
2
dy
dx
− 2xe
−x
2
y = 2 e
−x
2
e
−x
2
y = 2 ∫ e
−t
2
x
0
dt + c
y = 2 e
x
2
∫ e
−t
2
x
0
dt + ce
x
2
= e
x
2
[c + √
πerf(x)]
y
= c = 1
y = e
x
2
πerf
x
2.4 Exact Equations
Differential of a functions of two variables
If 𝑧 = 𝑓(𝑥, 𝑦) is a function of two variables with continuous first partial derivatives
in a region 𝑅 of the xy-plane, then its differential is
In the special case when 𝑓(𝑥, 𝑦) = 𝑐, where 𝑐 is a constant, then
Integrating factors
If 𝑀(𝑥, 𝑦)𝑑𝑥 + 𝑁(𝑥, 𝑦)𝑑𝑦 = 0 is not an exact equation. We can multiply an
integrating factor 𝜇(𝑥, 𝑦) so that 𝜇(𝑥, 𝑦)𝑀(𝑥, 𝑦)𝑑𝑥 + 𝜇(𝑥, 𝑦)𝑁(𝑥, 𝑦)𝑑𝑦 = 0 is an
exact equation.
To find 𝜇
𝑦
𝑥
𝑦
𝑦
𝑥
𝑥
𝑥
𝑦
𝑦
𝑥
Suppose 𝜇 depends on 𝑥
𝑦
𝑥
∫
𝑀
𝑦
−𝑁
𝑥
𝑁
𝑑𝑥
𝑥
𝑦
∫
𝑁
𝑥
−𝑀
𝑦
𝑀
𝑑𝑦
2 .5 Solutions by Substitutions
Substitutions
Often the first step in solving differential equation consists of transforming it into
another differential equation by means of substitution.
Ex.
Suppose we wish to transform the first-order ODE
𝑑𝑦
𝑑𝑥
by the substitution
𝑦 = 𝑔(𝑥, 𝑢), where 𝑢 is regarded as a function of the variable 𝑥.
𝑥
𝑦
𝑥
𝑦
𝑥, u
If we can determine 𝑢 = 𝜙(𝑥) of this last equation, then a solution of the original
differential equation is 𝑦 = 𝑔
Homogeneous Equations
If a function 𝑓 possesses the property 𝑓(𝑡𝑥, 𝑡𝑦) = 𝑡
𝛼
𝑓(𝑥, 𝑦) for 𝛼 ∈ ℝ, then 𝑓 is
said to be a homogeneous function of degree 𝛼.
A first-order ODE in differential form
is said to be homogeneous if both coefficient functions 𝑀 and 𝑁 are
homogeneous equations of the same degree.
If 𝑀 and 𝑁 are homogeneous functions of degree 𝛼. We can also write
𝛼
and 𝑁
𝛼
, where 𝑢 =
𝑦
𝑥
and
𝛼
and 𝑁
𝛼
, where 𝑣 =
𝑥
𝑦
𝛼
𝛼
Ex.
Solve (𝑥
2
2
2
Let 𝑦 = 𝑢𝑥
2
2
2
2
2
2
2
ln
− 𝑢 + 2 ln
ln |
2
Bernoulli’s equation :
The differential equation
𝑛
where 𝑛 ∈ ℝ, is called Bernoulli’s equation.
When 𝑛 = 0 or 𝑛 = 1 , the equation is linear.
When 𝑛 ≠ 0 and 𝑛 ≠ 1 , the substitution 𝑢 = 𝑦
1 −𝑛
reduces the equation to a
2
ln |
ln |
1
6 𝑥
1
6 𝑥
1
6 𝑥
1
6 𝑥
1
6 𝑥
1
1
6 𝑥
6 𝑥
Riccati’s equation:
The differential equation has the form
2
is called Riccati’s equation.
(unsolved)
2 .6 A Numerical Method
Use the Tangent Line:
Assume that the first-order IVP
′
0
0
possesses a solution. One way of approximating this solution is to use tangent lines.
e.g.
′
2
The slope at the point ( 2 , 4 ) is 𝑦
′
2
Euler’s Method :
If we have a first-order IVP
′
0
0
0
0
0
0
Let ℎ be a positive increment of the 𝑥-axis.
1
1
1
0
0
0
0
0
0
0
0
2
2
1
1
1
𝑛+ 1
𝑛
𝑛
𝑛
Ex.
Consider the IVP 𝑦
′
2
= 4. Use Euler’s Method to obtain an
approximation of 𝑦( 2. 5 ) using first ℎ = 0. 1 and then ℎ = 0. 05.
1
0
0
0
2
1
1
1
and so on.
We can get
Absolute error:
Absolute error= | actual value− approximation |
Relative error:
Relative error=
absolute error
|actual value|
Percentage relative error:
Percentage relative error=
absolute error
|actual value|