Chapter 5: Modeling with Higher-Order Differential Equations - - PowerPoint PPT Presentation

chapter 5 modeling with higher order differential
SMART_READER_LITE
LIVE PREVIEW

Chapter 5: Modeling with Higher-Order Differential Equations - - PowerPoint PPT Presentation

Linear Models: Initial-Value Problems Nonlinear Models Summary Chapter 5: Modeling with Higher-Order Differential Equations Department of Electrical Engineering National Taiwan University ihwang@ntu.edu.tw October 29, 2013 1 / 25 DE


slide-1
SLIDE 1

Linear Models: Initial-Value Problems Nonlinear Models Summary

Chapter 5: Modeling with Higher-Order Differential Equations

王奕翔

Department of Electrical Engineering National Taiwan University ihwang@ntu.edu.tw

October 29, 2013

1 / 25 王奕翔 DE Lecture 8

slide-2
SLIDE 2

Linear Models: Initial-Value Problems Nonlinear Models Summary

1 Linear Models: Initial-Value Problems 2 Nonlinear Models 3 Summary

2 / 25 王奕翔 DE Lecture 8

slide-3
SLIDE 3

Linear Models: Initial-Value Problems Nonlinear Models Summary

Modeling with Second Order Linear Differential Equation

We focus on two linear dynamical systems modeled by the following: ay′′ + by′ + cy = g(t), y(0) = y0, y′(0) = y1, where the initial conditions are at time t = 0. The two systems are: Spring/Mass Systems LRC Series Circuits

3 / 25 王奕翔 DE Lecture 8

slide-4
SLIDE 4

Linear Models: Initial-Value Problems Nonlinear Models Summary

Hooke’s Law + Newton’s Second Law

m

(a) (b) (c) unstretched motion l equilibrium position mg − ks = 0 m l l + s s x

Assume that the equilibrium position is x = 0, and x 向下為正 Due to Hooke’s Law, net force = mg − k(s + x). Note that at equilibrium 淨力為零 = ⇒ mg = ks. Hence, by Newton’s Second Law, mx′′ = mg − k(s + x) = −kx = ⇒ mx′′ + kx = 0 = ⇒ x′′ + k mx = x′′ + ω2x = 0 where ω = √ k/m.

4 / 25 王奕翔 DE Lecture 8

slide-5
SLIDE 5

Linear Models: Initial-Value Problems Nonlinear Models Summary

Free Undamped Motion

Solution to x′′ + ω2x = 0: x(t) = c1 cos ωt + c2 sin ωt . Free: No external force ⇐ ⇒ Homogeneous Equation Undamped: Motion is periodic (period = 2π

ω ), no loss in energy.

Alternative Representation of x(t): x(t) = A sin (ωt + φ) where A := √ c2

1 + c2 2 denotes the amplitude of the motion

φ := tan−1 c1

c2 denotes the initial phase angle

5 / 25 王奕翔 DE Lecture 8

slide-6
SLIDE 6

Linear Models: Initial-Value Problems Nonlinear Models Summary

Free Damped Motion

m

Assume that the mass is in a surrounding medium with a resisting force proportional to the velocity. Net force = mg − k(s + x) − βx′. Hence, by Newton’s Second Law, mx′′ = mg − k(s + x) − βx′ = −kx − βx′ = ⇒ x′′ + β mx′ + k mx = x′′ + 2λx′ + ω2x = 0 where ω = √ k/m and λ = β/2m.

6 / 25 王奕翔 DE Lecture 8

slide-7
SLIDE 7

Linear Models: Initial-Value Problems Nonlinear Models Summary

Solutions of Free Damped Motion

D2 + 2λD + ω2 has two roots −λ ± √ λ2 − ω2. Solution to x′′ + 2λx′ + ω2x = 0: Overdamped λ2 > ω2: x(t) = e−λt ( c1e

√ λ2−ω2t + c2e− √ λ2−ω2t)

Critically damped λ2 = ω2: x(t) = e−λt (c1 + c2t) Underdamped λ2 < ω2: x(t) = e−λt ( c1 cos √ ω2 − λ2t + c2 sin √ ω2 − λ2t )

7 / 25 王奕翔 DE Lecture 8

slide-8
SLIDE 8

Linear Models: Initial-Value Problems Nonlinear Models Summary

t x (a) Overdamped t x (b) Critically damped underdamped undamped t x (c) Underdamped

8 / 25 王奕翔 DE Lecture 8

slide-9
SLIDE 9

Linear Models: Initial-Value Problems Nonlinear Models Summary

Driven Motion

m

Assume that the certain external force f(t) is applied to the system. For example, the support is vertically oscillating. Net force = mg − k(s + x) − βx + f(t). Hence, by Newton’s Second Law, mx′′ = mg − k(s + x) − βx′ + f(t) = −kx − βx′ + f(t) = ⇒ x′′ + β mx′ + k mx = x′′ + 2λx′ + ω2x = F(t) where ω = √ k/m, λ = β/2m, and F(t) = f(t)/m.

9 / 25 王奕翔 DE Lecture 8

slide-10
SLIDE 10

