Solve Weird Integral: Integrate Piecewise Function?

  • Thread starter Feldoh
  • Start date
  • Tags
    Integral
In summary, the conversation discusses how to evaluate an improper integral of a piecewise function. The correct method is to divide the integral into two parts from negative infinity to zero and from zero to positive infinity. The function can also be simplified by taking advantage of its even property.
  • #1
Feldoh
1,342
3
Why does this work?
MainEq1.L.gif


Or maybe a better question is how do you evaluate this integral? Integrate a piecewise function? I tried that an got 0
 
Physics news on Phys.org
  • #2
You subtracted when you should've added. It's definitely 2.
 
  • #3
I get [tex]-e^{-x}, x> 0 -- e^x, x<0[/tex] But I'm unsure as how to go about solving that.

I evaluated it like this:

[tex]-e^{-x}|_{x=inf} - e^{x}|_{x=-inf}[/tex] but that's clearly wrong XD
 
Last edited:
  • #4
an Improper integral

you have to Divide the integral into two
the first is from -∞ to 0 & the second is from 0 till ∞ and
HINT: this is an improper integral, consider taking the limit
for example limC goes to -∞ (of your integral)
lim D goes to ∞ (of your integral).
and continue.:smile:
 
  • #5
[tex]\int_{-\infty}^{\infty}e^{-|t|}dt=\lim_{a\rightarrow -\infty}\int_{a}^{c}e^{-|t|}dt+\lim_{b\rightarrow \infty}\int_{c}^{b}e^{-|t|}dt[/tex]

Now,

[tex] e^{-|t|}=e^{-t}, t>0[/tex] and [tex] e^{t},t<0[/tex]
YOu can choose c to be any point between negative infinity and positive infinity. Let c=0 so

[tex]\int_{-\infty}^{\infty}e^{-|t|}dt=\lim_{a\rightarrow -\infty}\int_{a}^{0}e^{t}dt+\lim_{b\rightarrow \infty}\int_{0}^{b}e^{-t}dt[/tex]
 
  • #6
Yeah I figured it out earlier today. You can do that method or since the function is even throw out the absolute value and evaluate the integral from 0 to infinity and multiply by 2.
 

FAQ: Solve Weird Integral: Integrate Piecewise Function?

How do I approach solving a piecewise function integral?

Solving a piecewise function integral involves breaking down the integral into smaller, manageable parts and applying the appropriate integration techniques to each part. It is important to carefully consider the boundaries and continuity of the function in order to determine the appropriate approach.

Can I use substitution to solve a piecewise function integral?

Yes, substitution can be used to solve a piecewise function integral. However, it is important to consider the domain of the function and ensure that the substitution does not change the boundaries of the integral.

How do I handle the discontinuities in a piecewise function integral?

Discontinuities in a piecewise function integral can be handled by breaking the integral into smaller parts at the points of discontinuity and applying the appropriate integration techniques to each part. It is also important to consider the behavior of the function at the discontinuity and adjust the boundaries accordingly.

Is there a general formula for solving piecewise function integrals?

No, there is no general formula for solving piecewise function integrals. Each integral must be approached individually and the appropriate integration techniques must be applied based on the specific components of the function.

Can I use a graphing calculator to solve a piecewise function integral?

Yes, a graphing calculator can be a helpful tool in solving a piecewise function integral. However, it is important to carefully consider the behavior of the function and ensure that the calculator is accurately representing the boundaries and discontinuities in the integral.

Back
Top