Create symbolic variables, expressions, functions ...
https://www.mathworks.com/help/symbolic/sym.htmlTo create symbolic expressions, first create symbolic variables, and then use operations on them. For example, use syms x; x + 1 instead of sym ('x + 1'), exp (sym (pi)) instead of sym ('exp (pi)'), and syms f (var1,...varN) instead of f (var1,...varN) = sym ('f (var1,...varN)'). Syntax x = sym ('x') A = sym ('a', [n1 ... nM]) A = sym ('a',n)
Symbolic Math Toolbox - MATLAB
https://se.mathworks.com/products/symbolic.htmlSymbolic Math Toolbox lets you analytically perform differentiation, integration, simplification, transforms, and equation solving. You can perform dimensional computations and convert between units. Your computations can be performed either analytically or using variable-precision arithmetic, with the results displayed in mathematical typeset.