# Derive Cosine Function (Taylor Series)

This example derives the power series definition of the cosine function using a Taylor Series Expansion.

## Steps

1. Start with the general form of the taylor series where . Note, the variable has been replaced with the variable , because cosine takes in an angle as input.

2. Choose an input point for cosine to expand the series around.

Observe that for the input angle of radians cosine returns , which makes it a likely point to choose to expand around.

Substitute into the formula.

Simplify.

3. Take the first, second, third and etc. derivatives of the function. Here we use the derivatives of sine and cosine.

The function and its derivatives are shown below.

4. Evaluate the functions at the point .

5. Substitute the values into the expression.

6. Remove the expressions that go to zero.

7. Simplify the numerators, flipping some of the signs.

Substitute the name of the function back into the expression .

This gives us the power series of the cosine function.