QlarIITy

MathematicsJEE Main 2022 · 29 JuneInteger

Let f(x)f(x) and g(x)g(x) be two real polynomials of degree 2 and 1 respectively. If f(g(x))=8x2−2xf(g(x)) = 8x^2 - 2x, and g(f(x))=4x2+6x+1g(f(x)) = 4x^2 + 6x + 1, then the value of f(2)+g(2)f(2) + g(2) is ______.

Try it before you look.The full solution is on this page, below the answer box, the moment you check. No sign-in needed.

Solution

Core idea. Two composites of unknown polynomials are solved by comparing coefficients, leading terms first.

Concept refresher. If f(x)=ax2+bx+cf(x) = ax^2 + bx + c and g(x)=dx+eg(x) = dx + e, the composites begin

g(f(x))=adx2+bdx+…g(f(x)) = adx^2 + bdx + \ldots

and f(g(x))=ad2x2+…f(g(x)) = ad^2x^2 + \ldots, so their leading coefficients differ by the factor dd.

Picture the situation. Let f(x)=ax2+bx+cf(x) = ax^2 + bx + c and g(x)=dx+eg(x) = dx + e. Then g(f(x))=adx2+bdx+(cd+e)g(f(x)) = adx^2 + bdx + (cd + e), and f(g(x))f(g(x)) has leading coefficient ad2ad^2 and the coefficient 2ade+bd2ade + bd of xx. Each is compared with the given polynomial.

Approach. Compare coefficients, starting with the leading terms.

  1. Step 1: Leading terms

    From ad=4ad = 4 and ad2=8ad^2 = 8, dividing gives d=2d = 2 and then a=2a = 2. The coefficient bd=6bd = 6 gives b=3b = 3.

  2. Step 2: The other coefficients

    The coefficient of xx in f(g(x))f(g(x)) is 2ade+bd=8e+6=−22ade + bd = 8e + 6 = -2, so e=−1e = -1. Then cd+e=1cd + e = 1 gives 2c−1=12c - 1 = 1, so c=1c = 1. So f(x)=2x2+3x+1f(x) = 2x^2 + 3x + 1 and g(x)=2x−1g(x) = 2x - 1, which give f(2)+g(2)=15+3=18f(2) + g(2) = 15 + 3 = 18.

Answer. 18

Sanity check. The constant term of f(g(x))f(g(x)) is ae2+be+c=2−3+1=0ae^2 + be + c = 2 - 3 + 1 = 0, as the given 8x2−2x8x^2 - 2x requires.

Common wrong answers

  • 28: Computing f(g(2))=f(3)=28f(g(2)) = f(3) = 28 in place of f(2)+g(2)f(2) + g(2) gives 28.

Key takeaway

The trap. The two leading coefficients together fix the sign of the linear coefficient.

How toppers think. They use the unused coefficient as a check.

Remember. f(x)=2x2+3x+1f(x) = 2x^2 + 3x + 1, g(x)=2x−1g(x) = 2x - 1

More on Composite & Inverse Functions