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 it as a binomial. Put u=2x+3x2, so the expression is (1+u)n:
(1+u)n=1+nu+2n(n−1)u2+6n(n−1)(n−2)u3+⋯
Step 2 — Decide which terms are needed. Since u starts with 2x, u3 starts with x3; only the first three terms can give powers up to x2.
Step 3 — Substitute u. In u2 keep only (2x)2=4x2:
nu=2nx+3nx2
2n(n−1)u2=2n(n−1)x2+(higher powers)
Step 4 — Collect the x2 terms. Add the two coefficients of x2 and simplify:
3n+2n(n−1)=3n+2n2−2n=2n2+n
Therefore, (1+2x+3x2)n=1+2nx+(2n2+n)x2+⋯