Given d>1, x in RR^d, and two multivariate functions u,v: RR^d to RR^d, what is the second derivative of f:R^d to RR f(x)=u(x) * v(x)=u(x)^T v(x) with respect to x?

bsmart36

bsmart36

Open question

2022-08-17

Given d>1, x I R d , and two multivariate functions u , v : I R d I R d , what is the second derivative of f : I R d I R
f ( x ) = u ( x ) v ( x ) = u ( x ) T v ( x )
with respect to x?
The first derivative is
f x ( x ) = u ( x ) T v x ( x ) + v ( x ) T u x ( x )
which is a row vector of size d when using the numerator layout.
But I do not know how to differentiate again since u x and v x are 3-by-3 matrices...
I tried to develop these equations in a simple situation where d=2, but I obtain a quite complicated matrix and I am looking for a clear formula, in any dimension d>1, where only u,v and their derivatives appear.

Answer & Explanation

Luna Wells

Luna Wells

Beginner2022-08-18Added 19 answers

It's easier to work in index notation. Write f = i = 1 d u i v i so
( f ) j = i [ ( j u i ) v i + u i j v i ] = [ ( u ) v + ( v ) u ] j ,
i.e. f = ( u ) v + ( v ) u. Now for the second derivative:
( 2 f ) j k = k ( f ) j = i [ ( j k u i ) v i + j u i k v i + k u i j v i + u i j k v i ] .
Note this includes rank-3 tensors we might denote 2 u , 2 v, but writing in terms of those without indices requires some clarification on the notation. For example, if we take ( 2 u ) j k i := ( j k u i ), we get
2 f = ( 2 u ) v + ( u ) ( v ) + ( v ) ( u ) + ( 2 v ) u ,
where each ⋅ contracts the factors' last index. This is the general Leibniz rule with non-commuting factors.

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?