Consider a function $f(x) = 1- |x| \text{ on } -1 \leq x \leq 1$. The value of $x$ at which the function attains a maximum, and the maximum value of the function are:
Show the worked solution\[\boxed{|x|\ge0\ \Rightarrow\ f(x)=1-|x|\le1,\ \text{with equality only at }x=0}\]So the maximum is attained at \(x=0\) and the maximum value is \(f(0)=1\).(D) \((-1, 2)\) is wrong: \(f(-1)=0\), and \(f\) never reaches \(2\).Answer: C
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com