Maclaurin series of a function

In summary: it's just that the answer key is different. we can write the answer key as f(x) = \int_{0}^{x}(e^{-t^2}-1) dt = \sum_{n=0}^\infty \frac{(-1)^{n+1} x^{2n+3}}{(n+1)!(2n+3)} by replacing n -> n+1 we are able to write the series with the lower limit n=0 instead of n=1.
  • #1
Mangoes
96
1

Homework Statement



Find the maclaurin series of:

[tex] f(x) = \int_{0}^{x}(e^{-t^2}-1) dt [/tex]

The Attempt at a Solution



I know [tex] e^t = \sum_{n=0}^{∞} \frac{t^n}{n!} [/tex]

Simple substitution gives me:

[tex] e^{-t^2} = \sum_{n=0}^{∞}\frac{(-t^2)^n}{n!} [/tex]

Which I rewrote as

[tex] e^{-t^2} = \sum_{n=0}^∞\frac{(-1)^n(t^{2n})}{n!}[/tex]

Since I notice that when n = 0, the term simplifies to 1,

[tex] e^{-t^2} - 1 = \sum_{n=1}^∞ \frac{(-1)^n(t^{2n})}{n!}[/tex]

Going back to the original expression and substituting the infinite series

[tex] \int_0^x\sum_{n=1}^∞ \frac{(-1)^n(t^{2n})}{n!} dt [/tex]

Now, I'm integrating with respect to t, so after using the power rule and applying the upper limit (lower limit simplifies to 0)

[tex] \sum_{n=1}^∞\frac{(-1)^nx^{2n+1}}{n!(2n+1)} [/tex]

And this is what I would think is the maclaurin representation of the function, but it's wrong and I have no idea why. Would anyone please point to where I'm going wrong with this?
 
Last edited:
Physics news on Phys.org
  • #2
Mangoes said:

Homework Statement



Find the maclaurin series of:

[tex] f(x) = \int_{0}^{x}(e^{-t^2}-1) dt [/tex]

The Attempt at a Solution



I know [tex] e^t = \sum_{n=0}^{∞} \frac{t^n}{n!} [/tex]

Simple substitution gives me:

[tex] e^{-t^2} = \sum_{n=0}^{∞}\frac{(-t^2)^n}{n!} [/tex]

Which I rewrote as

[tex] e^{-t^2} = \sum_{n=0}^∞\frac{(-1)^n(t^{2n})}{n!}[/tex]

Since I notice that when n = 0, the term simplifies to 1,

[tex] e^{-t^2} - 1 = \sum_{n=1}^∞ \frac{(-1)^n(t^{2n})}{n!}[/tex]

Going back to the original expression and substituting the infinite series

[tex] \int_0^x\sum_{n=1}^∞ \frac{(-1)^n(t^{2n})}{n!} dt [/tex]

Now, I'm integrating with respect to t, so after using the power rule and applying the upper limit (lower limit simplifies to 0)

[tex] \sum_{n=0}^∞\frac{(-1)^nx^{2n+1}}{n!(2n+1)} [/tex]

And this is what I would think is the maclaurin representation of the function, but it's wrong and I have no idea why. Would anyone please point to where I'm going wrong with this?

How did your lower limit n=0 appear in the appear in the answer? It was n=1 in the step before.
 
  • #3
Dick said:
How did your lower limit n=0 appear in the appear in the answer? It was n=1 in the step before.

Sorry about that, typo from copying and pasting.
 
  • #4
Mangoes said:
...

Now, I'm integrating with respect to t, so after using the power rule and applying the upper limit (lower limit simplifies to 0)

[tex] \sum_{n=1}^∞\frac{(-1)^nx^{2n+1}}{n!(2n+1)} [/tex]

And this is what I would think is the maclaurin representation of the function, but it's wrong and I have no idea why. Would anyone please point to where I'm going wrong with this?
How do you know it's wrong?

If you have the correct answer, please give it.

You can change the sum to start at n=0, if that's the problem.
 
  • #5
Mangoes said:
Sorry about that, typo from copying and pasting.

Well, then I'm having trouble finding anything wrong with it. But does the answer you are checking against expect you to shift the lower limit to n=0?
 
  • #6
Your replies made me look at the answer list a little harder and I just noticed why my answer isn't matching up.

The answer listed is
[tex] \sum_{n=0}^∞\frac{(-1)^{n+1}x^{2n+3}}{(2n+3)(n+1)!} [/tex]

They shifted the lower bound to start at 0 and compensated by replacing n by (n+1).

Pretty frustrating considering I've been hitting my head against the wall thinking I was doing something wrong all this time...

Thanks a lot for the help to both of you. Just learned about power series about a week ago so still not too used to working with them.
 
  • #7
there isn't anything wrong with it. this

[tex] f(x) = \int_{0}^{x}(e^{-t^2}-1) dt = \sum_{n=1}^\infty \frac{(-1)^n x^{2n+1}}{n!(2n+1)} [/tex]

is in fact correct.
 

FAQ: Maclaurin series of a function

1. What is a Maclaurin series?

A Maclaurin series is a type of power series that represents a function as an infinite sum of powers of x. It is named after Scottish mathematician Colin Maclaurin.

2. How is a Maclaurin series different from a Taylor series?

A Maclaurin series is a special case of a Taylor series, where the center of the series is at x=0. This means that the coefficients of the series are calculated using the derivatives of the function at x=0.

3. How do you find the Maclaurin series of a function?

The Maclaurin series of a function can be found by using the formula:
f(x) = f(0) + f'(0)x + (f''(0)x^2)/2! + (f'''(0)x^3)/3! + ...

4. What is the use of a Maclaurin series in mathematics?

Maclaurin series are used to approximate a function, especially in cases where the function is difficult to integrate or differentiate. They are also used to find the behavior of a function near x=0.

5. Can you use a Maclaurin series to find the value of a function at a specific x-value?

Yes, by plugging in the desired x-value into the Maclaurin series and summing up the terms, you can approximate the value of the function at that point. However, the accuracy of the approximation depends on the number of terms used in the series.

Similar threads

Replies
3
Views
1K
Replies
1
Views
1K
Replies
3
Views
803
Replies
9
Views
2K
Replies
10
Views
1K
Replies
1
Views
989
Replies
47
Views
829
Replies
5
Views
268
Replies
14
Views
236
Back
Top