Skip to content

Maclaurin and Taylor Series -- Diagnostic Tests

flowchart TD
A[Diag Maclaurin Taylor Series] --> B[Key Concepts]
A --> C[Core Principles]
A --> D[Practical Applications]
B --> E[Fundamental definitions]
C --> F[Design patterns]
D --> G[Real-world usage]

This topic explores fundamental concepts that shape our understanding of the world.

Maclaurin and Taylor Series, Diagnostic Tests

Section titled “Maclaurin and Taylor Series, Diagnostic Tests”

Question: Write the Maclaurin series up to the x4x^4 term for: (a) exe^x(b) ln⁡(1+x)\ln(1 + x)(c) sin⁡x\sin x(d) (1+x)n(1 + x)^n.

Solution:

(a) ex=1+x+x22!+x33!+x44!+⋯=1+x+x22+x36+x424+⋯e^x = 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \frac{x^4}{4!} + \cdots = 1 + x + \frac{x^2}{2} + \frac{x^3}{6} + \frac{x^4}{24} + \cdots

(b) ln⁡(1+x)=x−x22+x33−x44+⋯\ln(1+x) = x - \frac{x^2}{2} + \frac{x^3}{3} - \frac{x^4}{4} + \cdots (valid for −1<x≤1-1 \lt x \le 1).

(c) sin⁡x=x−x33!+x55!−⋯=x−x36+x5120−⋯\sin x = x - \frac{x^3}{3!} + \frac{x^5}{5!} - \cdots = x - \frac{x^3}{6} + \frac{x^5}{120} - \cdots (valid for all xx).

(d) (1+x)n=1+nx+n(n−1)2!x2+n(n−1)(n−2)3!x3+n(n−1)(n−2)(n−3)4!x4+⋯(1+x)^n = 1 + nx + \frac{n(n-1)}{2!}x^2 + \frac{n(n-1)(n-2)}{3!}x^3 + \frac{n(n-1)(n-2)(n-3)}{4!}x^4 + \cdots (valid for ∣x∣<1|x| \lt 1).

UT-2: Maclaurin Series from First Principles

Section titled “UT-2: Maclaurin Series from First Principles”

Question: (a) Find the Maclaurin series of cos⁡x\cos x up to x6x^6. (b) Find the Maclaurin series of e2xe^{2x} up to x4x^4. (c) Find the Maclaurin series of 11−x\frac{1}{1-x} and state its radius of convergence. (d) Use the series for 11−x\frac{1}{1-x} to find the series for 11+x2\frac{1}{1+x^2}.

Solution:

(a) f(x) = \cos x$$f(0) = 1. f"(x) = -\sin x$$f'(0) = 0. f''(x) = -\cos x$$f''(0) = -1. f'''(x) = \sin x$$f'''(0) = 0. f^{(4)}(x) = \cos x$$f^{(4)}(0) = 1. f^{(5)}(0) = 0$$f^{(6)}(0) = -1.

cos⁡x=1−x22!+x44!−x66!+⋯=1−x22+x424−x6720+⋯\cos x = 1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \frac{x^6}{6!} + \cdots = 1 - \frac{x^2}{2} + \frac{x^4}{24} - \frac{x^6}{720} + \cdots

(b) f(x) = e^{2x}$$f^{(n)}(x) = 2^n e^{2x}$$f^{(n)}(0) = 2^n. e2x=1+2x+4x22+8x36+16x424+⋯=1+2x+2x2+4x33+2x43+⋯e^{2x} = 1 + 2x + \frac{4x^2}{2} + \frac{8x^3}{6} + \frac{16x^4}{24} + \cdots = 1 + 2x + 2x^2 + \frac{4x^3}{3} + \frac{2x^4}{3} + \cdots

(c) f(x)=(1−x)−1f(x) = (1-x)^{-1}. f^{(n)}(x) = n!(1-x)^{-n-1}$$f^{(n)}(0) = n!. 11−x=∑n=0∞xn=1+x+x2+x3+⋯\frac{1}{1-x} = \sum_{n=0}^{\infty} x^n = 1 + x + x^2 + x^3 + \cdots

This is a geometric series with ratio xx. Converges when ∣x∣<1|x| \lt 1. Radius of convergence =1= 1.

