Docsity

Calculus in One Variable, Lecture Notes- Maths , Study notes of Mathematics

Partial preview of the text

Download Calculus in One Variable, Lecture Notes- Maths and more Study notes Mathematics in PDF only on Docsity!

Calculus of One Variable

Lecturer: Dr Eamonn Gaffney

Notes extensively based on material written by Dr Richard Earl

Michaelmas Term 2009

Syllabus

  1. General linear homogeneous ODEs. Integrating factor for first order linear ODEs. Second solution when one solution known for second2. Motivation for ODEs. Order of an ODE. Separation of variables. 1. Standard integrals. Integration by parts.

order linear ODEs.

  1. General solution of linear inhomogeneous ODE as particular solution plus solution of homogeneous equation. Simple examples of finding4. First and second order linear ODEs with constant coefficients.

particular solutions by guesswork.

  1. Elements of Matrix Theory: the calculation of determinants, eigenvalues and eigenvectors. Systems of linear coupled first order ODEs.

Recommended Texts

D. W. Jordan & P. Smith, Mathematical Techniques, 3rd Edition, Oxford (2002) Chapters 17-20, 22.

Erwin Kreyszig, Advanced Engineering Mathematics, 8th Edition, Wiley (1999).

Websites

http://www.maths.ox.ac.uk/

earl/

2 http://www.maths.ox.ac.uk/courses/moderations/calculus-one-variable

Note that

x = cos

(^) θ

would have worked just as well.

Some similar standard trigonometric integrals are

d x

(^) x 2

sin

− 1 x^

  • const.

d x

(^) x 2

tan

− 1 x (^) + const.

d x

x 2

  • 1

ln

( x + √ x 2

  • const.

= sinh

− 1 x^

  • const.

d x

√ x 2 − 1 =

ln

∣∣ ∣ x + √ x 2 −

  • const.

= cosh

− 1 x (^) + const.

x (^) d x

(^) x 2

x 2

  • const.

x (^) d x

√ x 2 ± 1 = √ x 2 ±

(^) 1 + const.

x (^) d x

(^) x 2

ln (^) ( 1 +

(^) x 2 )

  • const.^

If the fifth, sixth and seventh integrals are not apparent by inspection then a substitution

u

=

x 2

and noting

x

=

2 1 d u

d x

For those with knowledge of the hyperbolic functions the third and fourth can be done more easily using the identity may help.

cosh

2 t^ = 1 + sinh

2 t.

4

STANDARD INTEGRATION TECHNIQUES

By completing the square (and making a substitution if desired) every integral of the formThere is a printout available on the course website containing further details of the hyperbolic functions.

Ax

B

Cx

2

(^) Dx

E

d x

and

Ax

B

Cx

2

(^) Dx

E

d x

Example 1 can be broken down into one or more of the previous forms. We return now to the integrals given at the start of the lecture.

Determine

I

1

∫

1

0

d x

x − (^) x 2

and

I

2

∫

1

0

x d x

x 2

  • 2

x (^) + 2

Solution.

I

1

The second integral

I

2 appears on the first exercise sheet.

Integration by Parts

Integration by parts (IBP) can be used to tackle products of functions, but not just any product. Suppose we have an integral

f ( x ) (^) g (^) ( x ) d

x

INTEGRATION BY PARTS

5

In a similar fashion

1

0

x 3 e 2 x d x = [ x 3

(^) e 2 x

]

0 1 −

∫

1

0

3 x 2 (^) e 2 x

d x

[IBP]

e 2

[

x 2 (^) e 2 x

]

0 1 −

∫

1

0

6 x e 2 x

d x )

[IBP]

e 2

e 2

[

x e 2 x

]

0 1 −

∫

1

0

6 (^) e 2 x

d x

[IBP]

e 2

e 2

[

e 2 x

]

0 1

e 2

Example 4trigonometric function as the second factor.integrate the polynomial factor instead as it is easier to differentiate the other factor. This is the case when we have a logarithm or an inversewhich don’t quite fit into this type. These next two examples fall into the original class, but are a little unusual: in these cases we choose to This is by far the main use of IBP, the idea of eventually differentiating out one of the two functions. There are other important uses of IBP

Evaluate

x (^) −

(^) 1) ln

x 2

  • 1

d x

and

x 2 −

4 ) tan^

− 1 x^

d x.

INTEGRATION BY PARTS

7

Solution.

In both cases integrating the second factor looks rather daunting, certainly to integrate, but each factor differentiates nicely; recall

that

d d x ln

(^) x

=

x 1

and that

d d x tan

− 1 x^ =

x 2 (^).

So if we apply IBP to the above examples then we get

x − (^) 1) ln

x 2

  • 1

d x =

( x 2 − (^) x ) ln^ (^) ( x 2

  • 1

−^

x 2 − (^) x )

x

x 2

  • 1

d x,

and

x 2 −

4 ) tan^

− 1 x^

d x =

( x 3 − (^4) x ) tan^

− 1 x^ (^) −

x 3 − (^4) x )

