# Taylor Series of exp(cos(x))

Watch
Announcements
#1
Find the Taylor Series for exp(cos(x)) about the point x=0 up to x^4

Really no clue where to even begin.

I know the Taylor series for e^x and cos(x)

My only idea was to take the series of cos(x) and substitute that for x in the series for e^x but that seems very daunting and i would be prone to make mistakes. So any better methods out there??
1
7 years ago
#2
I might be wrong... but wouldn't you just let f(x) = e^(cosx) and then differentiate it 4 times to get f'(x), f''(x), f'''(x), f''''(x), then substitute x=0 in each of the f(x)s and then plug the results into the formula ?
2
7 years ago
#3
(Original post by OmegaKaos)
Find the Taylor Series for exp(cos(x)) about the point x=0 up to x^4

Really no clue where to even begin.

I know the Taylor series for e^x and cos(x)

My only idea was to take the series of cos(x) and substitute that for x in the series for e^x but that seems very daunting and i would be prone to make mistakes. So any better methods out there??
I might be wrong... but wouldn't you just let f(x) = e^(cosx) and then differentiate it 4 times to get f'(x), f''(x), f'''(x), f''''(x), then substitute x=0 in each of the f(x)s and then plug the results into the formula ?
I think this method would be simpler as opposed to substituting the expansion of into that of .

As a side note, the Taylor expansion of a function about the point is called a Maclaurin expansion:

1
#4
(Original post by Khallil)
I think this method would be simpler as opposed to substituting the expansion of into that of .

As a side note, the Taylor expansion of a function about the point is called a Maclaurin expansion:

Is the following at all right?? All those 0s worry me!!

when r=0 the value of f(r)=e^(cosx) is 1
when r=1 the value of d/dr(f(r))= -(sinx) * e^(cosx) is 0
when r=2 the value of d/dr(f(r))= -(sinx)^2 * e^(cosx) is 0
when r=3 the value of d/dr(f(r))= -(sinx)^3 * e^(cosx) is 0
when r=4 the value of d/dr(f(r))= -(sinx)^4 * e^(cosx) is 0
0
7 years ago
#5
(Original post by OmegaKaos)
Is the following at all right?? All those 0s worry me!!

when r=0 the value of f(r)=e^(cosx) is 1
when r=1 the value of d/dr(f(r))= -(sinx) * e^(cosx) is 0
when r=2 the value of d/dr(f(r))= -(sinx)^2 * e^(cosx) is 0
when r=3 the value of d/dr(f(r))= -(sinx)^3 * e^(cosx) is 0
when r=4 the value of d/dr(f(r))= -(sinx)^4 * e^(cosx) is 0
Yyy... nope, you need to use product rule when differentiating

if y=uv then dy/dx= u*dv/dx + v*du/dx
0
7 years ago
#6
(Original post by OmegaKaos)
Is the following at all right?? All those 0s worry me!!

when r=0 the value of f(r)=e^(cosx) is 1
when r=1 the value of d/dr(f(r))= -(sinx) * e^(cosx) is 0
when r=2 the value of d/dr(f(r))= -(sinx)^2 * e^(cosx) is 0
when r=3 the value of d/dr(f(r))= -(sinx)^3 * e^(cosx) is 0
when r=4 the value of d/dr(f(r))= -(sinx)^4 * e^(cosx) is 0
Not quite.

Also, remember that

0
#7
(Original post by Khallil)
Not quite.

Ok, rectifying my earlier brainlapse

f(x)=e^cosx

f '(x)= -sinx *f(x)

f ''(x)=sin^2(x)*f(x) - cosx*f(x)

f '''(x)=2sin(x)cos(x)f(x)-sin^3(x)f(x)+cos(x)sin(x)f(x)+sin(x)f(x)

f''''(x)=-2sin^2(x)cos(x)f(x) - 2[cos^2(x)-sin^2(x)]f(x)+sin^4(x)f(x)-3sin^2(x)cos(x)f(x)-sin^2(x)cos(x)f(x) + [cos^2(x)-sin^2(x)]f(x) - sin^2(x)f(x) + cos(x)f(x)

Therefore
f(0)= e
f ' (0)= 0
f '' (0)= -e
f ''' (0)= 0
f ''''(0) = -2e +e+e= 0

Does that look anything like it should??
0
7 years ago
#8
I haven't looked over the derivatives but:

I got the same values for and which are affected by the terms in your answer. However, for I got .

Try re-calculating your first and fourth derivatives at when

(Original post by OmegaKaos)
...
Another bit of helpful advice when approaching questions like these is to leave and it's derivatives in the successive derivatives, i.e.

This way you can calculate , then

using , followed by

using and

