The MacLaulin series (Taylor series at ) representation of a function is

The derivatives of the trigonometric function and their values at are:

We substitute this value of in the MacLaurin series:

The derivatives of the trigonometric function and their values at are:

We substitute this value of in the MacLaurin series: