• No results found

Introduction to Differential Equations

N/A
N/A
Protected

Academic year: 2021

Share "Introduction to Differential Equations"

Copied!
128
0
0

Loading.... (view fulltext now)

Full text

(1)

Introduction to Differential Equations

Lecture notes for MATH 2351/2352

Jeffrey R. Chasnov

The Hong Kong University of

Science and Technology

(2)

Department of Mathematics Clear Water Bay, Kowloon

Hong Kong

Copyright cβ—‹ 2009–2016 by Jeffrey Robert Chasnov

This work is licensed under the Creative Commons Attribution 3.0 Hong Kong License.

To view a copy of this license, visit http://creativecommons.org/licenses/by/3.0/hk/

or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.

(3)

Preface

What follows are my lecture notes for a first course in differential equations, taught at the Hong Kong University of Science and Technology. Included in these notes are links to short tutorial videos posted on YouTube.

Much of the material of Chapters 2-6 and 8 has been adapted from the widely used textbook β€œElementary differential equations and boundary value problems” by Boyce & DiPrima (John Wiley & Sons, Inc., Seventh Edition,

β—‹2001). Many of the examples presented in these notes may be found in thisc book. The material of Chapter 7 is adapted from the textbook β€œNonlinear dynamics and chaos” by Steven H. Strogatz (Perseus Publishing, cβ—‹1994).

All web surfers are welcome to download these notes, watch the YouTube videos, and to use the notes and videos freely for teaching and learning. An associated free review book with links to YouTube videos is also available from the ebook publisher bookboon.com. I welcome any comments, suggestions or corrections sent by email to [email protected]. Links to my website, these lecture notes, my YouTube page, and the free ebook from bookboon.com are given below.

Homepage:

http://www.math.ust.hk/~machas YouTube:

https://www.youtube.com/user/jchasnov Lecture notes:

http://www.math.ust.hk/~machas/differential-equations.pdf Bookboon:

http://bookboon.com/en/differential-equations-with-youtube-examples-ebook

iii

(4)
(5)

Contents

0 A short mathematical review 1

0.1 The trigonometric functions . . . . 1

0.2 The exponential function and the natural logarithm . . . . 1

0.3 Definition of the derivative . . . . 2

0.4 Differentiating a combination of functions . . . . 2

0.4.1 The sum or difference rule . . . . 2

0.4.2 The product rule . . . . 2

0.4.3 The quotient rule . . . . 2

0.4.4 The chain rule . . . . 3

0.5 Differentiating elementary functions . . . . 3

0.5.1 The power rule . . . . 3

0.5.2 Trigonometric functions . . . . 3

0.5.3 Exponential and natural logarithm functions . . . . 3

0.6 Definition of the integral . . . . 3

0.7 The fundamental theorem of calculus . . . . 4

0.8 Definite and indefinite integrals . . . . 5

0.9 Indefinite integrals of elementary functions . . . . 5

0.10 Substitution . . . . 6

0.11 Integration by parts . . . . 6

0.12 Taylor series . . . . 7

0.13 Complex numbers . . . . 8

1 Introduction to odes 11 1.1 The simplest type of differential equation . . . . 11

2 First-order odes 13 2.1 The Euler method . . . . 13

2.2 Separable equations . . . . 14

2.3 Linear equations . . . . 17

2.4 Applications . . . . 20

2.4.1 Compound interest . . . . 20

2.4.2 Chemical reactions . . . . 21

2.4.3 Terminal velocity . . . . 23

2.4.4 Escape velocity . . . . 24

2.4.5 RC circuit . . . . 26

2.4.6 The logistic equation . . . . 27 v

(6)

3 Second-order odes, constant coefficients 29

3.1 The Euler method . . . . 29

3.2 The principle of superposition . . . . 30

3.3 The Wronskian . . . . 30

3.4 Homogeneous odes . . . . 31

3.4.1 Real, distinct roots . . . . 32

3.4.2 Complex conjugate, distinct roots . . . . 34

3.4.3 Repeated roots . . . . 36

3.5 Inhomogeneous odes . . . . 37

3.6 First-order linear inhomogeneous odes revisited . . . . 41

3.7 Resonance . . . . 42

3.8 Damped resonance . . . . 44

4 The Laplace transform 47 4.1 Definition and properties . . . . 47

4.2 Solution of initial value problems . . . . 51

4.3 Heaviside and Dirac delta functions . . . . 54

4.3.1 Heaviside function . . . . 54

4.3.2 Dirac delta function . . . . 56

4.4 Discontinuous or impulsive terms . . . . 57

5 Series solutions 61 5.1 Ordinary points . . . . 61

5.2 Regular singular points: Cauchy-Euler equations . . . . 65

5.2.1 Real, distinct roots . . . . 67

5.2.2 Complex conjugate roots . . . . 67

5.2.3 Repeated roots . . . . 67

6 Systems of equations 69 6.1 Determinants and the eigenvalue problem . . . . 69

6.2 Coupled first-order equations . . . . 71

6.2.1 Two distinct real eigenvalues . . . . 71

6.2.2 Complex conjugate eigenvalues . . . . 75

6.2.3 Repeated eigenvalues with one eigenvector . . . . 77

6.3 Normal modes . . . . 79

7 Nonlinear differential equations 83 7.1 Fixed points and stability . . . . 83

7.1.1 One dimension . . . . 83

7.1.2 Two dimensions . . . . 84

7.2 One-dimensional bifurcations . . . . 87

7.2.1 Saddle-node bifurcation . . . . 87

7.2.2 Transcritical bifurcation . . . . 88

7.2.3 Supercritical pitchfork bifurcation . . . . 89

7.2.4 Subcritical pitchfork bifurcation . . . . 90

7.2.5 Application: a mathematical model of a fishery . . . . 92

7.3 Two-dimensional bifurcations . . . . 94

7.3.1 Supercritical Hopf bifurcation . . . . 94

7.3.2 Subcritical Hopf bifurcation . . . . 95

(7)

CONTENTS vii

8 Partial differential equations 97

8.1 Derivation of the diffusion equation . . . . 97

8.2 Derivation of the wave equation . . . . 98

8.3 Fourier series . . . 100

8.4 Fourier cosine and sine series . . . 102

8.5 Solution of the diffusion equation . . . 105

8.5.1 Homogeneous boundary conditions . . . 105

8.5.2 Inhomogeneous boundary conditions . . . 108

8.5.3 Pipe with closed ends . . . 109

8.6 Solution of the wave equation . . . 112

8.6.1 Plucked string . . . 112

8.6.2 Hammered string . . . 114

8.6.3 General initial conditions . . . 115

8.7 The Laplace equation . . . 115

8.7.1 Dirichlet problem for a rectangle . . . 116

8.7.2 Dirichlet problem for a circle . . . 117

(8)
(9)

Chapter 0

A short mathematical review

A basic understanding of calculus is required to undertake a study of differential equations. This zero chapter presents a short review.

0.1 The trigonometric functions

The Pythagorean trigonometric identity is sin2π‘₯ + cos2π‘₯ = 1, and the addition theorems are

sin(π‘₯ + 𝑦) = sin(π‘₯) cos(𝑦) + cos(π‘₯) sin(𝑦), cos(π‘₯ + 𝑦) = cos(π‘₯) cos(𝑦) βˆ’ sin(π‘₯) sin(𝑦).

Also, the values of sin π‘₯ in the first quadrant can be remembered by the rule of quarters, with 0∘= 0, 30∘= πœ‹/6, 45∘= πœ‹/4, 60∘= πœ‹/3, 90∘= πœ‹/2:

sin 0∘=

βˆšοΈ‚0

4, sin 30∘=

βˆšοΈ‚1

4, sin 45∘=

βˆšοΈ‚2 4, sin 60∘=

βˆšοΈ‚3

4, sin 90∘=

βˆšοΈ‚4 4. The following symmetry properties are also useful:

sin(πœ‹/2 βˆ’ π‘₯) = cos π‘₯, cos(πœ‹/2 βˆ’ π‘₯) = sin π‘₯;

and

sin(βˆ’π‘₯) = βˆ’ sin(π‘₯), cos(βˆ’π‘₯) = cos(π‘₯).

0.2 The exponential function and the natural logarithm

The transcendental number 𝑒, approximately 2.71828, is defined as 𝑒 = lim

π‘›β†’βˆž

(οΈ‚

1 + 1 𝑛

)︂𝑛 .

1

(10)

The exponential function exp (π‘₯) = 𝑒π‘₯ and natural logarithm ln π‘₯ are inverse functions satisfying

𝑒ln π‘₯= π‘₯, ln 𝑒π‘₯= π‘₯.

The usual rules of exponents apply:

𝑒π‘₯𝑒𝑦 = 𝑒π‘₯+𝑦, 𝑒π‘₯/𝑒𝑦= 𝑒π‘₯βˆ’π‘¦, (𝑒π‘₯)𝑝= 𝑒𝑝π‘₯. The corresponding rules for the logarithmic function are

ln (π‘₯𝑦) = ln π‘₯ + ln 𝑦, ln (π‘₯/𝑦) = ln π‘₯ βˆ’ ln 𝑦, ln π‘₯𝑝= 𝑝 ln π‘₯.

0.3 Definition of the derivative

The derivative of the function 𝑦 = 𝑓 (π‘₯), denoted as 𝑓′(π‘₯) or 𝑑𝑦/𝑑π‘₯, is defined as the slope of the tangent line to the curve 𝑦 = 𝑓 (π‘₯) at the point (π‘₯, 𝑦). This slope is obtained by a limit, and is defined as

𝑓′(π‘₯) = lim

β„Žβ†’0

𝑓 (π‘₯ + β„Ž) βˆ’ 𝑓 (π‘₯)

β„Ž . (1)

0.4 Differentiating a combination of functions

0.4.1 The sum or difference rule

The derivative of the sum of 𝑓 (π‘₯) and 𝑔(π‘₯) is (𝑓 + 𝑔)β€² = 𝑓′+ 𝑔′. Similarly, the derivative of the difference is

(𝑓 βˆ’ 𝑔)β€² = π‘“β€²βˆ’ 𝑔′.

0.4.2 The product rule

The derivative of the product of 𝑓 (π‘₯) and 𝑔(π‘₯) is (𝑓 𝑔)β€²= 𝑓′𝑔 + 𝑓 𝑔′,

and should be memorized as β€œthe derivative of the first times the second plus the first times the derivative of the second.”

0.4.3 The quotient rule

The derivative of the quotient of 𝑓 (π‘₯) and 𝑔(π‘₯) is (οΈ‚ 𝑓

𝑔 )οΈ‚β€²

=𝑓′𝑔 βˆ’ 𝑓 𝑔′ 𝑔2 ,

and should be memorized as β€œthe derivative of the top times the bottom minus the top times the derivative of the bottom over the bottom squared.”

(11)

0.5. DIFFERENTIATING ELEMENTARY FUNCTIONS 3

0.4.4 The chain rule

The derivative of the composition of 𝑓 (π‘₯) and 𝑔(π‘₯) is (︁𝑓(︀𝑔(π‘₯))οΈ€)︁′

= 𝑓′(︀𝑔(π‘₯))οΈ€ Β· 𝑔′(π‘₯),

and should be memorized as β€œthe derivative of the outside times the derivative of the inside.”

0.5 Differentiating elementary functions

0.5.1 The power rule

The derivative of a power of π‘₯ is given by 𝑑

𝑑π‘₯π‘₯𝑝= 𝑝π‘₯π‘βˆ’1.

0.5.2 Trigonometric functions

The derivatives of sin π‘₯ and cos π‘₯ are

(sin π‘₯)β€²= cos π‘₯, (cos π‘₯)β€²= βˆ’ sin π‘₯.

We thus say that β€œthe derivative of sine is cosine,” and β€œthe derivative of cosine is minus sine.” Notice that the second derivatives satisfy

(sin π‘₯)β€²β€²= βˆ’ sin π‘₯, (cos π‘₯)β€²β€²= βˆ’ cos π‘₯.

0.5.3 Exponential and natural logarithm functions

The derivative of 𝑒π‘₯ and ln π‘₯ are

(𝑒π‘₯)β€²= 𝑒π‘₯, (ln π‘₯)β€²= 1 π‘₯.

0.6 Definition of the integral

The definite integral of a function 𝑓 (π‘₯) > 0 from π‘₯ = π‘Ž to 𝑏 (𝑏 > π‘Ž) is defined as the area bounded by the vertical lines π‘₯ = π‘Ž, π‘₯ = 𝑏, the x-axis and the curve 𝑦 = 𝑓 (π‘₯). This β€œarea under the curve” is obtained by a limit. First, the area is approximated by a sum of rectangle areas. Second, the integral is defined to be the limit of the rectangle areas as the width of each individual rectangle goes to zero and the number of rectangles goes to infinity. This resulting infinite sum is called a Riemann Sum, and we define

∫︁ 𝑏 π‘Ž

𝑓 (π‘₯)𝑑π‘₯ = lim

β„Žβ†’0 𝑁

βˆ‘οΈ

𝑛=1

𝑓(οΈ€π‘Ž + (𝑛 βˆ’ 1)β„Ž)οΈ€ Β· β„Ž, (2)

where 𝑁 = (𝑏 βˆ’ π‘Ž)/β„Ž is the number of terms in the sum. The symbols on the left-hand-side of (2) are read as β€œthe integral from π‘Ž to 𝑏 of f of x dee x.” The

