Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

download Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

of 23

Transcript of Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    1/58

    AMATH 460: Mathematical Methods

    for Quantitative Finance

    4. Multiple Integrals

    Kjell KonisActing Assistant Professor, Applied Mathematics

    University of Washington

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   1 / 58

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    2/58

    Outline

    1   Double Integrals

    2   Fubini’s Theorem

    3   Change of Variables for Double Integrals

    4   Change of Variables Example

    5   Double Integrals of Separable Functions

    6   Polar Coordinates

    7   A Culturally Important Integral

    8   Marginal Density of a Bivariate Normal Distribution

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   2 / 58

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    3/58

    Outline

    1   Double Integrals

    2   Fubini’s Theorem

    3   Change of Variables for Double Integrals

    4   Change of Variables Example

    5   Double Integrals of Separable Functions

    6   Polar Coordinates

    7   A Culturally Important Integral

    8   Marginal Density of a Bivariate Normal Distribution

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   3 / 58

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    4/58

    Double Integrals

    Review of the definite integral of a single-variable function

    a   b

    f(x)

       b a

    f   (x ) dx  =   limnβ†’βˆž

    nβˆ’1i =0

    f   (a  + i βˆ†x ) βˆ†x    βˆ†x  =  b βˆ’ a 

    n

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   4 / 58

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    5/58

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    6/58

    Double Integrals

    In general, double integral over a rectangle  R  = [a , b ] Γ— [c , d ] R 

    f   (x , y ) dA =   limm,nβ†’βˆž

    mi =1

    n j =1

    f   (a  + i βˆ†x , c  + j βˆ†y ) βˆ†A

    If   f   (x , y ) β‰₯ 0   βˆ€(x , y ) ∈ R , then

    V   = 

    R f   (x , y ) dA

    is the volume of the region above  R  and below surface  z  = f   (x , y )

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   6 / 58

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    7/58

    Properties of Double Integrals

    Linearity Properties: R 

    [f   (x , y ) + g (x , y )] dA =

     R 

    f   (x , y ) dA +

     R 

    g (x , y ) dA

     R 

    cf   (x , y ) dA =  c  R 

    f   (x , y ) dA

    Comparison:

    If   f   (x , y )

    β‰₯g (x , y )

     βˆ€(x , y )

    ∈R   then 

    R f   (x , y ) dA β‰₯

     R 

    g (x , y ) dA

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   7 / 58

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    8/58

    Iterated Integrals

    Suppose   f   (x , y )  is continuous on the rectangle  R  = [a , b ] Γ— [c , d ]Partial integration: fix  x , integrate   f   (x , y )  as a function of  y   alone

    A(x ) =

       d c 

    f   (x , y ) dy 

    An iterated integral is the integral of  A(x )  wrt  x 

       b a

    A(x ) dx  =   b a

       d c 

    f   (x , y ) dy 

     dx 

    Usually the brackets are omitted

       b a   d c 

    f   (x , y ) dy dx  =    b a   d 

    c f   (x , y ) dy   dx 

    Iterating the other way

       d 

    c     b 

    af   (x , y ) dx dy  =  

      d 

       b 

    af   (x , y ) dx 

     dy 

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   8 / 58

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    9/58

    Double Integrals vs. Iterated Integrals

    Big Question:

    What is the relationship between a double integral and an iterated

    integral?  R 

    f   (x , y ) dA   ?

       b a

       d c 

    f   (x , y ) dy dx 

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   9 / 58

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    10/58

    Outline

    1   Double Integrals

    2   Fubini’s Theorem

    3   Change of Variables for Double Integrals

    4   Change of Variables Example

    5   Double Integrals of Separable Functions

    6   Polar Coordinates

    7   A Culturally Important Integral

    8   Marginal Density of a Bivariate Normal Distribution

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   10 / 58

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    11/58

    Fubini’s Theorem

    If   f  

     (x , y 

    )  is continuous on the rectangle R 

     = [a , b 

    ] Γ— [c , d 

    ]  then R 

    f   (x , y ) dA =

       b a

       d c 

    f   (x , y ) dy dx  =

       d c 

       b a

    f   (x , y ) dx dy 

    The order of iteration does not matter

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   11 / 58

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    12/58

    Example

    Let  R  = [1, 3]Γ— [2, 5] and  f   (x , y ) = 2y βˆ’ 3x . Compute 

    R  f   (x , y ) dA

     R 

    f   (x , y ) dA   = 

      5

    2

       3

    1(2y  βˆ’ 3x ) dx   dy 

    =

       52

    2xy  βˆ’ 3

    2x 2

    3

    1

     dy 

    =

       52

    6y  βˆ’ 27

    2

    βˆ’

    2y  βˆ’ 32

     dy 

    =    5

    24y  βˆ’ 12 dy 

    =

    2y 2 βˆ’ 12y 

    5

    2

    =50 βˆ’ 60βˆ’ 8 βˆ’ 24 = 6

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   12 / 58

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    13/58

    Example (continued)

     R 

    f   (x , y ) dA   =    3

      5

    2

    (2y 

     βˆ’3x ) dy   dx 

    =

       31

    (y 2 βˆ’ 3xy )

    5

    2

     dx 

    =   3

    1[(25 βˆ’ 15x ) βˆ’ (4 βˆ’ 6x )]  dx 

    =

       31

    21βˆ’ 9x  dx 

    =

    21x  βˆ’ 9

    2x 2 3

    1

    = 63 βˆ’ 81

    2 βˆ’ 21 βˆ’ 9

    2 =  42 βˆ’ 36 = 6Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   13 / 58

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    14/58

    Double Integrals Non-Rectangular Regions

    If   f   (x , y )  is continuous on a region  D  that can be described

    D  = {(x , y ) : a β‰€ x  β‰€ b ,   g 1(x ) ≀ y  β‰€ g 2(x ) }

    then

     D 

    f   (x , y ) dA =    b 

    a   g 2(x )

    g 1(x )

    f   (x , y ) dy dx 

    If   f   (x , y )  is continuous on a region  D  that can be described

    D  = {(x , y ) : c  β‰€ y  β‰€ d ,   h1(y ) ≀ x  β‰€ h2(y ) }then  

    D f   (x , y ) dA =

       d c 

       h2(x )h1(x )

    f   (x , y ) dx dy 

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   14 / 58

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    15/58

    Example

    Let  D  ={

    (x , y ) :|x 

    |+|y 

    | ≀1}diamond w/ corners at  (0,Β±1)  and  (Β±1, 0)

    Compute the integral of   f   (x , y ) = 1 over  D 

     D 

    1 dA

    =    0

    βˆ’1  

      1+x 

    βˆ’1βˆ’x 

    1 dy   dx  +    1

    0    1βˆ’x 

    βˆ’1

    1 dy   dx 

    =

       0βˆ’1

      y 

    1+x 

    βˆ’1βˆ’x 

     dx  +

       10

      y 

    1βˆ’x 

    x βˆ’1

     dx 

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   15 / 58

    ( )

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    16/58

    Example (continued)

    =   0βˆ’1

    1 + x 

    βˆ’ βˆ’ 1 βˆ’ x  dx  +    1

    0

    1 βˆ’ x βˆ’ x  βˆ’ 1 dx =

       0βˆ’1

    2 + 2x 

    dx  +

       10

    2 βˆ’ 2x  dx 

    =2x  + x 2

    0βˆ’1

    +2x  βˆ’ x 21

    0

    = 0 + 0βˆ’ βˆ’ 2 + 1 + 2 βˆ’ 1βˆ’ 0 βˆ’ 0= 1 + 1

    = 2

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   16 / 58

    O l

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    17/58

    Outline

    1   Double Integrals

    2   Fubini’s Theorem

    3   Change of Variables for Double Integrals

    4   Change of Variables Example

    5   Double Integrals of Separable Functions

    6   Polar Coordinates

    7   A Culturally Important Integral

    8   Marginal Density of a Bivariate Normal Distribution

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   17 / 58

    Ch f V i bl Si l V i bl C

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    18/58

    Change of Variables: Single Variable Case

    Let   f   (x )  be a continuous function

    Let  g (s )  be a continuously differentiable and invertible functionβ€’  Implies  g (s )  either strictly increasing or strictly decreasing

    g (s )  maps the interval  [c , d ]   into the interval  [a , b ], i.e.,

    s  βˆˆ [c , d ] β†’ x  = g (s ) ∈ [a , b ]

    Integration by substitution says:

       x =b 

    x =af   (x ) dx  =

       s =g 

    βˆ’1

    (b )

    s =g βˆ’1(a)f   (g (s )) g (s ) ds 

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   18 / 58

    Ch f V i bl F i f 2 V i bl

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    19/58

    Change of Variables: Functions of 2 Variables

    Let   f   (x , y )  be a continuous function

    Want to compute: 

    D f   (x , y ) dA

    Let  β„¦  be a domain such that the mapping

    x  =  x (s , t ) y  =  y (s , t )

    of a point  (s , t ) ∈ Ω  to a point  (x , y ) ∈ D  is one-to-one and ontoβ€’  x (s , t )  and  y (s , t )  continuously differentiable

    That is,

    (s , t ) ∈ ٠←→   (x , y ) = (x (s , t ), y (s , t )) ∈ D Want to find a function  h(s , t )  such that

     D f   (x , y ) dx dy  =

     β„¦h(s , t ) ds dt 

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   19 / 58

    Ch f V i bl

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    20/58

    Change of Variables

    Get startedf   (x , y ) = f   (x (s , t ), y (s , t ))

    In the single variable case, if  x  = g (s )  then

    dx  = g (s ) ds 

    In the 2-variable case,  (x , y ) = (x (s , t ), y (s , t ))  is a vector-valuedfunction of 2 variables

    The gradient of  (x (s , t ), y (s , t ))  is the 2 Γ— 2 array

    D (x (s , t ), y (s , t )) =

    βˆ‚ x βˆ‚ s 

    βˆ‚ x βˆ‚ t 

    βˆ‚ y 

    βˆ‚ s 

    βˆ‚ y 

    βˆ‚ t 

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   20 / 58

    J bi

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    21/58

    Jacobian

    The 2-variable equivalent of  dx  = g (s ) ds   is

    dx dy  =

    βˆ‚ x 

    βˆ‚ s 

    βˆ‚ y 

    βˆ‚ t  βˆ’  βˆ‚ x 

    βˆ‚ t 

    βˆ‚ y 

    βˆ‚ s 

    ds dt 

    and the quantity in the square brackets is called the Jacobian

    2 dimensional change of variables formula:

     D 

    f   (x , y ) dx dy  = 

    Ωf   (x (s , t ), y (s , t ))

    βˆ‚ x βˆ‚ s  βˆ‚ y βˆ‚ t  βˆ’  βˆ‚ x βˆ‚ t  βˆ‚ y βˆ‚ s  ds dt 

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   21 / 58

    Example

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    22/58

    Example

    Example from previous sectionLet  D  = {(x , y ) : |x | + |y | ≀ 1}diamond w/ corners at  (0,Β±1)  and  (Β±1, 0)Compute the integral of   f   (x , y ) = 1 over  D 

     D 

    1 dA   =   0βˆ’1

       1+x βˆ’1βˆ’x  1 dy 

     dx  +

       10

       1βˆ’x x βˆ’1 1 dy 

     dx 

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   22 / 58

    Example (continued)

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    23/58

    Example (continued)

    Consider the change of variables:

    s  = x  + y ,   t  = x  βˆ’ y 

    Solve for  x   and  y   in terms of  s   and  t :

    x  =  s  + t 

    2  ,   y  =

      s βˆ’ t 2

    Compute the partial derivatives of the change of variables:

    βˆ‚ x 

    βˆ‚ s   =

     1

    2,

      βˆ‚ x 

    βˆ‚ t   =

     1

    2,

      βˆ‚ y 

    βˆ‚ s   =

     1

    2,

      βˆ‚ y 

    βˆ‚ t   = βˆ’1

    2

    Compute the Jacobian:

    βˆ‚ x 

    βˆ‚ s 

    βˆ‚ y 

    βˆ‚ t  βˆ’  βˆ‚ x 

    βˆ‚ t 

    βˆ‚ y 

    βˆ‚ s   =

     1

    2

    βˆ’1

    2

    βˆ’  1

    2

    1

    2 = βˆ’1

    4 βˆ’ 1

    4 = βˆ’1

    2

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   23 / 58

    Example (continued)

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    24/58

    Example (continued)

    Multivariate change of variables formula:

     D 

    1 dx dy  = 

    Ω1βˆ‚ x βˆ‚ s  βˆ‚ y βˆ‚ t  βˆ’  βˆ‚ x βˆ‚ t  βˆ‚ y βˆ‚ s  ds dt  =  β„¦ 12 ds dt 

    Finally, domain of integration (Ω):

    s  = x + y

    t  = x βˆ’ y

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   24 / 58

    Example (continued)

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    25/58

    Example (continued)

    Domain of integration:   Ω = [βˆ’1, 1] Γ— [βˆ’1, 1] 

    D 1 dA   =

       0

    βˆ’1

       1+

    βˆ’1βˆ’x 1 dy 

     dx  +

       1

    0

       1βˆ’

    x βˆ’11 dy 

     dx 

    =

     β„¦

    1

    2 ds dt 

    =

       t =1t =βˆ’1

       s =1s =βˆ’1

    1

    2 ds 

     dt 

    =    t =1

    t =βˆ’1   s 

    2s =1

    s =βˆ’1  dt 

    =

       t =1t =βˆ’1

    1 dt 

    =   2

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   25 / 58

    Outline

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    26/58

    Outline

    1   Double Integrals

    2   Fubini’s Theorem

    3   Change of Variables for Double Integrals

    4   Change of Variables Example

    5   Double Integrals of Separable Functions

    6   Polar Coordinates

    7   A Culturally Important Integral

    8   Marginal Density of a Bivariate Normal Distribution

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   26 / 58

    Change of Variables Example

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    27/58

    Change of Variables Example

    Evaluate

     D 

    x dx dy    where

    D  =

    (x , y ) ∈ R2 : x  β‰₯ 0,

    1 ≀ xy  β‰€ 2,

    1 ≀   y x  β‰€ 2

    Can assume  x  > 0

    D  = 1

    x  β‰€y  β‰€

      2

    x x  β‰€ y  β‰€ 2x  x

    y

    y   =1

    x

    y  =2

    x

    y  = x

    y  = 2x

     D x dx dy  =    1

    √ 2

    2    2x 

    1x 

    x dy dx  +  βˆš 

    2

    1    2x 

    x x dy dx 

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   27 / 58    1    2x   βˆš 2    2

    x

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    28/58

    =

    √ 

    22

    1x 

    x dy 

     dx  +

    √1

    x x dy 

     dx 

    =   1√ 

    22

    xy 

    y =2x 

    y = 1x 

     dx  +

     βˆš 21

    xy 

    y = 2

    y =x 

     dx 

    =

       1√ 

    22

    2x 2 βˆ’ 1

    dx  +

     βˆš 21

    2 βˆ’ x 2

    dx 

    =2

    3x 3 βˆ’ x 

    1

    √ 2

    2

    +2x  βˆ’ 1

    3x 3√ 

    2

    1

    =

    23 βˆ’ 1βˆ’ 23 (√ 2)

    3

    23   βˆ’ √ 22

    +

    2√ 2 βˆ’  13 (√ 2)3βˆ’ 2 βˆ’  13

    =   βˆ’13 βˆ’

    √ 2

    6  +

     3√ 

    2

    6  +

     12√ 

    2

    6  βˆ’  4

    √ 2

    6  βˆ’  5

    3 = βˆ’12 + 10√ 2

    6  =

     βˆ’6 + 5√ 23

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   28 / 58

    Again Using a Change of Variables

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    29/58

    Again, Using a Change of Variables

    Consider the change of variables

    s  = xy ,   t  =   y x 

    D  =

    (x , y ) ∈ R2 : x  β‰₯ 0,

    1 ≀ xy  β‰€ 2,

    1 ≀   y x  β‰€ 2

    Ω = [1, 2] Γ— [1, 2] x

    y

    y   =1

    x

    y  =2

    x

    y  = x

    y =

     2x

     D 

    x dx dy  =

       t =2t =1

       s =2s =1

    x dx dy 

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   29 / 58

    Again, Using a Change of Variables

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    30/58

    Again, Using a Change of Variables

    First, solve for functions  x  = x (s , t )  and  y  = y (s , t ):

    x  = s 

    t ,   y  = √ st 

    Partial derivatives for the change of variables are:

    βˆ‚ x 

    βˆ‚ s    =

      βˆ‚ 

    βˆ‚ s 

    12

    t βˆ’12

    =  1

    2s βˆ’

    12 t βˆ’

    12   =

      1

    2√ 

    st 

    βˆ‚ y 

    βˆ‚ s    =  βˆ‚ 

    βˆ‚ s 

    s 1

    2 t 1

    2

    =  1

    2s βˆ’

    12 t 

    12   =

    √ t 

    2√ 

    βˆ‚ x 

    βˆ‚ t    =

      βˆ‚ 

    βˆ‚ t 

    12

    t βˆ’12

    =   βˆ’12

    s 12 t βˆ’

    32   = βˆ’

    √ s 

    2t βˆš 

    βˆ‚ y βˆ‚ t    =   βˆ‚ βˆ‚ t 

    12 t 

    12

    =  1

    2s 

    12 t βˆ’

    12   =

    √ s 

    2√ 

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   30 / 58

    Again, Using a Change of Variables

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    31/58

    Again, Using a Change of Variables

    Jacobian for the change of variables:

    βˆ‚ x 

    βˆ‚ s 

    βˆ‚ y 

    βˆ‚ t  βˆ’  βˆ‚ x 

    βˆ‚ t 

    βˆ‚ y 

    βˆ‚ s   =

      1

    2√ 

    st 

    √ s 

    2√ 

    t βˆ’βˆ’

    √ s 

    2t βˆš 

     βˆš t 

    2√ 

    =

      1

    4t   +

      1

    4t 

    =  1

    2t 

    Change of variables formula: D 

    x dx dy  =

       t =2t =1

       s =2s =1

     s 

    1

    2t  ds dt 

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   31 / 58    t =2    s =2  s  1

    ds

    dt

      1   t =2    s =2

    s12 tβˆ’

    32 ds

    dt

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    32/58

    t =1

    s =1

    t  2t 

     ds 

     dt    =

    2

    t =1

    s =1

    s 2 t  2  ds 

     dt 

    =  1

    2   t =2

    t =1  2

    3s 

    32 t βˆ’

    32

    s =2

    s =1  dt 

    =  1

    3

       t =2t =1

    2√ 

    2t βˆ’32 βˆ’ t βˆ’ 32

     dt 

    =   13   t =2t =1

    2√ 2 βˆ’ 1t βˆ’ 32  dt 

    =  2√ 

    2 βˆ’ 13

    βˆ’2t βˆ’ 12

    t =2

    t =1

    =  2√ 2 βˆ’ 1

    3  (2 βˆ’

    √ 2)

    =  5√ 

    2 βˆ’ 63Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   32 / 58

    Outline

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    33/58

    1   Double Integrals

    2   Fubini’s Theorem

    3   Change of Variables for Double Integrals

    4   Change of Variables Example

    5   Double Integrals of Separable Functions

    6   Polar Coordinates

    7   A Culturally Important Integral

    8   Marginal Density of a Bivariate Normal Distribution

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   33 / 58

    Separable Functions

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    34/58

    p

    Take another look at the example in the last section

       t =2t =1

       s =2s =1

     s t 

    12t 

     ds 

     dt    =   12

       t =2t =1

       s =2s =1

    s 12 t βˆ’ 32  ds 

     dt 

    Since  t  (and any function of  t ) is constant while integrating wrt  s    t =2

    t =1

       s =2

    s =1

     s 

    1

    2t  ds 

     dt    =

      1

    2

       t =2

    t =1t βˆ’

    32

       s =2

    s =1s 

    12  ds 

     dt 

    The double integral is the product of 2 single-variable definiteintegrals

       t =2t =1

       s =2s =1

     s 

    1

    2t  ds 

     dt    =

      1

    2

       s =2s =1

    s 12  ds 

       t =2t =1

    t βˆ’32  dt 

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   34 / 58

    Separable Functions

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    35/58

    p

    1

    2    s =2

    s =1s 

    12  ds   

      t =2

    t =1t βˆ’

    32  dt    =

      1

    2  2

    3s 

    32

    s =2

    s =1 βˆ’2t 

    βˆ’ 12

    t =2

    t =1

    =  βˆ’2

    3

    32

    s =2

    s =1

    t βˆ’

    12

    t =2

    t =1

    =   βˆ’23

    2√ 2 βˆ’ 1   1√ 2 βˆ’ 1

    =   βˆ’23

    2βˆ’ 2

    √ 2 βˆ’   1√ 

    2+ 1

    =   βˆ’13

    4βˆ’ 4√ 2 βˆ’βˆš 2 + 2

    =  5√ 

    2 βˆ’ 63

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   35 / 58

    Separable Functions

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    36/58

    Let  R  = [a , b ] Γ— [c , d ]  be a rectangleLet   f   (x , y )  be a continuous, separable function

    f   (x , y ) = g (x ) h(y )

    g (x )  and  h(x )  continuous

    Double integral of   f    over  R   is the product of single-variable integrals R 

    f   (x , y ) dx dy    =

       d c 

       b a

    g (x ) h(y ) dx dy 

    =   d c 

    h(y )   b 

    ag (x ) dx 

     dy 

    =

       b 

    ag (x ) dx 

       d 

    c h(y ) dy 

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   36 / 58

    Outline

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    37/58

    1   Double Integrals

    2   Fubini’s Theorem

    3   Change of Variables for Double Integrals

    4   Change of Variables Example

    5   Double Integrals of Separable Functions

    6   Polar Coordinates

    7   A Culturally Important Integral

    8   Marginal Density of a Bivariate Normal Distribution

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   37 / 58

    Polar Coordinates

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    38/58

    Describe points in  R2 using

    r  βˆˆ [0, βˆž)ΞΈ ∈ [0, 2Ο€)r  =  distance from origin

    ΞΈ =  angle counter clockwisefrom positive  x -axis

    (x , y ) ←→ (r , ΞΈ)x (r , ΞΈ) =   r   cos(ΞΈ)

    y (r , ΞΈ) =   r   sin(ΞΈ)

    Can simplify integrationproblems

    x

    y

    ( , )x0 y0

    r0

    ΞΈ0

    ( , )x1 y1

    r1

    ΞΈ1

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   38 / 58

    Change of Variables to Polar Coordinates

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    39/58

    The change of variables is:

    x (r , ΞΈ) = r   cos(ΞΈ)   y (r , ΞΈ) = r   sin(ΞΈ)

    The partial derivatives of the change of variables are:

    βˆ‚ x 

    βˆ‚ r 

      = cos(ΞΈ)  βˆ‚ x 

    βˆ‚ΞΈ

      =

    βˆ’r   sin(ΞΈ)

      βˆ‚ y 

    βˆ‚ r 

      = sin(ΞΈ)  βˆ‚ y 

    βˆ‚ΞΈ

      = r   cos(ΞΈ)

    The Jacobian is:

    βˆ‚ x βˆ‚ r 

    βˆ‚ y βˆ‚ΞΈ βˆ’  βˆ‚ x 

    βˆ‚ΞΈβˆ‚ y βˆ‚ r 

      =   cos(ΞΈ) Β· r   cos(ΞΈ) βˆ’ (βˆ’r   sin(ΞΈ)) Β· sin(ΞΈ)

    =   r 

    cos2(ΞΈ) + sin2(ΞΈ)

    =   r 

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   39 / 58

    Change of Variables to Polar Coordinates

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    40/58

    The change of variable formula to polar coordinates:

     D 

    f   (x , y ) dx dy  = 

    D f   (r   cos(ΞΈ), r   sin(ΞΈ)) r dr d ΞΈ

    Integrate   f   (x , y )  over a disk of radius  R  centered at the origin:

     D (0,R )

    f   (x , y ) dx dy  = 

      2Ο€

    0

       R 

    0f   (r   cos(ΞΈ), r   sin(ΞΈ)) r dr 

    d ΞΈ

    Integrate   f   (x , y )  over the plane  R2:

     R2

    f   (x , y ) dx dy  =

       2Ο€0

      βˆž0

    f   (r   cos(ΞΈ), r   sin(ΞΈ)) r dr 

    d ΞΈ

    The latter can be useful for integrating probability density functions

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   40 / 58

    Example

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    41/58

    Let  D  = {(x , y ) : x 2 + y 2 ≀ 1}   (disk of radius 1 centered at origin)

    Compute the integral  D 

    (1 βˆ’ x 2 βˆ’ y 2) dx dy 

    Try once using xy-coordinates

    Then try once using polar coordinates

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   41 / 58  

    Df   (x , y ) dy dx    =

       1

    βˆ’1

     βˆš 1βˆ’x 2βˆ’βˆš 1βˆ’x

    2(1 βˆ’ x 2 βˆ’ y 2) dy 

     dx 

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    42/58

    1

    √

    1 x 

    =    1

    βˆ’1 (1 βˆ’x 2)y 

     βˆ’ y 3

    3

    y =√ 

    1βˆ’x 2

    y =βˆ’βˆš 1βˆ’x 2  dx 

    =

       1βˆ’1

    2(1 βˆ’ x 2)

     1 βˆ’ x 2 βˆ’  2(

    √ 1 βˆ’ x 2)3

    3

     dx 

      1

    βˆ’1

    6(√ 1 βˆ’ x 2)3 βˆ’ 2(√ 1 βˆ’ x 2)3

    3

     dx 

    =  4

    3    1

    βˆ’1 ( 1 βˆ’

    x 2)3 dx ...

      ...

    =  1

    6x  1 βˆ’

    x 2(5

    βˆ’2x 2) + 3 arcsin(x )

    1

    βˆ’1Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   42 / 58

    Example (in polar coordinates)

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    43/58

     D  f   (x , y ) dy dx    =

       2Ο€0

       101 βˆ’ r 

    2

    cos2

    (ΞΈ) βˆ’ r 2

    sin2

    (ΞΈ)

    r dr d ΞΈ

    =

       2Ο€0

       10

    1 βˆ’ r 2 cos2(ΞΈ) + sin2(ΞΈ) r dr d ΞΈ

    =   2Ο€

    0

       10

    r  βˆ’ r 3 dr   d ΞΈ

    =

       2Ο€0

    r 2

    2 βˆ’  r 

    4

    4

    1

    0

     d ΞΈ

    =

       2Ο€0

    1

    4 d ΞΈ =

     Ο€

    2

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   43 / 58

    Outline

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    44/58

    1   Double Integrals

    2   Fubini’s Theorem

    3   Change of Variables for Double Integrals

    4   Change of Variables Example

    5   Double Integrals of Separable Functions

    6   Polar Coordinates

    7   A Culturally Important Integral

    8   Marginal Density of a Bivariate Normal Distribution

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   44 / 58

    The Standard Normal Density

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    45/58

    The standard normal density

    Ο†(x ) =  1√ 

    2Ο€e βˆ’

    x 2

    2

    The function  Ξ¦  used in the Black-Scholes formula

    Ξ¦(x ) =   x 

    βˆ’βˆžΟ†(t ) dt 

    Raises 2 12   questions:

    1   Where does the  1√ 2Ο€   come from?

    2   Why not use a closed-form expression for Ξ¦?

    2 12   Where does the  1√ 

    2Ο€  come from?

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   45 / 58

    The Standard Normal Density

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    46/58

    Since  Ο†  is a probability density function

      βˆžβˆ’βˆž

    Ο†(x ) dx  =  βˆžβˆ’βˆž

    Ο†(x ) dx  = 1

    Implies that   βˆžβˆ’βˆž

    e βˆ’ x 22   dx  = √ 2Ο€

    Change of variables

      βˆžβˆ’βˆž e βˆ’

    x 2

    dx  = √ Ο€

    The problem is  e βˆ’x 2 does not have an antiderivative

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   46 / 58

    Change to Polar Coordinates

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    47/58

    Let

    M  =   βˆž

    βˆ’βˆže βˆ’x 

    2dx 

    Want to show that  M  =√ Ο€

    Can also express  M   as

    M  =

      βˆžβˆ’βˆž

    e βˆ’y 2

    dy 

    Now want to show that  M 2

    = Ο€

    M 2 =

      βˆžβˆ’βˆž

    e βˆ’x 2

    dx 

      βˆžβˆ’βˆž

    e βˆ’y 2

    dy 

    This is the double integral of a separable function

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   47 / 58

    Change to Polar Coordinates

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    48/58

    Unseparate the double integral

    M 2 =   βˆž

    βˆ’βˆže βˆ’x 

    2dx   

     βˆž

    βˆ’βˆže βˆ’y 

    2dy 

    =

      βˆžβˆ’βˆž

    e βˆ’x 2  βˆžβˆ’βˆž

    e βˆ’y 2

    dy 

     dx 

    =   βˆžβˆ’βˆž e βˆ’x 2   βˆžβˆ’βˆž e βˆ’y 

    2dy 

    =

      βˆžβˆ’βˆž

      βˆžβˆ’βˆž

    e βˆ’(x 2+y 2) dy dx 

    R2e βˆ’

    (x 2+y 2)dy dx 

    Change to polar coordinates

    =

       2Ο€

    0   βˆž

    0e βˆ’[r  cos(ΞΈ)]

    2+[r  sin(ΞΈ)]2 r dr d ΞΈ

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   48 / 58

    Change to Polar Coordinates

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    49/58

    M 2 =    2Ο€

    0   βˆž

    0e βˆ’[r  cos(ΞΈ)]

    2+[r  sin(ΞΈ)]2 r dr d ΞΈ

    =

       2Ο€0

      βˆž0

    e βˆ’r 2[cos2(ΞΈ)+sin2(ΞΈ)]r dr d ΞΈ

    =    2Ο€

    0  βˆž

    0

    e βˆ’r 2

    r dr d ΞΈ   let u  =βˆ’

    r 2

    =

       2Ο€0

    d ΞΈ

    βˆ’1

    2

       u =βˆ’βˆžu =0

    e u (βˆ’2r dr )

      du  = βˆ’2r dr 

    =  ΞΈ

    2Ο€

    0

    βˆ’12 e u  βˆ’βˆž

    0

    = [2Ο€ βˆ’ 0]βˆ’1

    2

      limt β†’βˆ’βˆž e 

    t βˆ’ 1

      = 2Ο€  Β·   12

     = Ο€

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   49 / 58

    Change to Polar Coordinates

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    50/58

    In summary:

    Started out with

    M  =

      βˆžβˆ’βˆž

    e βˆ’x 2

    dx 

    Showed that  M 2 = Ο€  and thus that  M  =√ Ο€

    Can conclude that

        βˆžβˆ’βˆž e βˆ’x 2

    dx  = √ Ο€

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   50 / 58

    Outline

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    51/58

    1   Double Integrals

    2   Fubini’s Theorem

    3   Change of Variables for Double Integrals

    4

      Change of Variables Example5   Double Integrals of Separable Functions

    6   Polar Coordinates

    7   A Culturally Important Integral

    8   Marginal Density of a Bivariate Normal Distribution

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   51 / 58

    Marginal Density of a Bivariate Normal Distribution

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    52/58

    Bivariate normal density function:   f  X ,Y  (x , y ;Β΅x , Β΅y , Οƒx , Οƒy , ρ)

    1

    2πσx Οƒy  

    1βˆ’ ρ2  exp

    βˆ’

    (x  βˆ’ Β΅x )2Οƒ2x 

    βˆ’  2ρ(x  βˆ’ Β΅x )(y  βˆ’ Β΅y )Οƒx Οƒy 

    + (y  βˆ’ Β΅y )2

    Οƒ2y 

    2(1 βˆ’ ρ2)

    The marginal density is

    f  Y  (y ) =   βˆž

    βˆ’βˆžf  X ,Y  (x , y ) dx 

    Let  X   and  Y  be returns on an asset in consecutive periods

    Assume that  Β΅x   = Β΅y  = Β΅  and  Οƒx   = Οƒy  = Οƒ

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   52 / 58

    Marginal Density βˆž

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    53/58

    f  X (x ) =

     βˆžβˆ’βˆž

    f  X ,Y  (x , y ) dy 

    =  βˆžβˆ’βˆž

    12πσ2

     1 βˆ’ ρ2  exp

    βˆ’(x  βˆ’ Β΅)2 βˆ’ 2ρ(x  βˆ’ Β΅)(y  βˆ’ Β΅) + (y  βˆ’ Β΅)2

    2Οƒ2(1 βˆ’ ρ2)

    dy 

    Guess that   f  X (x )  is normal with mean  Β΅  and variance  Οƒ2

    f  X (x ) =  1√ 

    2πσexp

    βˆ’(x  βˆ’ Β΅)

    2

    2Οƒ2

    Γ—   βˆžβˆ’βˆž

    C exp (x  βˆ’ Β΅)22Οƒ2

      βˆ’  (x  βˆ’ Β΅)2

    βˆ’ 2ρ(x  βˆ’ Β΅)(y  βˆ’ Β΅) + (y  βˆ’ Β΅)2

    2Οƒ2(1 βˆ’ ρ2)

    dy 

    where C =   1√ 2πσ 1 βˆ’

    ρ2

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   53 / 58

    Marginal Density

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    54/58

    Lets look at the quantity in the square brackets

    (x  βˆ’ Β΅)2

    2Οƒ2   βˆ’ (x 

     βˆ’Β΅)2

    βˆ’2ρ(x 

     βˆ’Β΅)(y 

     βˆ’Β΅) + (y 

     βˆ’Β΅)2

    2Οƒ2(1 βˆ’ ρ2)

    =

    (1 βˆ’ ρ2)(x  βˆ’ Β΅)2 βˆ’ (x  βˆ’ Β΅)2 + 2ρ(x  βˆ’ Β΅)(y  βˆ’ Β΅) βˆ’ (y  βˆ’ Β΅)2

    2Οƒ2(1 βˆ’ ρ2)

    =

    βˆ’Ο2(x  βˆ’ Β΅)2 + 2ρ(x  βˆ’ Β΅)(y  βˆ’ Β΅) βˆ’ (y  βˆ’ Β΅)2

    2Οƒ2(1 βˆ’ ρ2)

    =βˆ’

    ρ2(x 

     βˆ’Β΅)2

    βˆ’2ρ(x 

     βˆ’Β΅)(y 

     βˆ’Β΅) + (y 

     βˆ’Β΅)2

    2Οƒ2(1 βˆ’ ρ2)

    =

    βˆ’Ο(x  βˆ’ Β΅) βˆ’ (y  βˆ’ Β΅)2

    2Οƒ2(1 βˆ’ ρ2)

      =

    βˆ’

    y  βˆ’ (Β΅ + ρ(x  βˆ’ Β΅))22(Οƒ 1 βˆ’ ρ

    2)2

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   54 / 58

    Marginal Density

    2

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    55/58

    f  X (x ) =  1√ 

    2πσexp

    βˆ’(x  βˆ’ Β΅)

    2

    2Οƒ2

    Γ—  βˆžβˆ’βˆž

    C exp

    (x  βˆ’ Β΅)22Οƒ2

      βˆ’  (x  βˆ’ Β΅)2 βˆ’ 2ρ(x  βˆ’ Β΅)(y  βˆ’ Β΅) + (y  βˆ’ Β΅)2

    2Οƒ2(1 βˆ’ ρ2)

    dy 

    Lets look just at the integrand

    1√ 2Ο€(Οƒ

     1 βˆ’ ρ2) exp

    βˆ’

    y  βˆ’ (Β΅ + ρ(x  βˆ’ Β΅))22(Οƒ

     1 βˆ’ ρ2)2

    Let  m = (Β΅ + ρ(x  βˆ’ Β΅))  and  s  = (Οƒ 1 βˆ’ ρ2), the integrand becomes1√ 2Ο€s 

    exp

    βˆ’(y  βˆ’m)

    2

    2s 2

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   55 / 58

    Marginal Density

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    56/58

    The integral becomes

      βˆžβˆ’βˆž

    1√ 2Ο€s 

    expβˆ’(y  βˆ’m)2

    2s 2

     dy 

    Integral of a normal density over the real line, thus equal to 1

    The guess for the marginal density was correct

    f  X (x ) =  1√ 

    2πσexp

    βˆ’(x  βˆ’ Β΅)

    2

    2Οƒ2

      βˆž

    βˆ’βˆž

    1√ 2Ο€s 

    exp

    βˆ’(y  βˆ’m)

    2

    2s 2

     dy 

    =  1√ 

    2πσexp

    βˆ’(x  βˆ’ Β΅)

    2

    2Οƒ2

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   56 / 58

    Bonus: Conditional Density Function

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    57/58

    The function that we integrated out is the conditional density

    Denoted by   f  Y |X (y |x )

    f  Y |X (y |x ) =  1√ 

    2Ο€(Οƒ 

    1 βˆ’ ρ2) expβˆ’

    y  βˆ’ (Β΅ + ρ(x  βˆ’ Β΅))22(Οƒ

     1βˆ’ ρ2)2

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   57 / 58

  • 8/21/2019 Mathematicalmethods Lecture Slides Week4 MultipleIntegrals

    58/58

    http://computational-finance.uw.edu

    Kjell Konis (Copyright  Β©  2013)   4. Multiple Integrals   58 / 58

    http://computational-finance.uw.edu/http://computational-finance.uw.edu/