(d) Substitute x→−x2x \to -x^2: 11+x2=1−x2+x4−x6+⋯\frac{1}{1+x^2} = 1 - x^2 + x^4 - x^6 + \cdots (valid for ∣x∣<1|x| \lt 1).

Question: (a) Find the Maclaurin series of ex−1x\frac{e^x - 1}{x} up to x3x^3. (b) Find the Maclaurin series of xln⁡(1+x)x\ln(1+x) up to x4x^4. (c) Find the Maclaurin series of cos⁡2x\cos^2 x up to x4x^4 using the identity cos⁡2x=1+cos⁡2x2\cos^2 x = \frac{1 + \cos 2x}{2}. (d) Evaluate lim⁡x→0ex−1−xx2\lim_{x \to 0}\frac{e^x - 1 - x}{x^2} using series.

Solution:

(a) ex=1+x+x2/2+x3/6+⋯e^x = 1 + x + x^2/2 + x^3/6 + \cdots. ex−1=x+x2/2+x3/6+⋯e^x - 1 = x + x^2/2 + x^3/6 + \cdots. ex−1x=1+x2+x26+⋯\frac{e^x - 1}{x} = 1 + \frac{x}{2} + \frac{x^2}{6} + \cdots

(b) ln⁡(1+x)=x−x2/2+x3/3−x4/4+⋯\ln(1+x) = x - x^2/2 + x^3/3 - x^4/4 + \cdots xln⁡(1+x)=x2−x32+x43−x54+⋯x\ln(1+x) = x^2 - \frac{x^3}{2} + \frac{x^4}{3} - \frac{x^5}{4} + \cdots

(c) cos⁡2x=1−(2x)22+(2x)424+⋯=1−2x2+2x43+⋯\cos 2x = 1 - \frac{(2x)^2}{2} + \frac{(2x)^4}{24} + \cdots = 1 - 2x^2 + \frac{2x^4}{3} + \cdots cos⁡2x=12(2−2x2+2x43)=1−x2+x43+⋯\cos^2 x = \frac{1}{2}\left(2 - 2x^2 + \frac{2x^4}{3}\right) = 1 - x^2 + \frac{x^4}{3} + \cdots

(d) ex−1−x=x22+x36+⋯e^x - 1 - x = \frac{x^2}{2} + \frac{x^3}{6} + \cdots. ex−1−xx2=12+x6+⋯\frac{e^x - 1 - x}{x^2} = \frac{1}{2} + \frac{x}{6} + \cdots. lim⁡x→0=12\lim_{x \to 0} = \frac{1}{2}.


IT-1: Taylor Series about a Point (with Calculus)

Section titled “IT-1: Taylor Series about a Point (with Calculus)”

Question: (a) Find the Taylor series of ln⁡x\ln x about x=1x = 1 up to (x−1)4(x-1)^4. (b) Use the result to approximate ln⁡1.1\ln 1.1 correct to 4 decimal places. (c) Estimate the error in the approximation. (d) Explain why the Maclaurin series of ln⁡x\ln x does not exist.

Solution:

(a) f(x) = \ln x$$f(1) = 0. f'(x) = 1/x$$f'(1) = 1. f''(x) = -1/x^2$$f''(1) = -1. f'''(x) = 2/x^3$$f'''(1) = 2. f^{(4)}(x) = -6/x^4$$f^{(4)}(1) = -6.

ln⁡x=(x−1)−(x−1)22+(x−1)33−(x−1)44+⋯\ln x = (x-1) - \frac{(x-1)^2}{2} + \frac{(x-1)^3}{3} - \frac{(x-1)^4}{4} + \cdots

(b) With x = 1.1$$h = 0.1: ln⁡1.1≈0.1−0.005+0.000333−0.000025=0.095308≈0.0953\ln 1.1 \approx 0.1 - 0.005 + 0.000333 - 0.000025 = 0.095308 \approx 0.0953.

(c) The next term is (0.1)55=0.000002\frac{(0.1)^5}{5} = 0.000002. The error is less than the magnitude of the first omitted term: error <0.000002\lt 0.000002. So ln⁡1.1=0.0953\ln 1.1 = 0.0953 to 4 d.p. (Actual: 0.0953100.095310.)