x 2

  • 1

d x.

To calculate the integrals

∫ 2 x 3 − 2

x 2

x 2

  • 1

d x

and

x 3 −

4 x

x 2

  • 1

d x

we need to divide the denominator into the numerator and then use the previous list of standard integrals. For example, with the first, we note

x 3 −

2 x 2 = (

x (^) −

x 2

  • 1

x (^) + 2)

and

x 3 − (^2) x 2

x 2

  • 1

d x = ∫ ( 2 x

x

x 2

  • 1^

x 2

  • 1

d x

x 2 −

2 x −

ln (^) ( x 2

  • 1
  • 2 tan

− 1 x^ (^) + const.

function In the same vein as this we can use IBP to integrate functions which, at first glance, don’t seem to be a product — this is done by treating a

F

x ) as the product

F

x ) ×

1 .

Example 5

Evaluate

ln (^) x

d x

and

tan

− 1 x

d x.

8

STANDARD INTEGRATION TECHNIQUES

We see that we have returned to our original integral, and so we can rearrange this equality to get

e x sin

(^) x

d x =

(^) e x (sin

(^) x

−

cos

(^) x ) + const

When IBP needs to be applied repetitively to determine an integral it can often make sense to consider the general case and set up a

reduction

formula

For example, in order to calculate

cos

7 θ dθ

we first set

I

n

∫

cos

n θ^ d θ,

and we will aim to write

I

n in terms of other

I

k where

k < n,

eventually reducing the problem to calculating

I

0 , or

I

1 say, which are simple

Using IBP we seeintegrals.

I

n

cos

n − 1 θ^ ×

cos

(^) θ

d θ =

10

STANDARD INTEGRATION TECHNIQUES

Rearranging this we see

I

n

cos

n − 1 θ^ sin

(^) θ

n

n −

1

n

I

n − 2 .

With this reduction formula

I

n

can be rewritten in terms of simpler and simpler integrals until we are left only needing to calculate

I

0 , if

n

is

even, or

I

1 , if

n

is odd — both these integrals are easy to calculate.

Example 7

Calculate

I

7

∫

cos

7 θ^

d θ.

Solution.

Using the reduction formula above

I

7

cos

6 θ^ (^) sin

(^) θ

I

5

cos

6 θ^ (^) sin

(^) θ

cos^

4 θ^ sin

(^) θ

I

3 )

cos

6 θ^ (^) sin

(^) θ

6 cos

4 θ^ (^) sin

(^) θ

cos^

2 θ^ (^) sin

(^) θ

I

1 )

cos

6 θ^ (^) sin

(^) θ

6 cos

4 θ^ (^) sin

(^) θ

24 cos

2 θ^ (^) sin

(^) θ

sin

(^) θ (^) + const.

Alternative Method

(for those with some knowledge of complex numbers). Recall 2 cos

(^) θ

=

e iθ

(^) e − iθ

so that

128 cos

7 θ^

e 7 iθ

  • 7

e 5 iθ

  • 21

e 3 iθ

  • 35

e iθ

  • 35

e − iθ

  • 21

e − 3 iθ

  • 7

e − 5 iθ

e − 7 iθ

2 cos 7

θ

  • 14 cos 5

θ

  • 42 cos 3

θ

  • 70 cos

(^) θ.

INTEGRATION BY PARTS

11

Example 9Some integrands may involve two variables, such as:

Calculate for positive integers

m, n

the integral

B

m, n

1

0

x m − 1 (^

(^) −

(^) x ) n − 1

d x.

Solution.

Calculating either

B

m,

(^) 1) or

B

, n

) is easy; for example

B

m,

1

0 x m − 1 d x =

m 1

.

So it would seem best to find a reduction formula that moves us towards either of the integrals

B

m,

(^) 1) or

B

, n

). Using integration by parts,

if

n >

2 we have

B

m, n

[

x^ m

m

x ) n − 1 ] 0 1 −

∫

1

0

x m

m

×

n (^) −

(^) 1)

(^) ×

(^) ( −

  1. (

(^) x ) n − 2

d x

So if

n

>

2 we can apply this to see

B

m, n

n −

1

m

B

m

(^) + 1

, n

(^) −

(^) 1)

n −

1

m

×

n (^) −

(^2)

m

  • 1

B

m

(^) + 2

, n

INTEGRATION BY PARTS

13

Equation (1.1) shows this formula also holds for

n = 1

14

STANDARD INTEGRATION TECHNIQUES

where

g ∼

9 . 8 m s

− 2 is the magnitude of the gravitational acceleration. Note the need for a minus sign here as gravity is acting downwards.

Writing

h (^) ( t ) for the height (in meters, say) of

P

over the ground, the

velocity

of the particle is the quantity d

h/

d t — the rate of change of

distance (here, height) with time. The rate of change of velocity with time is called

acceleration

and is the quantity d

2 h/

d t 2

. Thus

Equation (2.1) is not a difficult DE to solve; we can integrate first once,

and then again

where

K

1 and

K

2 are constants.

