06.09.2021 Views

First Semester in Numerical Analysis with Julia, 2020a

First Semester in Numerical Analysis with Julia, 2020a

First Semester in Numerical Analysis with Julia, 2020a

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 2. SOLUTIONS OF EQUATIONS: ROOT-FINDING 67<br />

Let’s compute the derivatives on the right hand side of (2.9).<br />

dφ(d 1 )<br />

dσ<br />

⎛<br />

= d ( ∫ 1 d1<br />

)<br />

√ e −t2 /2 dt = 1<br />

√ ⎜<br />

d<br />

dσ 2π −∞<br />

2π<br />

⎝dσ<br />

∫ d1<br />

−∞<br />

e −t2 /2 dt⎟<br />

⎠ .<br />

} {{ }<br />

u<br />

∫ d1<br />

We will use the cha<strong>in</strong> rule to compute the derivative d e −t2 /2 dt<br />

dσ<br />

−∞<br />

} {{ }<br />

u<br />

du<br />

dσ = du dd 1<br />

dd 1 dσ .<br />

The first derivative follows from the Fundamental Theorem of Calculus<br />

du<br />

dd 1<br />

= e −d 1 2 /2 ,<br />

= du<br />

dσ :<br />

and the second derivative is an application of the quotient rule of differentiation<br />

dd 1<br />

dσ = d ( )<br />

log(S/K)+(r + σ 2 /2)T<br />

dσ<br />

σ √ = √ T − log(S/K)+(r + σ2 /2)T<br />

T<br />

σ 2√ .<br />

T<br />

Putt<strong>in</strong>g the pieces together, we have<br />

dφ(d 1 )<br />

dσ<br />

= e−d 1 2 /2<br />

√<br />

2π<br />

( √T<br />

−<br />

log(S/K)+(r + σ 2 /2)T<br />

σ 2√ T<br />

Go<strong>in</strong>g back to the second derivative we need to compute <strong>in</strong> equation (2.9), we have:<br />

dφ(d 2 )<br />

dσ<br />

= √ 1 ( ∫ d d2<br />

)<br />

e −t2 /2 dt .<br />

2π dσ −∞<br />

Us<strong>in</strong>g the cha<strong>in</strong> rule and the Fundamental Theorem of Calculus we obta<strong>in</strong><br />

)<br />

.<br />

⎞<br />

dφ(d 2 )<br />

dσ<br />

= e−d 2 2 /2<br />

√<br />

2π<br />

dd 2<br />

dσ .<br />

S<strong>in</strong>ce d 2<br />

is def<strong>in</strong>ed as d 2 = d 1 − σ √ T , we can express dd 2 /dσ <strong>in</strong> terms of dd 1 /dσ as:<br />

dd 2<br />

dσ = dd 1<br />

dσ − √ T.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!