IMO B.
There are two ways to solve the problem.
1. By observation
y = |x - k| - |x + k|
For k = +ve
y< 0 for x > k
y>0 for x< k
The value will be maximum when |x+k| = 0. Therefore for x = -k, y = 2k, which is the maximum value.
2. Above is not a fool proof method, but a quick one. The best solution is drawing graph.
First draw the graph of y = x - k and y = x + k
Second draw the graph of y = |x-k| and y = |x+k|
Second graph will give you some idea. You can solve the problem from here itself. However, we can go step ahead and draw the actual graph of
y = |x - k| - |x + k|
The graph is attached with the post. Given value of K we can find the maximum value of y.
PS: you can also draw the final graph directly by plotting the values of x and assuming some constant value for k.
-
Attachments
-

- Graph of y = |x - k| + |x+k|
Each soul is potentially divine. The goal is to manifest this divine within.
--By Swami Vivekananda