(12)

Riemann Sum definition is extended to all values of π‘Ž and 𝑏 and for all values of 𝑓 (π‘₯) (positive and negative). Accordingly,

∫︁ π‘Ž 𝑏

𝑓 (π‘₯)𝑑π‘₯ = βˆ’

∫︁ 𝑏 π‘Ž

𝑓 (π‘₯)𝑑π‘₯ and

∫︁ 𝑏 π‘Ž

(βˆ’π‘“ (π‘₯))𝑑π‘₯ = βˆ’

∫︁ 𝑏 π‘Ž

𝑓 (π‘₯)𝑑π‘₯.

Also, if π‘Ž < 𝑏 < 𝑐, then

∫︁ 𝑐 π‘Ž

𝑓 (π‘₯)𝑑π‘₯ =

∫︁ 𝑏 π‘Ž

𝑓 (π‘₯)𝑑π‘₯ +

∫︁ 𝑐 𝑏

𝑓 (π‘₯)𝑑π‘₯,

which states (when 𝑓 (π‘₯) > 0) that the total area equals the sum of its parts.

0.7 The fundamental theorem of calculus

view tutorial

Using the definition of the derivative, we differentiate the following integral:

𝑑 𝑑π‘₯

∫︁ π‘₯ π‘Ž

𝑓 (𝑠)𝑑𝑠 = lim

β„Žβ†’0

βˆ«οΈ€π‘₯+β„Ž

π‘Ž 𝑓 (𝑠)𝑑𝑠 βˆ’βˆ«οΈ€π‘₯ π‘Ž 𝑓 (𝑠)𝑑𝑠 β„Ž

= lim

β„Žβ†’0

βˆ«οΈ€π‘₯+β„Ž π‘₯ 𝑓 (𝑠)𝑑𝑠

β„Ž

= lim

β„Žβ†’0

β„Žπ‘“ (π‘₯) β„Ž

= 𝑓 (π‘₯).

This result is called the fundamental theorem of calculus, and provides a con- nection between differentiation and integration.

The fundamental theorem teaches us how to integrate functions. Let 𝐹 (π‘₯) be a function such that 𝐹′(π‘₯) = 𝑓 (π‘₯). We say that 𝐹 (π‘₯) is an antiderivative of 𝑓 (π‘₯). Then from the fundamental theorem and the fact that the derivative of a constant equals zero,

𝐹 (π‘₯) =

∫︁ π‘₯ π‘Ž

𝑓 (𝑠)𝑑𝑠 + 𝑐.

Now, 𝐹 (π‘Ž) = 𝑐 and 𝐹 (𝑏) = βˆ«οΈ€π‘

π‘Ž 𝑓 (𝑠)𝑑𝑠 + 𝐹 (π‘Ž). Therefore, the fundamental theorem shows us how to integrate a function 𝑓 (π‘₯) provided we can find its antiderivative:

∫︁ 𝑏 π‘Ž

𝑓 (𝑠)𝑑𝑠 = 𝐹 (𝑏) βˆ’ 𝐹 (π‘Ž). (3)

Unfortunately, finding antiderivatives is much harder than finding derivatives, and indeed, most complicated functions cannot be integrated analytically.

We can also derive the very important result (3) directly from the definition of the derivative (1) and the definite integral (2). We will see it is convenient

(13)

0.8. DEFINITE AND INDEFINITE INTEGRALS 5 to choose the same β„Ž in both limits. With 𝐹′(π‘₯) = 𝑓 (π‘₯), we have

∫︁ 𝑏 π‘Ž

𝑓 (𝑠)𝑑𝑠 =

∫︁ 𝑏 π‘Ž

𝐹′(𝑠)𝑑𝑠

= lim

β„Žβ†’0 𝑁

βˆ‘οΈ

𝑛=1

𝐹′(οΈ€π‘Ž + (𝑛 βˆ’ 1)β„Ž)οΈ€ Β· β„Ž

= lim

β„Žβ†’0 𝑁

βˆ‘οΈ

𝑛=1

𝐹 (π‘Ž + π‘›β„Ž) βˆ’ 𝐹(οΈ€π‘Ž + (𝑛 βˆ’ 1)β„Ž)οΈ€

β„Ž Β· β„Ž

= lim

β„Žβ†’0 𝑁

βˆ‘οΈ

𝑛=1

𝐹 (π‘Ž + π‘›β„Ž) βˆ’ 𝐹(οΈ€π‘Ž + (𝑛 βˆ’ 1)β„Ž)οΈ€.

The last expression has an interesting structure. All the values of 𝐹 (π‘₯) eval- uated at the points lying between the endpoints π‘Ž and 𝑏 cancel each other in consecutive terms. Only the value βˆ’πΉ (π‘Ž) survives when 𝑛 = 1, and the value +𝐹 (𝑏) when 𝑛 = 𝑁 , yielding again (3).

0.8 Definite and indefinite integrals

The Riemann sum definition of an integral is called a definite integral. It is convenient to also define an indefinite integral by

∫︁

𝑓 (π‘₯)𝑑π‘₯ = 𝐹 (π‘₯), where F(x) is the antiderivative of 𝑓 (π‘₯).

0.9 Indefinite integrals of elementary functions

From our known derivatives of elementary functions, we can determine some simple indefinite integrals. The power rule gives us

∫︁

π‘₯𝑛𝑑π‘₯ = π‘₯𝑛+1

𝑛 + 1+ 𝑐, 𝑛 ΜΈ= βˆ’1.

When 𝑛 = βˆ’1, and π‘₯ is positive, we have

∫︁ 1

π‘₯𝑑π‘₯ = ln π‘₯ + 𝑐.

If π‘₯ is negative, using the chain rule we have 𝑑

𝑑π‘₯ln (βˆ’π‘₯) = 1 π‘₯. Therefore, since

|π‘₯| =

