+ All Categories
Home > Documents > UWMath222_2013s

UWMath222_2013s

Date post: 03-Jun-2018
Category:
Upload: paul-seo
View: 217 times
Download: 0 times
Share this document with a friend

of 161

Transcript
  • 8/12/2019 UWMath222_2013s

    1/161

    MATH 222Second Semester

    Calculus

    Spring 2013

    Typeset:March 14, 2013

    1

  • 8/12/2019 UWMath222_2013s

    2/161

    2

    Math 222 2nd Semester CalculusLecture notes version 1.0 (Spring 2013)

    is is a self contained set of lecture notes for Math 222. e notes were wri en bySigurd Angenent, as part ot the MIU calculus project. Some problems were contributedby A.Miller.

    e LATEX les, as well as the I and O les which were used to producethese notes are available at the following web site

    http://www.math.wisc.edu/~angenent/MIU-calculus

    ey are meant to be freely available for non-commercial use, in the sense that freeso ware is free. More precisely:

    Copyright (c) 2012 Sigurd B. Angenent. Permission is granted to copy, distribute and/or modify thisdocument under the terms of the GNU Free Documentation License, Version 1.2 or any laterversion published by the Free So ware Foundation; with no Invariant Sections, no Front-CoverTexts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU FreeDocumentation License.

    http://www.math.wisc.edu/~angenent/MIU-calculus
  • 8/12/2019 UWMath222_2013s

    3/161

    Contents

    Chapter I. Methods of Integration 71. Definite and indefinite integrals 72. Problems 93. First trick: using the double angle formulas 94. Problems 115. Integration by Parts 126. Reduction Formulas 157. Problems 188. Partial Fraction Expansion 209. Problems 2510. Substitutions for integrals containing the expression ax 2 + bx + c 2611. Rational substitution for integrals containing x 2 a 2 or a 2 + x 2 3012. Simplifying ax 2 + bx + c by completing the square 3313. Problems 3514. Chapter summary 3615. Mixed Integration Problems 36

    Chapter II. Proper and Improper Integrals 411. Typical examples of improper integrals 412. Summary: how to compute an improper integral 443. More examples 454. Problems 47

    5. Estimating improper integrals 486. Problems 54

    Chapter III. First order differential Equations 571. What is a Differential Equation? 572. Two basic examples 573. First Order Separable Equations 594. Problems 605. First Order Linear Equations 616. Problems 637. Direction Fields 648. Eulers method 659. Problems 6710. Applications of Differential Equations 6711. Problems 71

    Chapter IV. Taylors Formula 731. Taylor Polynomials 732. Examples 743. Some special Taylor polynomials 784. Problems 795. The Remainder Term 806. Lagranges Formula for the Remainder Term 827. Problems 848. The limit as x 0, keeping n fixed 84

    3

  • 8/12/2019 UWMath222_2013s

    4/161

    4 CONTENTS

    9. Problems 9110. Differentiating and Integrating Taylor polynomials 9211. Problems on Integrals and Taylor Expansions 94

    12. Proof of Theorem 8.8 9413. Proof of Lagranges formula for the remainder 95

    Chapter V. Sequences and Series 971. Introduction 972. Sequences 993. Problems on Limits of Sequences 1024. Series 1025. Convergence of Taylor Series 1056. Problems on Convergence of Taylor Series 1087. Leibniz formulas for ln 2 and /4 1098. Problems 109

    Chapter VI. Vectors 1111. Introduction to vectors 1112. Geometric description of vectors 1133. Parametric equations for lines and planes 1164. Vector Bases 1185. Dot Product 1196. Cross Product 1277. A few applications of the cross product 1318. Notation 1339. ProblemsComputing and drawing vectors 13510. ProblemsParametric equations for a line 13711. ProblemsOrthogonal decomposition

    of one vector with respect to another 13812. ProblemsThe dot product 13813. ProblemsThe cross product 139

    Chapter VII. Answers, Solutions, and Hints 141

    Chapter VIII. GNU Free Documentation License 159

  • 8/12/2019 UWMath222_2013s

    5/161

    CONTENTS 5

    f (x ) = dF (x )

    dx

    f (x ) dx = F (x ) + C

    (n + 1) x n = dx n +1

    dx xn dx = xn +1n + 1 + C n = 11x

    = d ln |x|

    dx 1x dx = ln |x|+ C absolutevaluesex =

    de x

    dx ex dx = ex + C sin x =

    d cos xdx sin x dx = cos x + C

    cos x = d sin x

    dx cos x dx = sin x + C tan x =

    d ln |cos x|dx tan x = ln |cos x|+ C absolutevalues

    11 + x2

    = d arctan x

    dx 11 + x2 dx = arctan x + C 1

    1 x2 =

    d arcsin xdx 1 1 x2 dx = arcsin x + C

    f (x ) + g(x ) = dF (x ) + G (x )

    dx {f (x ) + g(x )}dx = F (x ) + G (x) + C cf (x ) =

    d cF (x )dx cf (x ) dx = cF (x ) + C

    F dGdx

    = dF G

    dx dF dx

    G F G dx = F G F G dxTo find derivatives and integrals involving ax instead of ex use a = eln a ,

    and thus ax = ex ln a , to rewrite all exponentials as e... .The following integral is also useful, but not as important as the ones above:

    dxcos x = 12 ln 1 + sin x1 sin x + C for cos x = 0 .Table 1. The list of the standard integrals everyone should know

  • 8/12/2019 UWMath222_2013s

    6/161

  • 8/12/2019 UWMath222_2013s

    7/161

    CHAPTER I

    Methods of Integration

    e basic question that this chapter addresses is how to compute integrals, i.e.Given a function y = f (x ) how do we nd

    a function y = F (x ) whose derivative is F (x ) = f (x )? e simplest solution to this problem is to look it up on the Internet. Any integral that

    we compute in this chapter can be found by typing it into the following web page:

    http://integrals.wolfram.comOther similar websites exist, and more extensive so ware packages are available.

    It is therefore natural to ask why should we learn how to do these integrals? equestion has at least two answers.

    First, there are certain basic integrals that show up frequently and that are relativelyeasy to do (once we know the trick), but that are not included in a rst semester calculuscourse for lack of time. Knowing these integrals is useful in the same way that knowingthings like 2 + 3 = 5 saves us from a lot of unnecessary calculator use.

    Electronic Circuit

    t t

    Output signal

    g(t ) = t0 e t f ( ) d f (t ) g(t )

    Input signalf (t )

    e second reason is that we o en are not really interested in specic integrals, butin general facts about integrals. For example, the output g(t) of an electric circuit (or me-chanical system, or a biochemical system, etc.) is o en given by some integral involvingthe input f (t). e methods of integration that we will see in this chapter give us thetools we need to understand why some integral gives the right answer to a given electriccircuits problem, no ma er what the input f (t) is.

    1. Denite and indenite integrals

    We recall some facts about integration from rst semester calculus.1.1. Denition. A function y = F (x ) is called an antiderivative of another function

    y = f (x ) if F (x ) = f (x ) for all x .For instance, F (x ) = 12 x

    2 is an antiderivative of f (x ) = x , and so is G(x ) = 12 x2 +

    2012.e Fundamental eorem of Calculus states that if a function y = f (x ) is con-

    tinuous on an interval a x b, then there always exists an antiderivative F (x ) of f ,7

    http://integrals.wolfram.com/
  • 8/12/2019 UWMath222_2013s

    8/161

    8 I. METHODS OF INTEGRATION

    Indefinite integral Definite integral

    f (x )dx is a function of x . b

    a f (x )dx is a number.

    By definition f (x )dx is any function F (x ) whose derivative is f (x ). b

    a f (x )dx was defined in terms of Rie-mann sums and can be interpreted asarea under the graph of y = f (x )when f (x ) 0.

    If F (x ) is an antiderivative of f (x ),then so is F (x ) + C . Therefore

    f (x )dx = F (x ) + C ; an indefiniteintegral contains a constant ( + C ). b

    a f (x )dx is one uniquely definednumber; an indefinite integral does notcontain an arbitrary constant.

    x is not a dummy variable, for example,

    2xdx = x2 + C and 2tdt = t 2 + C are functions of different variables, sothey are not equal. (See Problem 1.)

    x is a dummy variable, for example,

    10 2xdx = 1 , and 10 2tdt = 1 ,so 10 2xdx = 10 2tdt.Whether we use x or t the integral

    makes no difference.

    Table 1. Important differences between definite and indefinite integrals

    and one has

    (1) b

    af (x ) dx = F (b) F (a ).

    For example, if f (x ) = x, then F (x ) = 12 x2 is an antiderivative for f (x ), and thus

    b

    a x dx = F (b) F (a) = 12 b2 12 a 2 .e best way of computing an integral is o en to nd an antiderivative F of thegiven function f , and then to use the Fundamental eorem ( 1). How to go about nding an antiderivative F for some given function f is the subject of this chapter.

    e following notation is commonly used for antiderivatives:

    (2) F (x ) = f (x )dx.e integral that appears here does not have the integration bounds a and b. It is called an

    indenite integral , as opposed to the integral in ( 1) which is called a denite integral .It is important to distinguish between the two kinds of integrals. Table 1 lists the maindifferences.

  • 8/12/2019 UWMath222_2013s

    9/161

    3. FIRST TRICK: USING THE DOUBLE ANGLE FORMULAS 9

    2. Problems

    1. Compute the following integrals:(a) A = x

    2 dx, [ A ]

    (b) B = t 2 dt, [ A ]

    (c) C = x 2 dt, [ A ]

    (d) I = xt dt, [ A ](e) J = xt dx.2. Oneof the following three integrals is notthe same as the other two:

    A = 4

    1x2 dx,

    B = 4

    1t2 dt,

    C = 4

    1x2 dt.

    Which one? Explain your answer.

    3. Which of the following inequalities aretrue?

    (a) 4

    2(1 x2 )dx > 0

    (b) 4

    2(1 x 2 )dt > 0

    (c) (1 + x 2 )dx > 04. One of the following statements is cor-rect. Which one, and why?

    (a) x

    02t 2 dt = 23 x

    3 .

    (b) 2t2 dt = 23 x3 .(c) 2t 2 dt = 23 x 3 + C .

    3. First tri : using the double angle formulas

    e rst method of integration we see in this chapter uses trigonometric identitiesto rewrite functions in a form that is easier to integrate. is particular trick is useful

    in certain integrals involving trigonometric functions and while these integrals show upfrequently, the double angle trick is not a general method for integration.

    3.1. e double angle formulas. e simplest of the trigonometric identities are thedouble angle formulas. ese can be used to simplify integrals containing either sin 2 xor cos2 x .

    Recall that

    cos2 sin2 = cos 2 and cos2 + sin2 = 1 ,Adding these two equations gives

    cos2 = 12 (cos 2 + 1)

    while subtracting them gives

    sin2 = 12

    (1 cos 2 ) .ese are the two double angle formulas that we will use.

  • 8/12/2019 UWMath222_2013s

    10/161

    10 I. METHODS OF INTEGRATION

    3.1.1. Example. e following integral shows up in many contexts, so it is worthknowing:

    cos2 x dx = 12 (1 + cos 2x )dx=

    12

    x + 12

    sin 2x + C

    = x2

    + 14

    sin 2x + C.

    Since sin 2x = 2 sin x cos x this result can also be wri en as

    cos2 x dx = x2 + 12 sin x cos x + C.3.1.2. A more complicated example. If we need to nd

    I = cos4 x dxthen we can use the double angle trick once to rewrite cos 2 x as 12 (1 + cos 2x ), whichresults in

    I = cos4 x dx = {12

    (1 + cos 2x )}2 dx =

    14 (1 + 2 cos 2x + cos2 2x dx.

    e rst two terms are easily integrated, and now that we know the double angle trick

    we also can do the third term. We nd

    cos2 2x dx = 12 (1 + cos 4x dx = x2

    + 18

    sin 4x + C.

    Going back to the integral I we get

    I = 14 (1 + 2 cos 2x + cos2 2x dx

    = x4

    + 14

    sin 2x + 12(

    x4

    + 18

    sin 4x + C

    = 3x

    8 +

    14

    sin 2x + 116

    sin 4x + C

    3.1.3. Example without the double angle trick. e integral

    J = cos3 x dxlooks very much like the two previous examples, but there is very different trick that willgive us the answer. Namely, substitute u = sin x . en d u = cos xdx , and cos2 x =

  • 8/12/2019 UWMath222_2013s

    11/161

    4. PROBLEMS 11

    1 sin2 x = 1 u2 , so thatJ =

    cos2 x cos x dx

    = (1 sin2 x) cos x dx= (1 u2) du= u

    13

    u3 + C

    = sin x 13

    sin3 x + C.

    In summary, thedouble angle formulas areuseful for certain integrals involvingpow-ers of sin( ) or cos( ), but not all. In addition to the double angle identities there areother trigonometric identities that can be used to nd certain integrals. See the exercises.

    4. Problems

    Compute the following integrals usingthe double angle formulas if necessary:

    1. (1 + sin 2)2 d .2. (cos + sin )2 d.3. Find sin2 x cos2 x dx(hint: use the other double angle formulasin 2 = 2 sin cos .) [ A ]

    4. cos5 d [ A ]5. Find sin2 + cos2

    2d [ A ]

    The double angle formulas are special cases of the following trig identities:

    2 sin A sin B = cos(A B ) cos(A + B )2 cos A cos B = cos(A B ) + cos(A + B )2 sin A cos B = sin(A + B ) + sin(A B )Use these identities to compute the following integrals.

    6. sin x sin 2x dx [ A ]7.

    0sin 3x sin 2x dx

    8. (sin 2 cos 32 d.

    9. /2

    0 (sin 2 + sin 42 d.

    10.

    0sin kx sin mx dx where k and m are

    constant positive integers. Simplify your an-swer! (careful: a er working out your solu-tion, check if you didnt divide by zero any-where.)

    11. Let a be a positive constant and

    I a =

    /2

    0

    sin(a ) cos() d.

    (a) Find I a if a = 1 .

    (b) Find I a if a = 1 . (Dont divide byzero.)

    12. The input signal for a given electroniccircuit is a function of time V in(t ). The out-put signal is given by

    V out (t ) = t

    0sin(t s )V in(s ) ds.

    Find V out (t ) if V in(t) = sin(at ) where a > 0is some constant.

    13. The alternating electric voltage comingout of a socket in any American living roomis said to be 110Volts and 50Herz (or 60, de-pending on where you are). This means thatthe voltage is a function of time of the form

    V (t) = A sin(2 tT

    )

    where T = 150 sec is how long one oscilla-tion takes (if the frequency is 50 Herz, then

  • 8/12/2019 UWMath222_2013s

    12/161

    12 I. METHODS OF INTEGRATION

    there are 50 oscillations per second), and Ais the amplitude (the largest voltage duringany oscillation).

    2T 3T 4T T t

    A=amplitude

    V(t)

    0 2 0 0

    V RMS

    5T 6T

    10 0

    The 110 Volts that is specified is not theamplitude A of the oscillation, but instead itrefers to the Root Mean Square of the volt-age. By definition the R.M.S. of the oscillat-ing voltage V (t) is

    110 = 1T T

    0V (t )2 dt.

    (it is the square root of the mean of thesquare of V (t)).

    Compute the amplitude A .

    5. Integration by Parts

    While the double angle trick is just that, a (useful) trick, the method of integrationby parts is very general and appears in many different forms. It is the integration coun-terpart of the product rule for differentiation.

    5.1. e product rule and integration by parts. Recall that the product rule saysthat

    dF (x)G (x )dx

    = dF (x )

    dx G(x ) + F (x )

    dG(x )dx

    and therefore, a er rearranging terms,

    F (x )dG (x )

    dx =

    dF (x )G (x )

    dx

    dF (x )

    dx G(x ).

    If we integrate both sides we get the formula for integration by parts

    F (x ) dG (x )dx dx = F (x )G (x) dF (x )dx G(x ) dx.Note that the effect of integration by parts is to integrate one part of the function ( G (x)got replaced by G (x )) and to differentiate the other part ( F (x ) got replaced by F (x )).For any given integral there are many ways of choosing F and G , and it not always easyto see what the best choice is.

    5.2. An Example Integrating by parts once. Consider the problem of nding

    I = xe x dx.We can use integration by parts as follows:

    x F (x )ex

    G (x )dx = x

    F (x )ex

    G (x ) ex G (x )

    1

    F (x )dx = xe x ex + C.

    Observethat in this example ex waseasy to integrate, while thefactor x becomesan easierfunction when you differentiate it. is is the usual state of affairs when integration byparts works: differentiating one of the factors ( F (x )) should simplify the integral, whileintegrating the other ( G (x )) should not complicate things (too much).

  • 8/12/2019 UWMath222_2013s

    13/161

    5. INTEGRATION BY PARTS 13

    5.3. Another example. What is

    x sin x dx?Since sin x = d(cos x )dx we can integrate by parts x F (x )

    sin x

    G (x )dx = x

    F (x )(cos x )

    G (x ) 1 F (x )

    (cos x )

    G (x )dx = x cos x + sin x + C.

    5.4. Example Repeated Integration by Parts. Lets try to compute

    I = x2e2x dxby integrating by parts. Since e

    2x

    = d 12 e

    2 x

    dx one has

    (3) x2 F (x )e2x

    G (x )dx = x2

    e2x

    2 e2x2 2x dx = 12 x2e2x e2x x dx.To do the integral on the le we have to integrate by parts again:

    e2x x dx = 12 e2x G (x )

    x

    F (x ) 12 e2x G (x )

    1

    F (x )dx. =

    12

    xe 2x 12 e2x dx = 12 xe 2x 14e2x + C.

    Combining this with ( 3) we get

    x2

    e2x

    dx = 12x

    2

    e2x

    12xe

    2x

    + 14 e

    2x

    C (Be careful with all the minus signs that appear when integrating by parts.)

    5.5. Another example of repeated integration by parts. e same procedure as inthe previous example will work whenever we have to integrate

    P (x )eax dxwhere P (x ) is any polynomial, and a is a constant. Every time we integrate by parts, weget this

    P (x ) F (x )e

    ax

    G (x ) dx = P (x )eax

    a eax

    a P (x ) dx

    = 1a

    P (x )eax 1a P (x )eax dx.

    We have replaced the integral P (x )eax dx with the integral P (x )eax dx . is is thesame kind of integral, but it is a li le easier since the degree of the derivative P (x ) isless than the degree of P (x ).

  • 8/12/2019 UWMath222_2013s

    14/161

    14 I. METHODS OF INTEGRATION

    5.6. Example sometimes the factor G (x ) is invisible. Here is how we can get theantiderivative of ln x by integrating by parts:

    ln x dx = ln x F (x ) 1 G (x )

    dx

    = ln x x 1x x dx= x ln x 1dx= x ln x x + C.

    We can do P (x ) ln x dx in the same way if P (x) is any polynomial. For instance, tocompute

    (z2 + z) ln z dz

    we integrate by parts:

    (z2 + z) G (z )ln z

    F (z )dz = (13 z3 + 12 z2 ln z (13 z3 + 12 z2

    1z

    dz

    = (13 z3 + 12 z2 ln z (13 z2 + 12 z dz= (13 z3 + 12 z2 ln z 19 z3 14 z2 + C.5.7. An example where we get the original integral ba . It can happen that a er

    integrating by parts a few times the integral we get is the same as the one we startedwith.When this happens we have found an equation for the integral, which we can then try tosolve. e standard example in which this happens is the integral

    I = ex sin 2x dx.We integrate by parts twice:

    ex F (x )sin 2x

    G (x )dx = ex sin 2x ex F (x )

    2 cos 2x

    G (x )dx

    = ex sin 2x 2 ex cos 2x dx= ex sin 2x 2ex cos 2x 2 ex 2 sin 2x dx= e

    x

    sin 2x 2ex

    cos 2x 4 ex

    sin 2x dx.

    Note that the last integral here is exactly I again. erefore the integral I satises

    I = ex sin 2x 2ex cos 2x 4I.We solve this equation for I , with result

    5I = ex sin 2x 2ex cos 2x = I = 15(ex sin 2x 2ex cos 2x .

  • 8/12/2019 UWMath222_2013s

    15/161

    6. REDUCTION FORMULAS 15

    Since I is an indenite integral we still have to add the arbitrary constant:

    I = 15(e

    x

    sin 2x 2ex

    cos 2x + C.

    6. Reduction Formulas

    We have seen that we can compute integrals by integrating by parts, and that wesometimeshave to integrateby parts more than once to get theanswer. ere are integralswhere we have to integrate by parts not once, not twice, but n -times before the answershows up. To do such integrals it is useful to carefully describe what happens each timewe integrate by parts before we do the actual integrations. e formula that describeswhat happens a er one partial integration is called a reduction formula. All this is bestexplained by an example.

    6.1. First example of a reduction formula. Consider the integral

    I n = xn eax dx, (n = 0 , 1, 2, 3, . . . )or, in other words, consider all the integrals

    I 0 = eax dx, I 1 = xe ax dx, I 2 = x2eax dx, I 3 = x3eax dx , . . .and so on. We will consider all these integrals at the same time.

    Integration by parts in I n gives us

    I n = xn

    F (x )

    eax

    G (x )

    dx

    = x n1a

    eax nx n 1 1a eax dx=

    1a

    x n eax na xn 1eax dx.

    We havent computed the integral, and in fact the integral that we still have to do is of the same kind as the one we started with (integral of x n 1eax instead of x n eax ). Whatwe have derived is the following reduction formula

    I n = 1a

    x n eax na

    I n 1 ,

    which holds for all n .

    For n = 0 we do not need the reduction formula to nd the integral. We have

    I 0 = eax dx = 1a eax + C.When n = 0 the reduction formula tells us that we have to compute I n 1 if we want tond I n . e point of a reduction formula is that the same formula also applies to I n 1 ,and I n 2 , etc., so that a er repeated application of the formula we end up with I 0 , i.e., anintegral we know.

  • 8/12/2019 UWMath222_2013s

    16/161

    16 I. METHODS OF INTEGRATION

    For example, if we want to compute x3eax dx we use the reduction formula threetimes:I 3 = 1a x

    3eax 3a I 2=

    1a

    x3eax 3a

    1a

    x2eax 2a

    I 1

    = 1a

    x3eax 3a

    1a

    x2eax 2a

    1a

    xe ax 1a

    I 0

    Insert the known integral I 0 = 1a eax + C and simplify the other terms and we get

    x3eax dx = 1a x3eax 3a 2 x2eax + 6a 3 xe ax 6a 4 eax + C.6.2. Reduction formula requiring two partial integrations. Consider

    S n = xn sin x dx.en for n 2 one has

    S n = x n cos x + n xn 1 cos x dx= x n cos x + nx n 1 sin x n (n 1) xn 2 sin x dx.

    us we nd the reduction formula

    S n = x n cos x + nx n 1 sin x n (n 1)S n 2 .Each time we use this reduction, the exponent n drops by 2, so in the end we get eitherS 1 or S 0 , depending on whether we started with an odd or even n . ese two integralsare

    S 0 = sin x dx = cos x + C S 1 = x sin x dx = x cos x + sin x + C.

    (Integrate by parts once to nd S 1 .)As an example of how to use the reduction formulas for S n lets try to compute S 4 :

    x4 sin x dx = S 4 = x4 cos x + 4 x3 sin x 4 3S 2=

    x4 cos x + 4 x3 sin x

    4

    3

    {x2 cos x + 2 x sin x

    2

    1S 0

    }At this point we use S 0 = sin x dx = cos x + C , and we combine like terms. isresults in x4 sin x dx = x4 cos x + 4 x3 sin x

    4 3 {x2 cos x + 2 x sin x 2 1(cos x )}+ C = (x4 + 12 x2 24 cos x + (4x3 + 24 x sin x + C.

  • 8/12/2019 UWMath222_2013s

    17/161

    6. REDUCTION FORMULAS 17

    6.3. A reduction formula where you have to solve for I n . We try to compute

    I n =

    (sin x )n dx

    by a reduction formula. Integrating by parts we get

    I n = (sin x )n 1 sin x dx= (sin x )n 1 cos x (cos x)(n 1)(sin x )n 2 cos x dx= (sin x )n 1 cos x + ( n 1) (sin x )n 2 cos2 x dx.

    We now use cos 2 x = 1 sin2 x , which givesI n = (sin x )n 1 cos x + ( n 1)

    {sinn 2 x sinn x

    } dx

    = (sin x )n

    1

    cos x + ( n 1)I n 2 (n 1)I n .We can think of this as an equation for I n , which, when we solve it tells usnI n = (sin x )n 1 cos x + ( n 1)I n 2

    and thus implies

    (4) I n = 1n

    sinn 1 x cos x + n 1n

    I n 2 .

    Since we know the integrals

    I 0 = (sin x )0dx = dx = x + C and

    I 1 = sin x dx = cos x + C the reduction formula ( 4) allows us to calculate I n for any n 2.6.4. A reduction formula that will come in handy later. In the next section we will

    see how the integral of any rational function can be transformed into integrals of easierfunctions, the most difficult of which turns out to be

    I n = dx(1 + x2)n .When n = 1 this is a standard integral, namely

    I 1 = dx1 + x2 = arctan x + C.When n > 1 integration by parts gives us a reduction formula. Heres the computation:

    I n = (1 + x2)n dx=

    x(1 + x2)n x (n )(1 + x2

    n 1 2x dx

    = x

    (1 + x2)n + 2 n x2(1 + x2)n +1 dx

  • 8/12/2019 UWMath222_2013s

    18/161

    18 I. METHODS OF INTEGRATION

    Applyx2

    (1 + x2

    )n +1 =

    (1 + x2) 1(1 + x

    2

    )n +1 =

    1

    (1 + x2

    )n

    1

    (1 + x2

    )n +1

    to get

    x2(1 + x2)n +1 dx = 1(1 + x2)n 1(1 + x2)n +1 dx = I n I n +1 .Our integration by parts therefore told us that

    I n = x

    (1 + x2)n + 2 n(I n I n +1 ,which we can solve for I n +1 . We nd the reduction formula

    I n +1 = 12n

    x(1 + x2)n

    + 2n 1

    2n I n .

    As an example of how we can use it, we start with I 1 = arctan x + C , and concludethat

    dx(1 + x2)2 = I 2 = I 1+1=

    12 1

    x(1 + x2)1

    + 2 1 1

    2 1 I 1

    = 12x

    1 + x2 + 12 arctan x + C.

    Apply the reduction formula again, now with n = 2 , and we get

    dx(1 + x2)3 = I 3 = I 2+1=

    12 2

    x(1 + x2)2

    + 2 2 1

    2 2 I 2

    = 14 x(1 + x2)2 + 34 12 x1 + x2

    + 12 arctan x

    = 14x

    (1 + x2)2 + 38

    x1 + x2

    + 38 arctan x + C.

    7. Problems

    1. Evaluate xn ln x dx where n = 1.[ A ]

    2. Assume a and b are constants, and com-

    pute eax

    sin bx dx . [Hint: Integrate byparts twice; you can assume that b = 0 .][ A ]

    3. Evaluate eax cos bx dx where a, b = 0 .[ A ]

    4. Prove the formula

    xn ex dx = x n ex n xn 1 ex dxand use it to evaluate x2 ex dx .5. Use 6.3 to evaluate sin2 x dx . Showthat the answer is the same as the answeryou get using the half angle formula.

    6. Use the reduction formula in 6.3 to com-

    pute /2

    0sin14 xdx . [ A ]

  • 8/12/2019 UWMath222_2013s

    19/161

  • 8/12/2019 UWMath222_2013s

    20/161

    20 I. METHODS OF INTEGRATION

    8. Partial Fraction Expansion

    By denition, a rational function is a quotient (a ratio ) of polynomials,

    f (x ) = P (x)Q (x )

    = pn x n + pn 1x

    n 1 + + p1x + p0q d x d + q d1x

    d1 + + q 1x + q 0.

    Such rational functions can alwaysbe integrated, and the trick that allows you to do this iscalled a partial fraction expansion . e whole procedure consists of several steps thatare explained in this section. e procedure itself has nothing to do with integration: its just a way of rewriting rational functions. It is in fact useful in other situations, such asnding Taylor expansions (see Chapter IV) and computing inverse Laplace transforms(see M 319.)

    8.1. Reduce to a proper rational function. A proper rational function is a rationalfunction P (x )/ Q (x ) where the degree of P (x ) is strictly less than the degree of Q (x ).

    e method of partial fractions only applies to proper rational functions. Fortunatelytheres an additional trick for dealing with rational functions that are not proper.If P / Q isnt proper, i.e. if degree(P ) degree(Q ), then you divide P by Q , withresult

    P (x )Q (x )

    = S (x ) + R(x )Q (x )

    where S (x ) is the quotient, and R (x ) is the remainder a er division. In practice youwould do a long division to nd S (x ) and R (x ).

    8.2. Example. Consider the rational function

    f (x ) = x3 2x + 2

    x2

    1

    .

    Here the numerator has degree 3 which is more than the degree of the denominator(which is 2). e function f (x ) is therefore not a proper rational function. To applythe method of partial fractions we must rst do a division with remainder. One has

    x = S (x )x2 1 x32x+2x3 x

    x+2 = R (x )so that

    f (x ) = x3 2x + 2

    x2 1 = x + x + 2

    x2 1When we integrate we get

    x3 2x + 2x2 1 dx = x + x + 2x2 1 dx=

    x2

    2 + x + 2x2 1 dx.

    e rational function that we still have to integrate, namely x +2x 2 1 , is proper: its numer-ator has lower degree than its denominator.

  • 8/12/2019 UWMath222_2013s

    21/161

    8. PARTIAL FRACTION EXPANSION 21

    8.3. Partial Fraction Expansion: e Easy Case. To compute the partial fractionexpansion of a proper rational function P (x )/ Q (x ) you must factor the denominatorQ (x ). Factoring the denominator is a problem as difficult as nding all of its roots; inMath 222 we shall only do problems where the denominator is already factored into linearand quadratic factors, or where this factorization is easy to nd.

    In the easiest partial fractions problems, all the roots of Q (x ) are real numbers anddistinct, so the denominator is factored into distinct linear factors, say

    P (x )Q (x )

    = P (x )

    (x a 1)(x a 2) (x a n ).

    To integrate this function we nd constants A 1 , A 2 , . . . , A n so that

    P (x)Q (x )

    = A1x a1

    + A2x a 2

    + + Anx a n

    . (#)

    en the integral is

    P (x )Q (x ) dx = A 1 ln |x a 1|+ A2 ln |x a 2|+ + An ln |x a n |+ C.One way to nd the coefficients A i in (#) is called the method of equating coeffi-

    cients . In this method we multiply both sides of (#) with Q(x ) = ( x a1) (x a n ).e result is a polynomial of degree n on both sides. Equating the coefficients of thesepolynomial gives a system of n linear equations for A1 , , A n . You get the A i by solvingthat system of equations.

    Another much faster way to nd the coefficients A i is the Heaviside tri . Multiplyequation (#) by x a i and then plug in x = a i . On the right you are le with A i so

    A i = P (x )(x a i )

    Q (x ) x = a i=

    P (a i )(a i a 1) (a i a i1)(a i a i +1 ) (a i a n )

    .

    8.4. Previous Example continued. To integrate x + 2x2 1

    we factor the denominator,

    x2 1 = ( x 1)(x + 1) .e partial fraction expansion of x + 2

    x2 1 then is

    (5) x + 2x2 1

    = x + 2(x 1)(x + 1)

    = Ax 1

    + Bx + 1

    .

    Multiply with (x 1)(x + 1) to getx + 2 = A (x + 1) + B (x 1) = ( A + B )x + ( A B ).

    e functions of x on the le and right are equal only if the coefficient of x and theconstant term are equal. In other words we must have

    A + B = 1 and A B = 2 . Named a er O H , a physicist and electrical engineer in the late 19th and early 20 th century. More properly, you should take the limit x a i . e problem here is that equation (#) has x a i in

    the denominator, so that it does not hold for x = a i . erefore you cannot set x equal to a i in any equationderived from (#) . But you can take the limit x a i , which in practice is just as good.

  • 8/12/2019 UWMath222_2013s

    22/161

    22 I. METHODS OF INTEGRATION

    ese are two linear equations for two unknowns A and B , which we now proceed tosolve. Adding both equations gives 2A = 1 , so that A = 12 ; from the rst equation one

    then nds B = 1 A = 32 . Sox + 2x2 1

    = 1/2x 1

    3/2x + 1

    .

    Instead, we could also use the Heaviside trick: multiply ( 5) with x 1 to getx + 2x + 1

    = A + Bx 1x + 1

    Take the limit x 1 and you nd1 + 21 + 1

    = A, i.e. A = 12

    .

    Similarly, a er multiplying ( 5) with x + 1 one gets

    x + 2x 1

    = Ax + 1

    x 1 + B,

    and le ing x 1 you ndB = (1) + 2

    (1) 1 =

    32

    ,

    as before.Either way, the integral is now easily found, namely,

    x3 2x + 1x2 1 dx = x2

    2 + x + 2x2 1 dx

    = x2

    2 + 1/2x 1 3/2x + 1 dx

    =

    x2

    2 +

    1

    2 ln |x 1| 3

    2 ln |x + 1 |+ C.8.5. Partial Fraction Expansion: e General Case. When the denominator Q (x)

    contains repeated factors or quadratic factors (or both) the partial fraction decompositionis more complicated. In the most general case the denominator Q (x ) can be factored inthe form

    (6) Q(x ) = ( x a 1)k 1 (x a n )k n (x2 + b1x + c1)1 (x2 + bm x + cm )mHere we assume that the factors x a1 , , x a n are all different, and we also assumethat the factors x2 + b1x + c1 , , x2 + bm x + cm are all different.

    It is a theorem from advanced algebra that you can always write the rational functionP (x )/ Q (x ) as a sum of terms like this

    (7) P (x )

    Q (x ) =

    +

    A

    (x a i )k +

    +

    Bx + C

    (x2 + bj x + cj ) +

    How did this sum come about?For each linear factor (x a )k in the denominator ( 6) you get terms

    A1x a

    + A2

    (x a )2 + +

    Ak(x a )k

    in the decomposition. ere are as many terms as the exponent of the linear factor thatgenerated them.

  • 8/12/2019 UWMath222_2013s

    23/161

    8. PARTIAL FRACTION EXPANSION 23

    For each quadratic factor (x2 + bx + c) you get terms

    B 1x + C 1x2 + bx + c +

    B2x + C 2(x2 + bx + c)2 + +

    Bm x + C m(x2 + bx + c) .

    Again, there are as many terms as the exponent with which the quadratic factor appearsin the denominator ( 6).

    In general, you nd the constants A ... , B ... and C ... by the method of equating coef-cients.

    Unfortunately, in the presence of quadratic factors or repeated linear fac- tors the Heaviside trick does not give the whole answer; we really have to use the method of equating coefficients.

    e workings of this method are best explained in an example.

    8.6. Example. Find the partial fraction decomposition of

    f (x ) = x2 + 2x2(x2 + 1)

    and compute

    I = x2 + 2x2(x2 + 1) dx.e degree of the denominator x2(x2 + 1) is four, so our partial fraction decomposition

    must also contain four undetermined constants. e expansion should be of the form

    x2 + 2

    x2

    (x2

    + 1) =

    A

    x +

    B

    x2 +

    Cx + D

    x2

    + 1 .

    To nd the coefficients A,B, C,D we multiply both sides with x2(1 + x2),

    x2 + 2 = Ax (x2 + 1) + B (x2 + 1) + x2(Cx + D )

    x2 + 2 = ( A + C )x3 + ( B + D )x2 + Ax + B

    0 x3 + 1 x2 + 0 x + 2 = ( A + C )x3 + ( B + D )x2 + Ax + BComparing terms with the same power of x we nd that

    A + C = 0 , B + D = 1 , A = 0 , B = 2 .

    ese are four equations for four unknowns. Fortunately for us they are not very difficult

    in this example. We nd A = 0 , B = 2 , C = A = 0 , and D = 1 B = 1, whencef (x ) =

    x2 + 2x2(x2 + 1)

    = 2x2

    1x2 + 1

    .

    e integral is therefore

    I = x2 + 2x2(x2 + 1)

    dx = 2x arctan x + C.

  • 8/12/2019 UWMath222_2013s

    24/161

  • 8/12/2019 UWMath222_2013s

    25/161

    9. PROBLEMS 25

    e reduction formula from example 6.4 then allows us to compute this integral.An alternative approach is to use complex numbers. If we allow complex numbers

    then the quadratic factors x2 + bx + c can be factored, and our partial fraction expansiononly contains terms of the form A/( x a ) p , although A and a can now be complexnumbers. e integrals are then easy, but the answer has complex numbers in it, andrewriting the answer in terms of real numbers again can be quite involved. In this coursewe will avoid complex numbers and therefore we will not explain this any further.

    9. Problems

    1. Express each of the following rationalfunctions as a polynomial plus a proper ra-tional function. (See 8.1 for definitions.)

    (a) x3

    x3 4 [ A ]

    (b) x3

    + 2 xx3 4

    [ A ]

    (c) x3 x 2 x 5

    x3 4 [ A ]

    (d) x3 1x2 1

    [ A ]

    2. Compute the following integrals by com-pleting the square:

    (a) dxx 2 + 6 x + 8 , [ A ](b)

    dxx2 + 6 x + 10 , [ A ]

    (c) dx5x 2 + 20 x + 25 . [ A ]3. Use the method of equating coefficientsto find numbers A , B , C such that

    x 2 + 3x(x + 1)( x 1)

    = Ax

    + Bx + 1

    + C x 1

    and then evaluate the integral

    x2 + 3

    x(x + 1)( x 1) dx.

    [ A ]

    4. Do the previous problem using the Heav-iside trick. [ A ]

    5. Find the integral x2 + 3

    x2 (x 1) dx . [ A ]

    6. Simplicio had to integrate

    4x 2

    (x 3)(x + 1).

    He set4x2

    (x 3)(x + 1) =

    A

    x 3 +

    B

    x + 1.

    Using the Heaviside trick he then found

    A = 4x 2

    x 3 x = 1= 1,

    and

    B = 4x2

    x + 1 x =3= 9 ,

    which leads him to conclude that4x2

    (x 3)(x + 1) = 1

    x 3 + 9

    x + 1.

    To double check he now sets x = 0 whichleads to

    0 = 13 + 9 ????

    What went wrong?

    Evaluate the following integrals:

    7. 2

    5x 4 1x 2 + 1

    dx

    8. x3 dx

    x 4 + 1

    9. x5 dx

    x 2 110.

    x5 dxx 4

    1

    11. x3

    x 2 1 dx [ A ]

    12. 2x + 1x 2 3x + 2 dx [ A ]13. x

    2 + 1x 2 3x + 2

    dx [ A ]

  • 8/12/2019 UWMath222_2013s

    26/161

    26 I. METHODS OF INTEGRATION

    14. e3x dx

    e4x 1 [ A ]

    15. ex dx

    1 + e2x

    16. ex dx

    e2x + 2 ex + 2 [ A ]

    17. dx1 + ex [ A ]18. dxx (x 2 + 1)19.

    dx

    x (x2

    + 1)2

    20. dxx 2 (x 1) [ A ]21. 1(x 1)( x 2)( x 3) dx22. x

    2 + 1(x 1)( x 2)( x 3)

    dx

    23. x3 + 1

    (x 1)( x 2)( x 3) dx

    24. (a) Compute 2

    1

    dxx (x h )

    where h is a

    positive number.(b) What happens to your answer to (a)when h0?

    (c) Compute

    2

    1

    dx

    x 2 .

    10. Substitutions for integrals containing the expression ax 2 + bx + ce main method for nding antiderivatives that we saw in Math 221 is the method

    of substitution. is method will only let us compute an integral if we happen to guessthe right substitution, and guessing the right substitution is o en not easy. If the integralcontains the square root of a linear or quadratic function, then there are a number of substitutions that are known to help.

    Integrals with ax + b: substitute ax + b = u2 with u > 0. See 10.1. Integrals with ax 2 + bx + c: rst complete the square to reduce the integralto one containing one of the following three forms

    1 u2, u

    2

    1, u2

    + 1 .en, depending on which of these three cases presents itself, you choose an

    appropriate substitution. ere are several options: a trigonometric substitution; this works well in some cases, but o en you

    end up with an integral containing trigonometric functions that is still noteasy (see 10.2 and 10.4.1).

    use hyperbolic functions; the hyperbolic sine and hyperbolic cosine some-times let you handle cases where trig substitutions do not help.

    a rational substitution (see 11) using the two functions U (t) = 12(t + t1and V (t) = 12(t t1 .10.1. Integrals involving ax + b. If an integral contains the square root of a linear

    function, i.e. ax + b then youcanremove this square root by substituting u = ax + b.10.1.1. Example. To computeI = x 2x + 3 dx

    we substitute u = 2x + 3 . enx =

    12

    (u2 3) so that dx = u du,

  • 8/12/2019 UWMath222_2013s

    27/161

    10. SUBSTITUTIONS FOR INTEGRALS CONTAINING THE EXPRESSION ax 2 + bx + c 27

    and hence

    I =

    1

    2 (u2

    3)

    xu

    2x +3u du

    dx= 12 (u4 3u2 du

    = 12{15 u5 u3}+ C.

    To write the antiderivative in terms of the original variable you substitute u = 2x + 3again, which leads to

    I = 110

    (2x + 3) 5/2 12

    (2x + 3) 3/2 + C.

    A comment: se ing u = ax + b is usually the best choice, but sometimes otherchoices also work. You, the reader, might want to try this same example substitutingv = 2x + 3 instead of the substitution we used above. You should of course get the sameanswer.

    10.1.2. Another example. Compute

    I = dx1 + 1 + x .Again we substitute u2 = x + 1 , or, u = x + 1 . We get

    I = dx1 + 1 + x u2 = x + 1 so 2u du = dx= 2u du1 + u A rational function: we knowwhat to do.= (2 21 + u du= 2 u 2 ln(1 + u ) + C = 2 x + 1 2 ln(1 + x + 1 + C.Note that u = x + 1 is positive, so that 1 + x + 1 > 0, and so that we do not need

    absolute value signs in ln (1 + u ).

    10.2. Integrals containing 1 x2 . If an integral contains the expression 1 x2then this expression can be removed at the expense of introducing trigonometric func-tions. Sometimes (but not always) the resulting integral is easier.

    e substitution that removes the 1 x2 is x = sin .10.2.1. Example. To computeI = dx(1 x2)3/2

    note that1

    (1 x2)3/2 =

    1(1 x2) 1 x2

    ,

    so we have an integral involving 1 x2 .

  • 8/12/2019 UWMath222_2013s

    28/161

    28 I. METHODS OF INTEGRATION

    We set x = sin , and thus dx = cos d. We get

    I =

    cos d

    (1 sin2 )3/2.

    Use 1 sin2 = cos2 and you get(1 sin2 )3/2 = (cos2

    3/2 = |cos |3 .We were forced to include the absolute values here because of the possibility that cos might be negative. However it turns out that cos > 0 in our situation since, in theoriginal integral I the variable x must lie between 1 and +1 : hence, if we set x = sin ,then we may assume that 2 < < 2 . For those one has cos > 0, and therefore wecan write

    (1 sin2 )3/2 = cos3 .A er substitution our integral thus becomes

    I = cos d

    cos3 = dcos2 = tan + C.

    To express the antiderivative in terms of the original variable we use

    1 x 2

    1x

    x = sin 1 x 2 = cos . x = sin = tan =

    x 1 x2

    .

    e nal result is

    I = dx(1 x2)3/2 = x 1 x2 + C.10.2.2. Example: sometimes you dont have to do a trig substitution. e following

    integral is very similar to the one from the previous example:

    I =

    x dx

    (1

    x2 3/2

    .

    e only difference is an extra x in the numerator.To compute this integral you can substitute u = 1 x2 , in which case du = 2x dx .us we nd

    x dx(1 x23/2 =

    12 duu3/2 = 12 u3/2 du

    = 12

    u1/2(1/2)

    + C = 1 u + C

    = 1

    1 x2 + C.

    10.3. Integralscontaining a 2

    x2 . If an integral contains theexpression a 2

    x2

    for some positive number a , then this can be removed by substituting either x = a sin or x = a cos . Since in the integral we must have a < x < a , we only need values of in the interval (2 , 2 ). us we substitute

    x = a sin , 2

    < < 2

    .

    For these values of we have cos > 0, and hence

    a 2 x2 = a cos .

  • 8/12/2019 UWMath222_2013s

    29/161

  • 8/12/2019 UWMath222_2013s

    30/161

  • 8/12/2019 UWMath222_2013s

    31/161

    11. RATIONAL SUBSTITUTION FOR INTEGRALS CONTAINING x 2 a 2 OR a 2 + x 2 31

    1

    V (t ) = 12

    t 1t

    U (t ) = 12

    t + 1t

    t

    1

    U = 12

    t + 1t

    t = U + V

    V = 12

    t 1t

    1t

    = U V

    U 2 V 2 = 1

    t /2

    Figure 2. The functions U (t ) and V (t )

    identity is a relation between two functions U and V of a new variable t dened by

    (10) U (t) = 12 t +

    1t , V (t ) =

    12 t

    1t .

    ese satisfy

    (11) U 2 = V 2 + 1 ,

    which one can verify by direct substitution of the denitions ( 10) of U (t) and V (t).To undo the substitution it is useful to note that if U and V are given by (10), then

    (12) t = U + V, 1

    t = U V.

    11.1.1. Example 10.4.1 again. Here we compute the integral

    A =

    4

    2

    x2 4 dx

    using the rational substitution ( 10).Since the integral contains the expression x2 4 = x2 22 we substitute x =2U (t ). Using U 2 = 1 + V 2 we then have

    x2 4 = 4U (t )2 4 = 2 U (t )2 1 = 2|V (t )|.When we use the substitution x = aU (t) we should always assume that t 1. Underthat assumption we have V (t) 0 (see Figure 2) and therefore x2 4 = 2V (t). To

  • 8/12/2019 UWMath222_2013s

    32/161

    32 I. METHODS OF INTEGRATION

    summarize, we have

    (13) x = 2U (t),

    x2

    4 = 2V (t ).

    We can now do the indenite integral:

    x2 4 dx = 2V (t ) x 2 42U (t ) dt

    dx= 2 12 t 1t 1 1t 2 dt= t 2t + 1t3 dt=

    t2

    2 2 ln t 12t 2

    + C

    To nish the computation we still have to convert back to the original x variable, andsubstitute the integration bounds. e most straightforward approach is to substitutet = U + V , and then remember the relations ( 13) between U , V , and x . Using theserelations the middle term in the integral we just found becomes

    2 ln t = 2 ln(U + V ) = 2 lnx2

    + (x2

    2

    1 .We can save ourselves some work by taking the other two terms together and factoringthem as follows

    t2

    2 12t 2

    = 12

    t 2

    (1t

    2 a2 b2 = ( a + b)(a b)(14)= 1

    2t + 1

    tt 1t t + 1t = x

    = 12

    x 2 (x2

    2

    1 12(t 1t = ( x2 )2 1=

    x2 x2 4.

    So we nd

    x2 4 dx = x2 x2 4 2 ln x2 + (x2

    2

    1 + C.Hence, substituting the integration bounds x = 2 and x = 4 , we get

    A = 4

    2 x2 4 dx=

    x2 x2 4 2 ln x2 + (

    x2

    2

    1x =4

    x =2

    = 42 16 4 2 ln(2 + 3 the terms withx = 2 vanish= 4 3 2 ln(2 + 3 .

  • 8/12/2019 UWMath222_2013s

    33/161

    12. SIMPLIFYING ax 2 + bx + c BY COMPLETING THE SQUARE 33

    11.1.2. An example with 1 + x2 . ere are several ways to computeI =

    1 + x2 dx

    and unfortunately none of them are very simple. e simplest solution is to avoid ndingthe integral and look it up in a table, such as Table 2. But how were the integrals in thattable found? One approach is to use the same pair of functions U (t ) and V (t ) from (10).Since U 2 = 1 + V 2 the substitution x = V (t ) allows us to take the square root of 1 + x2 ,namely,

    x = V (t) = 1 + x2 = U (t ).Also, dx = V (t )dt = 12(1 + 1t 2 dt , and thus we haveI = 1 + x2 = U ( t )

    dx

    dV (t )=

    12(t +

    1t

    12(1 +

    1t 2 dt

    = 14 (t +

    2t +

    1t3

    dt

    = 14{

    t 2

    2 + 2 ln t

    12t 2}+ C

    = 18(t 2

    1t 2

    + 12

    ln t + C.

    At this point we have done the integral, but we should still rewrite the result in terms of the original variable x . We could use the same algebra as in ( 14), but this is not the onlypossible approach. Instead we could also use the relations ( 12), i.e.

    t = U + V and 1t = U V

    ese implyt2=( U + V )2= U 2 + 2 UV + V 2

    t2=( U V )2= U 2 2UV + V 2t 2 t2= = 4UV

    and conclude

    I = 1 + x2 dx=

    18(t 2

    1t 2

    + 12

    ln t + C

    = 12

    UV + 12

    ln(U + V ) + C

    = 12 x 1 + x

    2 + 12 ln(x + 1 + x

    2 + C.

    12. Simplifying ax 2 + bx + c by completing the squareAny integral involving an expression of the form ax 2 + bx + c can be reduced

    by means of a substitution to one containing one of the three forms 1 u2 , u2 1,or u2 + 1 . We can achieve this reduction by completing the square of the quadraticexpression under the square root. Once themore complicated square root ax 2 + bx + c

  • 8/12/2019 UWMath222_2013s

    34/161

    34 I. METHODS OF INTEGRATION

    has been simplied to u2 1, we can use either a trigonometric substitution, or therational substitution from the previous section. In some cases the end result is one of theintegrals listed in Table 2:

    du 1 u 2 = arcsin u 1 u 2 du = 12 u 1 u 2 + 12 arcsin u du 1 + u 2 = ln(u + 1 + u 2 1 + u 2 du =

    12 u 1 + u 2 + 12 ln(u + 1 + u 2

    du u 2 1 = ln(u + u 2 1 u 2 1 du = 12 u u 2 1 12 ln(u + u 2 1

    (all integrals + C )

    Table 2. Useful integrals. Except for the first one these should not be memorized.

    Here are three examples. e problems have more examples.

    12.1. Example. Compute

    I = dx 6x x2 .Notice that since this integral contains a square root the variable x may not be allowedto have all values. In fact, the quantity 6x x2 = x(6 x ) under the square root has tobe positive so x must lie between x = 0 and x = 6 . We now complete the square:

    6x

    x2 =

    (x2

    6x

    = (x2 6x + 9 9= (x 3)2 9= 9

    (x 3)29 1

    = 9x 3

    3

    2

    1 .At this point we decide to substitute

    u = x 3

    3 ,

    which leads to

    6x x2 = 9(u2 1 = 9(1 u2 = 3 1 u2 ,x = 3u + 3 , dx = 3 du.Applying this change of variable to the integral we get

    dx 6x x2 = 3du3 1 u2 = du 1 u2 = arcsin u + C = arcsin x 33 + C.

  • 8/12/2019 UWMath222_2013s

    35/161

    13. PROBLEMS 35

    12.2. Example. Compute

    I =

    4x2 + 8 x + 8 dx.

    We again complete the square in the quadratic expression under the square root:

    4x2 + 8 x + 8 = 4 (x2 + 2 x + 2 = 4{(x + 1) 2 + 1}.us we substitute u = x + 1 , which implies du = dx , a er which we ndI = 4x2 + 8 x + 8 dx = 2 (x + 1) 2 + 1 dx = 2 u2 + 1 du.is last integral is in table 2, so we have

    I = u u2 + 1 + ln(u + u2 + 1 + C = ( x + 1) (x + 1) 2 + 1 + ln x + 1 + (x + 1) 2 + 1 + C.12.3. Example. Compute:I = x2 4x 5 dx.

    We rst complete the square

    x2 4x 5 = x2 4x + 4 9= ( x 2)2 9 u2 a 2 form= 9 (

    x 23

    2

    1 u2 1 formis prompts us to substitute

    u = x 2

    3 , du = 13 dx, i.e. dx = 3 du.

    We get

    I = 9 (x 2

    32

    1 dx = 3 u2 1 3 du = 9 u2 1 du.Using the integrals in Table 2 and then undoing the substitution we nd

    I = x2 4x 5 dx= 92 u u2 1 92 ln(u + u2 1 + C = 92

    x 23 (

    x 23

    2

    1 92 lnx 2

    3 + (

    x 23

    2

    1 + C = 12 (x 2)

    (x 2)2 9 92 ln 13 x 2 +

    (x 2)2 9 + C

    = 12 (x 2) x

    2

    4x + 5 92 ln{x 2 + x

    2

    4x + 5} 92 ln

    13 + C

    = 12 (x 2) x2 4x + 5 92 ln{x 2 + x2 4x + 5}+ C 13. ProblemsEvaluate these integrals:

  • 8/12/2019 UWMath222_2013s

    36/161

  • 8/12/2019 UWMath222_2013s

    37/161

  • 8/12/2019 UWMath222_2013s

    38/161

  • 8/12/2019 UWMath222_2013s

    39/161

    15. MIXED INTEGRATION PROBLEMS 39

    Now take the definite integral from x = 1to x = 1 and note that u = 0 when x = 1and u = 0 also when x = 1 , so

    1

    1 1 x2 dx =

    0

    0 u(

    12

    (1 u )12 (1) du = 0

    The last being zero since

    0

    0

    ( anything ) dx = 0 .

    But the integral on the le is equal to half the area of the unit disc. Therefore half adisc has zero area, and a whole disc shouldhave twice as much area: still zero!

    How can this be?

  • 8/12/2019 UWMath222_2013s

    40/161

  • 8/12/2019 UWMath222_2013s

    41/161

    CHAPTER II

    Proper and Improper Integrals

    All the denite integrals that we have seen so far were of the form

    I = b

    af (x ) dx,

    where a and b are nite numbers, and where the integrand (the function f (x)) is niceon the interval a

    x

    b, i.e. the function f (x ) does not become innite anywhere in the

    interval. ere aremany situations where one would like to compute an integral that failsone of these conditions; i.e. integrals where a or b is not nite, or where the integrandf (x ) becomes innite somewhere in the interval a x b (usually at an endpoint).Such integrals are called improper integrals.

    If we think of integrals as areas of regions in the plane, then improper integrals usu-ally refer to areas of innitely large regions so that some care must be taken in interpretingthem. e formal denition of the integral as a limit of Riemann sums cannot be usedsince it assumes both that the integration bounds a and b are nite, and that the integrandf (x ) is bounded. Improper integrals have to be dened on a case by case basis. e nextsection shows the usual ways in which this is done.

    1. Typical examples of improper integrals

    1.1. Integral on an unbounded interval. Consider the integralA = 1 dxx3 .

    is integral has a new feature that we have not dealt with before, namely, one of theintegration bounds is rather than a nite number. e interpretation of this integralis that it is the area of the region under the graph of y = 1/ x3 , with 1 < x < .

    A = 1 dxx31

    1 y = 1x3

    Because the integral goes all the way to x = the region whose area it representsstretches innitely far to the right. Could such an innitely wide region still have a nitearea? And if it is, can we compute it? To compute the integral I that has the in itsintegration bounds, we rst replace the integral by one that is more familiar, namely

    AM = M

    1

    dxx3

    ,

    41

  • 8/12/2019 UWMath222_2013s

    42/161

    42 II. PROPER AND IMPROPER INTEGRALS

    where M > 1 is some nite number. is integral represents the area of a nite region,namely all points between the graph and the x-axis, and with 1 x M .

    AM = M

    1

    dxx3

    1

    1 y = 1x3

    M

    We know how to compute this integral:

    AM = M

    1

    dxx3

    = 12x2

    M

    1=

    12M 2

    + 12

    .

    e area we nd depends on M . e larger we choose M , the larger the region is andthe larger the area should be. If we let M then the region under the graph betweenx = 1 and x = M will expand and eventually ll up the whole region between graphand x-axis, and to the right of x = 1 . us the area should be

    A = limM

    AM = limM

    M

    1

    dxx3

    = limM

    12M 2

    + 12

    = 12

    .

    We conclude that the innitely large regionbetween thegraph of y = 1/ x3 and the x -axisthat lies to the right of the line x = 1 has nite area, and that this area is exactly 12 !

    1.2. Second example on an unbounded interval. e following integral is very sim-ilar to the one we just did:

    A = 1 dxx .e integral represents the area of the region that lies to the right of the line x = 1 , and

    is caught between the x-axis and the hyperbola y = 1/ x .

    M1

    AM

    1

    A1

    y=1/x

    As in the previous example the region extends innitely far to the right while at thesame time becoming narrower and narrower. To see what its area is we again look at thetruncated region that contains only those points between the graph and the x -axis, andfor which 1 x M . is area is

    AM = M

    1

    dxx

    = ln xM 1 = ln M ln 1 = ln M.

    e area of the whole region with 1 x < is the limitA = lim

    M AM = lim

    M ln M = + .

    So we see that the area under the hyperbola is not nite!

  • 8/12/2019 UWMath222_2013s

    43/161

    1. TYPICAL EXAMPLES OF IMPROPER INTEGRALS 43

    1.3. An improper integral on a nite interval. In this third example we considerthe integral

    I = 1

    0dx 1 x2

    .

    e integration bounds for this integral are 0 and 1 so they are nite, but the integrandbecomes innite at one end of the integration interval:

    1

    1

    a

    y = 1

    1

    x 2

    limx1

    1 1 x2

    = + .e region whose area the integral I represents does not extend innitely far to the le

    or the right, but in this example it extends innitely far upward. To compute this areawe again truncate the region by looking at all points with 1 x a for some constanta < 1, and compute

    I a =

    a

    0

    dx 1

    x2

    = arcsin xa0 = arcsin a.

    e integral I is then the limit of I a , i.e.

    10 dx 1 x2 = lima1 a

    0

    dx 1 x2

    = lima1

    arcsin a = arcsin 1 = 2

    .

    We see that the area is nite.

    1.4. A doubly improper integral. Let us try to compute

    I = dx1 + x2 .is example has a new feature, namely, both integration limits are innite. To compute

    this integral we replace them by nite numbers, i.e. we compute

    d

    x1 + x2 = lima limb

    b

    ad

    x1 + x2

    = lima

    limb

    arctan (b) arctan (a )= lim

    barctan b lima arctan a

    = 2 (

    2

    = .

    A different way of ge ing the same example is to replace and in the integralby a and a and then let a . e only difference with our previous approach is thatwe now use one variable ( a ) instead of two (a and b). e computation goes as follows:

    dx1 + x2 = lima a

    adx

    1 + x2

    = lima

    arctan (a ) arctan (a )=

    2 (

    2

    = .

    In this example we got the same answer using either approach. is is not always thecase, as the next example shows.

  • 8/12/2019 UWMath222_2013s

    44/161

  • 8/12/2019 UWMath222_2013s

    45/161

  • 8/12/2019 UWMath222_2013s

    46/161

  • 8/12/2019 UWMath222_2013s

    47/161

  • 8/12/2019 UWMath222_2013s

    48/161

    48 II. PROPER AND IMPROPER INTEGRALS

    a

    y = f (x )

    y = g(x )

    a f (x ) dx

    a g(x ) dx

    Figure 3. Comparing improper integrals. Here f and g are positive functions that satisfyf (x) g(x) for all x a . If a g(x ) dx is finite, then so is a f (x ) dx . Conversely, if a f (x) dx is not finite, then a g(x ) dx cannot be finite either.

    a

    y = f (x )

    y = f (x )

    y = g(x )

    Figure 4. In this figure f (x ) is again positive, but g(x ) is bounded by f (x) g(x ) f (x).The same conclusion still holds, namely, if a f (x )dx exists, then so does a g(x)dx .(c) Explain how the answer to (b) impliesthat the integral 1 dx / x does not exist.

    16. The area under the graph of y = 1/ xwith 1 x < is infinite. Compute the

    volume of the funnel-shaped solid you getby revolving this region around the x -axis.Is the volume of this funnel finite or infinite?[ A ]

    5. Estimating improper integrals

    Sometimes it is just not possible to compute an improper integral because we simply

    cannot nd an antiderivative for the integrand. When this happens we can still try toestimate the integral by comparing it with easier integrals, andeven if we cannot computethe integral we can still try to answer the question does the integral exist, i.e.

    Does limM

    M

    af (x ) dx exist?

    In this section we will see a number of examples of improper integrals that much easierto estimate than to compute. roughout there are three principles that we shall use:

  • 8/12/2019 UWMath222_2013s

    49/161

  • 8/12/2019 UWMath222_2013s

    50/161

    50 II. PROPER AND IMPROPER INTEGRALS

    5.1.2. Example - integral to innity of the cosine. To illustrate what eorem 5.1.1says, lets consider an improper integral of a function that is not always positive. Forinstance, consider

    I = 0 cos x dx.e function in the integral is f (x ) = cos x , and this function is clearly not always posi-

    tive. When we try to compute this integral we get

    I = limM

    M

    0cos x dx = lim

    M sin x

    M

    x =0= lim

    M sin M.

    is limit does not exist as sin M oscillates up and down between 1 and +1 as M .On the other hand, since sin M stays between 1 and +1 , we cannot say thatlim

    M M

    0cos x dx = + .

    eorem 5.1.1 tells us that if you integrate a positive function then this kind of oscillatorybehavior cannot occur.

    5.2. Comparison eorem for Improper Integrals. Suppose f (x ) and g(x ) are func- tions that are dened for a x < , and suppose that |g(x )| f (x ) for all x a , i.e.

    f (x ) g(x ) f (x ) for all x a.If the improper integral a f (x ) dx exists then the improper integral a g(x ) dx also exists,and one has

    a g(x ) dx a f (x ) dx.is theorem is used in two ways: it can be used to verify that some improper integral

    exists without actually computing the integral, and it can also be used to estimate an

    improper integral.5.2.1. Example. Consider the improper integral

    I = 1 dx1 + x3 .e function in the integral is a rational function so in principle we know how to compute

    the integral. It turnsout the computation is not very easy. If we dont really need to knowthe exact value of the integral, but only want a rough estimate of the integral, then wecould compare the integral with an easier integral.

    To decide which simpler integral we should use as comparison, we reason as follows.Since only the tail ma ers, we consider the integrand 11+ x 3 for large x. When x is verylarge x3 will be much larger than 1, so that we may guess that we can ignore the 1 inthe denominator 1 + x3 :

    (19) 11 + x3 1x3 as x .

    is suggests that we may be able to compare the given integral with the integral

    1 1x3 dx.We know from our very rst example in this chapter ( 1.1) that this last integral is nite(we found that it is 12 ). erefore we can guess that our integral I also is nite.

  • 8/12/2019 UWMath222_2013s

    51/161

    5. ESTIMATING IMPROPER INTEGRALS 51

    Now lets try to use the Comparison eorem 5.2 to get certainty by proving that theintegral I does indeed exist. We want to show that the integral

    11

    1+ x 3 dx exists, so wechoose

    g(x ) = 1

    1 + x3, and thus f (x ) =

    1x3

    .

    We can compare these functions as follows:

    it follows from: x 3 1 + x3 for all x 1divide both sides firstby x 3 and then by 1 +x 3

    that: 11 + x3

    1x3

    for x 1is tells us that

    1 dx1 + x3 1 dxx3 = 12 .erefore we have found that the integral I does indeed exist, and that it is no more

    than 12 .We can go beyond this and try to nd a lower bound (instead of saying that I is no

    more than 12 we try to say that it is at least as large as some other number.) Here is oneway of doing that:

    1 + x3 x3 + x3 for all x 1=1 + x

    3 2x3 for all x 1divide both sides firstby 2x 3 and then by 1 +x 3

    = 12x3

    11 + x3

    for x 1is implies that

    1

    dx2x3

    1

    dx1 + x3 .

    e rst integral here is half the integral we computed in 1.1, so we get

    14 1 dx1 + x3 .

    In summary, we have found that

    14 1 dx1 + x3 12 .

    5.2.2. Second example. Does the integral

    I =

    1

    xx2 + 1

    dx

    exist? Since the function we are integrating is positive, we could also ask is the integral nite?

    As in the previous example we look at the behavior of the integrand as x . Forlarge x we can assume that x 2 is much larger than x , so that it would be reasonable toignore the 1 in the denominator x2 + 1 . If we do that than we nd that

    xx2 + 1

    xx2

    = 1x

    .

  • 8/12/2019 UWMath222_2013s

    52/161

    52 II. PROPER AND IMPROPER INTEGRALS

    If this were correct, then we would end up comparing the integral I with the simplerintegral

    1

    1x dx.

    We know this la er integral is not nite (it was our second example, see 1.2) and there-fore we guess that the integral I probably also is not nite. To give a sound argument wewill use the Comparison eorem.

    Our goal is to show that the integral

    I = 1 f (x ) dx, with f (x ) = x1 + x2is not nite. To do this we have to nd a function g(x ) such that

    g(x ) is smaller than f (x ) (so that f dx will be larger than g(x )dx ), g(x ) is easy to integrate, and the integral of g(x ) is not nite.

    e rst and last point together imply that

    I = 1 f (x ) dx 1 g(x ) dx = ,which is what we are trying to show.

    To complete the reasoningwe have to nd the easy-to-integrate function g(x). Basedon what we have done above our rst guess would be g(x ) = 1x , but this does not work,since

    xx2 + 1

    < xx2

    = 1x

    .

    So with this choice of g(x ) we get g(x ) > f (x ) instead of g(x ) < f (x ).One way to simplify f (x ) and get a smaller function is to remember that by increasing

    the denominator in a fraction you decrease the fraction . us, for x > 1 we have

    f (x ) = xx2 + 1

    > xx2 + x2

    = x2x2

    = 12x

    .

    So we let g(x ) = 12x . en we nd

    I = 1 xx2 + 1 dx 1 12x dx= .

    5.3. e Tail eorem. If y = f (x ) is a continuous function for x a , and if b > athen

    a

    f (x ) dx exists if and only if

    b

    f (x ) dx exists

    Moreover, if these integrals exist, then (18) holds: a f (x ) dx = b

    a f (x ) dx + b f (x ) dx .P . For any nite M one has

    M

    af (x ) dx =

    b

    af (x ) dx +

    M

    bf (x ) dx

    e theorem follows by taking the limit for M on both sides of this equation.

  • 8/12/2019 UWMath222_2013s

    53/161

    5. ESTIMATING IMPROPER INTEGRALS 53

    e following two examples show how one can use this fact.5.3.1. Example. Does the integral

    I = 0 dxx3 + 1exist? e integrand here is the same as in 5.2.1 where we found that

    1 dxx3 + 1 < 12 ,and in particular is nite. Since the function f (x ) = 1/( x3 + 1) is continuous for 0 x 1 we may conclude that

    I = 0 dxx3 + 1 = 1

    0

    dxx3 + 1

    + 1 dxx3 + 1so that I is nite.

    If we want an upper estimate for the integral we can use the fact that we alreadyknow that the integral from 1 to is not more than 12 and estimate the integral fromx = 0 to x = 1 . For 0 x 1 we have

    x3 + 1 1 = 1x3 + 1 1

    is implies

    1

    0

    dxx3 + 1

    1

    01 dx = 1 ,

    and hence

    0 dxx3 + 1 = 10 dxx3 + 1 + 1 dxx3 + 1 1 + 12 = 32 .5.3.2. e area under the bell curve. e bell curve which plays a central role in prob-

    ability and statistics, is the graph of the function

    n (x ) = ae x 2 / b ,where a and b are positive constants whose values will not be important in this example.In fact, to simplify this example we will choose them to be a = 1 and b = 1 so that weare dealing with the function n (x ) = ex 2 . e question now is, is the area under the bell curve nite, and can we estimate it? In terms of improper integrals, we want to know if the integral

    A = ex 2 dxexists.

    y = ex 21

    1y = ex

    A = ex 2 dx

    Figure 5. Estimating the area under the bell curve.

  • 8/12/2019 UWMath222_2013s

    54/161

  • 8/12/2019 UWMath222_2013s

    55/161

  • 8/12/2019 UWMath222_2013s

    56/161

  • 8/12/2019 UWMath222_2013s

    57/161

  • 8/12/2019 UWMath222_2013s

    58/161

    58 III. FIRST ORDER DIFFERENTIAL EQUATIONS

    which functions of x have sin x as derivative? In other words, which functions are theantiderivative of sin x? We know the answer, namely

    y = sin x dx = cos x + C where C is an arbitrary constant. is is the solution to the differential equation ( 21). isexample shows us that there is not just one solution, but that there are many solutions.

    e expression that describes all solutions to the differential equation ( 21) is called thegeneral solution . It contains an unknown constant C that is allowed to have arbitraryvalues.

    To give meaning to the constant C we can observe that when x = 0 we have

    y(0) = cos 0 + C = 1 + C.So the constant C is nothing but

    C = y(0) + 1 .

    For instance, the solution of ( 21) that also satises y(0) = 4 has C = 4+ 1 = 5 , and thusis given by

    y(x ) = cos x + 5 .We have found that there are many solutions to the differential equation ( 21) (because of the undetermined constant C ), but as soon as we prescribe the value of the solution forone value of x , such as x = 0 , then there is exactly one solution (because we can computethe constant C .)

    2.2. e exponential growth example. Which functions equal their own derivative ,i.e. which functions satisfy

    dydx

    = y ?

    Everyone knows at least one example, namely y = ex . But there are more solutions: thefunction y = 0 also is its own derivative. From the section on exponential growth inmath 221 we know all solutions to dydx = y. ey are given by

    y(x ) = Cex ,

    where C can be an arbitrary number. If we know the solution y(x ) for some value of x ,such as x = 0 , then we can nd C by se ing x = 0 :

    y(0) = C.

    Again we see that instead of there being one solution, the general solution contains anarbitrary constant C .

    2.3. Summary. e two examples that we have just seen show us that for certaindifferential equations

    there are many solutions, the formula for the general solution contains an undetermined constant C , the undetermined constant C becomes determined once we specify the value of the solution y at one particular value of x .

    It turns out thatthese featuresare found inalmost all differential equationsof the form ( 20).In the next two sections we will see methods for computing the general solution to twofrequently occurring kinds of differential equation, the separable equations , and the linear equations.

  • 8/12/2019 UWMath222_2013s

    59/161

    3. FIRST ORDER SEPARABLE EQUATIONS 59

    3. First Order Separable Equations

    By denition a separable differential equation is a diffeq of the form

    (22) y(x ) = F (x )G (y(x )) , or dydx

    = F (x )G(y).

    us the function f (x, y ) on the right hand side in ( 20) has the special form

    f (x, y ) = F (x ) G (y).

    For example, the differential equationdydx

    = sin(x )(1 + y2is separable, and one has F (x ) = sin x and G(y) = 1 + y2 . On the other hand, thedifferential equation

    dydx

    = x + y

    is not separable.

    3.1. Solution method for separable equations. To solve this equation divide byG (y(x )) to get

    (23) 1

    G (y(x ))dydx

    = F (x ).

    Next nd a function H (y) whose derivative with respect to y is

    (24) H (y) = 1G (y)

    solution: H (y) = dyG(y) .en the chain rule implies that the le hand side in ( 23) can be wri en as

    1

    G (y(x ))

    dy

    dx = H (y(x )) dy

    dx =

    dH (y(x ))

    dx .

    us ( 23) is equivalent withdH (y(x))

    dx = F (x ).

    In words: H (y(x )) is an antiderivative of F (x ), which means we can nd H (y(x)) byintegrating F (x ):

    (25) H (y(x )) = F (x )dx + C.Once we have found the integral of F (x ) this gives us y(x ) in implicit form: the equation(25) gives us y(x ) asan implicit function of x . To get y(x ) itself we must solve theequation(25) for y(x ).

    A quick way of organizing the calculation goes like this:

    To solve dydx

    = F (x )G(y) we rst separate the variables ,

    dyG(y)

    = F (x ) dx,

    and then integrate,

    dyG(y) = F (x ) dx.

  • 8/12/2019 UWMath222_2013s

    60/161

  • 8/12/2019 UWMath222_2013s

    61/161

    5. FIRST ORDER LINEAR EQUATIONS 61

    Assume also that in the beginning of the ex-periment the population size is P = 100 .

    (a) Find the general solution to the differen-tial equation.(b) Find the solution that satisfies the giveninitial conditions.(c) How long does it take the population toreach size P = 500 ?(d) How long does it take the population toreach size P = 900 ?(e) What value does P have when dP dt isthe largest (hint: you do not need to solve

    the differential equationthis question hasa very short answer.)

    5. First Order Linear Equations

    Differential equations of the form equation(26)

    dydx

    + a (x )y = k(x )

    are called rst order linear .

    5.1. e Integrating Factor. Linear equations can always be solved by multiplyingboth sides of the equation with a specially chosen function called the integrating factor.It is dened by

    (27) A(x ) = a(x ) dx, m (x ) = eA (x ) .Here m (x ) is the integrating factor. It looks like we just pulled this denition of A (x)and m (x ) out of a hat. e example in 5.2 shows another way of nding the integratingfactor, but for now lets go on with these two functions.

    Multiply the equation ( 26) by the integrating factor m (x ) to get

    m (x )dydx

    + a (x )m (x )y = m (x )k(x ).

    By the chain rule the integrating factor satises

    dm (x )dx

    = d eA (x )

    dx = A (x )

    = a (x )eA (x )

    = m (x )= a (x )m (x ).

    erefore one hasdm (x )y

    dx = m (x )

    dydx

    + a (x )m (x )y

    = m (x )dy

    dx + a (x )y

    = m (x )k(x ).

    Integrating and then dividing by the integrating factor gives the solution

    y = 1m (x ) m(x )k(x ) dx + C .

    In this derivation we have to divide by m (x ), but since m (x ) = eA (x ) and since expo-nentials never vanish we know that m (x ) = 0 , so we can always divide by m (x ).

  • 8/12/2019 UWMath222_2013s

    62/161

  • 8/12/2019 UWMath222_2013s

    63/161

    6. PROBLEMS 63

    With this choice of integrating factor we can now complete the calculation that led to ( 32).e solution to the differential equation is

    y(x ) = 1m (x ) m(x )x dx= 1ex ex x dx (integrate by parts)

    = ex ex x ex + C = x 1 + Ce x .

    is is the general solution.To nd thesolution that satises not just thedifferential equation, but also theinitial

    condition (28), i.e. y(2) = 0 , we compute y(2) for the general solution,y(2) = 2 1 + Ce 2 = 3 + Ce 2 .

    e requirement y(2) = 0 then tells us that C = 3e2 . e solution of the differentialequation that satises the prescribed initial condition is therefore

    y(x ) = x 1 + 3 ex 2 .6. Problems

    1. In example 5.2 we needed a functionm (x ) that satisfies (31). The functionm (x ) = 0 satisfies that equation. Why didwe not choose m (x ) = 0 ?

    2. Why cant we simplify the computationat the end in example 5.2 by canceling thetwo factors m (x ) as follows:

    y(x) = 1

    m (x )

    m (x) x dx

    = x dx= 1

    2x2 + C ?

    For each of the following differentialequations

    - specify the differential equation that the in- tegrating factor satisfies,

    - find one integrating factor,- find the general solution,- find the solution that satisfies the specified

    initial conditions.

    In these problems K and N are constants.

    3. dydx

    = y + x , y(0) = 0 .4.

    dydx

    = 2 y + x 2 , y(0) = 0 .

    5. dydx

    + 2 y + ex = 0 . [ A ]

    6. dydx (cos x)y = e

    sin x , y (0) = A. [ A ]

    7. dydx

    = 10y + ex , y(0) = 0 .

    8. dydx = y tan x + 1 , y(0) = 0 . [

    A]

    9. dydx

    = y tan x + 1 , y(0) = 0 . [ A ]

    10. cos2 xdydx

    = N y y(0) = 0 . [ A ]

    11. xdydx

    = y + x , y(2) = 0 . [ A ]

    12. dydx

    = xy + x 3 , y(0) = 0 .

    13. dydx

    = y + sin x , y(0) = 0 .

    14. dydx

    = Ky + sin x , y(0) = 0 .

    15. dydx

    + x2 y = 0 , y(1) = 5 . [ A ]

    16. dydx

    + (1 + 3 x2 )y = 0 , y(1) = 1 . [ A ]

  • 8/12/2019 UWMath222_2013s

    64/161

    64 III. FIRST ORDER DIFFERENTIAL EQUATIONS

    7. Direction Fields

    We canvisualize a differential equation by drawing the corresponding direction eld.

    Consider a differential equation dydx

    = f (x, y )

    where f is some given function. e differential equation tells us that if we know a point(x0 , y0) on the graph of a solution y = y(x ) of the differential equation, then we alsoknow the slope of the graph at that point. We can draw the tangent line to the graph of the solution:

    (x 0 , y 0 )

    Slope m = f (x 0 , y 0 )

    A solution

    Tangent line to the solution at (x 0 , y 0 )

    If we have not yet solved the differential equation then we dont know any points onthe solution. In this case we can sample the xy -plane, compute f (x, y ) at all our samplepoints, and draw the tangent lines a solution would have if it passed through one of thesample points. In Figure 1 this is done for the differential equation

    dydx

    = y + sin x.e direction eld on the le in Figure 1 gives us an idea of what the solutions should look

    like. Whenever a solution passes through one of the sample points the slope of its graphis given by the line segment drawn at that sample point. It is clear from a quick look atFigure 1 that drawing a direction eld involves computing f (x, y ) (i.e. y + sin x inour example) for many, many points (x, y ). is kind of repetitive computation is be er

    Figure 1. Direction field for dydx = y + sin x on the le , and the same direction field withsolutions to the differential equation.

  • 8/12/2019 UWMath222_2013s

    65/161

    8. EULERS METHOD 65

    done by a computer, and an internet search quickly leads to a number of websites thatproduce direction elds for our favorite differential equation. In particular the ODE pageat the Virtual Math Museum of UC Irvine,

    http://virtualmathmuseum.org

    draws both direction elds and approximations to solutions found using Eulers method,to which we now turn.

    8. Eulers method

    8.1. e idea behind the method. Consider again the differential equation ( 20),dydx

    = f (x, y ).

    Suppose we know one point on a solution, i.e. suppose we know that a given solution tothis equation satises y = y0 when x = x0 , i.e.

    (33) y(x0) = y0 .

    e differential equation then tells us what the derivative of the solution is at x = x0 ,namely,

    y(x0) = f (x0 , y0).e denition a derivative says that

    y(x0) = limh 0

    y(x0 + h ) y(x0)h

    so that we have

    (34) limh 0

    y(x0 + h ) y(x0)h

    = f (x0 , y0).

    Keep in mind that the right hand side is what we get by substituting the x and y valuesthat we know for the solution in f . So if we know x0 and y0 then we can also computef (x0 , y0).

    If we dont know the solution then we cannot compute the le hand side in ( 34), but,following Euler, we can make an approximation. If instead of le ing h 0 we choose asmall number h > 0, then we may assume that(35)

    y(x0 + h ) y(x0)h f (x0 , y0).

    Here means approximately equal, which is a vaguely dened concept. It meansthat the difference between the two quantities in ( 35) is small and we will not worrytoo much about the error in ( 35) (such issues are addressed in more advanced courses onNumerical Analysis; e.g. Math 514 at UW Madison). In the approximate equation ( 35) allquantities are known except y(x0 + h ). A er solving (35) for y(x0 + h ) we nd

    (36) y(x0 + h )

    y0 + hf (x0 , y0).

    Eulers idea (see Figure 2) was to forget that this is an approximation, and declare that wenow know a new point on the graph of the solution, namely

    (37) x1 = x0 + h, y 1 = y0 + hf (x0 , y0).

    Assuming that our solution satises y(x1) = y1 exactly (rather than just approximately),we can apply the same procedure and get another new point on the graph of our solution:

    x2 = x1 + h, y 2 = y1 + hf (x1 , y1).

    http://virtualmathmuseum.org/
  • 8/12/2019 UWMath222_2013s

    66/161

  • 8/12/2019 UWMath222_2013s

    67/161

    10. APPLICATIONS OF DIFFERENTIAL EQUATIONS 67

    Once the table has been computed the values in the rst two columns can be used tograph the approximation to the real solution.

    9. Problems

    1. Let y(t ) be the solution of

    dydt

    = t y, y (1.0) = 10 .0.We want to compute y(3 .0) .

    (a) Find an exact formula for y(3.0) by solv-ing the equation (the equation is both sep-arable and linear, so we have at least twomethods for finding the solution.)

    (b) If we use Eulers method with step sizeh = 2 .0, then how many steps do we haveto take to approximate y(3.0)? Computetheapproximation with h = 2 .0.

    (c) Find the approximations if h = 1 .0, h =2/3 , and h = 0 .5. Organize the computa-tions following the table in 8.2.

    (d) Compare the results from the computa-tions in (b) and (c) with the true value of y(3.0) from part (a).

    2. The function y(x) = ex is the solutionto

    dydx

    = y, y (0) = 1 .

    (a) Approximate e = y(1) by using Eulersmethod first with step size h = 1 , then withh = 1/2 , and then with h = 1/3 . What arethe approximations you find for y(1) in eachcase?(b) Look for a pa ern in the answers to (a).(c) Find a formula for the result of apply-ing Eulers method n times with step sizeh = 1n .

    3. Use Eulers method to approximate thesolution to

    dydx

    = 10y, y (0) = 1 ,and, in particular to find y(1) . Use variousstep sizes. How small do you have to makethe step size before the answer seems rea-sonable? Explain.

    10. Applications of Differential EquationsDifferential equations are very o en used to describe how some object or system

    changes or evolves in time. If the object or system is simple enough then its state iscompletely determined by one number (say y) that changes with time t .

    A differential equation for the system tells us how the system changes in time, byspecifying the rate of change of the state y(t) of the system. is rate of change candepend on time, and it can depend on the state of the system, i.e. on y(t ). is dependencecan be expressed as an equation of the form

    (38) dy

    dt = f (y, t ).

    e function f describes the evolutionary law of our system (synonyms: evolutionary

    law, dynamical law, evolution equation for y).

    10.1. Example: carbon dating. Suppose we have a fossil, and we want to know howold it is.

    All living things contain carbon, which naturally occurs in two isotopes, C 14 (unsta-ble) and C12 (stable). A long as the living thing is alive it eats & breaths, and its ratioof C12 to C14 is kept constant. Once the thing dies the isotope C 14 decays into C12 at asteady rate that is proportional to the amount of C 14 it contains.

  • 8/12/2019 UWMath222_2013s

    68/161

    68 III. FIRST ORDER DIFFERENTIAL EQUATIONS

    Let y(t) be the ratio of C14 to C12 at time t . e law of radioactive decay says thatthere is a constant k > 0 such that

    dy(t )dt = ky (t).Solve this differential equation (it is both separable and rst order linear: either methodworks) to nd the general solution

    y(t ; C ) = C ekt .A er some lab work it is found that the current C 14 / C12 ratio of our fossil is ynow . uswe have

    ynow = C ekt now = C = ynow ekt now .

    erefore our fossils C 14 / C12 ratio at any other time t is/was

    y(t) = ynowek ( t nowt ) .

    is allows us to compute the time at which the fossil died. At this time the C 14 / C12ratio must have been the common value in all living things, which can be measured lets call it ylife. en at the time t demise when our fossil became a fossil we would havehad y(tdemise) = ylife. Hence the age of the fossil would be given by

    ylife = y(t demise) = ynowek ( t nowt demise ) = tnow tdemise = 1k

    ln xlifexnow

    10.2. Example: dating a leaky bu et. A bucket is lled with water. ere is a holein the bo om of the bucket so the water streams out at a certain rate.

    h (t ) the height of water in the bucketA area of cross section of bucketa area of hole in the bucketv velocity with which water goes through the hole.

    h(t)

    0000000000000000000000000000001111111111111111111111111111110000000000000000000011111111111111111111

    v

    area = A

    We have the following facts to work with:

    e amount (volume) of water in the bucket is A h (t ); e rate at which water is leaving the bucket is a v(t);

    HencedAh (t )

    dt

    =

    av (t).

    In uid mechanics it is shown that the velocity of the water as it passes through the holeonly depends on the height h(t ) of the water, and that, for some constant K ,

    v(t) = Kh (t).e last two equations together give a differential equation for h(t), namely,dh (t )

    dt =

    aA Kh (t).

  • 8/12/2019 UWMath222_2013s

    69/161

  • 8/12/2019 UWMath222_2013s

    70/161

    70 III. FIRST ORDER DIFFERENTIAL EQUATIONS

    According to physics the rate of change of the spoons temperature is proportionalto the difference in temperature between the coffee and the spoon. So, if T c and T s arethe temperature of the coffee and the spoon, respectively, then

    (41) dT s

    dt = K (T s T c .Here K is a constant that depends on the shape and material of the spoon, how much of

    the spoon is in the coffee, etc., but not on the temperatures T s and T c . If we assume thatthe spoon is small, then whatever small amount of heat it extracts from the coffee willnot change the coffee temperature. Under that assumption we may assume that T c is aconstant and the differential equation ( 41) is both separable and linear so that we havetwo methods for solving it.

    If the coffee itself is also cooling or warming up then T c will depend on time and theequation ( 41) becomes

    (42) dT s

    dt

    + KT s = K T c (t).

    If we know T c (t) then this is still a linear differential equation for T s and we can solve it.

    10.4. Mixing problems. Consider a container containing water andvinegar. If waterand vinegar are owing in and out of the container, then the concentration of vinegarin the container will change with time according to some differential equation. Which differential equation describes thevinegar content of thecontainerdepends on theprecisedetails of the set-up.

    As an example, let us assume that the container has xed volume V = 1000 liters.is means that the amount of liquid that ows in during any time interval must equal

    the amount of liquid owing out of the container (the liquid is incompressible, i.e. itsdensity is xed.)

    Suppose furthermore that a mixture of 5% vinegar and 95% water ows into the con-tainer at 40 liters per minute. And suppose also that the liquid in the container is thor-oughlymixed, so that the liquid that ows outof thecontainerhasthe same vinegar/watermixture as the entire container.

    out

    in

    Problem: Let D (t) be the fraction of the liquid in the container that is vinegar. Howdoes D (t) change with time?

    Solution: Instead of tracking the concentration D (t ) of vinegar we will look at thetotal amount of vinegar in the container. is amount is D (t)V .

    To nd the differential equation we consider how much vinegar ows in and out of the container during a short time interval of length t (i.e. between time t and t + t):

    in: e liquidvolume owingintothe tank during a time t is 40 t liters. Since thevinegar concentration of the in-owing liquid is 5%, this means tha