Integrating functions with absolute values

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
3 replies · 3K views
Mogarrr
Messages
120
Reaction score
6
To find [itex]E |X|[/itex] of a cauchy random variable, I need to integrate
[itex]\int_{-\infty}^{\infty}\frac1{\pi}\frac{|x|}{1+x^2}dx[/itex].

From the definition of absolute value, we have
[itex]\int_{-\infty}^0\frac1{\pi}\frac{-x}{1+x^2}dx + \int_0^{\infty}\frac1{\pi}\frac{x}{1+x^2}dx[/itex] (I think).

But, the very next step in the textbook, which I'm trying to follow along, is
[itex]\frac2{\pi}\int_0^{\infty}\frac{x}{1+x^2}dx[/itex].

Unless I made some mistake, the reasoning here is that
[itex]\int_{-\infty}^0\frac1{\pi}\frac{-x}{1+x^2}dx = \int_0^{\infty}\frac1{\pi}\frac{x}{1+x^2}dx[/itex].

If this is true, why is this?
 
Physics news on Phys.org
Mogarrr said:
Unless I made some mistake, the reasoning here is that
[itex]\int_{-\infty}^0\frac1{\pi}\frac{-x}{1+x^2}dx = \int_0^{\infty}\frac1{\pi}\frac{x}{1+x^2}dx[/itex].

If this is true, why is this?

What happens if you do the substitution ##-x=t##?
 
  • Like
Likes   Reactions: 1 person
Mogarrr said:
To find [itex]E |X|[/itex] of a cauchy random variable, I need to integrate
[itex]\int_{-\infty}^{\infty}\frac1{\pi}\frac{|x|}{1+x^2}dx[/itex].

From the definition of absolute value, we have
[itex]\int_{-\infty}^0\frac1{\pi}\frac{-x}{1+x^2}dx + \int_0^{\infty}\frac1{\pi}\frac{x}{1+x^2}dx[/itex] (I think).

But, the very next step in the textbook, which I'm trying to follow along, is
[itex]\frac2{\pi}\int_0^{\infty}\frac{x}{1+x^2}dx[/itex].

Unless I made some mistake, the reasoning here is that
[itex]\int_{-\infty}^0\frac1{\pi}\frac{-x}{1+x^2}dx = \int_0^{\infty}\frac1{\pi}\frac{x}{1+x^2}dx[/itex].

If this is true, why is this?
Same idea behind $$\int_{a}^{b}\omega=-\int_{b}^{a}\omega.$$
 
Thanks for your help guys. Understanding accomplished.

Let [itex]t=-x[/itex], then [itex]-dx=dt[/itex], [itex]\frac{-x}{1+x^2}=\frac{t}{1+t^2}[/itex], and the bottom limit of integration changes from -∞ to ∞. Thus

[itex]\int_{-\infty}^0\frac1{\pi}\frac{-x}{1+x^2}dx=(-1)\cdot \int_{\infty}^0\frac1{\pi}\frac{t}{1+t^2}dt = \int_0^{\infty}\frac1{\pi}\frac{t}{1+t^2}dt[/itex].

Since t is a dummy variable, the integrand can be rewritten with x=t.