﻿With the diff command, an expression such as cos(2*x), the first derivative of the expression is obtained, the result is -2*sin(2*x)