Solved Exercises on Taylor and Maclaurin Series Basics in Integral Calculus

Master Taylor and Maclaurin series: polynomial approximations, derivatives, function representations through these 5 detailed exercises.

Solution: Exercises 1 to 3
1 Basic Maclaurin Series for eˣ
Exercise 1
Find the Maclaurin series for:
\(f(x) = e^x\)
Definition:

Maclaurin Series: Taylor series centered at \(a = 0\): \(\sum_{n=0}^{\infty} \frac{f^{(n)}(0)}{n!}x^n\)

Derivative Property: \(\frac{d}{dx}[e^x] = e^x\), so all derivatives of \(e^x\) are \(e^x\)

Direct Taylor Expansion Method:
  1. Compute derivatives \(f^{(n)}(x)\) for \(n = 0, 1, 2, 3, \ldots\)
  2. Evaluate each derivative at \(x = 0\)
  3. Apply the Maclaurin formula: \(\sum_{n=0}^{\infty} \frac{f^{(n)}(0)}{n!}x^n\)
  4. Simplify and write the series
Function
\(f(x) = e^x\)
All Derivatives
\(f^{(n)}(x) = e^x\)
Step 1: Find all derivatives

\(f(x) = e^x\)

\(f'(x) = e^x\)

\(f''(x) = e^x\)

\(f'''(x) = e^x\)

In general: \(f^{(n)}(x) = e^x\) for all \(n \geq 0\)

Step 2: Evaluate derivatives at x = 0

\(f(0) = e^0 = 1\)

\(f'(0) = e^0 = 1\)

\(f''(0) = e^0 = 1\)

\(f'''(0) = e^0 = 1\)

In general: \(f^{(n)}(0) = 1\) for all \(n \geq 0\)

Step 3: Apply Maclaurin series formula

\(e^x = \sum_{n=0}^{\infty} \frac{f^{(n)}(0)}{n!}x^n = \sum_{n=0}^{\infty} \frac{1}{n!}x^n\)

Step 4: Write out the series

\(e^x = \frac{x^0}{0!} + \frac{x^1}{1!} + \frac{x^2}{2!} + \frac{x^3}{3!} + \frac{x^4}{4!} + \cdots\)

\(e^x = 1 + x + \frac{x^2}{2} + \frac{x^3}{6} + \frac{x^4}{24} + \cdots\)

\(e^x = \sum_{n=0}^{\infty} \frac{x^n}{n!}\)
Final answer:

\(e^x = \sum_{n=0}^{\infty} \frac{x^n}{n!} = 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \frac{x^4}{4!} + \cdots\)

Applied rules:

• Derivative Property: All derivatives of \(e^x\) equal \(e^x\)

• Maclaurin Formula: \(\sum_{n=0}^{\infty} \frac{f^{(n)}(0)}{n!}x^n\)

• Factorial Values: \(0! = 1, 1! = 1, 2! = 2, 3! = 6, 4! = 24\)

2 Maclaurin Series for cos(x)
Exercise 2
Find the Maclaurin series for:
\(f(x) = \cos x\)
Definition:

Trigonometric Derivatives: \(\frac{d}{dx}[\cos x] = -\sin x\), \(\frac{d}{dx}[\sin x] = \cos x\)

Periodic Pattern: Derivatives of cosine repeat every 4 steps

Function
\(f(x) = \cos x\)
Derivative Pattern
cycle: cos→-sin→-cos→sin→cos
Step 1: Find the pattern of derivatives

\(f(x) = \cos x\)

\(f'(x) = -\sin x\)

\(f''(x) = -\cos x\)

\(f'''(x) = \sin x\)

\(f^{(4)}(x) = \cos x\) (back to original)

Step 2: Evaluate derivatives at x = 0

\(f(0) = \cos 0 = 1\)

\(f'(0) = -\sin 0 = 0\)

\(f''(0) = -\cos 0 = -1\)

\(f'''(0) = \sin 0 = 0\)

\(f^{(4)}(0) = \cos 0 = 1\)

Step 3: Notice the pattern

Odd-order derivatives at x = 0 are 0: \(f'(0) = f'''(0) = f^{(5)}(0) = \cdots = 0\)

Even-order derivatives alternate: \(f(0) = 1\), \(f''(0) = -1\), \(f^{(4)}(0) = 1\), \(f^{(6)}(0) = -1\), \(\ldots\)

Step 4: Apply Maclaurin series formula

\(\cos x = \sum_{n=0}^{\infty} \frac{f^{(n)}(0)}{n!}x^n\)

Only even terms contribute: \(\cos x = \sum_{n=0}^{\infty} \frac{f^{(2n)}(0)}{(2n)!}x^{2n}\)

Step 5: Determine the coefficient pattern

For even derivatives: \(f^{(2n)}(0) = (-1)^n\)

So: \(\cos x = \sum_{n=0}^{\infty} \frac{(-1)^n}{(2n)!}x^{2n}\)

\(\cos x = \sum_{n=0}^{\infty} \frac{(-1)^n x^{2n}}{(2n)!}\)
Final answer:

\(\cos x = \sum_{n=0}^{\infty} \frac{(-1)^n x^{2n}}{(2n)!} = 1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \frac{x^6}{6!} + \cdots\)

Applied rules:

• Trigonometric Derivatives: Cyclic pattern of sine and cosine derivatives

• Even/Odd Pattern: Only even powers appear in cosine series

• Alternating Signs: Coefficients follow \((-1)^n\) pattern

3 Taylor Series Centered at a ≠ 0
Exercise 3
Find the Taylor series for \(f(x) = e^x\) centered at \(a = 1\)
Definition:

Taylor Series: \(\sum_{n=0}^{\infty} \frac{f^{(n)}(a)}{n!}(x-a)^n\)

Centered at a: Uses \((x-a)^n\) terms instead of \(x^n\) terms

Function
\(f(x) = e^x\)
Center
\(a = 1\)
Step 1: Find all derivatives

As before: \(f^{(n)}(x) = e^x\) for all \(n \geq 0\)

Step 2: Evaluate derivatives at a = 1

\(f(1) = e^1 = e\)

\(f'(1) = e^1 = e\)

\(f''(1) = e^1 = e\)

\(f'''(1) = e^1 = e\)

In general: \(f^{(n)}(1) = e\) for all \(n \geq 0\)

Step 3: Apply Taylor series formula

\(e^x = \sum_{n=0}^{\infty} \frac{f^{(n)}(1)}{n!}(x-1)^n = \sum_{n=0}^{\infty} \frac{e}{n!}(x-1)^n\)

Step 4: Factor out the constant e

\(e^x = e \sum_{n=0}^{\infty} \frac{(x-1)^n}{n!}\)

Step 5: Write out the series

\(e^x = e\left[1 + (x-1) + \frac{(x-1)^2}{2!} + \frac{(x-1)^3}{3!} + \frac{(x-1)^4}{4!} + \cdots\right]\)

\(e^x = e \sum_{n=0}^{\infty} \frac{(x-1)^n}{n!}\)
Final answer:

\(e^x = e \sum_{n=0}^{\infty} \frac{(x-1)^n}{n!} = e\left[1 + (x-1) + \frac{(x-1)^2}{2!} + \frac{(x-1)^3}{3!} + \cdots\right]\)

Applied rules:

• Taylor Formula: \(\sum_{n=0}^{\infty} \frac{f^{(n)}(a)}{n!}(x-a)^n\)

• Constant Factor: Can factor out constants from series

• Centered Series: Uses \((x-a)\) instead of \(x\) as the variable

Taylor and Maclaurin Series Fundamentals
\(f(x) = \sum_{n=0}^{\infty} \frac{f^{(n)}(a)}{n!}(x-a)^n\)
Taylor Series
Maclaurin
\(f(x) = \sum \frac{f^{(n)}(0)}{n!}x^n\)
Center: a=0
Taylor
\(f(x) = \sum \frac{f^{(n)}(a)}{n!}(x-a)^n\)
Center: x=a
Basic Series
\(e^x = \sum \frac{x^n}{n!}\)
All x
Key definitions:

Taylor Series: Infinite series representing a function around point \(a\): \(\sum_{n=0}^{\infty} \frac{f^{(n)}(a)}{n!}(x-a)^n\)

Maclaurin Series: Taylor series centered at \(a = 0\): \(\sum_{n=0}^{\infty} \frac{f^{(n)}(0)}{n!}x^n\)

n-th Derivative: \(f^{(n)}(x)\) represents the n-th derivative of function \(f(x)\)

Factorial: \(n! = n \times (n-1) \times (n-2) \times \cdots \times 1\), with \(0! = 1\)

Complete methodology:
  1. Identify the function: Determine if you need Taylor (a≠0) or Maclaurin (a=0)
  2. Compute derivatives: Find \(f^{(n)}(x)\) for several values of \(n\)
  3. Find pattern: Look for repeating patterns in derivatives
  4. Evaluate at center: Calculate \(f^{(n)}(a)\) for each derivative
  5. Apply formula: Use Taylor/Maclaurin series formula
  6. Simplify: Factor out constants and combine like terms
Tip 1: For functions like eˣ, sin x, cos x, derivatives repeat in cycles.
Tip 2: Odd functions (like sin x) only have odd-powered terms in their Maclaurin series.
Tip 3: Even functions (like cos x) only have even-powered terms in their Maclaurin series.
Tip 4: Always compute at least 4-5 derivatives to identify the pattern.
Tip 5: Look for zeros in the derivative pattern to eliminate terms.
Common errors: Forgetting to evaluate derivatives at the center point, miscounting factorials, missing the alternating signs.
Convergence properties: Most elementary functions have positive radius of convergence around their center.
Essential Formulas:

• Taylor Series: \(f(x) = \sum_{n=0}^{\infty} \frac{f^{(n)}(a)}{n!}(x-a)^n\)

• Maclaurin Series: \(f(x) = \sum_{n=0}^{\infty} \frac{f^{(n)}(0)}{n!}x^n\)

• Exponential: \(e^x = \sum_{n=0}^{\infty} \frac{x^n}{n!}\)

• Sine: \(\sin x = \sum_{n=0}^{\infty} \frac{(-1)^n x^{2n+1}}{(2n+1)!}\)

• Cosine: \(\cos x = \sum_{n=0}^{\infty} \frac{(-1)^n x^{2n}}{(2n)!}\)

Exercise with Visualization: Series Convergence
Exercise 6: Partial Sums
Compare function approximations using partial sums:
\(f_1(x) = e^x\) vs \(\sum_{n=0}^{N} \frac{x^n}{n!}\)
\(f_2(x) = \cos x\) vs \(\sum_{n=0}^{N} \frac{(-1)^n x^{2n}}{(2n)!}\)
\(f_3(x) = \sin x\) vs \(\sum_{n=0}^{N} \frac{(-1)^n x^{2n+1}}{(2n+1)!}\)

Analysis: The chart shows how partial sums approximate the actual functions.

  • \(f_1(x) = e^x\): Fast convergence due to factorial denominators
  • \(f_2(x) = \cos x\): Alternating series with even powers
  • \(f_3(x) = \sin x\): Alternating series with odd powers
Solution: Exercises 4 to 5
4 Maclaurin Series for sin(x)
Exercise 4
Find the Maclaurin series for:
\(f(x) = \sin x\)
Definition:

Trigonometric Derivatives: \(\frac{d}{dx}[\sin x] = \cos x\), \(\frac{d}{dx}[\cos x] = -\sin x\)

Odd Function Property: \(\sin(-x) = -\sin(x)\), so only odd powers appear

Function
\(f(x) = \sin x\)
Derivative Pattern
cycle: sin→cos→-sin→-cos→sin
Step 1: Find the pattern of derivatives

\(f(x) = \sin x\)

\(f'(x) = \cos x\)

\(f''(x) = -\sin x\)

\(f'''(x) = -\cos x\)

\(f^{(4)}(x) = \sin x\) (back to original)

Step 2: Evaluate derivatives at x = 0

\(f(0) = \sin 0 = 0\)

\(f'(0) = \cos 0 = 1\)

\(f''(0) = -\sin 0 = 0\)

\(f'''(0) = -\cos 0 = -1\)

\(f^{(4)}(0) = \sin 0 = 0\)

\(f^{(5)}(0) = \cos 0 = 1\)

Step 3: Notice the pattern

Even-order derivatives at x = 0 are 0: \(f(0) = f''(0) = f^{(4)}(0) = \cdots = 0\)

Odd-order derivatives alternate: \(f'(0) = 1\), \(f'''(0) = -1\), \(f^{(5)}(0) = 1\), \(\ldots\)

Step 4: Apply Maclaurin series formula

\(\sin x = \sum_{n=0}^{\infty} \frac{f^{(n)}(0)}{n!}x^n\)

Only odd terms contribute: \(\sin x = \sum_{n=0}^{\infty} \frac{f^{(2n+1)}(0)}{(2n+1)!}x^{2n+1}\)

Step 5: Determine the coefficient pattern

For odd derivatives: \(f^{(2n+1)}(0) = (-1)^n\)

So: \(\sin x = \sum_{n=0}^{\infty} \frac{(-1)^n}{(2n+1)!}x^{2n+1}\)

\(\sin x = \sum_{n=0}^{\infty} \frac{(-1)^n x^{2n+1}}{(2n+1)!}\)
Final answer:

\(\sin x = \sum_{n=0}^{\infty} \frac{(-1)^n x^{2n+1}}{(2n+1)!} = x - \frac{x^3}{3!} + \frac{x^5}{5!} - \frac{x^7}{7!} + \cdots\)

Applied rules:

• Trigonometric Derivatives: Cyclic pattern of sine and cosine derivatives

• Odd Function: Only odd powers appear in sine series

• Alternating Signs: Coefficients follow \((-1)^n\) pattern

5 Higher Order Polynomial Example
Exercise 5
Find the Taylor series for \(f(x) = x^3 - 2x^2 + x + 5\) centered at \(a = 2\)
Definition:

Polynomial Functions: Have finite Taylor series that equal the original function

Finite Series: Only finitely many non-zero terms in the expansion

Function
\(f(x) = x^3 - 2x^2 + x + 5\)
Center
\(a = 2\)
Step 1: Find all derivatives

\(f(x) = x^3 - 2x^2 + x + 5\)

\(f'(x) = 3x^2 - 4x + 1\)

\(f''(x) = 6x - 4\)

\(f'''(x) = 6\)

\(f^{(4)}(x) = 0\)

All higher derivatives are 0

Step 2: Evaluate derivatives at a = 2

\(f(2) = 8 - 8 + 2 + 5 = 7\)

\(f'(2) = 12 - 8 + 1 = 5\)

\(f''(2) = 12 - 4 = 8\)

\(f'''(2) = 6\)

\(f^{(4)}(2) = 0\)

All higher derivatives at x = 2 are 0

Step 3: Apply Taylor series formula

\(f(x) = \sum_{n=0}^{\infty} \frac{f^{(n)}(2)}{n!}(x-2)^n\)

\(= \frac{f(2)}{0!}(x-2)^0 + \frac{f'(2)}{1!}(x-2)^1 + \frac{f''(2)}{2!}(x-2)^2 + \frac{f'''(2)}{3!}(x-2)^3 + \cdots\)

Step 4: Substitute the values

\(f(x) = \frac{7}{1}(x-2)^0 + \frac{5}{1}(x-2)^1 + \frac{8}{2}(x-2)^2 + \frac{6}{6}(x-2)^3 + 0 + 0 + \cdots\)

\(= 7 + 5(x-2) + 4(x-2)^2 + (x-2)^3\)

Step 5: Verify the result

Expanding: \(7 + 5(x-2) + 4(x-2)^2 + (x-2)^3\)

\(= 7 + 5x - 10 + 4(x^2 - 4x + 4) + (x^3 - 6x^2 + 12x - 8)\)

\(= 7 + 5x - 10 + 4x^2 - 16x + 16 + x^3 - 6x^2 + 12x - 8\)

\(= x^3 - 2x^2 + x + 5\) ✓

\(f(x) = 7 + 5(x-2) + 4(x-2)^2 + (x-2)^3\)
Final answer:

\(x^3 - 2x^2 + x + 5 = 7 + 5(x-2) + 4(x-2)^2 + (x-2)^3\)

Applied rules:

• Polynomial Property: Taylor series of degree-n polynomial has at most n+1 terms

• Higher Derivatives: Derivatives beyond the polynomial degree are zero

• Exact Representation: Polynomial equals its Taylor series everywhere

Comprehensive Theory: Taylor and Maclaurin Series
\(f(x) = \sum_{n=0}^{\infty} \frac{f^{(n)}(a)}{n!}(x-a)^n\)
Taylor Series
Key definitions:

Taylor Series: Infinite series representation of a function around point \(a\): \(\sum_{n=0}^{\infty} \frac{f^{(n)}(a)}{n!}(x-a)^n\)

Maclaurin Series: Taylor series centered at \(a = 0\): \(\sum_{n=0}^{\infty} \frac{f^{(n)}(0)}{n!}x^n\)

Convergence: Series converges to the function within its radius of convergence

Remainder Term: \(R_n(x) = f(x) - T_n(x)\) where \(T_n(x)\) is the n-th degree Taylor polynomial

Complete methodology:
  1. Function Analysis: Determine smoothness and center point
  2. Derivative Computation: Calculate successive derivatives
  3. Pattern Recognition: Identify repeating patterns or zeros
  4. Evaluation: Substitute center value into each derivative
  5. Series Construction: Assemble the Taylor/Maclaurin series
  6. Convergence Check: Determine radius of convergence
Tip 1: For periodic functions, look for cyclic derivative patterns.
Tip 2: Odd functions have only odd powers in Maclaurin series, even functions have only even powers.
Tip 3: For polynomials, the Taylor series terminates after finitely many terms.
Tip 4: Always verify your series by checking a few terms or substituting a value.
Tip 5: Remember that factorials grow very quickly, making series converge rapidly.
Common errors: Forgetting to evaluate derivatives at the center point, miscounting factorials, not recognizing zero terms in the pattern.
Applications: Function approximation, numerical calculations, solving differential equations, physics applications.
Essential Formulas:

• Taylor Series: \(f(x) = \sum_{n=0}^{\infty} \frac{f^{(n)}(a)}{n!}(x-a)^n\)

• Maclaurin Series: \(f(x) = \sum_{n=0}^{\infty} \frac{f^{(n)}(0)}{n!}x^n\)

• Exponential: \(e^x = \sum_{n=0}^{\infty} \frac{x^n}{n!}\), radius of convergence: \(\infty\)

• Sine: \(\sin x = \sum_{n=0}^{\infty} \frac{(-1)^n x^{2n+1}}{(2n+1)!}\), radius of convergence: \(\infty\)

• Cosine: \(\cos x = \sum_{n=0}^{\infty} \frac{(-1)^n x^{2n}}{(2n)!}\), radius of convergence: \(\infty\)

Exercise with Visualization: Series Convergence
Exercise 6: Partial Sums
Compare function approximations using partial sums:
\(f_1(x) = e^x\) vs \(\sum_{n=0}^{N} \frac{x^n}{n!}\)
\(f_2(x) = \cos x\) vs \(\sum_{n=0}^{N} \frac{(-1)^n x^{2n}}{(2n)!}\)
\(f_3(x) = \sin x\) vs \(\sum_{n=0}^{N} \frac{(-1)^n x^{2n+1}}{(2n+1)!}\)

Analysis: The chart shows how partial sums approximate the actual functions.

  • \(f_1(x) = e^x\): Fast convergence due to factorial denominators
  • \(f_2(x) = \cos x\): Alternating series with even powers
  • \(f_3(x) = \sin x\): Alternating series with odd powers

Questions & Answers

Question: Why do some functions like eˣ have infinite radius of convergence while others like 1/(1-x) have finite radius? What determines this?

Answer: The radius of convergence is determined by the location of singularities (points where the function is undefined or behaves badly) in the complex plane:

  • Entire functions: Like \(e^x\), \(\sin x\), \(\cos x\) have no singularities anywhere in the complex plane, so they have infinite radius of convergence.
  • Functions with poles: Like \(\frac{1}{1-x}\) has a pole at \(x = 1\), so the radius of convergence around \(x = 0\) is 1.
  • Distance to nearest singularity: The radius of convergence equals the distance from the center to the nearest singularity.

For \(\frac{1}{1-x}\) centered at 0, the nearest singularity is at \(x = 1\), so \(R = |1-0| = 1\). For \(e^x\) centered anywhere, there are no singularities, so \(R = \infty\).

Question: How do I know when to stop computing derivatives? I feel like I'm computing forever!

Answer: Here are strategies to know when to stop:

  • Look for patterns: After 4-5 derivatives, check if they cycle or repeat.
  • Check for zeros: If derivatives become zero, note the order.
  • Trigonometric functions: Cycle every 4 derivatives.
  • Polynomials: Stop when you reach the degree + 1 (higher derivatives are zero).
  • Exponential functions: Usually no need to compute beyond the first few.

For \(\sin x\), after 4 derivatives you return to \(\sin x\), so you have the pattern. For polynomials of degree \(n\), derivatives beyond order \(n\) are zero. For \(e^x\), all derivatives are the same.

Question: Why is the Maclaurin series so important? Why not always use Taylor series centered at any point?

Answer: Maclaurin series (centered at 0) are special for several reasons:

  1. Simplicity: The formulas are cleaner with \(x^n\) instead of \((x-a)^n\).
  2. Common functions: Many important functions have elegant Maclaurin series: \(e^x\), \(\sin x\), \(\cos x\), etc.
  3. Computational efficiency: Evaluating at 0 often simplifies calculations.
  4. Physical applications: Many problems are naturally centered at 0.

However, Taylor series around other points are crucial when we want to approximate functions near specific values or when the function has a singularity at 0. For example, \(\ln x\) has no Maclaurin series (undefined at 0) but has Taylor series around other points like \(x = 1\).