Elementwise Derivative of a Matrix Exponential

Click For Summary
SUMMARY

The discussion focuses on maximizing the function $$ f(A) = \mathbf{w}^T \left[\int_0^t e^{\tau A} M e^{\tau A^T} d\tau \right]^{-1} \mathbf{w} $$ with respect to the matrix A, where M is a covariance matrix and w is an n-dimensional vector. The user seeks to differentiate the matrix exponential with respect to its elements, referencing the directional derivative of the matrix exponential as a potential solution. Although they have achieved numerical optimization of f(A), the process is slow due to the need to solve two Lyapunov equations for each element of A, totaling N^2 derivatives. The user is exploring methods to enhance computational efficiency by focusing on specific directions that influence f(A).

PREREQUISITES
  • Matrix calculus, specifically differentiation of matrix functions
  • Understanding of Lyapunov equations and their applications
  • Familiarity with matrix exponentials and their properties
  • Numerical optimization techniques for matrix functions
NEXT STEPS
  • Research the directional derivative of the matrix exponential in detail
  • Explore efficient numerical methods for solving Lyapunov equations
  • Investigate optimization techniques that reduce computational complexity in matrix calculus
  • Study the controllability Gramian and its applications in control theory
USEFUL FOR

Researchers and practitioners in applied mathematics, control theory, and numerical optimization, particularly those dealing with matrix functions and their derivatives.

madness
Messages
813
Reaction score
69
TL;DR
How can I analytically or numerically maximise an expression involving matrix exponentials?
Hi all. A problem has arisen whereby I need to maximize a function which looks like $$ f(A) = \mathbf{w}^T \left[\int_0^t e^{\tau A} M e^{\tau A^T} d\tau \right]^{-1} \mathbf{w} $$ with respect to the nxn matrix A (here, M is a covariance matrix, so nxn symmetrix and positive-definite, w is an n-dimensional vector, so f(A) is a scalar). I want to differentiate wrt elements of A, and by using some matrix identities I can make some headway into this. But eventually I have to differentiate the matrix exponential wrt its elements. This looks to be a challenging problem - similar problems seem to have arisen in the context of optimal control theory but I'm not sure this one has been addressed. I'm happy to use a numerical approach in the end, but would like to derive some gradient that can be climbed, perhaps using an approximation to the derivative of the matrix exponential.

I found this paper on the directional derivative of the matrix exponential (https://www.sciencedirect.com/science/article/pii/S0196885885710172). Am I correct in saying that my problem reduces to taking directional derivatives along the matrix direction $$ \mathbf{w} \mathbf{w}^T $$? If so, maybe these results could be used. Otherwise, each elementwise derivative is actually a directional derivative itself, but I'd need to find n^2 of them which would be computationally intensive. If not, is there perhaps some other more general way of numerically taking derivatives of difficult matrix functions such as this?

Thanks for your help!
 
Last edited:
Physics news on Phys.org
How do you define the integral of a matrix?
 
It's an elementwise integral. This is a standard integral called the controllability Gramian, whose solution is given by a Lyapunov equation.

I've now managed to differentiate the function f(A) with respect to the elements of A and optimise numerically. However it's very slow as I have to solve two Lyapunov equations for each element of A I want to get the derivative of, which for now is all N^2 elements. And I have to do this iteratively as I climb the gradient to optimise f(A). I'm hoping there is a way to increase efficiency by only differentiating along directions that affect f(A).
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 24 ·
Replies
24
Views
5K
  • · Replies 17 ·
Replies
17
Views
7K