(d) f(0)=ln⁡0f(0) = \ln 0 is undefined, so f(n)(0)f^{(n)}(0) does not exist for ln⁡x\ln x. The Maclaurin series requires the function and all its derivatives to be defined at x=0x = 0.

IT-2: Series for Integration (with Further Calculus)

Section titled “IT-2: Series for Integration (with Further Calculus)”

Question: (a) Use series to evaluate ∫00.5sin⁡xx dx\int_0^{0.5} \frac{\sin x}{x}\,dx correct to 6 decimal places. (b) Use the series for exe^x to find the Maclaurin series of ex−e−x2\frac{e^x - e^{-x}}{2} (hyperbolic sine, sinh⁡x\sinh x). (c) Evaluate ∫00.2sinh⁡x dx\int_0^{0.2} \sinh x\,dx using the series. (d) Find the Maclaurin series of ex2e^{x^2} and use it to find ∫00.5ex2 dx\int_0^{0.5} e^{x^2}\,dx.

Solution:

(a) sin⁡x=x−x3/6+x5/120−⋯\sin x = x - x^3/6 + x^5/120 - \cdots. sin⁡xx=1−x2/6+x4/120−⋯\frac{\sin x}{x} = 1 - x^2/6 + x^4/120 - \cdots. ∫00.5sin⁡xx dx=[x−x318+x5600]00.5=0.5−0.12518+0.03125600\int_0^{0.5} \frac{\sin x}{x}\,dx = \left[x - \frac{x^3}{18} + \frac{x^5}{600}\right]_0^{0.5} = 0.5 - \frac{0.125}{18} + \frac{0.03125}{600} =0.5−0.006944+0.000052=0.493108≈0.493108= 0.5 - 0.006944 + 0.000052 = 0.493108 \approx 0.493108.

(b) ex=1+x+x2/2!+x3/3!+⋯e^x = 1 + x + x^2/2! + x^3/3! + \cdots. e−x=1−x+x2/2!−x3/3!+⋯e^{-x} = 1 - x + x^2/2! - x^3/3! + \cdots. sinh⁡x=ex−e−x2=x+x33!+x55!+⋯=x+x36+x5120+⋯\sinh x = \frac{e^x - e^{-x}}{2} = x + \frac{x^3}{3!} + \frac{x^5}{5!} + \cdots = x + \frac{x^3}{6} + \frac{x^5}{120} + \cdots

(c) ∫00.2sinh⁡x dx=[x22+x424+x6720]00.2=0.02+0.001624+0.000064720\int_0^{0.2} \sinh x\,dx = \left[\frac{x^2}{2} + \frac{x^4}{24} + \frac{x^6}{720}\right]_0^{0.2} = 0.02 + \frac{0.0016}{24} + \frac{0.000064}{720} =0.02+0.0000667+0.0000001=0.020067= 0.02 + 0.0000667 + 0.0000001 = 0.020067.

(d) ex2=1+x2+x42!+x63!+⋯=1+x2+x42+x66+⋯e^{x^2} = 1 + x^2 + \frac{x^4}{2!} + \frac{x^6}{3!} + \cdots = 1 + x^2 + \frac{x^4}{2} + \frac{x^6}{6} + \cdots ∫00.5ex2 dx=[x+x33+x510+x742]00.5=0.5+0.1253+0.0312510+0.007812542\int_0^{0.5} e^{x^2}\,dx = \left[x + \frac{x^3}{3} + \frac{x^5}{10} + \frac{x^7}{42}\right]_0^{0.5} = 0.5 + \frac{0.125}{3} + \frac{0.03125}{10} + \frac{0.0078125}{42} =0.5+0.04167+0.003125+0.000186=0.54498= 0.5 + 0.04167 + 0.003125 + 0.000186 = 0.54498.

IT-3: Convergence and Applications (with Complex Numbers)

Section titled “IT-3: Convergence and Applications (with Complex Numbers)”