{οΈ‚ βˆ’π‘₯ if π‘₯ < 0;

π‘₯ if π‘₯ > 0,

we can generalize our indefinite integral to strictly positive or strictly negative

π‘₯: ∫︁ 1

π‘₯𝑑π‘₯ = ln |π‘₯| + 𝑐.

(14)

Trigonometric functions can also be integrated:

∫︁

cos π‘₯𝑑π‘₯ = sin π‘₯ + 𝑐,

∫︁

sin π‘₯𝑑π‘₯ = βˆ’ cos π‘₯ + 𝑐.

Easily proved identities are an addition rule:

∫︁

(︀𝑓 (π‘₯) + 𝑔(π‘₯))︀𝑑π‘₯ =

∫︁

𝑓 (π‘₯)𝑑π‘₯ +

∫︁

𝑔(π‘₯)𝑑π‘₯;

and multiplication by a constant:

∫︁

𝐴𝑓 (π‘₯)𝑑π‘₯ = 𝐴

∫︁

𝑓 (π‘₯)𝑑π‘₯.

This permits integration of functions such as

∫︁

(π‘₯2+ 7π‘₯ + 2)𝑑π‘₯ =π‘₯3 3 +7π‘₯2

2 + 2π‘₯ + 𝑐,

and ∫︁

(5 cos π‘₯ + sin π‘₯)𝑑π‘₯ = 5 sin π‘₯ βˆ’ cos π‘₯ + 𝑐.

0.10 Substitution

More complicated functions can be integrated using the chain rule. Since 𝑑

𝑑π‘₯𝑓(︀𝑔(π‘₯))οΈ€ = 𝑓′(︀𝑔(π‘₯))οΈ€ Β· 𝑔′(π‘₯), we have

∫︁

𝑓′(︀𝑔(π‘₯))οΈ€ Β· 𝑔′(π‘₯)𝑑π‘₯ = 𝑓(︀𝑔(π‘₯))οΈ€ + 𝑐.

This integration formula is usually implemented by letting 𝑦 = 𝑔(π‘₯). Then one writes 𝑑𝑦 = 𝑔′(π‘₯)𝑑π‘₯ to obtain

∫︁

𝑓′(︀𝑔(π‘₯))︀𝑔′(π‘₯)𝑑π‘₯ =

∫︁

𝑓′(𝑦)𝑑𝑦

= 𝑓 (𝑦) + 𝑐

= 𝑓(︀𝑔(π‘₯))οΈ€ + 𝑐.

0.11 Integration by parts

Another integration technique makes use of the product rule for differentiation.

Since

(𝑓 𝑔)β€²= 𝑓′𝑔 + 𝑓 𝑔′, we have

𝑓′𝑔 = (𝑓 𝑔)β€²βˆ’ 𝑓 𝑔′. Therefore,

∫︁

𝑓′(π‘₯)𝑔(π‘₯)𝑑π‘₯ = 𝑓 (π‘₯)𝑔(π‘₯) βˆ’

∫︁

𝑓 (π‘₯)𝑔′(π‘₯)𝑑π‘₯.

(15)

0.12. TAYLOR SERIES 7 Commonly, the above integral is done by writing

𝑒 = 𝑔(π‘₯) 𝑑𝑣 = 𝑓′(π‘₯)𝑑π‘₯ 𝑑𝑒 = 𝑔′(π‘₯)𝑑π‘₯ 𝑣 = 𝑓 (π‘₯).

Then, the formula to be memorized is

∫︁

𝑒𝑑𝑣 = 𝑒𝑣 βˆ’

∫︁

𝑣𝑑𝑒.

0.12 Taylor series

A Taylor series of a function 𝑓 (π‘₯) about a point π‘₯ = π‘Ž is a power series rep- resentation of 𝑓 (π‘₯) developed so that all the derivatives of 𝑓 (π‘₯) at π‘Ž match all the derivatives of the power series. Without worrying about convergence here, we have

𝑓 (π‘₯) = 𝑓 (π‘Ž) + 𝑓′(π‘Ž)(π‘₯ βˆ’ π‘Ž) +𝑓′′(π‘Ž)

2! (π‘₯ βˆ’ π‘Ž)2+𝑓′′′(π‘Ž)

3! (π‘₯ βˆ’ π‘Ž)3+ . . . . Notice that the first term in the power series matches 𝑓 (π‘Ž), all other terms vanishing, the second term matches 𝑓′(π‘Ž), all other terms vanishing, etc. Com- monly, the Taylor series is developed with π‘Ž = 0. We will also make use of the Taylor series in a slightly different form, with π‘₯ = π‘₯*+ πœ– and π‘Ž = π‘₯*:

𝑓 (π‘₯*+ πœ–) = 𝑓 (π‘₯*) + 𝑓′(π‘₯*)πœ– +𝑓′′(π‘₯*)

2! πœ–2+𝑓′′′(π‘₯*)

3! πœ–3+ . . . .

Another way to view this series is that of 𝑔(πœ–) = 𝑓 (π‘₯*+ πœ–), expanded about πœ– = 0.

Taylor series that are commonly used include 𝑒π‘₯= 1 + π‘₯ +π‘₯2

2! +π‘₯3 3! + . . . , sin π‘₯ = π‘₯ βˆ’π‘₯3

3! +π‘₯5 5! βˆ’ . . . , cos π‘₯ = 1 βˆ’π‘₯2

2! +π‘₯4 4! βˆ’ . . . , 1

1 + π‘₯ = 1 βˆ’ π‘₯ + π‘₯2βˆ’ . . . , for |π‘₯| < 1, ln (1 + π‘₯) = π‘₯ βˆ’π‘₯2

2 +π‘₯3

3 βˆ’ . . . , for |π‘₯| < 1.

A Taylor series of a function of several variables can also be developed. Here, all partial derivatives of 𝑓 (π‘₯, 𝑦) at (π‘Ž, 𝑏) match all the partial derivatives of the power series. With the notation

𝑓π‘₯=πœ•π‘“

πœ•π‘₯, 𝑓𝑦 =πœ•π‘“

πœ•π‘¦, 𝑓π‘₯π‘₯= πœ•2𝑓

πœ•π‘₯2, 𝑓π‘₯𝑦= πœ•2𝑓

πœ•π‘₯πœ•π‘¦, 𝑓𝑦𝑦 = πœ•2𝑓

πœ•π‘¦2, etc., we have

𝑓 (π‘₯, 𝑦) = 𝑓 (π‘Ž, 𝑏) + 𝑓π‘₯(π‘Ž, 𝑏)(π‘₯ βˆ’ π‘Ž) + 𝑓𝑦(π‘Ž, 𝑏)(𝑦 βˆ’ 𝑏) + 1

2!(︀𝑓π‘₯π‘₯(π‘Ž, 𝑏)(π‘₯ βˆ’ π‘Ž)2+ 2𝑓π‘₯𝑦(π‘Ž, 𝑏)(π‘₯ βˆ’ π‘Ž)(𝑦 βˆ’ 𝑏) + 𝑓𝑦𝑦(π‘Ž, 𝑏)(𝑦 βˆ’ 𝑏)2)οΈ€ + . . .

(16)

0.13 Complex numbers

view tutorial: Complex Numbers view tutorial: Complex Exponential Function

We define the imaginary number 𝑖 to be one of the two numbers that satisfies the rule (𝑖)2= βˆ’1, the other number being βˆ’π‘–. Formally, we write 𝑖 =√

βˆ’1. A complex number 𝑧 is written as

𝑧 = π‘₯ + 𝑖𝑦,

where π‘₯ and 𝑦 are real numbers. We call π‘₯ the real part of 𝑧 and 𝑦 the imaginary part and write

π‘₯ = Re 𝑧, 𝑦 = Im 𝑧.

Two complex numbers are equal if and only if their real and imaginary parts are equal.

The complex conjugate of 𝑧 = π‘₯ + 𝑖𝑦, denoted as ¯𝑧, is defined as

Β―

𝑧 = π‘₯ βˆ’ 𝑖𝑦.

Using 𝑧 and ¯𝑧, we have Re 𝑧 = 1

2(𝑧 + ¯𝑧) , Im 𝑧 = 1

2𝑖(𝑧 βˆ’ ¯𝑧) . Furthermore,

𝑧 ¯𝑧 = (π‘₯ + 𝑖𝑦)(π‘₯ βˆ’ 𝑖𝑦)

= π‘₯2βˆ’ 𝑖2𝑦2

= π‘₯2+ 𝑦2;

and we define the absolute value of 𝑧, also called the modulus of 𝑧, by

|𝑧| = (𝑧 ¯𝑧)1/2

=βˆšοΈ€

π‘₯2+ 𝑦2.

We can add, subtract, multiply and divide complex numbers to get new complex numbers. With 𝑧 = π‘₯ + 𝑖𝑦 and 𝑀 = 𝑠 + 𝑖𝑑, and π‘₯, 𝑦, 𝑠, 𝑑 real numbers, we have

𝑧 + 𝑀 = (π‘₯ + 𝑠) + 𝑖(𝑦 + 𝑑); 𝑧 βˆ’ 𝑀 = (π‘₯ βˆ’ 𝑠) + 𝑖(𝑦 βˆ’ 𝑑);

𝑧𝑀 = (π‘₯ + 𝑖𝑦)(𝑠 + 𝑖𝑑)

= (π‘₯𝑠 βˆ’ 𝑦𝑑) + 𝑖(π‘₯𝑑 + 𝑦𝑠);

𝑧 𝑀 = 𝑧 ¯𝑀

𝑀 ¯𝑀

= (π‘₯ + 𝑖𝑦)(𝑠 βˆ’ 𝑖𝑑) 𝑠2+ 𝑑2

= (π‘₯𝑠 + 𝑦𝑑)

𝑠2+ 𝑑2 + 𝑖(𝑦𝑠 βˆ’ π‘₯𝑑) 𝑠2+ 𝑑2 .

(17)

0.13. COMPLEX NUMBERS 9 Furthermore,

|𝑧𝑀| =βˆšοΈ€

(π‘₯𝑠 βˆ’ 𝑦𝑑)2+ (π‘₯𝑑 + 𝑦𝑠)2

=βˆšοΈ€

(π‘₯2+ 𝑦2)(𝑠2+ 𝑑2)

= |𝑧||𝑀|;

and

𝑧𝑀 = (π‘₯𝑠 βˆ’ 𝑦𝑑) βˆ’ 𝑖(π‘₯𝑑 + 𝑦𝑠)

= (π‘₯ βˆ’ 𝑖𝑦)(𝑠 βˆ’ 𝑖𝑑)

= ¯𝑧 ¯𝑀.

Similarly

βƒ’

βƒ’

βƒ’ 𝑧 𝑀

βƒ’

βƒ’

βƒ’= |𝑧|

|𝑀|, (𝑧 𝑀) = 𝑧¯

Β― 𝑀.

Also, 𝑧 + 𝑀 = 𝑧 + 𝑀. However, |𝑧 + 𝑀| ≀ |𝑧| + |𝑀|, a theorem known as the triangle inequality.

It is especially interesting and useful to consider the exponential function of an imaginary argument. Using the Taylor series expansion of an exponential function, we have

π‘’π‘–πœƒ= 1 + (π‘–πœƒ) +(π‘–πœƒ)2

2! +(π‘–πœƒ)3

3! +(π‘–πœƒ)4

4! +(π‘–πœƒ)5 5! . . .

= (οΈ‚

1 βˆ’ πœƒ2 2! +πœƒ4

4! βˆ’ . . . )οΈ‚

+ 𝑖 (οΈ‚

πœƒ βˆ’πœƒ3 3! +πœƒ5

5! + . . . )οΈ‚

= cos πœƒ + 𝑖 sin πœƒ.

Therefore, we have

cos πœƒ = Re π‘’π‘–πœƒ, sin πœƒ = Im π‘’π‘–πœƒ.

Since cos πœ‹ = βˆ’1 and sin πœ‹ = 0, we derive the celebrated Euler’s identity π‘’π‘–πœ‹+ 1 = 0,

that links five fundamental numbers, 0, 1, 𝑖, 𝑒 and πœ‹, using three basic mathe- matical operations, addition, multiplication and exponentiation, only once.

Using the even property cos (βˆ’πœƒ) = cos πœƒ and the odd property sin (βˆ’πœƒ) =

βˆ’ sin πœƒ, we also have

π‘’βˆ’π‘–πœƒ= cos πœƒ βˆ’ 𝑖 sin πœƒ;

and the identities for π‘’π‘–πœƒ and π‘’βˆ’π‘–πœƒ results in the frequently used expressions, cos πœƒ =π‘’π‘–πœƒ+ π‘’βˆ’π‘–πœƒ

2 , sin πœƒ = π‘’π‘–πœƒβˆ’ π‘’βˆ’π‘–πœƒ 2𝑖 .

The complex number 𝑧 can be represented in the complex plane with Re 𝑧 as the π‘₯-axis and Im 𝑧 as the 𝑦-axis. This leads to the polar representation of 𝑧 = π‘₯ + 𝑖𝑦:

𝑧 = π‘Ÿπ‘’π‘–πœƒ,

where π‘Ÿ = |𝑧| and tan πœƒ = 𝑦/π‘₯. We define arg 𝑧 = πœƒ. Note that πœƒ is not unique, though it is conventional to choose the value such that βˆ’πœ‹ < πœƒ ≀ πœ‹, and πœƒ = 0 when π‘Ÿ = 0.

(18)

Useful trigonometric relations can be derived using π‘’π‘–πœƒand properties of the exponential function. The addition law can be derived from

𝑒𝑖(π‘₯+𝑦)= 𝑒𝑖π‘₯𝑒𝑖𝑦. We have

cos(π‘₯ + 𝑦) + 𝑖 sin(π‘₯ + 𝑦) = (cos π‘₯ + 𝑖 sin π‘₯)(cos 𝑦 + 𝑖 sin 𝑦)

= (cos π‘₯ cos 𝑦 βˆ’ sin π‘₯ sin 𝑦) + 𝑖(sin π‘₯ cos 𝑦 + cos π‘₯ sin 𝑦);

yielding

cos(π‘₯ + 𝑦) = cos π‘₯ cos 𝑦 βˆ’ sin π‘₯ sin 𝑦, sin(π‘₯ + 𝑦) = sin π‘₯ cos 𝑦 + cos π‘₯ sin 𝑦.

De Moivre’s Theorem derives from π‘’π‘–π‘›πœƒ = (π‘’π‘–πœƒ)𝑛, yielding the identity cos(π‘›πœƒ) + 𝑖 sin(π‘›πœƒ) = (cos πœƒ + 𝑖 sin πœƒ)𝑛.

For example, if 𝑛 = 2, we derive

cos 2πœƒ + 𝑖 sin 2πœƒ = (cos πœƒ + 𝑖 sin πœƒ)2

= (cos2πœƒ βˆ’ sin2πœƒ) + 2𝑖 cos πœƒ sin πœƒ.

Therefore,

cos 2πœƒ = cos2πœƒ βˆ’ sin2πœƒ, sin 2πœƒ = 2 cos πœƒ sin πœƒ.

With a little more manipulation using cos2πœƒ + sin2πœƒ = 1, we can derive cos2πœƒ = 1 + cos 2πœƒ

2 , sin2πœƒ = 1 βˆ’ cos 2πœƒ

2 ,

which are useful formulas for determining

∫︁

cos2πœƒ π‘‘πœƒ = 1

4(2πœƒ + sin 2πœƒ) + 𝑐,

∫︁

sin2πœƒ π‘‘πœƒ = 1

4(2πœƒ βˆ’ sin 2πœƒ) + 𝑐, from which follows

∫︁ 2πœ‹ 0

sin2πœƒ π‘‘πœƒ =

∫︁ 2πœ‹ 0

cos2πœƒ π‘‘πœƒ = πœ‹.

(19)

Chapter 1

Introduction to odes

A differential equation is an equation for a function that relates the values of the function to the values of its derivatives. An ordinary differential equation (ode) is a differential equation for a function of a single variable, e.g., π‘₯(𝑑), while a partial differential equation (pde) is a differential equation for a function of several variables, e.g., 𝑣(π‘₯, 𝑦, 𝑧, 𝑑). An ode contains ordinary derivatives and a pde contains partial derivatives. Typically, pde’s are much harder to solve than ode’s.

1.1 The simplest type of differential equation

view tutorial

The simplest ordinary differential equations can be integrated directly by finding antiderivatives. These simplest odes have the form

𝑑𝑛π‘₯

𝑑𝑑𝑛 = 𝐺(𝑑),

where the derivative of π‘₯ = π‘₯(𝑑) can be of any order, and the right-hand-side may depend only on the independent variable 𝑑. As an example, consider a mass falling under the influence of constant gravity, such as approximately found on the Earth’s surface. Newton’s law, 𝐹 = π‘šπ‘Ž, results in the equation

π‘šπ‘‘2π‘₯

𝑑𝑑2 = βˆ’π‘šπ‘”,

where π‘₯ is the height of the object above the ground, π‘š is the mass of the object, and 𝑔 = 9.8 meter/sec2 is the constant gravitational acceleration. As Galileo suggested, the mass cancels from the equation, and

𝑑2π‘₯ 𝑑𝑑2 = βˆ’π‘”.

Here, the right-hand-side of the ode is a constant. The first integration, obtained by antidifferentiation, yields

𝑑π‘₯

𝑑𝑑 = 𝐴 βˆ’ 𝑔𝑑, 11

(20)

with 𝐴 the first constant of integration; and the second integration yields π‘₯ = 𝐡 + 𝐴𝑑 βˆ’1

2𝑔𝑑2,

with 𝐡 the second constant of integration. The two constants of integration 𝐴 and 𝐡 can then be determined from the initial conditions. If we know that the initial height of the mass is π‘₯0, and the initial velocity is 𝑣0, then the initial conditions are

π‘₯(0) = π‘₯0, 𝑑π‘₯

𝑑𝑑(0) = 𝑣0.

Substitution of these initial conditions into the equations for 𝑑π‘₯/𝑑𝑑 and π‘₯ allows us to solve for 𝐴 and 𝐡. The unique solution that satisfies both the ode and the initial conditions is given by

π‘₯(𝑑) = π‘₯0+ 𝑣0𝑑 βˆ’1

2𝑔𝑑2. (1.1)

For example, suppose we drop a ball off the top of a 50 meter building. How long will it take the ball to hit the ground? This question requires solution of (1.1) for the time 𝑇 it takes for π‘₯(𝑇 ) = 0, given π‘₯0 = 50 meter and 𝑣0 = 0.

Solving for 𝑇 ,

𝑇 =βˆšοΈ‚ 2π‘₯0

𝑔

=

βˆšοΈ‚2 Β· 50 9.8 sec

β‰ˆ 3.2sec.

(21)

Chapter 2

First-order differential equations

Reference: Boyce and DiPrima, Chapter 2

The general first-order differential equation for the function 𝑦 = 𝑦(π‘₯) is written

as 𝑑𝑦

𝑑π‘₯ = 𝑓 (π‘₯, 𝑦), (2.1)

where 𝑓 (π‘₯, 𝑦) can be any function of the independent variable π‘₯ and the depen- dent variable 𝑦. We first show how to determine a numerical solution of this equation, and then learn techniques for solving analytically some special forms of (2.1), namely, separable and linear first-order equations.

2.1 The Euler method

view tutorial

Although it is not always possible to find an analytical solution of (2.1) for 𝑦 = 𝑦(π‘₯), it is always possible to determine a unique numerical solution given an initial value 𝑦(π‘₯0) = 𝑦0, and provided 𝑓 (π‘₯, 𝑦) is a well-behaved function.

The differential equation (2.1) gives us the slope 𝑓 (π‘₯0, 𝑦0) of the tangent line to the solution curve 𝑦 = 𝑦(π‘₯) at the point (π‘₯0, 𝑦0). With a small step size Ξ”π‘₯, the initial condition (π‘₯0, 𝑦0) can be marched forward in the x-coordinate to π‘₯ = π‘₯0+ Ξ”π‘₯, and along the tangent line using Euler’s method to obtain the y-coordinate

𝑦(π‘₯0+ Ξ”π‘₯) = 𝑦(π‘₯0) + Ξ”π‘₯𝑓 (π‘₯0, 𝑦0).

This solution (π‘₯0+ Ξ”π‘₯, 𝑦0+ Δ𝑦) then becomes the new initial condition and is marched forward in the x-coordinate another Ξ”π‘₯, and along the newly deter- mined tangent line. For small enough Ξ”π‘₯, the numerical solution converges to the exact solution.

13

(22)

2.2 Separable equations

view tutorial

A first-order ode is separable if it can be written in the form 𝑔(𝑦)𝑑𝑦

𝑑π‘₯ = 𝑓 (π‘₯), 𝑦(π‘₯0) = 𝑦0, (2.2) where the function 𝑔(𝑦) is independent of π‘₯ and 𝑓 (π‘₯) is independent of 𝑦. Inte- gration from π‘₯0 to π‘₯ results in

∫︁ π‘₯ π‘₯0

𝑔(𝑦(π‘₯))𝑦′(π‘₯)𝑑π‘₯ =

∫︁ π‘₯ π‘₯0

𝑓 (π‘₯)𝑑π‘₯.

The integral on the left can be transformed by substituting 𝑒 = 𝑦(π‘₯), 𝑑𝑒 = 𝑦′(π‘₯)𝑑π‘₯, and changing the lower and upper limits of integration to 𝑦(π‘₯0) = 𝑦0 and 𝑦(π‘₯) = 𝑦. Therefore,

∫︁ 𝑦 𝑦0

𝑔(𝑒)𝑑𝑒 =

∫︁ π‘₯ π‘₯0

𝑓 (π‘₯)𝑑π‘₯,

and since 𝑒 is a dummy variable of integration, we can write this in the equivalent form

∫︁ 𝑦 𝑦0

𝑔(𝑦)𝑑𝑦 =

∫︁ π‘₯ π‘₯0

𝑓 (π‘₯)𝑑π‘₯. (2.3)

A simpler procedure that also yields (2.3) is to treat 𝑑𝑦/𝑑π‘₯ in (2.2) like a fraction.

Multiplying (2.2) by 𝑑π‘₯ results in

𝑔(𝑦)𝑑𝑦 = 𝑓 (π‘₯)𝑑π‘₯,

which is a separated equation with all the dependent variables on the left-side, and all the independent variables on the right-side. Equation (2.3) then results directly upon integration.

Example: Solve 𝑑𝑦𝑑π‘₯+12𝑦 = 32, with 𝑦(0) = 2.

We first manipulate the differential equation to the form 𝑑𝑦

𝑑π‘₯ =1

2(3 βˆ’ 𝑦), (2.4)

and then treat 𝑑𝑦/𝑑π‘₯ as if it was a fraction to separate variables:

𝑑𝑦 3 βˆ’ 𝑦 =1

2𝑑π‘₯.

We integrate the right-side from the initial condition π‘₯ = 0 to π‘₯ and the left-side from the initial condition 𝑦(0) = 2 to 𝑦. Accordingly,

∫︁ 𝑦 2

𝑑𝑦 3 βˆ’ 𝑦 =1

2

∫︁ π‘₯ 0

𝑑π‘₯. (2.5)

(23)

2.2. SEPARABLE EQUATIONS 15

0 1 2 3 4 5 6 7

0 1 2 3 4 5 6

x

y

dy/dx + y/2 = 3/2

Figure 2.1: Solution of the following ode: 𝑑𝑦𝑑π‘₯+12𝑦 = 32.

The integrals in (2.5) need to be done. Note that 𝑦(π‘₯) < 3 for finite π‘₯ or the integral on the left-side diverges. Therefore, 3 βˆ’ 𝑦 > 0 and integration yields

βˆ’ ln (3 βˆ’ 𝑦)]︀𝑦 2=1

