A dual number formulation to efficiently compute higher order directional derivatives

06/13/2023
by   R. Peón-Escalante, et al.
0

This contribution proposes a new formulation to efficiently compute directional derivatives of order one to fourth. The formulation is based on automatic differentiation implemented with dual numbers. Directional derivatives are particular cases of symmetric multilinear forms; therefore, using their symmetric properties and their coordinate representation, we implement functions to calculate mixed partial derivatives. Moreover, with directional derivatives, we deduce concise formulas for the velocity, acceleration, jerk, and jounce/snap vectors. The utility of our formulation is proved with three examples. The first example presents a comparison against the forward mode of finite differences to compute the fourth-order directional derivative of a scalar function. To this end, we have coded the finite differences method to calculate partial derivatives until the fourth order, to any order of approximation. The second example presents efficient computations of the velocity, acceleration, jerk, and jounce/snap. Finally, the third example is related to the computation of some partial derivatives. The implemented code of the proposed formulation and the finite differences method is proportioned as additional material to this article.

READ FULL TEXT
research
11/09/2020

Derivatives of partial eigendecomposition of a real symmetric matrix for degenerate cases

This paper presents the forward and backward derivatives of partial eige...
research
01/29/2020

Constructing subgradients from directional derivatives for functions of two variables

For any bivariate function that is locally Lipschitz continuous and dire...
research
01/11/2018

Note on usage and theory of hyper-dual numbers for first and second order automatic differentiation

Similar to dual numbers, hyper-dual numbers are extended numbers that ca...
research
07/20/2021

Adjoint based methods to compute higher order topological derivatives with an application to elasticity

The goal of this paper is to give a comprehensive and short review on ho...
research
10/12/2022

A language for evaluating derivatives of functionals using automatic differentiation

We present a simple functional programming language, called Dual PCF, th...
research
05/27/2021

A unified explicit form for difference formulas for fractional and classical derivatives

A unified explicit form for difference formulas to approximate the fract...
research
06/18/2022

POD-ROMs for incompressible flows including snapshots of the temporal derivative of the full order solution

In this paper we study the influence of including snapshots that approac...

Please sign up or login with your details

Forgot password? Click here to reset