• Support PF! Buy your school textbooks, materials and every day products via PF Here!

Integration of -e^(-absval(x))

  • Thread starter Cocoabean
  • Start date
1. Homework Statement and equations
Find [tex]\int[/tex] -1e-|x| between negative infinity and positive infinity.

2. The attempt at a solution

So I tried to just integrate using laws for logarithmic equations and got:
e-|x| between negative infinity and positive infinity.
Of course this leaves me with:
e-∞-e-∞ = 0
I know the answer is -2, but I am not sure how to get there. Help would be much appreciated.
 

danago

Gold Member
1,122
4
Try splitting the integral into two separate integrals over two separate domains.

Use the fact that |x| = -x when x<0 and |x|=x for x>0.
 
Thanks danago, I think i figured it out. I split the integral and added the integral of the function from 0 to infinity with -infinity to 0. The first one came out to -1 and the next came out to 1 respectively, giving me -2. I fail to see how I should have caught this before though since the function is defined at 0. I guess you could see that is symmetric and just double the integral from 0 to infinity?
 

Related Threads for: Integration of -e^(-absval(x))

  • Posted
Replies
4
Views
1K
  • Posted
Replies
1
Views
1K
  • Posted
Replies
3
Views
2K
  • Posted
Replies
3
Views
998
  • Posted
Replies
16
Views
3K

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving
Top