2π‘₯]οΈ€π‘₯ 0, ln (3 βˆ’ 𝑦) = βˆ’1

2π‘₯, 3 βˆ’ 𝑦 = π‘’βˆ’12π‘₯, 𝑦 = 3 βˆ’ π‘’βˆ’12π‘₯.

Since this is our first nontrivial analytical solution, it is prudent to check our result. We do this by differentiating our solution:

𝑑𝑦 𝑑π‘₯ =1

2π‘’βˆ’12π‘₯

=1

2(3 βˆ’ 𝑦);

and checking the initial conditions, 𝑦(0) = 3 βˆ’ 𝑒0 = 2. Therefore, our solution satisfies both the original ode and the initial condition.

Example: Solve 𝑑π‘₯𝑑𝑦 +12𝑦 = 32, with 𝑦(0) = 4.

This is the identical differential equation as before, but with different initial conditions. We will jump directly to the integration step:

∫︁ 𝑦 4

𝑑𝑦 3 βˆ’ 𝑦 = 1

2

∫︁ π‘₯ 0

𝑑π‘₯.

(24)

Now 𝑦(π‘₯) > 3, so that 𝑦 βˆ’ 3 > 0 and integration yields

βˆ’ ln (𝑦 βˆ’ 3)]︀𝑦 4= 1

