Compute the matrix exponential for the 2-by-2 matrix and simplify the result.
syms x A = [0 x; -x 0]; simplify(expm(A))
ans = [ cos(x), sin(x)] [ -sin(x), cos(x)]
A— Input matrix
Input matrix, specified as a square symbolic matrix.
R— Resulting matrix
Resulting function, returned as a symbolic matrix.
The matrix exponential eA of matrix A is