How do you define absolute value function on different intervals?

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
paulmdrdo1
Messages
382
Reaction score
0
Define f(x)= |x+3|-|x-3| without absolute value bars piecewise in the following intervals (-∞,-3);[-3,3);[3,+∞).

this is how i do the problem,

I removed the absolute value bars first

f(x)= x+3-x+3 = 6

now i don't know how to define it piecewise. can you show me how define it correctly. thanks!
 
Mathematics news on Phys.org
Re: absolute value function.

On the interval:

i) $$(-\infty,-3)$$

we have:

$$x+3<0\,\therefore\,|x+3|=-(x+3)$$

$$x-3<0\,\therefore\,|x-3|=-(x-3)$$

and so $$f(x)=(-(x+3))-(-(x-3))=-6$$

Can you try the other two intervals?