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