CAT 2022 Slot 1 Quant Q16

  • Quantitative Aptitude
  • Algebra › Modulus
  • Medium
  • Multiple choice
  • CAT_2022_SLOT1_QA_Q16

Question 16

Let 0≤a≤x≤1000 \leq a \leq x \leq 100 and f(x)=∣x−a∣+∣x−100∣+∣x−a−50∣f(x)=|x-a|+|x-100|+|x-a-50|. Then the maximum value of f(x)f(x) becomes 100100 when aa is equal to

  1. A

    5050

    Answer A in PrepSoc practice
  2. B

    2525

    Answer B in PrepSoc practice
  3. C

    100100

    Answer C in PrepSoc practice
  4. D

    00

    Answer D in PrepSoc practice

Answer this questionOr tap an option. Opens in practice mode, free, no sign-in.

Show answer and solution

Answer: (A)

5050

Solution

  • Simplify the absolute values based on a≤x≤100a \le x \le 100: f(x)=(x−a)+(100−x)+∣x−a−50∣=100−a+∣x−a−50∣f(x) = (x-a) + (100-x) + |x-a-50| = 100 - a + |x-a-50|.

  • To maximize f(x)f(x), we maximize ∣x−a−50∣|x-a-50|. This occurs at an endpoint, x=ax=a or x=100x=100.

  • At x=ax=a, the value is 100−a+∣−50∣=150−a100 - a + |-50| = 150 - a.

  • Set the maximum to 100100: 150−a=100  ⟹  a=50150 - a = 100 \implies a = 50.

Detailed explanation

Concept: Absolute Value Functions and Extrema

  • We are given f(x)=∣x−a∣+∣x−100∣+∣x−a−50∣f(x) = |x-a| + |x-100| + |x-a-50| and the domain 0≤a≤x≤1000 \le a \le x \le 100.

  • Because x≥ax \ge a, the first term simplifies: ∣x−a∣=x−a|x-a| = x-a.

  • Because x≤100x \le 100, the second term simplifies: ∣x−100∣=100−x|x-100| = 100-x.

  • Substitute these back: f(x)=(x−a)+(100−x)+∣x−a−50∣=100−a+∣x−a−50∣f(x) = (x-a) + (100-x) + |x-a-50| = 100 - a + |x-a-50|.

  • We need to maximize f(x)f(x) on the interval x∈[a,100]x \in [a, 100]. This depends on maximizing the term ∣x−a−50∣|x-a-50|.

  • The expression ∣x−a−50∣|x-a-50| represents the distance between xx and a+50a+50. The maximum distance on an interval occurs at one of its endpoints.

  • Let's evaluate f(x)f(x) at the endpoints x=ax = a and x=100x = 100:

    • At x=ax = a: f(a)=100−a+∣a−a−50∣=100−a+∣−50∣=150−af(a) = 100 - a + |a - a - 50| = 100 - a + |-50| = 150 - a.

    • At x=100x = 100: f(100)=100−a+∣100−a−50∣=100−a+∣50−a∣f(100) = 100 - a + |100 - a - 50| = 100 - a + |50 - a|.

  • Since 150−a≥150−2a150 - a \ge 150 - 2a for a≥0a \ge 0, the overall maximum value across the interval is 150−a150 - a.

  • We are given that this maximum value is 100100. Thus, 150−a=100  ⟹  a=50150 - a = 100 \implies a = 50.

Practise similar questions

Practice 1 CAT_2022_SLOT1_QA_Q16_SQ01

Let 0≤a≤x≤1200 \le a \le x \le 120 and f(x)=∣x−a∣+∣x−120∣+∣x−a−60∣f(x) = \vert x - a \vert + \vert x - 120 \vert + \vert x - a - 60 \vert. Then the maximum value of f(x)f(x) becomes 140140 when aa is equal to

  1. A

    4040

  2. B

    2020

  3. C

    6060

  4. D

    3030

Show answer and solution

Answer: (A)

4040

Solution

  • On a≤x≤120a \le x \le 120, simplify the first two terms: ∣x−a∣+∣x−120∣=(x−a)+(120−x)=120−a\vert x - a \vert + \vert x - 120 \vert = (x - a) + (120 - x) = 120 - a.

  • The function reduces to f(x)=120−a+∣x−a−60∣f(x) = 120 - a + \vert x - a - 60 \vert.

  • The maximum occurs at a boundary point: at x=ax = a, f(a)=120−a+∣−60∣=180−af(a) = 120 - a + \vert -60 \vert = 180 - a.

  • Equate the maximum to 140140: 180−a=140  ⟹  a=40180 - a = 140 \implies a = 40.

Practice 2 CAT_2022_SLOT1_QA_Q16_SQ02

Let 0≤a≤x≤1500 \le a \le x \le 150 and f(x)=∣x−a∣+∣x−150∣+∣x−a−75∣f(x) = \vert x - a \vert + \vert x - 150 \vert + \vert x - a - 75 \vert. Then the maximum value of f(x)f(x) becomes 165165 when aa is equal to

  1. A

    4545

  2. B

    6060

  3. C

    7575

  4. D

    3030

Show answer and solution

Answer: (B)

6060

Solution

  • For a≤x≤150a \le x \le 150, simplify: ∣x−a∣+∣x−150∣=(x−a)+(150−x)=150−a\vert x - a \vert + \vert x - 150 \vert = (x - a) + (150 - x) = 150 - a.

  • Then f(x)=150−a+∣x−a−75∣f(x) = 150 - a + \vert x - a - 75 \vert.

  • Maximize the convex function by testing endpoints: at x=ax = a, f(a)=150−a+75=225−af(a) = 150 - a + 75 = 225 - a.

  • Set the maximum equal to 165165: 225−a=165  ⟹  a=60225 - a = 165 \implies a = 60.

Modulus questions from other CAT papers

  1. CAT 2025 Slot 2 Quant Q20
    The set of all real values of x for which (x^2 - x + 9 + x) 0 , is
  2. CAT 2024 Slot 2 Quant Q14
    If x and y are real numbers such that x + x + y = 15 and x + y - y = 20 , then (x - y) equals
  3. CAT 2024 Slot 3 Quant Q2
    The number of distinct integer solutions (x, y) of the equation x + y + x - y = 2 , is
  4. CAT 2024 Slot 3 Quant Q13
    The number of distinct real values of x, satisfying the equation. max x, 2 - min x, 2 = x + 2 - x − 2 , is
  5. CAT 2023 Slot 1 Quant Q5
    The number of integer solutions of equation 2 x (x^2+1 )=5 x^2 is

Practise this question with timing, notes and your mistake notebook.

Practise in PrepSoc