JEE Main 2021 · 27 July · morning · Numerical answer · +4 / −0

Let f:[0,3] → R be defined by f(x) = min { x - [x],1 + [x] - x} where [x] is the greatest integer less than or equal to x. Let P denote the set containing all x ∈ [0, 3] where f i discontinuous, and Q denote the set containing all x ∈ (0, 3) where f is not differentiable. Then the sum of number of elements in P and Q is equal to ______________.

Answer and solution

Answer 5

Solution

Maths sir · 4 steps

Write it as min{{x}, 1-{x}} and draw it: you get a continuous zig-zag of little triangles.

  1. Rewrite with {x}. Since x - [x] = {x}, the function is f(x) = min{{x}, 1 - {x}}. This is the distance from x to the nearest integer.

    f(x) = x - n, n ≤ x ≤ n + 1/2 ; n + 1 - x, n + 1/2 ≤ x ≤ n + 1 (n = 0, 1, 2)

  2. Check continuity. Each piece is a straight line. At an integer n, f falls to 0 from the left and rises from 0 on the right, and f(n) = 0. So f has no jumps. P is empty and has 0 elements.
  3. Find the corners. The slope switches between +1 and -1 at every peak x = 1/2, 3/2, 5/2 and at every valley x = 1, 2. The points 0 and 3 are left out because Q uses the open interval (0, 3). So Q has 5 elements.
  4. So. The sum of the number of elements is 0 + 5 = 5.

The common slip: 3. Counting only the peaks 1/2, 3/2, 5/2 and missing the valley corners at x = 1 and x = 2 gives 3, not 5.

The idea to keep. min{{x}, 1-{x}} is the distance to the nearest integer, a continuous zig-zag. Count the sharp corners at both the peaks and the valleys, and check whether the interval is open or closed.

Answer from the NTA final answer key. Solution by PrepWiser.

Study Continuity & Differentiability

Asked about 90 times in JEE Main since 2020. This question is from 2021.