Question: (a) Find the Maclaurin series of (1−x)−1/2(1-x)^{-1/2} and determine its radius of convergence. (b) Use the series to approximate 10.9\frac{1}{\sqrt{0.9}} correct to 5 decimal places. (c) The series ∑n=0∞xnn!\sum_{n=0}^{\infty} \frac{x^n}{n!} converges for all xx. Use this to show that ∑n=0∞(−1)nn!=1e\sum_{n=0}^{\infty} \frac{(-1)^n}{n!} = \frac{1}{e}. (d) Explain why ∑n=1∞1n\sum_{n=1}^{\infty} \frac{1}{n} diverges while ∑n=1∞(−1)nn\sum_{n=1}^{\infty} \frac{(-1)^n}{n} converges.

Solution:

(a) (1−x)−1/2=1+12x+1⋅32⋅4x2+1⋅3⋅52⋅4⋅6x3+1⋅3⋅5⋅72⋅4⋅6⋅8x4+⋯(1-x)^{-1/2} = 1 + \frac{1}{2}x + \frac{1 \cdot 3}{2 \cdot 4}x^2 + \frac{1 \cdot 3 \cdot 5}{2 \cdot 4 \cdot 6}x^3 + \frac{1 \cdot 3 \cdot 5 \cdot 7}{2 \cdot 4 \cdot 6 \cdot 8}x^4 + \cdots =1+x2+3x28+5x316+35x4128+⋯= 1 + \frac{x}{2} + \frac{3x^2}{8} + \frac{5x^3}{16} + \frac{35x^4}{128} + \cdots

Radius of convergence: ∣x∣<1|x| \lt 1 (from the binomial series formula, valid when ∣x∣<1|x| \lt 1).

(b) With x=0.1x = 0.1: 10.9=1+0.05+0.00375+0.0003125+0.00002734+⋯=1.054090≈1.05409\frac{1}{\sqrt{0.9}} = 1 + 0.05 + 0.00375 + 0.0003125 + 0.00002734 + \cdots = 1.054090 \approx 1.05409.

(c) ∑n=0∞xnn!=ex\sum_{n=0}^{\infty} \frac{x^n}{n!} = e^x. Setting x=−1x = -1: ∑n=0∞(−1)nn!=e−1=1e\sum_{n=0}^{\infty} \frac{(-1)^n}{n!} = e^{-1} = \frac{1}{e}.

(d) ∑n=1∞1n\sum_{n=1}^{\infty} \frac{1}{n} is the harmonic series, which diverges (the partial sums grow without bound, albeit slowly — ln⁡n\ln n).

∑n=1∞(−1)nn=−1+12−13+14−⋯\sum_{n=1}^{\infty} \frac{(-1)^n}{n} = -1 + \frac{1}{2} - \frac{1}{3} + \frac{1}{4} - \cdots is an alternating series with terms an=1/na_n = 1/n that decrease to 0. By the alternating series test, it converges (to −ln⁡2-\ln 2). The partial sums oscillate above and below −ln⁡2-\ln 2 With the amplitude of oscillation decreasing.

Using the wrong general term in Maclaurin series: Common series to memorise: ex=∑xn/n!e^x = \sum x^n/n!, sin⁡x=∑(−1)nx2n+1/(2n+1)!\sin x = \sum (-1)^n x^{2n+1}/(2n+1)!, cos⁡x=∑(−1)nx2n/(2n)!\cos x = \sum (-1)^n x^{2n}/(2n)!, ln⁡(1+x)=∑(−1)n+1xn/n\ln(1+x) = \sum (-1)^{n+1} x^n/n, (1+x)n=∑(nk)xk(1+x)^n = \sum \binom{n}{k} x^k. Mixing up the signs or factorials (e.g., writing n!n! instead of (2n+1)!(2n+1)!) gives wrong expansions.

Forgetting to check the radius of convergence: A series may converge for some values of xx but not others. Always determine the radius of convergence before using a series. For ln⁡(1+x)\ln(1+x), the series converges for ∣x∣<1|x| < 1 (and at x=1x = 1). Substituting x=2x = 2 into the ln⁡(1+x)\ln(1+x) series gives a divergent sum, a common error.

Confusing the Maclaurin and Taylor series: A Maclaurin series is a Taylor series centred at x=0x = 0. When a question asks for a series about x=ax = a where a≠0a \neq 0, you must compute f(n)(a)f^{(n)}(a), not f(n)(0)f^{(n)}(0). The formula is ∑f(n)(a)(x−a)n/n!\sum f^{(n)}(a)(x-a)^n/n!.