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

  • Thread starter Thread starter zmalone
  • Start date Start date
  • Tags Tags
    Integrating
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 1K views
zmalone
Messages
10
Reaction score
0
I understand [itex]\int[/itex][itex]^{1}_{-1}[/itex]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

[itex]\int[/itex][itex]^{0}_{-1}[/itex]1-|x|dx + [itex]\int[/itex][itex]^{1}_{0}[/itex]1-|x|dx


= [itex]\int[/itex][itex]^{0}_{-1}[/itex]1-(-x)dx + [itex]\int[/itex][itex]^{1}_{0}[/itex]1-(x)dx


= [itex]\frac{x^2}{2}[/itex]|[itex]^{0}_{-1}[/itex] - [itex]\frac{x^2}{2}[/itex]|[itex]^{1}_{0}[/itex]

= -1/2 - 1/2 = -1 [itex]\neq[/itex]1

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:
= [itex]\int[/itex][itex]^{0}_{-1}[/itex]1-(-x)dx + [itex]\int[/itex][itex]^{1}_{0}[/itex]1-(x)dx


= [itex]\frac{x^2}{2}[/itex]|[itex]^{0}_{-1}[/itex] - [itex]\frac{x^2}{2}[/itex]|[itex]^{1}_{0}[/itex]

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!