derivative of a sin function code example Example: sin derivative sin'(x) = cos(x) cos'(x) = -sin(x) -sin'(x) = -cos(x) -cos'(x) = sin(x)