As Jomo said, first try putting the limit value for x, here 5, into the fraction. The only "difficult part" is the last- if both numerator and denominator are 0, where he said "4) If you get 0/0, then you are not done. Somehow you have to get rid of that 0/0. Be clever." Here is a hint that will help you be clever: If x= a makes a polynomial 0 then x- a is a factor of the polynomial!
Here the polynomial in the numerator is
x3−9x2+21x−5 and the denominator is x- 5. Clearly when x= 5, the denominator is 5- 5= 0. According to what Jomo said, if the numerator is NOT 0 when x= 5, there is no limit. But setting x= 5 in the numerator gives 125- 225+ 105- 5= 100- 100= 0. So we have to be "clever". Fortunately we now know that x- 5 is a factor of
x3−9x2+21x−5. x divides into
x3 x2 times and
x2(x−5)=x3−5x2. Subtracting
x2(x−5) from
x3−9x2+21x−5 leaves a remainder of
−4x2+21x−5. x divides into that
−4x time.
−4x times x- 5 is
−4x2+20x. Subtracting
−4x2+20x from
−4x2+21x−5 leaves a remainder of
x−5 and
x−5 obviously divides into that once with no remainder!
x3−9x2+21x−5=(x−5)(x2−4x+1) so
x−5x3−9x2+21x−5=x−5(x−5)(x2−4x+1).
As long as
x=5 we can cancel "x- 5" in the denominator leaving
x2−4x+1. And it is important to remember that the limit,
x→alimf(x) depends only on the values of f(x) close to a but not at x= a! This limit is the same as
x→5limx2−4x+1. And now we can do #1 on Jomo's list. Setting x= 5,
52−4(5)+1=25−20+1=1+1=2.
x→5limx−5x3−9x2+21x−5=x→5limx2−4x+1=2.
(If the given function is defined "piecewise", as JeffM seems to be concerned about, Jomo's method can be applied to each "piece", again recalling that
x→alimf(x) depends only on what happens close to a, so if a is in one "piece" we can ignore all the others and if a is the point where one "piece" meets another, we can just look at those two pieces.)