MathIsimple
Course 8

L'Hospital's Rule and Taylor Series

Section 1: L'Hospital's Rule

Theorem 1.1: L'Hospital's Rule (0/0 form)

If lim⁡x→af(x)=0\lim_{x \to a} f(x) = 0 and lim⁡x→ag(x)=0\lim_{x \to a} g(x) = 0, and lim⁡x→af′(x)g′(x)\lim_{x \to a} \frac{f'(x)}{g'(x)} exists (or is ±∞), then:

lim⁡x→af(x)g(x)=lim⁡x→af′(x)g′(x)\lim_{x \to a} \frac{f(x)}{g(x)} = \lim_{x \to a} \frac{f'(x)}{g'(x)}
Theorem 1.2: L'Hospital's Rule (∞/∞ form)

If lim⁡x→af(x)=±∞\lim_{x \to a} f(x) = \pm\infty and lim⁡x→ag(x)=±∞\lim_{x \to a} g(x) = \pm\infty, and lim⁡x→af′(x)g′(x)\lim_{x \to a} \frac{f'(x)}{g'(x)} exists (or is ±∞), then:

lim⁡x→af(x)g(x)=lim⁡x→af′(x)g′(x)\lim_{x \to a} \frac{f(x)}{g(x)} = \lim_{x \to a} \frac{f'(x)}{g'(x)}
Example 1.1: L'Hospital Application

Evaluate: lim⁡x→0sin⁡xx\lim_{x \to 0} \frac{\sin x}{x}

Solution: This is 0/0 form. Apply L'Hospital:

lim⁡x→0sin⁡xx=lim⁡x→0cos⁡x1=1\lim_{x \to 0} \frac{\sin x}{x} = \lim_{x \to 0} \frac{\cos x}{1} = 1
Example 1.2: Multiple Applications

Evaluate: lim⁡x→0ex−1−xx2\lim_{x \to 0} \frac{e^x - 1 - x}{x^2}

Solution: Apply L'Hospital twice:

lim⁡x→0ex−12x=lim⁡x→0ex2=12\lim_{x \to 0} \frac{e^x - 1}{2x} = \lim_{x \to 0} \frac{e^x}{2} = \frac{1}{2}

Section 2: Taylor's Theorem

Theorem 2.1: Taylor's Theorem with Lagrange Remainder

If ff is n+1n+1 times differentiable on an interval containing x0x_0 and xx, then:

f(x)=∑k=0nf(k)(x0)k!(x−x0)k+Rn(x)f(x) = \sum_{k=0}^{n} \frac{f^{(k)}(x_0)}{k!}(x-x_0)^k + R_n(x)

where the Lagrange remainder is:

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

for some ξ\xi between x0x_0 and xx.

Example 2.1: Maclaurin Series of e^x

Find: Maclaurin series of exe^x

Solution: Since f(k)(0)=e0=1f^{(k)}(0) = e^0 = 1 for all kk:

ex=∑k=0∞xkk!=1+x+x22!+x33!+⋯e^x = \sum_{k=0}^{\infty} \frac{x^k}{k!} = 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \cdots
Example 2.2: Maclaurin Series of sin x

Find: Maclaurin series of sin⁡x\sin x

Solution: The derivatives cycle: sin, cos, -sin, -cos, ...

sin⁡x=x−x33!+x55!−x77!+⋯=∑k=0∞(−1)kx2k+1(2k+1)!\sin x = x - \frac{x^3}{3!} + \frac{x^5}{5!} - \frac{x^7}{7!} + \cdots = \sum_{k=0}^{\infty} (-1)^k \frac{x^{2k+1}}{(2k+1)!}

Section 3: Standard Expansions

Common Maclaurin Series

exe^x:

1+x+x22!+x33!+⋯1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \cdots

sin⁡x\sin x:

x−x33!+x55!−x77!+⋯x - \frac{x^3}{3!} + \frac{x^5}{5!} - \frac{x^7}{7!} + \cdots

cos⁡x\cos x:

1−x22!+x44!−x66!+⋯1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \frac{x^6}{6!} + \cdots

ln⁡(1+x)\ln(1+x):

x−x22+x33−x44+⋯x - \frac{x^2}{2} + \frac{x^3}{3} - \frac{x^4}{4} + \cdots

Section 4: Applications of L'Hospital's Rule

Example 4.1: 0/0 Form

Find: lim⁡x→0sin⁡xx\lim_{x \to 0} \frac{\sin x}{x}

