Estimating integral with Maclaurin series

  • Thread starter lxman
  • Start date
  • #1
77
0

Homework Statement


Assume that sin(x) equals its Maclaurin series for all x. Use the first two terms of the Maclaurin series for sin(7x^2) to approximate the integral:

[tex]\int_{0}^{0.77}sin(7x^{2})\ dx[/tex]


The Attempt at a Solution



If I understand correctly, a Maclaurin series is just a Taylor series centered at 0. Therefore, my first two terms would be:

[tex]sin(7(0)^{2})[/tex]

and

[tex]14(0)^{2}cos(7(0)^{2})[/tex]

I feel like I'm getting off on the wrong foot right away.

Help anyone?
 

Answers and Replies

  • #2
196
0
your first derivative is slightly off it should just 14xcos(7x^2), evaluated at zero. which just equals zero.
 
  • #3
283
0

Homework Statement



If I understand correctly, a Maclaurin series is just a Taylor series centered at 0. Therefore, my first two terms would be:

[tex]sin(7(0)^{2})[/tex]

and

[tex]14(0)^{2}cos(7(0)^{2})[/tex]

I feel like I'm getting off on the wrong foot right away.

Help anyone?

Yes you are doing this correctly so far except your second term should be

[tex]14(x) cos(7(x)^{2}) \right _{x=0} [/tex]

which of course gives the same result. But this could have messed you up with your next derivatives.

Now try to take a few more derivatives until you get some non zero terms. Don't forget about the product rule :wink:
 
  • #4
77
0
The original problem statement says to use the first two terms of the Maclaurin series. So when I am constructing the series, I just basically throw away any terms with zero values, and the non-zero terms then become my series.

Is this correct?
 
  • #5
SammyS
Staff Emeritus
Science Advisor
Homework Helper
Gold Member
11,377
1,038
One way to do this is to take the Maclaurin series for sin(x), then substitute 7x2 for x. Then integrate that tern by term.
 
  • #6
283
0
The original problem statement says to use the first two terms of the Maclaurin series. So when I am constructing the series, I just basically throw away any terms with zero values, and the non-zero terms then become my series.

Is this correct?

Yes, just use the first two non zero terms.
 
  • #7
77
0
SammyS, your idea sounds MUCH simpler, but you would have to explain the details of implementation to me.

So, doing it the hard way - and yes, it gets a bit messy, so I won't post all the details.

I end up with the first two non-zero terms being term 2, which evaluates to 14, and term 6, which evaluates to -41160.

Dividing these with their factorials, multiplying by the x-a terms (which is just x, as a is zero) and simplifying, I end up with:

[tex]7x^{2}-\frac{343\ x^{6}}{6}[/tex]

Plugging in 0.77, I get a result of -7.764512728421

I know the actual value of the integral is about 0.3

I presume the error comes from the fact that I am only using two terms.

Am I correct?
 
Last edited:
  • #8
Char. Limit
Gold Member
1,208
14
SammyS, your idea sounds MUCH simpler, but you would have to explain the details of implementation to me.

So, doing it the hard way - and yes, it gets a bit messy, so I won't post all the details.

I end up with the first two non-zero terms being term 2, which evaluates to 14, and term 5, which evaluates to -41160.

Dividing these with their factorials, multiplying by the x-a terms (which is just x, as a is zero) and simplifying, I end up with:

[tex]7x^{2}-\frac{343\ x^{6}}{6}[/tex]

Plugging in 0.77, I get a result of -7.764512728421

I know the actual value of the integral is about 0.3

I presume the error comes from the fact that I am only using two terms.

Am I correct?

But you have to integrate it first. You can't just plug in .77 before you integrate.
 
  • #9
77
0
Okay, yep, missed that one completely.

Integrating gives me:

[tex]\frac{7x^{3}}{3}-\frac{49x^{7}}{6}[/tex]

Now, plugging in 0.77, I get -0.245385 which is much closer.

Again, I presume the error is from only using two terms.
 
  • #10
Char. Limit
Gold Member
1,208
14
Yes it is. If you had tried three terms, you would get a number even close, but above the correct answer.
 
  • #11
77
0
Thank you all for your help.
 
  • #12
Char. Limit
Gold Member
1,208
14
Have a great day!
 

Related Threads on Estimating integral with Maclaurin series

  • Last Post
Replies
4
Views
7K
  • Last Post
Replies
2
Views
1K
  • Last Post
Replies
5
Views
3K
  • Last Post
Replies
11
Views
1K
  • Last Post
Replies
9
Views
4K
  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
4
Views
8K
  • Last Post
Replies
8
Views
906
  • Last Post
Replies
2
Views
758
  • Last Post
Replies
14
Views
3K
Top