Linear Models: Initial-Value Problems Nonlinear Models Summary

When F(t) is Periodic

Solve x′′ + 2λx′ + ω2x = F0 sin γt.

1 Find the complementary solution:

xc(t) =        e−λt ( c1e

√ λ2−ω2t + c2e− √ λ2−ω2t)

, λ2 > ω2 e−λt (c1 + c2t) , λ2 = ω2 e−λt ( c1 cos √ ω2 − λ2t + c2 sin √ ω2 − λ2t ) , λ2 < ω2

2 Find a particular solution:

xp(t) =      A sin γt + B cos γt, λ ̸= 0 A sin γt + B cos γt, λ = 0, ω2 ̸= γ2 At sin γt + Bt cos γt, λ = 0, ω2 = γ2

10 / 25 王奕翔 DE Lecture 8

slide-11
SLIDE 11

Linear Models: Initial-Value Problems Nonlinear Models Summary

Driven Damped Motion: Steady-State vs.Transient

When λ ̸= 0, it is a damped system, and the general solution is x(t) = xc(t) + A sin γt + B cos γt, where xc(t) = e−λt        ( c1e

√ λ2−ω2t + c2e− √ λ2−ω2t)

, λ2 > ω2 (c1 + c2t) , λ2 = ω2 ( c1 cos √ ω2 − λ2t + c2 sin √ ω2 − λ2t ) , λ2 < ω2 Note that if λ > 0, xc(t) → 0 as t → ∞. ∴ x(t) → A sin γt + B cos γt as t → ∞. Decompose x(t) into two parts: x(t) = xc(t)

  • transient

+A sin γt + B cos γt

  • steady-state

11 / 25 王奕翔 DE Lecture 8

slide-12
SLIDE 12

Linear Models: Initial-Value Problems Nonlinear Models Summary

Pure Resonance

When λ = 0 and ω2 = γ2, it is a undamped system, and the general solution is x(t) = c1 cos ωt + c2 sin ωt + At sin ωt + Bt cos ωt Note that x(t) → ∞ as t → ∞, which is because of resonance.

x t

12 / 25 王奕翔 DE Lecture 8

slide-13
SLIDE 13

Linear Models: Initial-Value Problems Nonlinear Models Summary

Series Circuit

E(t) L C R

Recall from Chapter 1 that the voltage drop across the three elements are L dI

dt, IR, and q C respectively.

Using the fact that I = dq

dt and Kirchhoff’s Law, we

have Lq′′ + Rq′ + q/C = E(t). Overdamped R2 > 4L/C Critically damped R2 = 4L/C Underdamped R2 < 4L/C

13 / 25 王奕翔 DE Lecture 8

slide-14
SLIDE 14

Linear Models: Initial-Value Problems Nonlinear Models Summary

Steady-State Current

E(t) L C R

Example For the external voltage E(t) = E0 sin γt, find the steady-state current. Observation:

1 E0 sin γt = Im

{ E0eiγt} =

1 2i

( E0eiγt − E0e−iγt) .

2 We just need to find the particular solution qp. 3 Superposition principle of nonhomogeneous linear DE: if

qp,1 is a particular solution of Lq′′ + Rq′ + q/C = E0eiγt qp,2 is a particular solution of Lq′′ + Rq′ + q/C = E0e−iγt then qp :=

1 2i (qp,1 − qp,2) is a particular solution of the original DE.

4 q∗

p,1 = qp,2 and therefore qp := 1 2i (qp,1 − qp,2) = Im {qp,1}.

14 / 25 王奕翔 DE Lecture 8

slide-15
SLIDE 15

Linear Models: Initial-Value Problems Nonlinear Models Summary

Steady-State Current

E(t) L C R

Example For the external voltage E(t) = E0 sin γt, find the steady-state current.

We just need to solve the following: Lq′′ + Rq′ + q/C = E0eiγt. Note that the particular solution take the form qseiγt. Plug it in we get qs ( L(iγ)2 + R(iγ) + 1/C ) = E0 = ⇒ qp,1(t) = E0 ( 1

C − Lγ2)

+ iγReiγt. Hence the steady-state (complex) current Ip,1(t) = E0 R + i ( γL −

1 γC

)eiγt

15 / 25 王奕翔 DE Lecture 8

slide-16
SLIDE 16

Linear Models: Initial-Value Problems Nonlinear Models Summary

Steady-State Current

E(t) L C R

Example For the external voltage E(t) = E0 sin γt, find the steady-state current.

Let’s further manipulate the steady-state (complex) current Ip,1(t) = E0 R + i ( γL −

1 γC

)eiγt = E0 R + iXeiγt, where X := γL −

1 γC is called the reactance of the circuit.

The steady-state (real) current is just the imaginary part of the above: Ip(t) = Im {Ip,1(t)} = E0 R2 + X2 (R sin γt − X cos γt) = E0 Z sin (γt − φ) , where Z := √ R2 + X2 is called the impedance of the circuit, φ = tan−1 X

R.

16 / 25 王奕翔 DE Lecture 8

slide-17
SLIDE 17

Linear Models: Initial-Value Problems Nonlinear Models Summary

