Q.

The function f(x)=2|x|+|x+2|-||x+2|-2|x|| has a local minimum or a local maximum at x=            [2013]

1 -2  
2 -23  
3 2  
4 23  

Ans.

(1, 2)

Given:  f(x)=2|x|+|x+2|-||x+2|-2|x||

Critical points of f(x) can be obtained by solving

|x|=0, |x+2|=0 and ||x+2|-2|x||=0,

which give  x=0,-2,2,-23

∴  f(x)={-2x-4,x≤-22x+4,-2<x≤-23-4x-23<x≤04x0<x≤22x+4x>2

Graph of y=f(x) is as follows:

From the graph, f(x) has local minimum at x=-2 and x=0 and f(x) has local maximum at x=-23