Using Maclaurin's theorem, obtain the first four terms of the expansion of e^(x cos x) in ascending powers of x. Hence or otherwise find the limit of (eˣ − e^(x cos x))/(x − sin x) as x tends to zero.
10 marks · directive: Find
The core of a good answer
e^(x cos x) = 1 + x + x²/2 − x³/3 + ..., so eˣ − e^(x cos x) = x³/2 + O(x⁴) while x − sin x = x³/6 + O(x⁵); the limit is (1/2)/(1/6) = 3.
An outline written by upsc.help, not an official UPSC answer; every fact checked by a separate review. How we work
What the question asks
Two tasks: a Maclaurin expansion up to the x³ term (four terms), found either by successive derivatives at 0 or by composing known series, and then a 0/0 limit evaluated by comparing the leading terms of numerator and denominator.
Answer outline
Introduction
Let f(x) = e^(x cos x) = e^g with g(x) = x cos x. Maclaurin's theorem: f(x) = f(0) + x f'(0) + x²/2! f''(0) + x³/3! f'''(0) + ....
Step 1: Derivatives of g at 0
- g = x cos x, g(0) = 0
- g' = cos x − x sin x, g'(0) = 1
- g'' = −2 sin x − x cos x, g''(0) = 0
- g''' = −3 cos x + x sin x, g'''(0) = −3
Step 2: Derivatives of f = eᵍ
- f' = g' eᵍ, so f'(0) = 1
- f'' = (g'' + g'²) eᵍ, so f''(0) = 0 + 1 = 1
- f''' = (g''' + 3g'g'' + g'³) eᵍ, so f'''(0) = −3 + 0 + 1 = −2
- f(0) = e⁰ = 1
Step 3: Expansion
- e^(x cos x) = 1 + x + x²/2! · 1 + x³/3! · (−2) + ...
- = 1 + x + x²/2 − x³/3 + ...
- Check by series: x cos x = x − x³/2 + ..., and e^t = 1 + t + t²/2 + t³/6 with t = x − x³/2 gives 1 + x + x²/2 + (1/6 − 1/2)x³ = 1 + x + x²/2 − x³/3.
Step 4: The limit
- eˣ = 1 + x + x²/2 + x³/6 + ...
- eˣ − e^(x cos x) = (1/6 + 1/3)x³ + O(x⁴) = x³/2 + O(x⁴)
- x − sin x = x³/6 − x⁵/120 + ...
- Limit = lim (x³/2 + O(x⁴))/(x³/6 + O(x⁵)) = (1/2)/(1/6) = 3
Conclusion
The first four terms are 1 + x + x²/2 − x³/3, and the required limit is 3. Both were confirmed with sympy (series and limit).
Examples and data to cite
- The next term of the expansion is −11x⁴/24; it is not needed for the limit because the denominator is of order x³.
- The same limit by L'Hospital's rule needs three differentiations of a 0/0 form, which is longer; the series route is the expected 'hence' method.
Facts to remember
- Maclaurin's theorem: f(x) = Σ f⁽ⁿ⁾(0) xⁿ/n!.
- For f = eᵍ: f''' = (g''' + 3g'g'' + g'³) eᵍ.
- eˣ = 1 + x + x²/2! + x³/3! + ...; cos x = 1 − x²/2! + ...; sin x = x − x³/3! + x⁵/5! − ....
- x − sin x ~ x³/6 as x → 0.
- A limit of a ratio of series is the ratio of the coefficients of the lowest common power when the lower terms vanish.