15.11.2014 Views

AD Tutorial at the TU Berlin

AD Tutorial at the TU Berlin

AD Tutorial at the TU Berlin

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Higher-Order Mixed Partial Deriv<strong>at</strong>ives by UTP Arithmetic<br />

Always possible to compute higher-order mixed partial deriv<strong>at</strong>ives by<br />

evalu<strong>at</strong>ion/interpol<strong>at</strong>ion 2<br />

Example: Hessian H = [[f xx , f xy ], [f yx , f yy ]]<br />

〈s 1 |H|s 2 〉 = 1 2 [〈s 1|H|s 2 〉 + 〈s 2 |H|s 1 〉]<br />

= 1 2 [〈s 1 + s 2 − s 2 |H|s 2 〉 + 〈s 2 + s 1 − s 1 |H|s 1 〉]<br />

= 1 2 [〈s 1 + s 2 |H|s 1 + s 2 〉 − 〈s 1 |H|s 1 〉 − 〈s 2 |H|s 2 〉] .<br />

s T 1 ∇2 f (x)s 2 = ∂2 f (x + t 1 s 1 + t 2 s 2 )<br />

∂t 1 ∂t 2<br />

˛˛˛˛t1 =t 2 =0<br />

= 1 » ∂ 2 –<br />

f (x + t(s 1 + s 2 ))<br />

2 ∂t<br />

˛˛˛˛t=0 2 − ∂2 f (x + s 1 t)<br />

∂t 2 − ∂2 f (x + s 2 t)<br />

∂t 2 .<br />

to get H ij use s 1 = e i and s 2 = e j cartesian basis vectors<br />

2 Griewank et al., Evalu<strong>at</strong>ing Higher Deriv<strong>at</strong>ive Tensors by Forward Propag<strong>at</strong>ion of<br />

Univari<strong>at</strong>e Taylor Series,M<strong>at</strong>hem<strong>at</strong>ics of Comput<strong>at</strong>ion, 2000<br />

Sebastian F. Walter, HU <strong>Berlin</strong> () Not So Short <strong>Tutorial</strong> OnAlgorithmic Differenti<strong>at</strong>ion Wednesday, 04.06.2010 11 / 39

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

Saved successfully!

Ooh no, something went wrong!