Integral Problem: Solutions Say Divergent, Help Please!

  • Thread starter Thread starter Jalo
  • Start date Start date
  • Tags Tags
    Integral
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 1K views
Jalo
Messages
117
Reaction score
0

Homework Statement



yc8m.jpg



Homework Equations





The Attempt at a Solution



Ive solved it this way:
yc8m.jpg
= [ln |x|]1-2 = ln 1 - ln 2 = -ln2

However the solutions say the integral is divergent, therefore it should tend to +∞ or -∞

If someone could tell me what I've done wrong I'd appreciate!
Thanks
 
Physics news on Phys.org
You did two things wrong.

1. Lesser problem: Your integral is incorrect. [itex]\int 1/|x|\,dx = \mathop{\mathrm{sgn}} x \, \ln |x|[/itex], not [itex]\ln |x|[/itex].

2. Huge problem: You integrated across a singularity.f(x)=1/|x| is positive everywhere. How could the integral of this function from -2 to 1 possibly be negative? That you obtained a negative result when the integrand is always positive and the integration interval is in the positive direction should have been a big warning sign indicating that you did something wrong.