The GATE Grind

GATE 2026 CS (CS1) – Question 46

Engineering Mathematics · Calculus · 2 marks · Multiple select

Let $f:\mathbb{R} \to \mathbb{R}$ be defined as follows:
$$f(x) = \left(\frac{|x|}{2} - x\right)\left(x - \frac{|x|}{2}\right)$$
Which of the following statements is/are true?

  1. $f$ has a local maximum
  2. $f$ has a local minimum
  3. $f'$ is continuous over $\mathbb{R}$
  4. $f'$ is not differentiable over $\mathbb{R}$

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: (A) $f$ has a local maximum; (C) $f'$ is continuous over $\mathbb{R}$; (D) $f'$ is not differentiable over $\mathbb{R}$

Explanation

Notice that $\left(\frac{|x|}{2} - x\right) = -\left(x - \frac{|x|}{2}\right)$, so:
$$f(x) = -\left(x - \frac{|x|}{2}\right)^2$$

Analyze $f(x)$ piecewise:
1. For $x \ge 0$, $|x| = x \implies x - \frac{x}{2} = \frac{x}{2}$, so:
$$f(x) = -\left(\frac{x}{2}\right)^2 = -\frac{x^2}{4}$$
2. For $x < 0$, $|x| = -x \implies x - \left(-\frac{x}{2}\right) = \frac{3x}{2}$, so:
$$f(x) = -\left(\frac{3x}{2}\right)^2 = -\frac{9x^2}{4}$$

Therefore, statements (A), (C), and (D) are true.