What am I doing wrong integrating with 1-|x|?

  • Thread starter Thread starter zmalone
  • Start date Start date
  • Tags Tags
    Integrating
zmalone
Messages
10
Reaction score
0
I understand \int^{1}_{-1}1-|x|dx = 1 visually just by graphing it and taking the area of the triangle but for the sake of more complicated examples I'm not exactly sure what step I'm messing up when I use the FTOC:

|x|= x when x>0, -x when x<0

\int^{0}_{-1}1-|x|dx + \int^{1}_{0}1-|x|dx


= \int^{0}_{-1}1-(-x)dx + \int^{1}_{0}1-(x)dx


= \frac{x^2}{2}|^{0}_{-1} - \frac{x^2}{2}|^{1}_{0}

= -1/2 - 1/2 = -1 \neq1

Any input is appreciated and hope this makes sense lol (still getting used to the formula drawer).
 
Physics news on Phys.org
hi zmalone! welcome to pf! :smile:
zmalone said:
= \int^{0}_{-1}1-(-x)dx + \int^{1}_{0}1-(x)dx


= \frac{x^2}{2}|^{0}_{-1} - \frac{x^2}{2}|^{1}_{0}

you missed out [x]-11, = 2 :wink:
 
Wow :( I don't know why I was taking the derivative of 1 instead its anti-derivative but I certainly confused myself by doing so for the past half hour. Thanks for pointing it out!
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top