The function f(x)=2|x|+|x+2|−||x+2|−2|x||
has a local minimum or a local maximum at x=
−23
For f(x)=2|x|+|x+2|−||x+2|−2|x||
the critical points can be obtained by solving |x|=0,
|x+2|=0 and ||x+2|−2|x||=0
we get x=0,-2,2, −23
Then we can write
f(x)⎧⎪
⎪
⎪
⎪
⎪
⎪
⎪⎨⎪
⎪
⎪
⎪
⎪
⎪
⎪⎩ -2x-4, x≤−2 2x+4, −2<x≤−23 -4x, −23<x≤0 4x , 0 <x≤2 2x+4 , x>2
The graph of y = f(x) is as follows
From graph f(x) has local minimum at -2, 0 and local maximum at −23