Solve Weird Integral: Integrate Piecewise Function?

  • Context: Undergrad 
  • Thread starter Thread starter Feldoh
  • Start date Start date
  • Tags Tags
    Integral
Click For Summary

Discussion Overview

The discussion revolves around evaluating a specific integral involving a piecewise function, particularly focusing on the integral of the function \( e^{-|t|} \) over the entire real line. Participants explore various methods for solving this integral, including considerations of improper integrals and the properties of even functions.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Homework-related

Main Points Raised

  • One participant questions the method for evaluating the integral of a piecewise function and mentions obtaining a result of 0.
  • Another participant asserts that the result should be 2, suggesting a correction to the previous participant's approach.
  • A different participant proposes a solution involving the evaluation of the integral as \(-e^{-x}\) for \(x > 0\) and \(e^{x}\) for \(x < 0\), expressing uncertainty about the correctness of their method.
  • Another post introduces the concept of improper integrals and suggests dividing the integral into two parts, from \(-\infty\) to 0 and from 0 to \(\infty\), while recommending the use of limits.
  • A participant provides a detailed breakdown of the integral, indicating the use of limits and specifying the behavior of the function in different intervals.
  • One participant mentions finding a solution by recognizing the even nature of the function, allowing them to simplify the evaluation by focusing on the integral from 0 to infinity and multiplying the result by 2.

Areas of Agreement / Disagreement

Participants express differing views on the evaluation methods and results of the integral. There is no consensus on a single correct approach or final answer, with multiple competing methods and interpretations presented.

Contextual Notes

Some participants' methods depend on the correct handling of improper integrals and the properties of the piecewise function, which may not be fully resolved in the discussion.

Feldoh
Messages
1,336
Reaction score
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
You subtracted when you should've added. It's definitely 2.
 
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:
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:
 
[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]
 
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.
 

Similar threads

  • · Replies 27 ·
Replies
27
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K