2π‘₯]οΈ€π‘₯ 0, ln (𝑦 βˆ’ 3) = βˆ’1

2π‘₯, 𝑦 βˆ’ 3 = π‘’βˆ’12π‘₯, 𝑦 = 3 + π‘’βˆ’12π‘₯.

The solution curves for a range of initial conditions is presented in Fig. 2.1.

All solutions have a horizontal asymptote at 𝑦 = 3 at which 𝑑𝑦/𝑑π‘₯ = 0. For 𝑦(0) = 𝑦0, the general solution can be shown to be 𝑦(π‘₯) = 3+(𝑦0βˆ’3) exp(βˆ’π‘₯/2).

Example: Solve 𝑑𝑦𝑑π‘₯ = 2 cos 2π‘₯3+2𝑦 , with 𝑦(0) = βˆ’1. (i) For what values of π‘₯ > 0 does the solution exist? (ii) For what value of π‘₯ > 0 is 𝑦(π‘₯) maximum?

Notice that the solution of the ode may not exist when 𝑦 = βˆ’3/2, since 𝑑𝑦/𝑑π‘₯ β†’

∞. We separate variables and integrate from initial conditions:

(3 + 2𝑦)𝑑𝑦 = 2 cos 2π‘₯ 𝑑π‘₯

∫︁ 𝑦

