Skip to content
GATEiit

GATE DA · Calculus and Optimization

Taylor series

Taylor and Maclaurin series: finding coefficients, the standard expansions, polynomial approximation with its error, and using series to evaluate limits, derivatives at a point and quadratic approximations used in optimisation.

Before you start

  • Limits and derivatives →

    Taylor coefficients are higher derivatives at a point, and series are a quick way to evaluate limits.

  • Factorials and the binomial theorem

    Every coefficient has an n! in it, and (1+x)k expands by the binomial series.

  • Geometric series

    11−x=1+x+x2+… for ∣x∣<1 is the model for convergence and for building other series.

This topic comes before: Limit, continuity and differentiability, Maxima and minima, Optimization involving a single variable

Concept notes

1. Taylor series and Taylor polynomials

If f has derivatives of all orders at a, its Taylor series about a is

f(x)=∑n=0∞f(n)(a)n!(x−a)n=f(a)+f′(a)(x−a)+f′′(a)2!(x−a)2+…

for x where the series converges to f. With a=0 it is called the Maclaurin series.

  • The coefficient of (x−a)n is cn=f(n)(a)n!. Reading it backwards: f(n)(a)=n! cn. This is the fast way to get a high derivative at a point.
  • The Taylor polynomial of degree n, Pn(x), keeps terms up to (x−a)n. It matches f and its first n derivatives at a.
  • For a polynomial, the Taylor series about any point is the same polynomial rewritten in powers of (x−a), and it stops after the degree.

A function can be infinitely differentiable and still not equal its Taylor series: f(x)=e−1/x2 (f(0)=0) has every derivative 0 at 0, so its Maclaurin series is identically 0, yet f(x)>0 for x≠0. Functions that do equal their series near each point (polynomials, ex, sin⁡x, cos⁡x, ln⁡(1+x) in its interval) are called analytic there.

2. Standard Maclaurin series

Learn these; most questions are built from them.

Function Series Valid for
ex 1+x+x22!+x33!+… all x
sin⁡x x−x33!+x55!−… all x
cos⁡x 1−x22!+x44!−… all x
ln⁡(1+x) x−x22+x33−… −1<x≤1
11−x 1+x+x2+x3+… ∣x∣<1
(1+x)k 1+kx+k(k−1)2!x2+… ∣x∣<1

sin⁡x (odd) has only odd powers; cos⁡x (even) only even powers.

Build new series instead of differentiating many times:

  • Substitute: e2x: replace x by 2x, so the x3 coefficient is 233!=43. cos⁡(x2)=1−x42+…
  • Multiply two series and collect the power you need.
  • Differentiate or integrate term by term inside the interval of convergence: integrating 11+t gives ln⁡(1+x).
  • Shift the centre: for ln⁡x about 1, put x=1+u: ln⁡x=(x−1)−(x−1)22+(x−1)33−…

3. Approximation and the remainder

Near a, a few terms give a good approximation:

  • Linear (first-order): f(x)≈f(a)+f′(a)(x−a), the tangent line.
  • Quadratic (second-order): add f′′(a)2(x−a)2; this also captures curvature.

The error is the remainder Rn(x)=f(x)−Pn(x). In Lagrange form,

Rn(x)=f(n+1)(ξ)(n+1)!(x−a)n+1

for some ξ between a and x. So if ∣f(n+1)∣≤M on that interval, ∣Rn∣≤M∣x−a∣n+1(n+1)!. The error shrinks like ∣x−a∣n+1: halving the distance cuts the linear-approximation error by about 4.

For an alternating series whose terms decrease in size to 0, the error after stopping is at most the first omitted term. Example: ln⁡1.2≈0.2−0.02=0.18 with error at most 0.233≈0.0027 (true value 0.1823).

xy(0, 1)eˣP₁P₂−31
eˣ (solid) with its Maclaurin approximations P₁ = 1 + x (dashed) and P₂ = 1 + x + x²/2 (dotted): all touch at (0, 1); P₂ stays close over a wider range

4. Using series: limits, derivatives and optimisation

Limits. Replace each function by its series near 0 and keep terms up to the lowest power in the denominator:

lim⁡x→0x−sin⁡xx3=lim⁡x→0x3/6−x5/120+…x3=16

Derivatives at a point. f(n)(0)=n!× (coefficient of xn). For x2ex=x2+x3+x42!+x53!+…, f(5)(0)=5!⋅16=20, with no product rule needed.

Link to optimisation. At a point where f′(a)=0, the second-order expansion is f(a+h)≈f(a)+f′′(a)2h2. If f′′(a)>0 every nearby value is larger: a local minimum. If f′′(a)<0: a local maximum. This is the second derivative test.

Newton's method minimises this quadratic model, giving the step xk+1=xk−f′(xk)f′′(xk). (Beyond the syllabus: for several variables the same expansion uses the gradient and the Hessian matrix.)

Formulas to remember

Taylor series about a
f(x)=∑n=0∞f(n)(a)n!(x−a)n
Coefficient and derivative
cn=f(n)(a)n!  ⟺  f(n)(a)=n! cn
Exponential
ex=∑n=0∞xnn!
Sine and cosine
sin⁡x=∑n=0∞(−1)nx2n+1(2n+1)!,cos⁡x=∑n=0∞(−1)nx2n(2n)!
LogarithmValid for −1<x≤1
ln⁡(1+x)=∑n=1∞(−1)n+1xnn
Binomial seriesValid for ∣x∣<1; finite when k is a non-negative integer
(1+x)k=1+kx+k(k−1)2!x2+k(k−1)(k−2)3!x3+⋯
Lagrange remainderξ lies between a and x
Rn(x)=f(n+1)(ξ)(n+1)!(x−a)n+1
Second-order approximation
f(a+h)≈f(a)+f′(a) h+f′′(a)2h2

Common mistakes

  • Forgetting to divide by n!: the coefficient is f(n)(a)n!, not f(n)(a).
  • Expanding in powers of x when the series is asked about x=a; use powers of (x−a).
  • Missing cross terms when multiplying two series; list every pair of powers that adds up to the target.
  • Stopping the expansion too early in a limit: keep terms up to the power in the denominator.
  • Using ln⁡(1+x) or 11−x series outside their interval of convergence.

Worked examples

Try each step yourself, then reveal the working.

Example 1: Taylor series of ln x about x = 1

numerical

Find the coefficient of (x−1)3 in the Taylor series of f(x)=ln⁡x about x=1.

  1. Step 1: Find the first three derivatives.

    Try it on paper first.

Example 2: A coefficient of a product

numerical

Find the coefficient of x4 in the Maclaurin series of excos⁡x.

  1. Step 1: Write each series up to x⁴.

    Try it on paper first.

Example 3: Linear approximation of a square root

numerical

Use a first-order Taylor approximation of f(x)=x about x=4 to estimate 4.1, and estimate the error from the next term.

  1. Step 1: Find f(4) and f'(4).

    Try it on paper first.

Example 4: A limit by series

numerical

Evaluate lim⁡x→0x−sin⁡xx3.

  1. Step 1: Expand sin x far enough.

    Try it on paper first.

Previous year questions

2 official GATE DA questions on this topic, newest first.

Practise these 2 PYQs →

Topic test

10 questions: up to 2 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.

Mark as mastered

Loading your progress…

My revision notes

Notes written by the GATEiit team against the official GATE DA syllabus; being checked by a reviewer. Updated 2026-11-21. Spotted a mistake? Use Report an issue on any question, or contact us.