Question

Consider a function f(x)=1−∣x∣f(x) = 1 - |x| on −1≤x≤1-1 \le x \le 1. The value of xx at which the function attains a maximum, and the maximum value of the function are:

Choose one option
Official answer and solution
Official answer
C
From
Official GATE 2015 answer key

Solution

Analyze the absolute value function f(x)=1−∣x∣f(x) = 1 - |x| over the closed interval [−1,1][-1, 1].

For any real number xx, the absolute value satisfies ∣x∣≥0|x| \ge 0, with equality ∣x∣=0|x| = 0 holding if and only if x=0x = 0.

Since f(x)=1−∣x∣f(x) = 1 - |x|, subtracting a non-negative quantity ∣x∣|x| from 1 reaches its maximum value when the subtracted quantity is minimized.

Thus, the minimum of ∣x∣|x| is 0, achieved at x=0x = 0.

Evaluating at x=0x = 0 gives:

f(0)=1−∣0∣=1.f(0) = 1 - |0| = 1.

For any other point in [−1,1][-1, 1], ∣x∣>0|x| > 0, so f(x)<1f(x) < 1. Thus, the maximum is attained at x=0x = 0, and the maximum value is 1.

Final answer

C

Common trap

Confusing the point xx at which the maximum occurs (x=0x = 0) with the maximum value (11).

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2015 Computer Science and Information Technology (CS) Session 2
Question
3 of 65, printed as GA Q.3
Section
General Aptitude

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.