lim⁡x→0sin⁡xx=lim⁡x→0cos⁡x1=1\lim_{x \to 0} \frac{\sin x}{x} = \lim_{x \to 0} \frac{\cos x}{1} = 1

Example 4.2: ∞/∞ Form

Find: lim⁡x→∞xex\lim_{x \to \infty} \frac{x}{e^x}

lim⁡x→∞xex=lim⁡x→∞1ex=0\lim_{x \to \infty} \frac{x}{e^x} = \lim_{x \to \infty} \frac{1}{e^x} = 0

Section 5: Taylor Polynomials

Definition 5.1: Taylor Polynomial

The n-th degree Taylor polynomial of ff at aa is:

Pn(x)=∑k=0nf(k)(a)k!(x−a)kP_n(x) = \sum_{k=0}^n \frac{f^{(k)}(a)}{k!}(x-a)^k
Example 5.1: Taylor Polynomial

The 3rd degree Taylor polynomial of exe^x at 0 is:

P3(x)=1+x+x22+x36P_3(x) = 1 + x + \frac{x^2}{2} + \frac{x^3}{6}

Section 6: Remainder Term

Theorem 6.1: Taylor's Theorem with Remainder

If ff has n+1n+1 derivatives on an interval containing aa, then:

f(x)=Pn(x)+Rn(x)f(x) = P_n(x) + R_n(x)

where Rn(x)=f(n+1)(ξ)(n+1)!(x−a)n+1R_n(x) = \frac{f^{(n+1)}(\xi)}{(n+1)!}(x-a)^{n+1} for some ξ\xi between aa and xx.

Section 7: Convergence of Taylor Series

Theorem 7.1: Convergence Criterion

The Taylor series converges to f(x)f(x) if and only if lim⁡n→∞Rn(x)=0\lim_{n \to \infty} R_n(x) = 0.

Example 7.1: Convergence

The Taylor series for exe^x converges for all xx because Rn(x)→0R_n(x) \to 0 as n→∞n \to \infty.

Work These Ideas by Hand — Then Check Yourself

Practice Quiz: L'Hospital's Rule and Taylor Series
10
Questions
0
Correct
0%
Accuracy
1
Evaluate lim⁡x→0sin⁡xx\lim_{x \to 0} \frac{\sin x}{x} using L'Hospital's rule.
Easy
Not attempted
2
Evaluate lim⁡x→0ex−1−xx2\lim_{x \to 0} \frac{e^x - 1 - x}{x^2}.
Medium
Not attempted
3
What is the Maclaurin series of exe^x up to x3x^3?
Easy
Not attempted
4
The Lagrange remainder for Taylor's theorem is:
Medium
Not attempted
5
Evaluate lim⁡x→0x−sin⁡xx3\lim_{x \to 0} \frac{x - \sin x}{x^3} using Taylor expansion.
Medium
Not attempted
6
For which form can L'Hospital's rule NOT be directly applied?
Easy
Not attempted
7
Evaluate lim⁡x→0+xln⁡x\lim_{x \to 0^+} x \ln x.
Medium
Not attempted
8
Evaluate lim⁡x→01−cos⁡xx2\lim_{x \to 0} \frac{1 - \cos x}{x^2}.
Easy
Not attempted
9
What is the coefficient of x4x^4 in the Maclaurin series of cos⁡x\cos x?
Easy
Not attempted
10
Evaluate lim⁡x→0tan⁡x−xx3\lim_{x \to 0} \frac{\tan x - x}{x^3}.
Medium
Not attempted
Advertisement

Frequently Asked Questions

When can I use L'Hospital's rule?

L'Hospital's rule applies to 0/0 and ∞/∞ indeterminate forms. Both f and g must be differentiable near the limit point, and the limit of f'/g' must exist (or be ±∞).

What is Taylor's theorem?

Taylor's theorem states that if f is n+1 times differentiable, then f(x) = P_n(x) + R_n(x), where P_n is the n-th degree Taylor polynomial and R_n is the remainder term.

What is the difference between Taylor series and Maclaurin series?

A Maclaurin series is a special case of a Taylor series centered at x₀ = 0. Taylor series can be centered at any point x₀.

How do I find the Taylor expansion of a function?

Compute f(x₀), f'(x₀), f''(x₀), ..., f^(n)(x₀), then use the formula: f(x) = Σ [f^(k)(x₀)/k!] (x - x₀)^k.

What is the Lagrange remainder?

The Lagrange remainder is R_n(x) = [f^(n+1)(ξ)/(n+1)!] (x - x₀)^(n+1) for some ξ between x₀ and x. It provides an error bound for the Taylor approximation.