We begin with the limit
L = lim x → 0 x + 2 sin x x 2 + 2 sin x + 1 − sin 2 x − x + 1 . L=\lim_{x\to0}\dfrac{x+2\sin x}{\sqrt{x^{2}+2\sin x+1}-\sqrt{\sin^{2}x-x+1}}. L = lim x → 0 x 2 + 2 sin x + 1 − sin 2 x − x + 1 x + 2 sin x .
Both the numerator and the denominator approach 0 0 0 as x → 0 x\to0 x → 0 , so L’Hôpital’s Rule is applicable. L’Hôpital’s Rule states that for functions f ( x ) f(x) f ( x ) and g ( x ) g(x) g ( x ) which satisfy f ( 0 ) = g ( 0 ) = 0 f(0)=g(0)=0 f ( 0 ) = g ( 0 ) = 0 and have derivatives continuous near 0 0 0 , we have
lim x → 0 f ( x ) g ( x ) = lim x → 0 f ′ ( x ) g ′ ( x ) \lim_{x\to0}\dfrac{f(x)}{g(x)}=\lim_{x\to0}\dfrac{f'(x)}{g'(x)} lim x → 0 g ( x ) f ( x ) = lim x → 0 g ′ ( x ) f ′ ( x )
provided the limit on the right exists.
We set
f ( x ) = x + 2 sin x , g ( x ) = x 2 + 2 sin x + 1 − sin 2 x − x + 1 . f(x)=x+2\sin x,\qquad g(x)=\sqrt{x^{2}+2\sin x+1}-\sqrt{\sin^{2}x-x+1}. f ( x ) = x + 2 sin x , g ( x ) = x 2 + 2 sin x + 1 − sin 2 x − x + 1 .
Derivative of the numerator
f ′ ( x ) = 1 + 2 cos x . f'(x)=1+2\cos x. f ′ ( x ) = 1 + 2 cos x .
Therefore
f ′ ( 0 ) = 1 + 2 cos 0 = 1 + 2 ⋅ 1 = 3. f'(0)=1+2\cos0=1+2\cdot1=3. f ′ ( 0 ) = 1 + 2 cos 0 = 1 + 2 ⋅ 1 = 3.
Derivative of the denominator
Write g ( x ) = u ( x ) − v ( x ) g(x)=u(x)-v(x) g ( x ) = u ( x ) − v ( x ) with
u ( x ) = x 2 + 2 sin x + 1 , v ( x ) = sin 2 x − x + 1 . u(x)=\sqrt{x^{2}+2\sin x+1},\qquad v(x)=\sqrt{\sin^{2}x-x+1}. u ( x ) = x 2 + 2 sin x + 1 , v ( x ) = sin 2 x − x + 1 .
Using d d x h ( x ) = h ′ ( x ) 2 h ( x ) \dfrac{d}{dx}\sqrt{h(x)}=\dfrac{h'(x)}{2\sqrt{h(x)}} d x d h ( x ) = 2 h ( x ) h ′ ( x ) we find
u ′ ( x ) = 2 x + 2 cos x 2 x 2 + 2 sin x + 1 = x + cos x x 2 + 2 sin x + 1 , u'(x)=\dfrac{2x+2\cos x}{2\sqrt{x^{2}+2\sin x+1}}
=\dfrac{x+\cos x}{\sqrt{x^{2}+2\sin x+1}}, u ′ ( x ) = 2 x 2 + 2 sin x + 1 2 x + 2 cos x = x 2 + 2 sin x + 1 x + cos x ,
v ′ ( x ) = 2 sin x cos x − 1 2 sin 2 x − x + 1 = sin x cos x − 1 2 sin 2 x − x + 1 . v'(x)=\dfrac{2\sin x\cos x-1}{2\sqrt{\sin^{2}x-x+1}}
=\dfrac{\sin x\cos x-\dfrac12}{\sqrt{\sin^{2}x-x+1}}. v ′ ( x ) = 2 sin 2 x − x + 1 2 sin x cos x − 1 = sin 2 x − x + 1 sin x cos x − 2 1 .
Hence
g ′ ( x ) = u ′ ( x ) − v ′ ( x ) = x + cos x x 2 + 2 sin x + 1 − sin x cos x − 1 2 sin 2 x − x + 1 . g'(x)=u'(x)-v'(x)
=\dfrac{x+\cos x}{\sqrt{x^{2}+2\sin x+1}}
-\dfrac{\sin x\cos x-\dfrac12}{\sqrt{\sin^{2}x-x+1}}. g ′ ( x ) = u ′ ( x ) − v ′ ( x ) = x 2 + 2 sin x + 1 x + cos x − sin 2 x − x + 1 sin x cos x − 2 1 .
Now evaluate g ′ ( x ) g'(x) g ′ ( x ) at x = 0 x=0 x = 0 . We know sin 0 = 0 , cos 0 = 1 \sin0=0,\;\cos0=1 sin 0 = 0 , cos 0 = 1 , and both radicals become 1 = 1 \sqrt1=1 1 = 1 . Substituting,
g ′ ( 0 ) = 0 + 1 1 − 0 ⋅ 1 − 1 2 1 = 1 − ( − 1 2 ) = 1 + 1 2 = 3 2 . g'(0)=\dfrac{0+1}{1}-\dfrac{0\cdot1-\dfrac12}{1}
=1-\Bigl(-\dfrac12\Bigr)=1+\dfrac12=\dfrac32. g ′ ( 0 ) = 1 0 + 1 − 1 0 ⋅ 1 − 2 1 = 1 − ( − 2 1 ) = 1 + 2 1 = 2 3 .
Applying L’Hôpital’s Rule
L = lim x → 0 f ( x ) g ( x ) = lim x → 0 f ′ ( x ) g ′ ( x ) = f ′ ( 0 ) g ′ ( 0 ) = 3 3 2 = 2. L=\lim_{x\to0}\dfrac{f(x)}{g(x)}
=\lim_{x\to0}\dfrac{f'(x)}{g'(x)}
=\dfrac{f'(0)}{g'(0)}
=\dfrac{3}{\dfrac32}=2. L = lim x → 0 g ( x ) f ( x ) = lim x → 0 g ′ ( x ) f ′ ( x ) = g ′ ( 0 ) f ′ ( 0 ) = 2 3 3 = 2.
So, the answer is 2 2 2 .