What is the domain and range for #y= -abs(x-5)#?

1 Answer
Jun 25, 2018

See below.

Explanation:

There is no restriction on #x#, so domain is:

#{x in RR}#

or

#(-oo,oo)#

By definition of absolute value:

#|x-5|>=0#

Therefore:

#-|x-5|<=0#

From this we can see that the minimum value is:

as #x->+-oo#, #color(white)(8888)-|x-5| ->-oo#

For #x=5#

#|x-5|=0#

This is the maximum value:

Range is therefore:

#{y in RR | -oo < y <=0}#

or

#(-oo,0]#

The graph of #y=-|x-5|# confirms this:

graph{y=-|x-5| [-1, 10, -5, 5]}