∑GATE DA Atlas

Taylor and Maclaurin Series

Building polynomial approximations from derivatives, the Taylor and Maclaurin formulas, the standard series you must know, manipulating series (substitution, multiplication, differentiation, integration), the remainder and error bounds, radius of convergence, and how Taylor expansions power limits, numerical approximation and optimisation algorithms.

Section 39 practice questions

The idea

Near a point aa, a smooth function looks like a polynomial whose derivatives at aa match those of ff:

f(x)=f(a)+f′(a)(x−a)+f′′(a)2!(x−a)2+⋯+f(n)(a)n!(x−a)n+Rn(x).f(x) = f(a) + f'(a)(x - a) + \frac{f''(a)}{2!}(x - a)^2 + \dots + \frac{f^{(n)}(a)}{n!}(x - a)^n + R_n(x).
  • Taylor series about aa: ∑k=0∞f(k)(a)k!(x−a)k\displaystyle\sum_{k=0}^\infty\frac{f^{(k)}(a)}{k!}(x - a)^k.
  • Maclaurin series: the special case a=0a = 0.
  • The coefficient of (x−a)k(x - a)^k is f(k)(a)/k!f^{(k)}(a)/k! — so reading coefficients off a known series gives derivatives for free: f(k)(a)=k!×coefficientf^{(k)}(a) = k!\times\text{coefficient}.
degree 1 (tangent line)degree 2f(x)x = a
Higher-degree Taylor polynomials hug the function over a wider neighbourhood of a.

Series to know by heart

FunctionMaclaurin seriesValid for
exe^x1+x+x22!+x33!+⋯=∑xnn!1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \cdots = \sum\frac{x^n}{n!}all xx
sin⁡x\sin xx−x33!+x55!−⋯x - \frac{x^3}{3!} + \frac{x^5}{5!} - \cdotsall xx
cos⁡x\cos x1−x22!+x44!−⋯1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \cdotsall xx
11−x\frac{1}{1 - x}1+x+x2+x3+⋯1 + x + x^2 + x^3 + \cdots∣x∣<1\lvert x\rvert < 1
11+x\frac{1}{1 + x}1−x+x2−x3+⋯1 - x + x^2 - x^3 + \cdots∣x∣<1\lvert x\rvert < 1
ln⁡(1+x)\ln(1 + x)x−x22+x33−⋯x - \frac{x^2}{2} + \frac{x^3}{3} - \cdots−1<x≤1-1 < x \le 1
(1+x)α(1 + x)^\alpha1+αx+α(α−1)2!x2+⋯1 + \alpha x + \frac{\alpha(\alpha - 1)}{2!}x^2 + \cdots∣x∣<1\lvert x\rvert < 1
tan⁡−1x\tan^{-1}xx−x33+x55−⋯x - \frac{x^3}{3} + \frac{x^5}{5} - \cdots∣x∣≤1\lvert x\rvert \le 1
sinh⁡x\sinh x, cosh⁡x\cosh xx+x33!+⋯x + \frac{x^3}{3!} + \cdots, 1+x22!+⋯1 + \frac{x^2}{2!} + \cdotsall xx
tan⁡x\tan xx+x33+2x515+⋯x + \frac{x^3}{3} + \frac{2x^5}{15} + \cdots∣x∣<π/2\lvert x\rvert < \pi/2

Manipulating series

Rather than differentiating repeatedly, build new series from known ones:

  • Substitute: e−x2=1−x2+x42−⋯e^{-x^2} = 1 - x^2 + \frac{x^4}{2} - \cdots.
  • Multiply and collect terms up to the order you need (exsin⁡xe^x\sin x in the practice questions).
  • Differentiate or integrate term by term inside the radius of convergence: integrating 11+t2=∑(−1)nt2n\frac{1}{1 + t^2} = \sum(-1)^nt^{2n} gives tan⁡−1x\tan^{-1}x.
  • Divide by long division or by matching coefficients.