1 Linear Models: Initial-Value Problems 2 Nonlinear Models 3 Summary

17 / 25 王奕翔 DE Lecture 8

slide-18
SLIDE 18

Linear Models: Initial-Value Problems Nonlinear Models Summary

Suspended Cable

cos wire T2 θ θ sin T2 T2 P2 T1 W P1 θ y x (x, 0) (0, a)

Consider a suspended cable with the weight per unit length = ρ. We would like to find the shape of the cable, that is, the function y(x). At a point (x, y) of the suspended cable, we have { T1 = T2 cos θ, Horizontal Net Force = 0 W = ρs = T2 sin θ, Vertical Net Force = 0 . Here s = ∫ x √ 1 + (dy dx )2 dx is the total cable length between (0, a) and (x, y). Since dy

dx = tan θ = ρs T1 , we get

dy dx = W T1 = ρ T1 ∫ x √ 1 + dy dx

2

dx = ⇒ y′′ = ρ T1 √ 1 + (y′)2 .

18 / 25 王奕翔 DE Lecture 8

slide-19
SLIDE 19

Linear Models: Initial-Value Problems Nonlinear Models Summary

Suspended Cable

cos wire T2 θ θ sin T2 T2 P2 T1 W P1 θ y x (x, 0) (0, a)

Solve y′′ =

ρ T1

√ 1 + (y′)2 (dependent variable y missing) by substituting u := y′: u′ = ρ T1 √ 1 + u2 = ⇒ ∫ du √ 1 + u2 = ∫ ρ T1 dx = ⇒ sinh−1 u = ρ T1 x + c1. Since u(0) = y′(0) = 0, we have c1 = 0. Therefore, u = y′ = sinh ( ρ T1 x ) = ⇒ y = T1 ρ cosh ( ρ T1 x ) + c2. Since y(0) = a, we have c2 = a − T1

ρ . Hence,

y(x) = a + T1 ρ { cosh ( ρ T1 x ) − 1 } .

19 / 25 王奕翔 DE Lecture 8

slide-20
SLIDE 20

Linear Models: Initial-Value Problems Nonlinear Models Summary

Suspended Cable

cos wire T2 θ θ sin T2 T2 P2 T1 W P1 θ y x (x, 0) (0, a)

You can also solve y′′ =

ρ T1

√ 1 + (y′)2 (independent variable x missing) by substituting u := y′: udu dy = ρ T1 √ 1 + u2 = ⇒ ∫ udu √ 1 + u2 = ∫ ρ T1 dy = ⇒ √ 1 + u2 = ρ T1 y + c1. Since u(0) = y′(0) = 0, y(0) = a, we have c1 = 1 −

ρ T1 a.

. . .

20 / 25 王奕翔 DE Lecture 8

slide-21
SLIDE 21

Linear Models: Initial-Value Problems Nonlinear Models Summary

Escape Velocity of a Rocket

v0 y center of Earth R

Consider a rocket (mass = m) launched vertically from the

  • ground. Ignore air resistance. When its fuel is used up, the

distance from the center of Earth is y0 ≈ R, the radius of Earth, and the velocity is v0. We would like to learn how large v0 the motion of the rocket after its fuel is used up. By Newton’s law of universal gravitation, we have: (M := the mass of Earth, R := the radius

  • f Earth, G := the gravitational constant)

my′′ = −GMm y2 = ⇒ y′′ = −GM y2 . Since near the surface of Earth, mg = GMm

R2

= ⇒ GM = gR2, we have y′′ = −gR2 y2 .

21 / 25 王奕翔 DE Lecture 8

slide-22
SLIDE 22

Linear Models: Initial-Value Problems Nonlinear Models Summary

Escape Velocity of a Rocket

v0 y center of Earth R

Again, solve y′′ = − gR2

y2

(independent variable x missing) by substituting v := y′: vdv dy = −gR2y−2 = ⇒ vdv = −gR2y−2dy = ⇒ v2 = 2gR2 y + c1 Since v(0) = v0, y(0) = y0 ≈ R, we have c1 = v2

0 − 2gR.

Hence, v2 = v2

0 + 2gR2

y − 2gR. In order to reach y = ∞, we require v0 > √ 2gR .

22 / 25 王奕翔 DE Lecture 8

slide-23
SLIDE 23

Linear Models: Initial-Value Problems Nonlinear Models Summary

1 Linear Models: Initial-Value Problems 2 Nonlinear Models 3 Summary

23 / 25 王奕翔 DE Lecture 8

slide-24
SLIDE 24

Linear Models: Initial-Value Problems Nonlinear Models Summary

Short Recap

Free vs. Driven Motion ⇐ ⇒ Homogeneous vs. Nonhomogeneous Linear DE Overdamped, Critically Damped, Underdamped, Undamped Transient vs. Steady State Nonlinear Models

24 / 25 王奕翔 DE Lecture 8

slide-25
SLIDE 25

Linear Models: Initial-Value Problems Nonlinear Models Summary

Self-Practice Exercises

5-1: 1, 7, 13, 21, 35, 49, 57 5-3: 7, 15, 17, 19

25 / 25 王奕翔 DE Lecture 8