Solution:
This past paper question is beyond the current ISC syllabus; it is included for extra practice.
Key idea: L'Hospital's rule works on a single fraction of the form 00: then x→alimg(x)f(x)=x→alimg′(x)f′(x). An expression of the form ∞−∞ must first be written as one fraction.
Step 1 — Write the expression as one fraction.
As x→0, both x21 and xcotx become very large, so we cannot use the rule yet. We write cotx=sinxcosx and take the common denominator x2sinx.
x21−xcotx=x21−xsinxcosx
x21−xcotx=x2sinxsinx−xcosx
Step 2 — Check the form.
When we put x=0, the numerator sinx−xcosx and the denominator x2sinx both become 0. So the fraction has the form 00.
Step 3 — Apply the rule once.
The derivative of sinx−xcosx is cosx−(cosx−xsinx), which simplifies to xsinx. The derivative of x2sinx is 2xsinx+x2cosx.
limx→0x2sinxsinx−xcosx=limx→02xsinx+x2cosxxsinx
Step 4 — Cancel the common factor x.
While x→0 we have x=0, so we may cancel x from the top and the bottom.
limx→02xsinx+x2cosxxsinx=limx→02sinx+xcosxsinx
At x=0 this is still 00.
Step 5 — Apply the rule a second time.
The derivative of sinx is cosx. The derivative of 2sinx+xcosx is 2cosx+cosx−xsinx, and we collect this as 3cosx−xsinx.
limx→02sinx+xcosxsinx=limx→03cosx−xsinxcosx
Step 6 — Put x=0.
The denominator is now 3 at x=0, so we substitute directly.
limx→03cosx−xsinxcosx=31
Therefore, x→0lim(x21−xcotx)=31.