Are First and Second Derivative Calculations for |x-a| - |x+a| Correct?

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

I have been asked to find the first and second derivatives of lx-al-lx+al

I have, for the first derivative got, sign(x-a)-sign(x+a)

and for the second, i have: 2(delta)(x-a)-2(delta)(x+a)

am i right in both cases?

I also have to draw them 'schematically' how do i do this?
 
Physics news on Phys.org
lavenderblue said:
Hey

I have been asked to find the first and second derivatives of lx-al-lx+al

I have, for the first derivative got, sign(x-a)-sign(x+a)

and for the second, i have: 2(delta)(x-a)-2(delta)(x+a)

am i right in both cases?

I also have to draw them 'schematically' how do i do this?

You can rewrite your function formula without the absolution values, using a piecewise definition on three intervals: (-inf, -a], (-a, a] and (a, inf).

For example, if x <= -a, |x - a| - |x + a| = -(x - a) - (-(x + a)) = -x + a + x +a = 2a.
Do the same for the other two intervals.

I don't know what "drawing them schematically" means, but a graph of the function would probably suffice.