Skip to content

Tensor Contraction for Taylor Terms

Definition

Let Dkf(a)\boldsymbol{D}^k f(\boldsymbol{a}) be the kkth derivative of a scalar function at a\boldsymbol{a}, viewed as a kk-linear map. Its contraction with a displacement h∈Rn\boldsymbol{h}\in\mathbb{R}^n is

Dkf(a)[h,…,h].\boldsymbol{D}^k f(\boldsymbol{a})[\boldsymbol{h},\ldots,\boldsymbol{h}].

In a Taylor polynomial, the corresponding kkth-order contribution is

1k!Dkf(a)[h,…,h].\frac{1}{k!}\boldsymbol{D}^k f(\boldsymbol{a})[\boldsymbol{h},\ldots,\boldsymbol{h}].

Interpretation

A derivative tensor is useful once it is evaluated on a concrete displacement. Contraction turns the stored derivative information into the actual Taylor correction in that direction.

A 2 by 2 by 2 cube of third-order partial derivatives f ijk, with front layer k = 1 and back layer k = 2, with row and column directions labelled i and j and layers labelled k.

D3f(a)=(fxixjxk(a))i,j,k\boldsymbol{D}^3f(\boldsymbol{a})=\big(f_{x_ix_jx_k}(\boldsymbol{a})\big)_{i,j,k} has n3n^3 entries (here n=2n=2: a 2×2×22\times2\times2 cube, front k=1k=1, back k=2k=2), symmetric under any permutation of (i,j,k)(i,j,k) for C3C^3 ff. Contraction with h\boldsymbol{h}, D3f(a)[h,h,h]=∑i,j,kfxixjxk(a) hihjhk\displaystyle \boldsymbol{D}^3f(\boldsymbol{a})[\boldsymbol{h},\boldsymbol{h},\boldsymbol{h}]=\sum_{i,j,k}f_{x_ix_jx_k}(\boldsymbol{a})\,h_ih_jh_k, gives the cubic Taylor term 13!D3f(a)[h,h,h]\tfrac{1}{3!}\boldsymbol{D}^3f(\boldsymbol{a})[\boldsymbol{h},\boldsymbol{h},\boldsymbol{h}].

The third-order derivative tensor is the case k=3k=3: inserting the displacement in all three slots and summing over its indices produces one scalar cubic contribution, with coefficient 1/3!1/3! in the Taylor formula.


Key Results

  • For k=2k=2, the contraction is the quadratic form h⊤Hf(a)h\boldsymbol{h}^{\top} \boldsymbol{H}_f(\boldsymbol{a})\boldsymbol{h}.
  • For k=3k=3, the contraction sums all third partial derivatives weighted by three components of h\boldsymbol{h}.
  • The factorial corrects for repeated counting in the Taylor expansion.

Examples

  • If H=(2006)\boldsymbol{H}=\begin{pmatrix}2&0\\0&6\end{pmatrix} and h=(u,v)\boldsymbol{h}=(u,v), then D2f(a)[h,h]=2u2+6v2\boldsymbol{D}^2f(\boldsymbol{a})[\boldsymbol{h},\boldsymbol{h}]=2u^2+6v^2.
  • For f(x,y)=x3+xy2f(x,y)=x^3+xy^2 at the origin and h=(u,v)\boldsymbol{h}=(u,v), the third-order contraction is 6u3+6uv26u^3+6uv^2.

Prerequisites

Sources

Aliases: contracting derivative tensors Keywords: tensor contraction, higher-order Taylor term Symbols: element of, real numbers, sum

Last updated: 27 October 2026 11:52