You are on page 1of 106

Topic 1.

Ordinary differential equations


B. M. Rodríguez-Lara
All images taken from the textbook
1.2 Second-order differential equations
• First-order differential equation:
• Only the first derivative of the unknown function appears.

• Second-order differential equation:


• Up to the second derivative but no higher derivative appear.

• Simplest nontrivial example are linear:

2
1.2 Second-order differential equations
• First-order differential equation:
• Only the first derivative of the unknown function appears.

• Second-order differential equation:


• Up to the second derivative but no higher derivative appear.

• Simplest nontrivial example are linear:

3
1.2 Second-order differential equations
• First-order differential equation:
• Only the first derivative of the unknown function appears.

• Second-order differential equation:


• Up to the second derivative but no higher derivative appear.

• Second-order linear differential equation:

4
1.2 Second-order differential equations
• Example:

5
1.2 Second-order differential equations
• Example:

6
1.2 Second-order differential equations
• Example:

7
1.2 Second-order differential equations
• Example:

• Initial condition:

8
1.2 Second-order differential equations
• Example:

• Initial condition:

It is not enough to fully determine the solution!

9
1.2 Second-order differential equations
• Example:

• Initial condition:

• Initial slope:

10
1.2 Second-order differential equations
• Example:

• Initial condition:

• Initial slope:

We need two initial conditions! 11


1.2 Second-order differential equations
• The second-order linear initial value problema has a unique
solution if and only if

12
1.2 Second-order differential equations
• Second-order homogeneous linear differential equation

• Particular solutions

• Linear combination is also a solution:

13
1.2 Second-order differential equations
• Linear Independence
Two functions are linearly independent on an open interval if neither
function is a constant multiple of the other for all values in the interval

• Linear dependence
If one function is a constant multiple of another in the whole interval, these
functions are linearly dependent.

14
1.2 Second-order differential equations
• How can we test for linear Independence?

15
1.2 Second-order differential equations
• How can we test for linear Independence?
The Wronskian test

Linear Independence:

16
Breathe…
1.2 Second-order differential equations
• Second-order linear homogeneous equation with constant
coefficients

18
1.2 Second-order differential equations
• Second-order linear homogeneous equation with constant
coefficients

• Suggest a solution of the exponential form

19
1.2 Second-order differential equations
• Second-order linear homogeneous equation with constant
coefficients

• Suggest a solution of the exponential form

• Substitution leads to

20
1.2 Second-order differential equations
• Second-order linear homogeneous equation with constant
coefficients

• Suggest a solution of the exponential form

• Substitution leads to an algebraic equation

21
1.2 Second-order differential equations
• Second-order linear homogeneous equation with constant
coefficients

• Suggest a solution of the exponential form

• The roots for the algebraic equation

22
1.2 Second-order differential equations
• Second-order linear homogeneous equation with constant
coefficients

• Three cases
• Two real distinct roots

• Repeated roots

• Complex roots

23
1.2 Second-order differential equations
• Second-order linear homogeneous equation with constant
coefficients

• Three cases
• Two real distinct roots

• Repeated roots

• Complex roots

24
1.2 Second-order differential equations
• Example, solve the following differential equation

25
1.2 Second-order differential equations
• Example, solve the following differential equation

It involves the function and its derivatives, an anzats:

26
1.2 Second-order differential equations
• Example, solve the following differential equation

This transforms the differential equation into the algebraic equation:

27
1.2 Second-order differential equations
• Example, solve the following differential equation

This transforms the differential equation into the algebraic equation:

We have real repeated roots!

28
1.2 Second-order differential equations
• Example, solve the following differential equation

This transforms the differential equation into the algebraic equation:

We have real repeated roots!

29
1.2 Second-order differential equations
• Example, solve the following differential equation

Then, one particular solution looks like

30
1.2 Second-order differential equations
• Example, solve the following differential equation

Then, one particular solution looks like

But we have two repeated roots, so there’s another solution

31
1.2 Second-order differential equations
• Example, solve the following differential equation

We have two particular solutions

32
1.2 Second-order differential equations
• Example, solve the following differential equation

We have two particular solutions

The Wroskian test

33
1.2 Second-order differential equations
• Example, solve the following differential equation

We have two particular solutions

The Wroskian test

