The question asks to evaluate the following :-

Its an example.

Book has done it directly by telling that at {(D-1)}^2 this can't be solved as F(b) = 0 and thus we will apply the following rule :-

And thus the answer comes out to be :-

The difficulty is that our calculus teacher told us that you will first do the following step to that factor for which F(b) <> 0 .

and then apply the above stated rule for that factor for which F(b) = 0.

This was working all right till this question. If I solve it by what we are told by our teacher then the answer comes out to be

Any comments? What should be the procedure for solving such questions ?