βˆ’1

(3 + 2𝑦)𝑑𝑦 = 2

∫︁ π‘₯ 0

cos 2π‘₯ 𝑑π‘₯ 3𝑦 + 𝑦2]︀𝑦

βˆ’1= sin 2π‘₯]οΈ€π‘₯ 0

𝑦2+ 3𝑦 + 2 βˆ’ sin 2π‘₯ = 0 𝑦±=1

2[βˆ’3 ±√

1 + 4 sin 2π‘₯].

Solving the quadratic equation for 𝑦 has introduced a spurious solution that does not satisfy the initial conditions. We test:

𝑦±(0) = 1

2[βˆ’3 Β± 1] = {οΈ‚ -1;

-2.

Only the + root satisfies the initial condition, so that the unique solution to the ode and initial condition is

𝑦 = 1

2[βˆ’3 +√

1 + 4 sin 2π‘₯]. (2.6)

To determine (i) the values of π‘₯ > 0 for which the solution exists, we require 1 + 4 sin 2π‘₯ β‰₯ 0,

or

sin 2π‘₯ β‰₯ βˆ’1

4. (2.7)

Notice that at π‘₯ = 0, we have sin 2π‘₯ = 0; at π‘₯ = πœ‹/4, we have sin 2π‘₯ = 1;

at π‘₯ = πœ‹/2, we have sin 2π‘₯ = 0; and at π‘₯ = 3πœ‹/4, we have sin 2π‘₯ = βˆ’1 We therefore need to determine the value of π‘₯ such that sin 2π‘₯ = βˆ’1/4, with π‘₯ in the range πœ‹/2 < π‘₯ < 3πœ‹/4. The solution to the ode will then exist for all π‘₯ between zero and this value.

(25)

2.3. LINEAR EQUATIONS 17

0 0.5 1 1.5

βˆ’1.6

βˆ’1.4

βˆ’1.2

βˆ’1

βˆ’0.8

βˆ’0.6

βˆ’0.4

βˆ’0.2 0

x

y

(3+2y) dy/dx = 2 cos 2x, y(0) = βˆ’1

Figure 2.2: Solution of the following ode: (3 + 2𝑦)𝑦′= 2 cos 2π‘₯, 𝑦(0) = βˆ’1.

To solve sin 2π‘₯ = βˆ’1/4 for π‘₯ in the interval πœ‹/2 < π‘₯ < 3πœ‹/4, one needs to recall the definition of arcsin, or sinβˆ’1, as found on a typical scientific calculator.

The inverse of the function

𝑓 (π‘₯) = sin π‘₯, βˆ’πœ‹/2 ≀ π‘₯ ≀ πœ‹/2

is denoted by arcsin. The first solution with π‘₯ > 0 of the equation sin 2π‘₯ = βˆ’1/4 places 2π‘₯ in the interval (πœ‹, 3πœ‹/2), so to invert this equation using the arcsine we need to apply the identity sin (πœ‹ βˆ’ π‘₯) = sin π‘₯, and rewrite sin 2π‘₯ = βˆ’1/4 as sin (πœ‹ βˆ’ 2π‘₯) = βˆ’1/4. The solution of this equation may then be found by taking the arcsine, and is

πœ‹ βˆ’ 2π‘₯ = arcsin (βˆ’1/4), or

π‘₯ = 1 2

(οΈ‚

πœ‹ + arcsin1 4

)οΈ‚

.

Therefore the solution exists for 0 ≀ π‘₯ ≀ (πœ‹ + arcsin (1/4)) /2 = 1.6971 . . . , where we have used a calculator value (computing in radians) to find arcsin(0.25) = 0.2527 . . . . At the value (π‘₯, 𝑦) = (1.6971 . . . , βˆ’3/2), the solution curve ends and 𝑑𝑦/𝑑π‘₯ becomes infinite.

To determine (ii) the value of π‘₯ at which 𝑦 = 𝑦(π‘₯) is maximum, we examine (2.6) directly. The value of 𝑦 will be maximum when sin 2π‘₯ takes its maximum value over the interval where the solution exists. This will be when 2π‘₯ = πœ‹/2, or π‘₯ = πœ‹/4 = 0.7854 . . . .

The graph of 𝑦 = 𝑦(π‘₯) is shown in Fig. 2.2.

2.3 Linear equations

view tutorial

(26)

The first-order linear differential equation (linear in 𝑦 and its derivative) can be written in the form

𝑑𝑦

𝑑π‘₯+ 𝑝(π‘₯)𝑦 = 𝑔(π‘₯), (2.8)

with the initial condition 𝑦(π‘₯0) = 𝑦0. Linear first-order equations can be inte- grated using an integrating factor πœ‡(π‘₯). We multiply (2.8) by πœ‡(π‘₯),

πœ‡(π‘₯)[οΈ‚ 𝑑𝑦

𝑑π‘₯ + 𝑝(π‘₯)𝑦 ]οΈ‚

= πœ‡(π‘₯)𝑔(π‘₯), (2.9)

and try to determine πœ‡(π‘₯) so that πœ‡(π‘₯)[οΈ‚ 𝑑𝑦

𝑑π‘₯+ 𝑝(π‘₯)𝑦 ]οΈ‚

= 𝑑

𝑑π‘₯[πœ‡(π‘₯)𝑦]. (2.10)

Equation (2.9) then becomes 𝑑

𝑑π‘₯[πœ‡(π‘₯)𝑦] = πœ‡(π‘₯)𝑔(π‘₯). (2.11)

Equation (2.11) is easily integrated using πœ‡(π‘₯0) = πœ‡0 and 𝑦(π‘₯0) = 𝑦0: πœ‡(π‘₯)𝑦 βˆ’ πœ‡0𝑦0=

∫︁ π‘₯ π‘₯0

πœ‡(π‘₯)𝑔(π‘₯)𝑑π‘₯, or

𝑦 = 1 πœ‡(π‘₯)

(οΈ‚

πœ‡0𝑦0+

∫︁ π‘₯ π‘₯0

πœ‡(π‘₯)𝑔(π‘₯)𝑑π‘₯ )οΈ‚

. (2.12)

It remains to determine πœ‡(π‘₯) from (2.10). Differentiating and expanding (2.10) yields

πœ‡π‘‘π‘¦

𝑑π‘₯ + π‘πœ‡π‘¦ = π‘‘πœ‡

𝑑π‘₯𝑦 + πœ‡π‘‘π‘¦ 𝑑π‘₯; and upon simplifying,

π‘‘πœ‡

𝑑π‘₯ = π‘πœ‡. (2.13)

Equation (2.13) is separable and can be integrated:

∫︁ πœ‡ πœ‡0

π‘‘πœ‡ πœ‡ =

∫︁ π‘₯ π‘₯0

𝑝(π‘₯)𝑑π‘₯,

ln πœ‡ πœ‡0 =

∫︁ π‘₯ π‘₯0

𝑝(π‘₯)𝑑π‘₯,

πœ‡(π‘₯) = πœ‡0exp (οΈ‚βˆ«οΈ π‘₯

π‘₯0

𝑝(π‘₯)𝑑π‘₯ )οΈ‚

.

Notice that since πœ‡0cancels out of (2.12), it is customary to assign πœ‡0= 1. The solution to (2.8) satisfying the initial condition 𝑦(π‘₯0) = 𝑦0 is then commonly written as

𝑦 = 1 πœ‡(π‘₯)

(οΈ‚

𝑦0+

∫︁ π‘₯ π‘₯0

πœ‡(π‘₯)𝑔(π‘₯)𝑑π‘₯ )οΈ‚

, with

πœ‡(π‘₯) = exp (οΈ‚βˆ«οΈ π‘₯

π‘₯0

𝑝(π‘₯)𝑑π‘₯ )οΈ‚

the integrating factor. This important result finds frequent use in applied math- ematics.

References

Related documents