34
1.2 Second-order differential equations
• Example, solve the following differential equation

We have two particular solutions

The Wroskian test

The solutions are linearly independent!


35
Breathe…
1.2 Second-order differential equations
• What happens with the non-homogeneous case?

37
1.2 Second-order differential equations
• What happens with the non-homogeneous case?

• We know how to craft the homogeneous solution

38
1.2 Second-order differential equations
• What happens with the non-homogeneous case?

• We know how to craft the homogeneous solution

• We can propose a general solution from the homogenous solution and any
particular solution to the non-homogeneous case

39
1.2 Second-order differential equations
• How to find the solution for the general non-homogeneous equation?

40
1.2 Second-order differential equations
• How to find the solution for the general non-homogeneous equation?

• We can use the method of variation of parameters

41
1.2 Second-order differential equations
• How to find the solution for the general non-homogeneous equation?

• We can use the method of variation of parameters

• This is hard, we introduce a restriction

42
1.2 Second-order differential equations
• How to find the solution for the general non-homogeneous equation?

• We can use the method of variation of parameters

• This is hard, we introduce a (seemingly arbitrary) restriction

43
1.2 Second-order differential equations
• How to find the solution for the general non-homogeneous equation?

• We can use the method of variation of parameters

44
1.2 Second-order differential equations
• How to find the solution for the general non-homogeneous equation?

• We can use the method of variation of parameters

• Substitute in the non-homogeneous equation!

45
1.2 Second-order differential equations
• How to find the solution for the general non-homogeneous equation?

• Substitute in the non-homogeneous equation

46
1.2 Second-order differential equations
• How to find the solution for the general non-homogeneous equation?

• Substitute in the non-homogeneous equation

• Solutions to this system of equations

47
1.2 Second-order differential equations
• How to find the solution for the general non-homogeneous equation?

• Substitute in the non-homogeneous equation

• Solutions to this system of equations

48
1.2 Second-order differential equations
• How to find the solution for the general non-homogeneous equation?

• Solutions to this system of equations

• With the particular solution

49
1.2 Second-order differential equations
• The general non-homogeneous equation

• The particular solution

50
1.2 Second-order differential equations
• What about the following non-homogeneous equation?

51
1.2 Second-order differential equations
• What about the following non-homogeneous equation?

• The superposition principle applies

52
Breathe…
1.2 Second-order differential equations
• How can we describe the motion of a spring-mass system?

54
1.2 Second-order differential equations
• Spring-mass motion
• Stable equilibrium point
The position where the spring is neither
compressed nor stretched
• Restoring force
The force exerted by the spring on the
block always points towards the stable
equilibrium point
• Hooke’s law
The force exerted by the spring on the
block is proportional to the displacement
from the s.e.p.

𝐹 = −𝑘 𝑥
55
1.2 Second-order differential equations
• Spring-mass motion
𝐹 = −𝑘 𝑥

56
1.2 Second-order differential equations
• Spring-mass motion
𝐹 = −𝑘 𝑥
𝑚𝑎 = −𝑘 𝑥

57
1.2 Second-order differential equations
• Spring-mass motion
𝐹 = −𝑘 𝑥
𝑚𝑎 = −𝑘 𝑥
d2 𝑥
𝑚 2 = −𝑘 𝑥
d𝑡

58
1.2 Second-order differential equations
• Spring-mass motion
𝐹 = −𝑘 𝑥
𝑚𝑎 = −𝑘 𝑥
d2 𝑥
𝑚 2 = −𝑘 𝑥
d𝑡
d2 𝑥 𝑘
2
=− 𝑥
d𝑡 𝑚

59
1.2 Second-order differential equations
• Spring-mass motion
𝐹 = −𝑘 𝑥
𝑚𝑎 = −𝑘 𝑥
d2 𝑥
𝑚 2 = −𝑘 𝑥
d𝑡
d2 𝑥 𝑘
2
=− 𝑥
d𝑡 𝑚
d2 𝑥 2𝑥
𝑘
= −𝜔 𝜔=
d𝑡 2 𝑚
60
1.2 Second-order differential equations
• Spring-mass motion
d2 𝑥 2𝑥 = 0
+ 𝜔
d𝑡 2

• Using what we already know:

