Solution:
Concept: When putting x=a gives the meaningless form 00, the factor theorem tells us that both the numerator and the denominator have the factor (x−a). Since x→a means x comes close to a but x=a, the factor (x−a) is not zero and can be cancelled; then we put x=a in what is left.
Step 1 — Check the form of the limit. We put x=3 in the numerator and in the denominator:
33−8(3)2+45=27−72+45=0
2(3)2−3(3)−9=18−9−9=0
Both are 0, so the limit has the form 00 and (x−3) is a factor of each.
Step 2 — Factorise the numerator. By the remainder theorem (x−3) is a factor; dividing x3−8x2+0x+45 by (x−3) (synthetic division with 3: coefficients 1,−8,0,45 become 1,−5,−15 with remainder 0) gives
x3−8x2+45=(x−3)(x2−5x−15)
Step 3 — Factorise the denominator. We split −3x as −6x+3x and group the terms in pairs:
2x2−3x−9=2x2−6x+3x−9=2x(x−3)+3(x−3)=(x−3)(2x+3)
Step 4 — Cancel and substitute. Since x=3, the factor (x−3) cancels; then we put x=3:
x→3lim2x+3x2−5x−15=6+39−15−15=9−21=−37
Therefore, limx→32x2−3x−9x3−8x2+45=−37.