1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Dealing with absolute value functions

  1. Jan 29, 2009 #1
    In order to get an integral I need to find the difference between two functions, but I'm not sure how to deal with the absolute value....

    [tex]f(x) = \left|x-1-1\right|[/tex]
    [tex]g(x) = x^2 + 2x[/tex]

    [tex]g(x) - f(x) = (\left|x-1\right|-1) - (x^2 + 2x) [/tex]
    I don't know if I can simplify it anymore... can I take that |x| out so - 2x + |x| = - x? If so what happens to the |-1| I feel like I probably can't simplify any further, but I'd like to know for sure
  2. jcsd
  3. Jan 29, 2009 #2
    The easiest way I find to solve problems like this is to solve the problem twice - once where the contents of the modulus are positive anyway, and once when they're negative (in which case you need to put an extra minus sign in front of them).
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: Dealing with absolute value functions