GATE / CS ARCHIVE

GATE CSE 2026 SET 1 / QUESTION 46

A piecewise quadratic and its derivatives

Engineering Mathematics & Other Topics · Calculus · Full GATE CSE 2026 Set 1 paper

GATE 2026 Set 1, Q46 2 marks · MSQ
Report issue

Calculus

Question 46, GATE 2026: For real x, f(x)=(|x|/2−x)(x−|x|/2). Determine which are true: A f has a local maximum; B f has a local minimum; C f′ is continuous on R; D f′ is not differentiable everywhere on R.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: A, C, D

Givens and goal

For real x, f(x)=(|x|/2−x)(x−|x|/2). Determine which are true: A f has a local maximum; B f has a local minimum; C f′ is continuous on R; D f′ is not differentiable everywhere on R.

Approach

Remove the absolute value separately on each side of zero, then inspect the function, its derivative, and the derivative’s one-sided slopes at zero.

Step-by-step solution

1. The two factors are negatives, so f(x)=−(x−|x|/2)2. If x≥0, |x|=x and f(x)=−x²/4. If x<0, |x|=−x and f(x)=−9x²/4.
2. Both branches are negative away from zero and f(0)=0. Thus zero is a strict local and global maximum, making A true. The negative branch is strictly increasing toward zero, and the positive branch strictly decreases away from zero. No point is a local minimum, so B is false.
3. For x<0, f′(x)=−9x/2; for x>0, f′(x)=−x/2. At zero compute the difference quotient: f(h)/h equals −9h/4 from the left and −h/4 from the right. Both tend to 0, so f′(0)=0.
4. The one-sided limits of f′ at zero are also 0, and each branch is continuous elsewhere. Therefore f′ is continuous over all R, proving C.
5. To differentiate f′ at zero, divide f′(h)−f′(0) by h. The left limit is −9/2 and the right limit is −1/2. These differ, so f′ is not differentiable at zero. D is true.
6. Select A, C and D. Continuity of a derivative does not imply that derivative is itself differentiable. Here f is continuously differentiable but not twice differentiable at the joining point.

Original paper, page 35 · Answer key