Docsity

Basic Differential Equations, Lecture Notes - Advanced Calculus, Study notes of Calculus

Toggle sidebar
bg1
Math 128A Problem Set 9
Basic Differential Equations
Adrian Down
April 06, 2006
Problem 1
Part a
We are given that x(t= 0) >0. Thus xincreases with time and is never
equal to 0.
˙x=xαand x(t= 0) >0
⇒x(t)>0∀t(1.a.1)
Since x6= 0 for any t, I divide the given equation by xαand integrate
with respect to time,
˙x
xα= 1
⇒
˙x
xαdt =t+C(1.a.2)
The integral in (1.a.2) must be treated differently depending on the value
of α.
If α= 1, the solution to (1.a.2) becomes an exponential,
˙x
xdt = ln x=t+c
⇒x=Ket(1.a.3)
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Basic Differential Equations, Lecture Notes - Advanced Calculus and more Study notes Calculus in PDF only on Docsity!

Math 128A Problem Set 9

Basic Differential Equations

Adrian Down

April 06, 2006

Problem 1

Part a

We are given that x(t = 0) > 0. Thus x increases with time and is never equal to 0.

x˙ = xα^ and x(t = 0) > 0 ⇒ x(t) > 0 ∀t (1.a.1)

Since x 6 = 0 for any t, I divide the given equation by xα^ and integrate with respect to time,

x˙ xα^

x˙ xα^

dt = t + C (1.a.2)

The integral in (1.a.2) must be treated differently depending on the value of α. If α = 1, the solution to (1.a.2) becomes an exponential,

x˙ x

dt = ln x = t + c

⇒ x = Ket^ (1.a.3)

The constant K is determined by the given initial conditions. Substituting t = 0 into (1.a.3) determines K and hence x(t).

x 0 = Ke^0 (1.a.4) ⇒ x = x 0 et^ (1.a.5) In the case that α 6 = 1, the solution to (1.a.2) becomes a power law,

x˙ xα^

dt =

x^1 −α 1 − α

= t + c (1.a.6)

The constant c is determined by the given initial conditions. Substituting t = 0 into (1.a.6) determines c and after some algebra, x(t).

x^10 −α 1 − α

= c

x^1 −α 1 − α

= t +

x^10 −α 1 − α

x^1 −α^ = t(1 − α) + x^10 − α= x^10 −α

1 + t ·

1 − α x^10 −α

x = x 0

1 + t ·

1 − α x^10 −α

) (^1) − (^1) α (1.a.7)

The solution (1.a.7) has discontinuities if α > 1. The problem arises because if α > 1, then 1 − α < 0, whereas x^10 − α> 0 ∀ values of α, so the second term in the parentheses in (1.a.7) becomes negative. The quantity in parentheses in (1.a.7) approaches 0 for certain values of t. Because this quantity is raised to a negative power, a vertical assymptote results. The value of t at which this assymptote occurs depends on the value of x 0 ,

1 + t ·

1 − α x^10 −α

⇒ t =

x^10 −α α − 1

(1.a.8)

This singular behavior only occurs if α > 1. If α ∈ (0, 1], the solution (1.a.6) or (1.a.2) hold ∀t ≥ 0.

Part b

See figure 1.

I recast the argument of the logarithm in (1.c.3) using Taylor expansions in the small quantity ǫ about ǫ = 0. Since I take the limit as ǫ → 0 +, I carry the calculations only to the first order in ǫ. First, I Taylor expand f = x− 0 ǫ,

f = x− 0 ǫ f (0) = x^00 = 1

∂f ∂ǫ

= −x− 0 ǫlog x 0

∂f ∂ǫ

(0) = − log x 0

x− 0 ǫ= 1 − log(x 0 )ǫ + O(ǫ^2 ) (1.c.4)

I substitute 1.c.4 into the argument of the logarithm in 1.c.3,

log

1 + t ·

ǫ xǫ 0

= log

1 + tǫ

1 − log(x 0 )ǫ + O(ǫ^2 )

= log

1 + tǫ + O(ǫ^2 )

(1.c.5)

Now I consider the expansion of log(1 +ζ) in the small parameter ζ about ζ = 0,

f = log (1 + ζ) f (0) = log(1) = 0

∂f ∂ζ

1 + ζ

∂f ∂ζ

log(1 + ζ) = ζ + O(ζ^2 ) (1.c.6)

For any finite value of t, tǫ becomes arbitrarily small as ǫ → 0. Hence (1.c.5) becomes,

log

1 + tǫ + O(ǫ^2 )

= tǫ + O(ǫ^2 ) (1.c.7)

Substituting (1.c.7) into (1.c.3),

x = x 0 e

(^1) ǫ (tǫ+O(ǫ (^2) )) = x 0 et+O(ǫ)^ (1.c.8)

Taking the limit as ǫ → 0 (1.c.8), terms of order ǫ become negliable,

lim ǫ→ 0 +^

x = x 0 et^ (1.c.9)

Problem 2

Part a

I multiply both sides of the given ODE by a convenient factor,

