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