GATE CS 2015 · Set 2 · Maxima & Minima

MCQ · 1 mark · Problem EM-MAXM-0022

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:
  1. A
    $0, -1$
  2. B
    $-1, 0$
  3. C
    $0, 1$
  4. D
    $-1, 2$

Solve it on GATE DA practice →More Optimization problems

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