Solution:
Concept: In the expansion of (a+b)n there are n+1 terms. If n is even, there is one middle term, the (2n+1)th term. If n is odd, there are two middle terms, the (2n+1)th and the (2n+3)th terms. Each term is found from the general term
Tr+1=nCran−rbr
Step 1 — Locate the middle terms. Here n=7 is odd, so there are two middle terms: the (27+1)th term and the (27+3)th term. These are the 4th term T4 (with r=3) and the 5th term T5 (with r=4).
Step 2 — Write the general term. Here a=3 and b=−6x3:
Tr+1=7Cr37−r(−6x3)r
Step 3 — The 4th term. We put r=3 in the general term and work out each factor.
The binomial coefficient is 7C3=35.
The power of 3 is 34=81.
The cube of −6x3 is −216x9, negative because the power is odd. Multiplying the three factors:
T4=35×81×(−216x9)=−2162835x9=−8105x9
(we divided 2835 and 216 by their HCF 27).
Step 4 — The 5th term. We put r=4 in the general term and work out each factor.
The binomial coefficient is 7C4=35.
The power of 3 is 33=27.
The fourth power of −6x3 is 1296x12, positive because the power is even. Multiplying the three factors:
T5=35×27×1296x12=1296945x12=4835x12
(we divided 945 and 1296 by their HCF 27).
Therefore, the two middle terms are −8105x9 and 4835x12.