Approximating Integral via Power Series

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
15 replies · 2K views
Amrator
Messages
246
Reaction score
83

Homework Statement


Approximate the integral to 3 decimal place accuracy via power series.

##\int_0^{1/2} x^2 e^{-x^2}\, dx ##

Homework Equations

The Attempt at a Solution


##x^2 e^{-x^2} = x^2 \sum_{n=0}^\infty \frac {(-x)^{2n}}{n!} = \sum_{n=0}^\infty \frac {x^{2n+2}}{n!}## ⇒ ##\int_0^{1/2} \sum_{n=0}^\infty \frac {x^{2n+2}}{n!}\, dx = \left. \sum_{n=0}^\infty \frac {x^{2n+3}}{(2n+3)n!} \right|_0^{1/2}##

Could I use the ratio test to approximate the error or do I have to use the alternating series test? I don't really see how I could use the alternating series test from here.
 
Physics news on Phys.org
Amrator said:

Homework Statement


Approximate the integral to 3 decimal place accuracy via power series.

##\int_0^{1/2} x^2 e^{-x^2}\, dx ##

Homework Equations

The Attempt at a Solution


##x^2 e^{-x^2} = x^2 \sum_{n=0}^\infty \frac {(-x)^{2n}}{n!} = \sum_{n=0}^\infty \frac {x^{2n+2}}{n!}## ⇒ ##\int_0^{1/2} \sum_{n=0}^\infty \frac {x^{2n+2}}{n!}\, dx = \left. \sum_{n=0}^\infty \frac {x^{2n+3}}{(2n+3)n!} \right|_0^{1/2}##

Could I use the ratio test to approximate the error or do I have to use the alternating series test? I don't really see how I could use the alternating series test from here.
You messed up the algebra, which is why you don't end up with an alternating series.
 
  • Like
Likes   Reactions: Amrator
I'll go over it again.
 
I don't see any algebraic mistakes. ##(-x)^{2n} = ((-x)^{2})^n = (x^2)^n = x^{2n}##
##x^2x^{2n} = x^{2n+2}##

Edit: Nevermind. I see the algebraic mistake.
 
How do you justify the inversion of ##\int## and ##\sum##?
 
geoffrey159 said:
How do you justify the inversion of ##\int## and ##\sum##?
What do you mean by inversion?
 
You exchanged ##\int## and ##\sum## in your first post, didn't you ? What is your justification for this ?
 
geoffrey159 said:
You exchanged ##\int## and ##\sum## in your first post, didn't you ? What is your justification for this ?
##e^x = \sum_{n=0}^\infty \frac {x^n}{n!}##
Let ##x = -x^2##
Multiply the series by ##x^2##, and simply integrate.
 
There is nothing simple about that, you have to prove it
 
You want me to prove the term by term integration theorem?
 
It's enough if you show that you have all the hypothesis that lead to your conclusion
 
geoffrey159 said:
How do you justify the inversion of ##\int## and ##\sum##?

Power series can always be integrated term-by-term within their radius of convergence because convergence of power series is uniform.

(Also the question itself appears to assume that one can do that, so the OP doesn't need to justify it as part of the answer.)
 
  • Like
Likes   Reactions: Amrator
I agree, but it must be said somewhere, or proved
 
geoffrey159 said:
I agree, but it must be said somewhere, or proved
I'm in calculus 2, not analysis.
 
pasmith said:
Power series can always be integrated term-by-term within their radius of convergence because convergence of power series is uniform.

(Also the question itself appears to assume that one can do that, so the OP doesn't need to justify it as part of the answer.)

geoffrey159 said:
I agree, but it must be said somewhere, or proved
I agree with what pasmith said -- the OP doesn't need to justify interchanging the summation and integration operations.
 
Ok, it's fine for me :-)

@pasmith, convergence of the power serie is uniform on a compact set within the radius of convergence.