Skip to main content

Automatic Differentiation Through the Use of Hyper-Dual Numbers for Second Derivatives

  • Conference paper
  • First Online:
Book cover Recent Advances in Algorithmic Differentiation

Part of the book series: Lecture Notes in Computational Science and Engineering ((LNCSE,volume 87))

Abstract

Automatic Differentiation techniques are typically derived based on the chain rule of differentiation. Other methods can be derived based on the inherent mathematical properties of generalized complex numbers that enable first-derivative information to be carried in the non-real part of the number. These methods are capable of producing effectively exact derivative values. However, when second-derivative information is desired, generalized complex numbers are not sufficient. Higher-dimensional extensions of generalized complex numbers, with multiple non-real parts, can produce accurate second-derivative information provided that multiplication is commutative. One particular number system is developed, termed hyper-dual numbers, which produces exact first- and second-derivative information. The accuracy of these calculations is demonstrated on an unstructured, parallel, unsteady Reynolds-Averaged Navier-Stokes solver.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 109.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. http://www.autodiff.org

  2. Bartholomew-Biggs, M.C.: Using forward accumulation for automatic differentiation of implicitly-defined functions. Computational Optimization and Applications 9, 65–84 (1998)

    Google Scholar 

  3. Clifford, W.K.: Preliminary Sketch of Biquaternions. Proc. London Math. Soc. s1-4(1), 381–395 (1871). DOI 10.1112/plms/s1-4.1.381. URL http://plms.oxfordjournals.org/cgi/reprint/s1-4/1/381.pdf

  4. Deakin, M.A.B.: Functions of a dual or duo variable. Mathematics Magazine 39(4), 215–219 (1966). URL http://www.jstor.org/stable/2688085

    Google Scholar 

  5. Eastham, M.S.P.: 2968. on the definition of dual numbers. The Mathematical Gazette 45(353), 232–233 (1961). URL http://www.jstor.org/stable/3612794

  6. Fike, J.A., Alonso, J.J.: The development of hyper-dual numbers for exact second-derivative calculations. In: AIAA paper 2011-886, 49th AIAA Aerospace Sciences Meeting (2011)

    Google Scholar 

  7. Fike, J.A., Jongsma, S., Alonso, J.J., van der Weide, E.: Optimization with gradient and hessian information calculated using hyper-dual numbers. In: AIAA paper 2011-3807, 29th AIAA Applied Aerodynamics Conference (2011)

    Google Scholar 

  8. Griewank, A.: Evaluating Derivatives: Principles and Techniques of Algorithmic Differentiation. No. 19 in Frontiers in Appl. Math. SIAM, Philadelphia, PA (2000)

    Google Scholar 

  9. Hudson, R.W.H.T.: Review: Geometrie der Dynamen. Von E. Study. The Mathematical Gazette 3(44), 15–16 (1904). URL http://www.jstor.org/stable/3602894

  10. Kantor, I., Solodovnikov, A.: Hypercomplex Numbers: An Elementary Introduction to Algebras. Springer-Verlag, New York (1989)

    Google Scholar 

  11. Lai, K.L., Crassidis, J.L.: Extensions of the first and second complex-step derivative approximations. J. Comput. Appl. Math. 219(1), 276–293 (2008). DOI http://dx.doi.org/10.1016/j.cam.2007.07.026

    Google Scholar 

  12. Leuck, H., Nagel, H.H.: Automatic differentiation facilitates OF-integration into steering-angle-based road vehicle tracking. IEEE Computer Society Conference on Computer Vision and Pattern Recognition 2, 2360 (1999). DOI http://doi.ieeecomputersociety.org/10. 1109/CVPR.1999.784659

  13. Martins, J.R.R.A., Sturdza, P., Alonso, J.J.: The connection between the complex-step derivative approximation and algorithmic differentiation. In: AIAA paper 2001-0921, 39th Aerospace Sciences Meeting (2001)

    Google Scholar 

  14. Martins, J.R.R.A., Sturdza, P., Alonso, J.J.: The complex-step derivative approximation. ACM Transactions on Mathematical Software 29(3), 245–262 (2003). DOI http://doi.acm.org/10.1145/838250.838251

    Google Scholar 

  15. Olariu, S.: Complex Numbers in N Dimensions, North-Holland Mathematics Studies, vol. 190. North-Holland, Amsterdam (2002)

    Google Scholar 

  16. Pecnik, R., Terrapon, V.E., Ham, F., Iaccarino, G.: Full system scramjet simulation. Annual Research Briefs, Center for Turbulence Research, Stanford University (2009)

    Google Scholar 

  17. Piponi, D.: Automatic differentiation, C\(++\) templates, and photogrammetry. Journal of graphics, GPU, and game tools 9(4), 41–55 (2004)

    Google Scholar 

  18. Price, G.B.: An Introduction to Multicomplex Spaces and Functions. Monographs and Textbooks in Pure and Applied Mathematics, New York (1991)

    Google Scholar 

  19. Rall, L.B.: Automatic Differentiation: Techniques and Applications, Lecture Notes in Computer Science, vol. 120. Springer, Berlin (1981). DOI 10.1007/3-540-10861-0

    Google Scholar 

  20. Walther, A., Griewank, A.: ADOL-C: A package for the automatic differentiation of algorithms written in C/C\(++\). User’s Manual Version 2.1.12-stable (2010)

    Google Scholar 

Download references

Acknowledgements

This work was funded, in part, by the United States Department of Energy’s Predictive Science Academic Alliance Program (PSAAP) at Stanford University.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Jeffrey A. Fike .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2012 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Fike, J.A., Alonso, J.J. (2012). Automatic Differentiation Through the Use of Hyper-Dual Numbers for Second Derivatives. In: Forth, S., Hovland, P., Phipps, E., Utke, J., Walther, A. (eds) Recent Advances in Algorithmic Differentiation. Lecture Notes in Computational Science and Engineering, vol 87. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-30023-3_15

Download citation

Publish with us

Policies and ethics