Solution:
Concept: The binomial theorem says that, for a positive integer n,
(x+y)n=nC0xn+nC1xn−1y+nC2xn−2y2+⋯+nCnyn
where nCr=r!(n−r)!n!. The (r+1)th term is the general term Tr+1=nCrxn−ryr. The expansion has n+1 terms, and in every term the powers of x and y add up to n.
Step 1 — Treat the bracket as a binomial. Put u=x(3+4x), so u=3x+4x2 and the expression is (2+u)5:
(2+u)5=25+5C124u+5C223u2+5C322u3+⋯
Step 2 — Decide which terms are needed. We want only the terms up to x2. Since u starts with 3x, the power u3 starts with x3, so the terms from u3 onwards are not needed.
Step 3 — Work out the first three terms of (2+u)5. Using 5C1=5 and 5C2=10:
(2+u)5=32+80u+80u2+⋯
Step 4 — Substitute u=3x+4x2. For u2 we keep only the x2 part, (3x)2=9x2:
80u=240x+320x2
80u2=720x2+(terms in x3,x4)
Step 5 — Collect the powers of x. The x2 terms are 320x2 and 720x2:
320+720=1040
The first three terms are 32+240x+1040x2.