Lesson 14 of 15
Matrix Exponential
Matrix Exponential
The matrix exponential extends the scalar exponential to matrices via the Taylor series:
Applications
- Differential equations: the solution to with is
- Control theory: state transition matrices
- Quantum mechanics: time evolution operator
Algorithm
Accumulate terms until convergence:
Example: Rotation Generator
The matrix is the generator of 2D rotation. Its exponential is exactly the rotation matrix:
Your Task
Implement mat_exp(A, terms=20) using the Taylor series. Use matrix multiplication to compute successive powers of A.
Python runtime loading...
Loading...
Click "Run" to execute your code.