Placement AptitudeVery hardTCS NQT Digital · Infosys SP

f(x) = x² + 1 and g(x) = 2x − 3. What is the sum of all real x for which f(g(x)) = g(f(x))?

  1. A. 5
  2. B. 6
  3. C. 12
  4. D. 11/2

Correct answer: B. 6

f(g(x)) = (2x − 3)² + 1 = 4x² − 12x + 10 and g(f(x)) = 2x² − 1. Equating gives 2x² − 12x + 11 = 0, which has two real roots (discriminant 56 > 0) with sum 12/2 = 6.

More Advanced Quantitative Ability (Placement) questions

Exams that ask this topic