F (x)=|x-5|+|x+5|. Write f(x) as a piecewise function.?

1 Answer
Apr 18, 2018

Please see the explanation below

Explanation:

The function is

f(x)=|x-5|+|x+5|f(x)=|x5|+|x+5|

x-5>=0x50, =>, x>=5x5

x+5>=0x+50, =>, x>=-5x5

When x<-5x<5

f(x)=-x+5-x-5=-2xf(x)=x+5x5=2x

When -5<=x<=55x5

f(x)=x+5-x+5=10f(x)=x+5x+5=10

When x>5x>5

f(x)=x-5+x+5=2xf(x)=x5+x+5=2x

f(x)={(-2x, "if " x <-5), (10, "if " -5<=x>=5), (2x, "if " x >5):}

graph{|x-5|+|x+5| [-22.08, 23.52, 2.17, 24.98]}