Currently we don’t know enough about the specific case of the particle

P

to be able to say anything more

about these constants. Note though that whatever the values of

K

1 and

K

2 the graph of

h against

t is a parabola.

Definition 10

An

ordinary differential equation

is a equation relating a function, say

y,

in one variable, say

x,

and finitely many of its

derivatives. i.e. something that can be written in the form

f ( y,

d y

d x , d 2 y

d x 2 (^) , (^) · · ·

d k y

d x k )

= 0

for some function

f

and some natural number

k .

Here

x

is the

independent variable

and the DE governs how the

dependent variable

y

varies with

x

. The equation may have no or many functions

y ( x ) which satisfy it; the problem usually is to find the most general form of

solution

y (^) ( x ) of function which satisfies the differential equation.

Definition 11

A derivative of the form d

k y/^

d x k is said to be of order

k

and we say that a DE has

order

k

if it involves derivatives of order

k

and less.

Example 12

The following are types and famous examples of ordinary differential equations.

A

first order differential equation

is one of the form

d y

d x

=

f ( x, y

16

DIFFERENTIAL EQUATIONS

A

k th order inhomogeneous linear differential equation

is one of the form

a k (^) ( x ) d k y

d x k + a k

− 1 (^) ( x ) d k − 1 y

d x k − 1

· · ·

(^) a 1 (^) ( x ) d y

d x

a 0 (^) ( x ) (^) y

=

f ( x ) (^) ,

and the equation is called

homogeneous

if

f ( x ) = 0

The differential equation

d y

d x

=

y,

y (^) (0) = 1

uniquely characterises the function

y

e x .

The equation for simple harmonic motion is

d 2 y

d t 2

=

− ω 2 y

and the DE governing the swinging of a pendulum is

d 2 θ

d t 2

=

−

l^ g sin

(^) θ.

Bessel’s equation

, which relates to vibrations in a circular membrane is

x 2 (^) d 2 y

d x 2

x (^) d y

d x

( x 2 − (^) ν 2 ) y^ = 0

Legendre’s equation,

which relates to

Laplace’s equation

which we will meet in the second course, is

(^) x 2 ) d 2 y

d x 2 −

2 x (^) d y

d x

(^) m

(^) ( m

(^) y

= 0

We return now to equation (2.1), which is a second order DE. In some loose sense solving a DE of order

k

involves integrating

k

times, though

not usually in such an obvious fashion as in the case of (2.1).

So we would expect the solution of an order

k

DE to have

k

undetermined

will see other examples where more, or fewer, thanconstants in it, and this will be the case in most of the simple examples that we look at here. However this is not generally the case and we

k constants are present in the solution.

INTRODUCTION AND HISTORY

17

Putting these values into the general solution (2.3) gives us

K

2

2 g + K 1 +

K

2

K

1 = 5 +

2 g (^).

Hence

h (^) ( t ) =

gt 2

( 5 +

2 g ) t (^) + 100

Again we have uniquely characterised the trajectory of

P

by saying where the particle is at two times. The conditions (2.5) are called

boundary

conditions

and the DE (2.1) with the boundary conditions (2.5) is called a

boundary-value problem.

Having solved the earlier initial-value problem and found an equation for

h

then we could easily answer other questions about

P

(^) ’s behaviour

such as

what is the greatest height

P

achieves?

The maximum height will be a stationary value for

h (^) ( t ) and so we need to solve the equation

h ′ (0) = 0^

which has solution

t = 10

/g.

At this time the height is

h (^) (

/g

) = 100 +

g

g

g 2

= 100 +

g .

what time does

P

hit the ground?

see thatOne of these times is meaningless (being negative, and so before our experiment began) and so we take the other (positive) solution and

P

hits the ground at

t

10 + 10

g

g

INTRODUCTION AND HISTORY The next example is designed to show that we should not be cavalier when solving DEs.

19

Example 13

Find the general solution of the DE

d^ y

d x ) 2 = 4

y.

Solution.

Given this equation we might argue as follows — taking square roots we get

d y

d x

= 2

y

y d y

d x

= 1

From the chain rule we recognise the LHS as the derivative of

y,

and so, integrating with respect to (wrt)

x

we have

y

x (^) +

(^) K,

where

K

is

a constant. Squaring this, we might think that the general solution has the form

y = (

x

K

) 2 .

this oversight. Thinking a little more, we might realise that we have missed the most obvious of solutions: the zero function,We could have been more careful to include positive and negative square roots at the (2.7) stage, but actually we don’t lose any solutions by What, if anything, could have gone wrong with this argument?

y = 0

which isn’t

treatingpresent in our ‘general’ solution. At this point we might scold ourselves for committing the crime of dividing by zero at stage (2.7), rather than

y = 0 as a separate case. But we have lost many more than just one solution at this point here by being careless. The general solution

of (2.6) is in fact

y (^) ( x ) =

where

a

and

b are constants satisfying

6 a 6 b 6 ∞.

We missed whole families of solutions by being careless — note also that the general

20

DIFFERENTIAL EQUATIONS