Question about integral and Abs function

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

Discussion Overview

The discussion revolves around evaluating the integral of the absolute value function, specifically \(\int_{0}^{2}{|2x-3|}\). Participants explore different methods for solving the integral, including separating it into two parts and using a different approach involving derivatives and the sign function.

Discussion Character

  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant presents a method involving the expression \(\frac{|2x-3|(x-3)x}{2x-3}\) and questions why it yields a different result than the separation method.
  • Another participant challenges the validity of the expression and questions the derivation of the terms involved.
  • A different participant suggests that the computation must consider the discontinuity at \(x = 3/2\) and proposes a corrected approach using the sign function.
  • Further clarification is provided on how to handle the integral by breaking it into intervals based on the behavior of the function around the discontinuity.
  • One participant expresses understanding of the area calculations involved in the integral, distinguishing between two cases based on the value of \(x\).

Areas of Agreement / Disagreement

Participants express differing views on the validity of the proposed methods for evaluating the integral, with no consensus reached on the correctness of the various approaches discussed.

Contextual Notes

Participants note the importance of considering the discontinuity at \(x = 3/2\) in their calculations, which affects the evaluation of the integral.

njama
Messages
215
Reaction score
1
Hello!

I want to find

[tex]\int_{0}^{2}{|2x-3|}[/tex]

I know the method for separating the integral on two integrals, but I want to try second method.

I know that

[tex]\int_{0}^{2}{|2x-3|}=\frac{|2x-3|(x-3)x}{2x-3}|_{0}^{2}[/tex]

But in this case I got F(2)-F(0)=-2 and on the first method 5/2.

Why the second method does not work?

Thanks in advance.
 
Physics news on Phys.org
What makes you think that the last equation is true?
I don't see where the x(x - 3) comes from, and how taking the derivative of sgn(2x-3) x (x - 3) is |2x - 3| :S
 
CompuChip said:
What makes you think that the last equation is true?
I don't see where the x(x - 3) comes from, and how taking the derivative of sgn(2x-3) x (x - 3) is |2x - 3| :S
It is.

Let |2x-3|=[itex]\sqrt{(2x-3)^2}[/itex]

[tex]\frac{\sqrt{(2x-3)^2}(x-3)x}{2x-3}[/tex]

Now taking the derivative:

[tex]\frac{(\sqrt{(2x-3)^2}(x-3)x)'*(2x-3) - \sqrt{(2x-3)^2}(x-3)x*(2x-3)'}}{(2x-3)^2}[/tex]

Also you can check it by first

x>= 3/2

[tex](x-3)x=x^2 -3x[/tex]

derivative:

[tex]2x-3[/tex]

Now

x< 3/2

[tex]-(x-3)x=-x^2+3x[/tex]

derivative:

[tex]-2x+3=-(2x-3)[/tex]

This is a lot work to do here, so I check it again with Mathematica 5.0 and it is true. But still can't see the problem.
 
njama said:
Hello!

I want to find

[tex]\int_{0}^{2}{|2x-3|}[/tex]

I know the method for separating the integral on two integrals, but I want to try second method.

I know that

[tex]\int_{0}^{2}{|2x-3|}=\frac{|2x-3|(x-3)x}{2x-3}|_{0}^{2}[/tex]

But in this case I got F(2)-F(0)=-2 and on the first method 5/2.

Why the second method does not work?

Thanks in advance.

You can't ignore the fact that there is a discontinuity at x = 3/2. The proper computation is

[tex]\left.\mbox{sgn}(2x-3)(x-3)x\right|^{2}_{3/2^+} + \left.\mbox{sgn}(2x-3)(x-3)x\right|^{3/2^-}_{0},[/tex]
where 3/2^+ means infinitesimally above 3/2 and 3/2^- means infinitesimally below 3/2, such that in the first term sgn(2*x-3) = 1, while in the second it is -1. You then get

[itex]-2 - (-3/2)(3/2) - ((-3/2)(3/2) - 0) = 5/2[/itex], which is your desired result.
 
Thanks for the reply. I think I understand.

[tex]A_1(x)=(x-3)x[/tex] when x>=3/2

and

[tex]A_2(x)=-x(x-3)[/tex] when x<3/2

Where A1(x) and A2(x) represent the area of the interval [0,x]

But if I want to find the area on the interval [0,2]

Now I find the area of [0,3/2] + (area [0,2] - area [0, 3/2])

First I must find A2(3/2)+(A1(2) - A2(3/2))=A1(2)
 

Similar threads

  • · Replies 27 ·
Replies
27
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 12 ·
Replies
12
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K