(You may want to maximize your window to see the solution more clearly.)
The Taylor series for sin(x) is given by
Because this series converges for all x, we can take the derivative (term by term).