Find the Taylor and maclaurin series for the function f(x)=cosx at c=π/6 and c=0 respectively

1 answer

The Taylor series for a function f(x) centered at c is given by:

f(x) = f(c) + f'(c)(x-c)/1! + f''(c)(x-c)^2/2! + f'''(c)(x-c)^3/3! + ...

First, let's find the Taylor series for f(x) = cos(x) centered at c = π/6:

f(π/6) = cos(π/6) = √3/2

f'(x) = -sin(x)

f'(π/6) = -sin(π/6) = -1/2

f''(x) = -cos(x)

f''(π/6) = -cos(π/6) = -√3/2

f'''(x) = sin(x)

f'''(π/6) = sin(π/6) = 1/2

The terms involving f^(k)(π/6) for k ≥ 4 are all 0.

Using these values in the Taylor series formula:

f(x) = f(π/6) + f'(π/6)(x-π/6) + f''(π/6)(x-π/6)^2/2! + f'''(π/6)(x-π/6)^3/3! + ...

= (√3/2) + (-1/2)(x-π/6) + (-√3/2)(x-π/6)^2/2! + (1/2)(x-π/6)^3/3! + ...

Simplifying further:

f(x) = (√3/2) - (x-π/6)/2 + (-√3/2)(x-π/6)^2/2 + (x-π/6)^3/6 + ...

This is the Taylor series for f(x) = cos(x) centered at c = π/6.

Next, let's find the Maclaurin series for f(x) = cos(x) centered at c = 0:

Using the same derivative values as before:

f(0) = cos(0) = 1

f'(x) = -sin(x)

f'(0) = -sin(0) = 0

f''(x) = -cos(x)

f''(0) = -cos(0) = -1

f'''(x) = sin(x)

f'''(0) = sin(0) = 0

The terms involving f^(k)(0) for k ≥ 4 are all 0.

Using these values in the Taylor series formula:

f(x) = f(0) + f'(0)x + f''(0)x^2/2! + f'''(0)x^3/3! + ...

= 1 + 0x + (-1)x^2/2! + 0x^3/3! + ...

Simplifying further:

f(x) = 1 - x^2/2 + x^4/24 - x^6/720 + ...

This is the Maclaurin series for f(x) = cos(x) centered at c = 0.