61
1.2 Second-order differential equations
• Spring-mass motion
d2 𝑥 2𝑥 = 0
+ 𝜔
d𝑡 2

• Using what we already know:

62
Breathe…
1.2 Second-order differential equations
• Spring-mass motion with losses
d2 𝑥 d𝑥 2𝑥 = 0
+ 𝛾 + 𝜔
d𝑡 2 d𝑡

• Using what we already know:

We have three possible regimes! 64


1.2 Second-order differential equations
• Spring-mass motion with losses • Two real, different roots
d2 𝑥 d𝑥 2𝑥 = 0
+ 𝛾 + 𝜔
d𝑡 2 d𝑡
• Two real, equal roots
• Using what we already know:

• Two imaginary, cc roots

65
1.2 Second-order differential equations
• Spring-mass motion with losses • Two real, different roots
d2 𝑥 d𝑥 2𝑥 = 0
+ 𝛾 + 𝜔
d𝑡 2 d𝑡
• Two real, equal roots
• Using what we already know:

• Two imaginary, cc roots

66
1.2 Second-order differential equations
• Two real, different roots

• Overdamping!

67
1.2 Second-order differential equations
• Two real, equal roots

• Critical damping!

68
1.2 Second-order differential equations
• Two imaginary, cc roots

• Underdamped!

69
Breathe…
1.2 Second-order differential equations
• Spring-mass motion with losses
and driving
d2 𝑥 d𝑥 2 𝑥 = 𝑓(𝑥)
+ 𝛾 + 𝜔
d𝑡 2 d𝑡

71
1.2 Second-order differential equations
• Spring-mass motion with losses • Overdamped
and driving
d2 𝑥 d𝑥 2 𝑥 = 𝑓(𝑥)
+ 𝛾 + 𝜔
d𝑡 2 d𝑡 • Critical damped

• The homogeneous equation:


• Underdamped

72
1.2 Second-order differential equations
• Spring-mass motion with losses and driving

d2 𝑥 d𝑥 2 𝑥 = 𝑓(𝑥)
+ 𝛾 + 𝜔
d𝑡 2 d𝑡

• The particular solution:

73
1.2 Second-order differential equations
• Spring-mass motion with losses and periodic driving
d2 𝑥 d𝑥
+𝛾 + 𝜔2 𝑥 = Ω cos𝜔𝑑 t
d𝑡 2 d𝑡

• The particular solution (undetermined coefficients):

74
1.2 Second-order differential equations
• What happens if there is driving but no losses?
d2 𝑥
+ 𝜔2 𝑥 = Ω cos𝜔𝑑 t
d𝑡 2

75
1.2 Second-order differential equations
• Spring-mass motion with periodic driving
d2 𝑥
+ 𝜔2 𝑥 = Ω cos𝜔𝑑 t
d𝑡 2

• The homogeneous solution

76
1.2 Second-order differential equations
• Spring-mass motion with periodic driving
d2 𝑥
+ 𝜔2 𝑥 = Ω cos𝜔𝑑 t
d𝑡 2

• The homogeneous solution

• The particular solution

77
1.2 Second-order differential equations
• Spring-mass motion with periodic driving
d2 𝑥
+ 𝜔2 𝑥 = Ω cos𝜔𝑑 t
d𝑡 2

• The homogeneous solution

• The particular solution

78
1.2 Second-order differential equations
• Spring-mass motion with periodic driving
d2 𝑥
+ 𝜔2 𝑥 = Ω cos𝜔𝑑 t
d𝑡 2

• The general solution


The book has a typo

79
1.2 Second-order differential equations
• Spring-mass motion with
periodic driving
d2 𝑥
+ 𝜔2 𝑥 = Ω cos𝜔𝑑 t
d𝑡 2

• The general solution

80
1.2 Second-order differential equations
• What happens when the driving is on-resonance?
d2 𝑥
+ 𝜔2 𝑥 = Ω cos 𝜔𝑡
d𝑡 2

81
1.2 Second-order differential equations
• Spring-mass motion with resonant driving
d2 𝑥 2 𝑥 = Ω cos𝜔𝑡
+ 𝜔
d𝑡 2

• The homogeneous solution

• The particular solution

82
1.2 Second-order differential equations
• Spring-mass motion with periodic driving
d2 𝑥
+ 𝜔2 𝑥 = Ω cos𝜔𝑑 t
d𝑡 2

• The general solution

83
1.2 Second-order differential equations
• Spring-mass motion with
periodic driving
d2 𝑥
+ 𝜔2 𝑥 = Ω cos𝜔𝑑 t
d𝑡 2

• The general solution

84
Breathe…
1.2 Second-order differential equations
• The simple pendulum

• Choose a coordinate system with


one axis parallel to the string and
the other perpendicular to the
string

86
1.2 Second-order differential equations
• The simple pendulum

• Choose a coordinate system with


one axis parallel to the string and
the other perpendicular to the
string
෍ 𝐹∥ = 0

෍ 𝐹⊥ = 𝑚𝑎

87
1.2 Second-order differential equations
• The simple pendulum

෍ 𝐹∥ = 0 𝑇 = 𝑚𝑔cosθ

෍ 𝐹⊥ = 𝑚𝑎 𝐹𝑡 = −𝑚𝑔 sin θ

88
1.2 Second-order differential equations
• The simple pendulum
𝐹𝑡 = −𝑚𝑔 sin θ

89
1.2 Second-order differential equations
• The simple pendulum
𝑚𝑎 = −𝑚𝑔 sin θ

90
1.2 Second-order differential equations
• The simple pendulum
𝑎 = −𝑔 sin θ

• This looks familiar but not so much

91
1.2 Second-order differential equations
• The simple pendulum
𝑎 = −𝑔 sin θ

• Let us think about small angles

sin𝜃 ≈ 𝜃

92
1.2 Second-order differential equations
• The simple pendulum for small
angles
𝑎 = −𝑔 θ

• We have displacements in one


side and angles in the other

93
1.2 Second-order differential equations
• The simple pendulum for small
angles
d2 𝑠
2
= −𝑔 θ
d𝑡

• We have displacements in one


side and angles in the other

94
1.2 Second-order differential equations
• The simple pendulum for small
angles
d2 𝑠
2
= −𝑔 θ
d𝑡

• We have displacements in one


side and angles in the other
𝑠=𝜃𝐿

95
1.2 Second-order differential equations
• The simple pendulum for small
angles
d2 𝑠
2
= −𝑔 θ
d𝑡

• We have displacements in one


side and angles in the other
𝑠=𝜃𝐿
d2 𝑠 d2 𝜃
2
=𝐿 2
d𝑡 d𝑡
96
1.2 Second-order differential equations
• The simple pendulum for small
angles
d2 𝜃
𝐿 2 = −𝑔 θ
d𝑡

97
1.2 Second-order differential equations
• The simple pendulum for small
angles
d2 𝜃 𝑔
2
=− θ
d𝑡 𝐿

• We now have the correct units in


each side and this looks exactly
like the spring-mass equation
d2 𝑥 2𝑥
𝑘
= −𝜔 𝜔=
d𝑡 2 𝑚

98
1.2 Second-order differential equations
• The simple pendulum for small
angles
d2 𝜃 𝑔
= −𝜔 2θ 𝜔=
d𝑡 2 𝐿

• We now have the correct units in


each side and this looks exactly
like the spring-mass equation
d2 𝑥 2𝑥
𝑘
= −𝜔 𝜔=
d𝑡 2 𝑚

Same equations, same solutions! 99


1.2 Second-order differential equations
• We already know how to deal with
this type of systems: Torque!

෍ 𝜏 = 𝐼𝛼

d2 𝜃
−𝑚𝑔dsin𝜃 = 𝐼 2
d𝑡

100
1.2 Second-order differential equations
• The equation of motion
d2 𝜃 𝑚𝑔𝑑
2
=− sin𝜃
d𝑡 𝐼

101
1.2 Second-order differential equations
• The equation of motion for small
angles
d2 𝜃 𝑚𝑔𝑑
2
=− 𝜃
d𝑡 𝐼

102
1.2 Second-order differential equations
• The equation of motion for small
angles
d2 𝜃 𝑚𝑔𝑑
2
= −𝜔𝜃 𝜔=
d𝑡 𝐼

103
Breathe…
1.2 Second-order differential equations
• Euler’s differential equation

• Accepts a transformation

• Such that

• The equation becomes an equation of constant coefficients

We already know how to solve this! 105


End of Topic 1

106

You might also like