Integrating x*(1/2b)*exp(-abs(x-a)/b) - Solution

  • Context: Undergrad 
  • Thread starter Thread starter rhuelu
  • Start date Start date
  • Tags Tags
    Integration
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
9 replies · 3K views
rhuelu
Messages
17
Reaction score
0
integral of x*(1/2b)*exp(-abs(x-a)/b)

sorry about the format, I don't know how to use the signs.

this looks like an integration by parts, but I'm not really seeing how to work it out

thanks!
 
Physics news on Phys.org
A helpful advice is to look at the DEFINITION of the absolute value function:
|y|=y if y>=0 and |y|=-y if y<0

Thus, for x-a>=0 (i.e, x>=a), we may simplify:
[tex]\int{x}\frac{1}{2b}e^{-\frac{|x-a|}{b}}dx=\int{x}\frac{1}{2b}e^{-\frac{x-a}{b}}dx=\frac{1}{2}e^{\frac{a}{b}}\int\frac{x}{b}e^{-\frac{x}{b}}dx=\frac{b}{2}\int{u}e^{-u}du,u=\frac{x}{b}[/tex]
This is fairly trivial to anti-differentiate.

Make similar simplifications for the case x-a<0.
 
I'm not really sure how to deal with the absolute value
 
how would I got about finding the value of the integral from negative infinity to positive infinity if I have 2 different expressions depending on the value of x-a?
 
I haven't dealt with improper integrals yet, but my guess would be to integrate it over two separate intervals. One from negative infinite to 0 and the other from 0 to positive infinite.