The remainder and error bounds

Lagrange form: for some ξ\xi between aa and xx,

Rn(x)=f(n+1)(ξ)(n+1)!(x−a)n+1.R_n(x) = \frac{f^{(n+1)}(\xi)}{(n+1)!}(x - a)^{n+1}.

If ∣f(n+1)∣≤M\lvert f^{(n+1)}\rvert \le M on the interval, then ∣Rn(x)∣≤M(n+1)!∣x−a∣n+1\lvert R_n(x)\rvert \le \frac{M}{(n+1)!}\lvert x - a\rvert^{n+1}. For an alternating series with decreasing terms, the error is at most the first omitted term.

The notation O((x−a)n+1)O((x - a)^{n+1}) ("big-O") records that the error shrinks like ∣x−a∣n+1\lvert x - a\rvert^{n+1} as x→ax \to a.

Convergence

A power series ∑cn(x−a)n\sum c_n(x - a)^n converges for ∣x−a∣<R\lvert x - a\rvert < R and diverges for ∣x−a∣>R\lvert x - a\rvert > R, where RR is the radius of convergence: 1R=lim⁡∣cn+1cn∣\frac1R = \lim\left\lvert\frac{c_{n+1}}{c_n}\right\rvert (ratio test) when the limit exists. Endpoints must be checked separately. Within RR the series can be differentiated and integrated term by term.

Why Taylor series matter in data science

  • Linear approximation: f(x)≈f(a)+f′(a)(x−a)f(x) \approx f(a) + f'(a)(x - a) — sensitivity analysis, the delta method in statistics, linearising non-linear models.
  • Gradient descent minimises the first-order model plus a step-size penalty; Newton's method minimises the second-order model f(a)+f′(a)h+12f′′(a)h2f(a) + f'(a)h + \frac12f''(a)h^2, giving h=−f′(a)/f′′(a)h = -f'(a)/f''(a) — see maxima and minima.
  • Second-derivative test for extrema comes straight from the quadratic term.
  • Numerical methods: finite-difference derivatives, numerical integration error analysis.
  • Activation functions: near 0, tanh⁡x≈x\tanh x \approx x and σ(x)≈12+x4\sigma(x) \approx \frac12 + \frac x4.

Quick revision

Practice questions

GATE-style questions: 3 one-mark and 6 two-mark. Wrong MCQs cost ⅓ of their marks in the real exam; MSQ and NAT have no negative marking. Attempt each before opening the solution.

Q1NAT1 mark

The coefficient of x3x^3 in the Maclaurin series of e2xe^{2x} is ______ (round to two decimals).

Q2NAT2 marks

In the Taylor series of ln⁡x\ln x about x=1x = 1, the coefficient of (x−1)2(x - 1)^2 is ______.

Q3MCQ1 mark

The Maclaurin series of cos⁡x\cos x is

Q4NAT2 marks

Using the first-order Taylor approximation of x\sqrt{x} about x=4x = 4, the approximate value of 4.1\sqrt{4.1} is ______ (round to three decimals).

Q5NAT2 marks

The coefficient of x3x^3 in the Maclaurin series of exsin⁡xe^x\sin x is ______ (round to three decimals).

Q6MSQ2 marks

Which statements about the radius of convergence RR of Maclaurin series are correct?

One or more options are correct.

Q7NAT2 marks

For f(x)=cos⁡2xf(x) = \cos 2x, the value of the fourth derivative f(4)(0)f^{(4)}(0) is ______.

Q8NAT1 mark

The second-order Taylor polynomial of f(x)=x3f(x) = x^3 about x=1x = 1, evaluated at x=1.1x = 1.1, gives ______ (round to two decimals).

Q9MCQ2 marks

e0.1e^{0.1} is approximated by 1+0.1+0.1221 + 0.1 + \frac{0.1^2}{2}. By the Lagrange remainder, the absolute error is at most about