eφ(x)^ (C′(x) + φ′(x)C(x)) = −eφ(x)f (2.a.1)

I notice that the left side of (2.a.1) is the derivative of a product of functions,

( eφ(x)C(x)

= φ′(x)eφ(x)C(x) + eφ(x)C′(x) ⇒

eφ(x)C(x)

= −eφ(x)f (2.a.2)

I integrate both sides of (2.a.2) with respect to a dummy variable χ. The integral of the left side is easily performed using the Fundamental Theorem of Calculus,

 x

0

eφ(χ)C(χ)

dχ = −

 x

0

eφ(χ)f dχ

eφ(x)C(x) − eφ(0)C(0) = −f

 x

0

eφ(χ)dχ (2.a.3)

I (2.a.3) simplify by substituting the given values of φ(0) = 0 and C(0) = c 0.

eφ(x)C(x) − c 0 = −f

 x

0

eφ(χ)dχ

(2.a.4)

I isolate C(x) in (2.a.4) to find the solution,

C(x) = c 0 e−φ(x)^ − f

 x

0

eφ(χ)−φ(x)dχ (2.a.5)

Part b

To find a formula for f , I take the integration in (2.a.3) from 0 to h.

eφ(h)C(h) − c 0 = −f

 h

0

eφ(x)dx (2.b.1)

I simplify (2.b.1) using the given value of C(h) = 0.

c 0 = f

 h

0

eφ(x)dx

⇒ f =

c 0

 h

0 e φ(x)dx

(2.b.2)

I write the eigenvectors as vi. The general solution of the differential equation is a linear combination of the two solutions in (3.a.6), ( x 1 x 2

= α

v 11 v 12

eλ^1 t^ + β

v 21 v 22

eλ^2 t^ (3.a.7)

(3.a.7) can be simplified by writing the eigenvectors as the columns of a matrix V,

x = V

eλ^1 t^0 0 eλ^2 t

α β

(3.a.8)

The constants α and β are determined by the initial conditions, taking t = 0 in (3.a.8). Because eigenvectors are linearly independant, the columns of V are linearly indepedant, and thus V is invertible. ( x 1 (0) x 2 (0)

= V

α β

α β

= V−^1 x(0) (3.a.9)

Substituting (3.a.9) into (3.a.8), I obtain the general form of the solution of x,

x = V

eλ^1 t^0 0 eλ^2 t

V−^1 x(0) (3.a.10)

I now consider the given coefficient matrices A. By (3.a.10), to find the general solution for x, I need only diagonalize A. Solving the characteristic equation of the given A,

(λ − 2)^2 − 1 = 0 λ^2 − 4 λ − 3 = 0 (λ − 1) (λ − 3) = 0 λ ∈ { 1 , 3 } (3.a.11)

I find the eigenvectors of A by considering the first row of the eigenvalue equation. ( 2 − 1 − 1 2

α β

= λi ·

α β

⇒ (2 − λi)α = β (3.a.12)

Taking λ 1 = 1 in (3.a.12)

λ 1 = 1 α = β

An unnormalized eigenvector is,

v 1 =

(3.a.13)

Taking λ 2 = 3 in (3.a.12)

λ 2 = 3 − α = β

An unnormalized eigenvector is,

v 1 =

(3.a.14)

The matrix of eigenvalues and its inverse is,

V =

(3.a.15)

V−^1 =

(3.a.16)

The general solution to the differential equation is,

x =

et^0 0 e^3 t

x(0) (3.a.17)

The phase portrait of (3.a.17) is shown in figure 2.

Part b

I use the same method as in part a above. Solving the characteristic equation of the given A,

(λ − 1) (λ − 2) − 6 = 0 λ^2 − 3 λ − 4 = 0 (λ + 1) (λ − 4) = 0 λ ∈ { − 1 , 4 } (3.b.1)

An unnormalized eigenvector is,

v 1 =

(3.b.4)

The matrix of eigenvalues and its inverse is,

V =

(3.b.5)

V−^1 =

(3.b.6)

The general solution to the differential equation is,

x =

e−t^0 0 e^4 t

x(0) (3.b.7)

The phase portrait of (3.b.7) is shown in figure 3.

−10 −5 0 5 10

−

−

−

−

0

2

4

6

8

(^10) c1 = −1.0 , c2 = −1. c1 = −1.0 , c2 = −0.5 c1 = −1.0 , c2 = +0. c1 = −1.0 , c2 = +0.5 c1 = −1.0 , c2 = +1. c1 = −0.5 , c2 = −1.0 c1 = −0.5 , c2 = −0. c1 = −0.5 , c2 = +0.0 c1 = −0.5 , c2 = +0. c1 = −0.5 , c2 = +1.0 c1 = +0.0 , c2 = −1. c1 = +0.0 , c2 = −0.5 c1 = +0.0 , c2 = +0. c1 = +0.0 , c2 = +0.5 c1 = +0.0 , c2 = +1. c1 = +0.5 , c2 = −1.0 c1 = +0.5 , c2 = −0. c1 = +0.5 , c2 = +0.0 c1 = +0.5 , c2 = +0. c1 = +0.5 , c2 = +1.0 c1 = +1.0 , c2 = −1. c1 = +1.0 , c2 = −0.5 c1 = +1.0 , c2 = +0. c1 = +1.0 , c2 = +0.5 c1 = +1.0 , c2 = +1.

Figure 3: Phase portrait of ˙x = Ax with A as in part 3b.

Part c

Instead of solving the eigenvalue equation, I seek a complex solution of the form z = x 1 + ıx 2. I match this assumed form with the given expressions for the derivative of x,

x˙ 1 = x 1 − x 2 x˙ 2 = x 1 + x 2 z ˙ = ˙x 1 + ı x˙ 2 = (x 1 − x 2 ) + ı(x 1 + x 2 ) = (x 1 + ıx 2 ) + ı(x 1 + ıx 2 ) = z(1 + ı) (3.c.1)

Thus the solution z is an exponential,

z = Ze(1+ı)t^ (3.c.2)

The complex constant Z is determined by the initial conditions. I recast (3.c.2) by writing Z in polar notation

Z = Reıφ ⇒ z = Re(1+ı)t+ıφ = Reteı(t+φ)^ (3.c.3)

From the definition of z, x 1 and x 2 are the real and imaginary parts, respec- tively, of (3.c.3).

x 1 = Ret^ cos (t + φ) x 2 = Ret^ sin(t + φ) (3.c.4)

The phase portrait of (3.c.4) is shown in figure 4.

Problem 4

Part a

I develop the general theory derived in part 3a above to the case of inhomo- geneous differential equations of the form,

x˙ = Ax + F(t) (4.a.1)

To use some notation from the previous derivation, I define the matrix S of homogeneous solutions to (4.a.1),

S = V

eλ^1 t^0 0 eλ^2 t

(4.a.2)

S˙ = AS. With this substitution, (4.a.4) becomes,

 ASC + S C˙ =  ASC + F S C˙ = F (4.a.5)

As noted above, the matrix V of eigenvectors is invertible. Since S is equal to V times a diagonal matrix, S is also invertible. Hence (4.a.5) can be solved for C,

C˙ = S−^1 F (4.a.6)

To find C, I integrate (4.a.6) with respect to the dummy variable τ. The integral of the right side is easily done using the Fundamental Theorem of Calculus.

 t

0

C^ ˙(τ )dτ =

0

S−^1 (τ )F(τ )dτ

C(t) − C(0) =

0

S−^1 (τ )F(τ )dτ (4.a.7)

Substituting (4.a.7) into (4.a.3) yields the solution for x(t),

x(t) = S(t)

C(0) +

0

S−^1 (τ )F(τ )dτ

(4.a.8)

Finally, I solve for C(0) by taking t = 0 in (4.a.8),

x(0) = S(0) (C(0) + 0) ⇒ C(0) = S−^1 (0)x(0) (4.a.9)

Substituting (4.a.9) into (4.a.8) gives the final form of the solution,

x(t) = S(t)S−^1 (0)x(0) +

 t

0

S(t)S−^1 (τ )F(τ )dτ (4.a.10)

I now turn to the given IVP. I first cast it in the form of (4.a.1) by defining y′^ = v. The given ODE is then,

v′(x) = y(x) + f (x) (4.a.11)

I write the two ODEs involving y and v in matrix form,

y′(x) = v(x) v(x) = y′(x) +f (x)

y′ v′

y v

f

(4.a.12)

I now employ the general theory derived above. To find the matrix S of homogeneous solutions, I use the diagonalization method developed in part 3a. To find the eigenvales of A, I solve the characteristic equation,

λ^2 − 1 = 0 ⇒ λ = ± 1 (4.a.13)

I find the eigenvectors of A by considering the first row of the eigenvalue equation, ( 0 1 1 0

α β

= λi ·

α β

⇒ λiα = β (4.a.14)

The two eigenvectors are thus

)T

. The matrix S of homogeneous solutions and its inverse are,

S =

ex^0 0 e−x

ex^ e−x ex^ −e−x

(4.a.15)

S−^1 =

−e^0 − e^0

−e−x^ −e−x −ex^ e−x

e−x^ e−x ex^ −ex

(4.a.16)

Since x(0) = 0 by assumption, I need only consider the integral term in (4.a.10),

x(t) =

 x

0

ex^ e−x ex^ −e−x

e−χ^ e−χ eχ^ −eχ

f (χ)

dχ

 x

0

ex−χ^ + eχ−x^ ex−χ^ − eχ−x ex−χ^ − eχ−x^ ex−χ^ + eχ−x

f (χ)

dχ

 x

0

ex−χ^ − eχ−x ex−χ^ + eχ−x

f (χ)dχ (4.a.17)

Part b

y(x) is given by the top line of (4.a.17). To match the notation of the problem set, I replace the dummy variable χ with s,

y(x) =

 x

0

ex−s^ − es−x

f (s)ds (4.b.1)