and so on and so forth.
0
7 years ago
#9
(Original post by OmegaKaos)
Ok, rectifying my earlier brainlapse

f(x)=e^cosx

f '(x)= -sinx *f(x)

f ''(x)=sin^2(x)*f(x) - cosx*f(x)

f '''(x)=2sin(x)cos(x)f(x)-sin^3(x)f(x)+cos(x)sin(x)f(x)+sin(x)f(x)

f''''(x)=-2sin^2(x)cos(x)f(x) - 2[cos^2(x)-sin^2(x)]f(x)+sin^4(x)f(x)-3sin^2(x)cos(x)f(x)-sin^2(x)cos(x)f(x) + [cos^2(x)-sin^2(x)]f(x) - sin^2(x)f(x) + cos(x)f(x)

Therefore
f(0)= e
f ' (0)= 0
f '' (0)= -e
f ''' (0)= 0
f ''''(0) = -2e +e+e= 0

Does that look anything like it should??
I think your derivative of f''''(x) might be wrong, but I got same results for f'(x), f''(x) and f'''(x)

You are supposed to get...

f(0)= e
f ' (0)= 0
f '' (0)= -e
f ''' (0)= 0
f ''''(0) = e

so you are really close
0
7 years ago
#10
I think your derivative of f''''(x) might be wrong

You are supposed to get...

f(0)= e
f ' (0)= 0
f '' (0)= -e
f ''' (0)= 0
f ''''(0) = e

so you are really close
I got f''''(0) = 4e instead and Wolfram agrees with my final answer too. You might've made an arithmetical error when calculating (3cosx + 1) in your fourth derivative

(I'll reply to your PM soon! I was a bit busy )
0
#11
I think your derivative of f''''(x) might be wrong

You are supposed to get...

f(0)= e
f ' (0)= 0
f '' (0)= -e
f ''' (0)= 0
f ''''(0) = e

so you are really close
Damn, so i am 100% positive of the first four coefficients.

for f''''(0), i now think it is 4e
0
7 years ago
#12
(Original post by OmegaKaos)
Damn, so i am 100% positive of the first four coefficients.

for f''''(0), i now think it is 4e
Let me double check
0
7 years ago
#13
(Original post by OmegaKaos)
Damn, so i am 100% positive of the first four coefficients.

for f''''(0), i now think it is 4e
Agreed.
0
7 years ago
#14
(Original post by Khallil)
...
PRSOM for some of the best LaTex I've ever seen on here.
0
7 years ago
#15
(Original post by OmegaKaos)
Damn, so i am 100% positive of the first four coefficients.

for f''''(0), i now think it is 4e
It is!

(Original post by ghostwalker)
PRSOM for some of the best LaTex I've ever seen on here.
Thanks ever so much!

To be honest, I've picked it up by hovering over your and other members' posts
0
7 years ago
#16
(Original post by OmegaKaos)
Damn, so i am 100% positive of the first four coefficients.

for f''''(0), i now think it is 4e
sorry... you were right It's 4e, I was just being stupid Happens to everyone
0
7 years ago
#17
(Original post by Khallil)
Not quite.

Also, remember that

How long did all that Latex take, and how did you get so good

That would probably take me like half an hour to type

Posted from TSR Mobile
0
#18
(Original post by Khallil)
It is!

Thanks ever so much!

To be honest, I've picked it up by hovering over your and other members' posts
I know how to write in latex code.

How do i transfer it to the student room??
0
#19
sorry... you were right It's 4e, I was just being stupid Happens to everyone
So now i know the coefficients, does the following look right??

=[e*x^0]/0! + [0x]/1! + [-ex^2]/2!] + [0x^3]/3! + [4e*x^4]/4!
= e - [ex^2]/2! + [ex^4]/3!
=e [ 1 - (x^2)/2! + (x^4)/3!]
0
7 years ago
#20
(Original post by OmegaKaos)
So now i know the coefficeitns, does the following look right??

=[e*x^0]/0! + [0x]/1! + [-ex^2]/2!] + [0x^3]/3! + [4e*x^4]/4!
= e - [ex^2]/2! + [ex^4]/3!
=e [ 1 - (x^2)/2! + (x^4)/3!]
Yep ^.^ well done x
0
X

new posts
Back
to top
Latest
My Feed

### Oops, nobody has postedin the last few hours.

Why not re-start the conversation?

see more

### See more of what you like onThe Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

### Poll

Join the discussion

#### What do you find most difficult about revising?

Prioritising what to revise (7)
12.96%
Remembering what was covered in lessons (1)
1.85%
Finding the time to revise (6)
11.11%
Finding the motivation (10)
18.52%
Getting distracted (9)
16.67%
Procrastination (21)
38.89%
Having the tools you need (0)
0%
Something else (tell us in the thread) (0)
0%