Solution:
This past paper question is beyond the current ISC syllabus; it is included for extra practice.
Concept: L'Hospital's rule: for the form 00, limx→ag(x)f(x)=limx→ag′(x)f′(x). If the new limit is again 00, the rule may be applied again. Here log is the natural logarithm.
Step 1 — Check the form at x=0.
We put x=0 into the numerator and into the denominator:
0⋅e0−log1=0
02=0
So the form is 00.
Step 2 — Apply the rule once.
The derivative of xex is ex+xex (product rule), the derivative of log(1+x) is 1+x1, and the derivative of x2 is 2x:
x→0limx2xex−log(1+x)=x→0lim2xex+xex−1+x1
Step 3 — Check the form again.
We put x=0 again, and the new numerator becomes 1+0−1=0, while the new denominator is 0. The form is still 00, so we apply the rule a second time.
Step 4 — Apply the rule a second time.
The derivative of ex+xex is ex+ex+xex=2ex+xex, the derivative of −1+x1 is (1+x)21, and the derivative of 2x is 2:
x→0lim2xex+xex−1+x1=x→0lim22ex+xex+(1+x)21
Step 5 — Substitute x=0.
The denominator is now 2, which is not zero:
22+0+1=23
Watch out: The derivative of −1+x1 is +(1+x)21; a sign slip here gives the wrong value 21.
Therefore, limx→0x2xex−log(1+x)=23.