Ps3, Ps4 - Maclaurin series and their validity

Ps3, Ps4 - Maclaurin series and their validity

Build a function's expansion from its derivatives at zero. You will find initial terms and a general term, use a short polynomial for a nearby numerical value, and distinguish a function's domain from the values where its Maclaurin series represents it.

Derivatives determine the coefficients

Can information at just x=0x=0 predict e0.06e^{0.06}?

For f(x)=e3xf(x)=e^{3x}, the value and first three derivatives at zero are 1,3,9,271, 3, 9, 27. Those four numbers will produce a cubic polynomial that estimates f(0.02)=e0.06f(0.02)=e^{0.06}. The remarkable idea is that derivatives at one point can encode a function throughout an interval, sometimes throughout the whole real line.

You already know

The derivative of eaxe^{ax} is aeaxae^{ax}, and the chain rule introduces the inner derivative. Factorials satisfy r!=r(r−1)⋯1r!=r(r-1)\cdots1, with 0!=10!=1.

Suppose an expansion begins c0+c1x+c2x2+c3x3+⋯c_0+c_1x+c_2x^2+c_3x^3+\cdots. At zero, the function gives c0c_0, its first derivative gives c1c_1, its second gives 2c22c_2, and its third gives 6c36c_3. Division by the factorial reverses those multipliers.

Maclaurin series

When a function is represented by its Maclaurin series,

f(x)=f(0)+f′(0)x+f′′(0)2!x2+⋯+f(r)(0)r!xr+⋯f(x)=f(0)+f'(0)x+\frac{f''(0)}{2!}x^2+\cdots+ \frac{f^{(r)}(0)}{r!}x^r+\cdots

The coefficient of xrx^r is f(r)(0)/r!f^{(r)}(0)/r!. Equality is valid only where this infinite series converges to the function. A finite truncation is generally an approximation.

In the formula booklet.

Substitute derivative values visibly. A list of derivatives is useful working, but is not yet an expansion.

Worked example 1: a cubic from four derivative values

Question. Find the first four terms of the Maclaurin series for e3xe^{3x}. Hence approximate e0.06e^{0.06}.

Plan. Differentiate three times, evaluate at zero, divide by the factorials, and use x=0.02x=0.02.

f(r)(x)=3re3x(r=0,1,2,3)differentiate repeatedlyf(0),f′(0),f′′(0),f′′′(0)=1,3,9,27e0=1e3x=1+3x+92!x2+273!x3+⋯Maclaurin formula=1+3x+92x2+92x3+⋯simplify coefficientse0.06≈1+0.06+0.0018+0.000036=1.061836x=0.02\begin{aligned} f^{(r)}(x)&=3^re^{3x}\quad(r=0,1,2,3) && \text{differentiate repeatedly} \\ f(0),f'(0),f''(0),f'''(0)&=1,3,9,27 && e^0=1 \\ e^{3x}&=1+3x+\frac9{2!}x^2+\frac{27}{3!}x^3+\cdots && \text{Maclaurin formula} \\ &=1+3x+\frac92x^2+\frac92x^3+\cdots && \text{simplify coefficients} \\ e^{0.06}&\approx1+0.06+0.0018+0.000036=1.061836 && x=0.02 \end{aligned}

Why this step? The desired exponent is 3x=0.063x=0.06, so substitute x=0.02x=0.02, not 0.060.06.

Answer. The four terms are 1+3x+92x2+92x31+3x+\frac92x^2+\frac92x^3; the approximation is 1.0618361.061836.

Check. A calculator gives e0.06=1.061836546…e^{0.06}=1.061836546\ldots, close to the polynomial value. This exponential series is valid for every real xx.

Change only the exponent's sign. Odd-powered coefficients change sign; even-powered coefficients do not.

Worked example 2: a negative inner coefficient

Question. Find the first four terms for e−3xe^{-3x}. Hence approximate e−0.06e^{-0.06}.

Plan. Use the signed derivative values at zero and again substitute x=0.02x=0.02.

f(r)(x)=(−3)re−3xchain rule each timef(0),f′(0),f′′(0),f′′′(0)=1,−3,9,−27evaluate at zeroe−3x=1−3x+92x2−92x3+⋯divide by factorialse−0.06≈1−0.06+0.0018−0.000036=0.941764x=0.02\begin{aligned} f^{(r)}(x)&=(-3)^re^{-3x} && \text{chain rule each time} \\ f(0),f'(0),f''(0),f'''(0)&=1,-3,9,-27 && \text{evaluate at zero} \\ e^{-3x}&=1-3x+\frac92x^2-\frac92x^3+\cdots && \text{divide by factorials} \\ e^{-0.06}&\approx1-0.06+0.0018-0.000036=0.941764 && x=0.02 \end{aligned}

Why this step? The cube of −3-3 is negative, while its square is positive; the sign belongs inside the power.

Answer. 1−3x+92x2−92x31-3x+\frac92x^2-\frac92x^3, giving 0.9417640.941764.

Check. e−0.06=0.941764533…e^{-0.06}=0.941764533\ldots. The expansion is valid for all real xx.

The function's value at zero supplies a constant term, even when the requested expression contains no visible constant at first glance.

Watch out

Wrong: use f′′(0)x2f''(0)x^2 as the quadratic term. Right: use f′′(0)x2/2!f''(0)x^2/2!. Likewise, the cubic coefficient is divided by 3!=63!=6.

Change the exponent coefficient and choose the substitution from the exponent, just as before.

Finding and using a general term

An infinite expansion needs a rule for every coefficient, not just several correct initial terms.

For g(x)=ln⁡(1+ax)g(x)=\ln(1+ax), where a≠0a\ne0 and 1+ax>01+ax>0,

g′(x)=a1+ax,g′′(x)=−a2(1+ax)2,g′′′(x)=2a3(1+ax)3g'(x)=\frac a{1+ax},\quad g''(x)=\frac{-a^2}{(1+ax)^2},\quad g'''(x)=\frac{2a^3}{(1+ax)^3}

For integer r≥1r\ge1, the pattern is

g(r)(x)=(−1)r−1(r−1)!ar(1+ax)rg^{(r)}(x)=\frac{(-1)^{r-1}(r-1)!a^r}{(1+ax)^r}

Here is why the pattern continues: differentiation multiplies by −ra-ra and raises the denominator power by one. This changes the sign, replaces (r−1)!(r-1)! by r!r!, and replaces ara^r by ar+1a^{r+1}, giving exactly the next case. The first derivative starts the argument.

This derivative formula is not printed in the booklet: derive or establish it when needed. The Maclaurin coefficient then simplifies using (r−1)!/r!=1/r(r-1)!/r!=1/r.

Worked example 3: an infinite logarithm expansion

Question. Use the general derivative to obtain the Maclaurin series for ln⁡(1+2x)\ln(1+2x), including its general term.

Plan. Evaluate the general derivative at zero, divide by r!r!, and include the constant value separately.

g(0)=ln⁡1=0constant termg(r)(0)=(−1)r−1(r−1)!2rgeneral derivative at zerog(r)(0)r!xr=(−1)r−12rxrrcancel factorialsln⁡(1+2x)=∑r=1∞(−1)r−1(2x)rrall terms included=2x−2x2+83x3−⋯+(−1)r−1(2x)rr+⋯expand initial terms\begin{aligned} g(0)&=\ln1=0 && \text{constant term} \\ g^{(r)}(0)&=(-1)^{r-1}(r-1)!2^r && \text{general derivative at zero} \\ \frac{g^{(r)}(0)}{r!}x^r &=\frac{(-1)^{r-1}2^r x^r}{r} && \text{cancel factorials} \\ \ln(1+2x)&=\sum_{r=1}^{\infty}\frac{(-1)^{r-1}(2x)^r}{r} && \text{all terms included} \\ &=2x-2x^2+\frac83x^3-\cdots+ \frac{(-1)^{r-1}(2x)^r}{r}+\cdots && \text{expand initial terms} \end{aligned}

Why this step? g(0)=0g(0)=0 explains why there is no constant term. The upper limit ∞\infty, or a final ellipsis, shows that the general term is not the last term.

Answer. The displayed infinite series, valid for −12<x≤12-\frac12<x\le\frac12.

Check. At r=3r=3, the coefficient is 23/3=8/32^3/3=8/3, agreeing with g′′′(0)/3!=16/6g'''(0)/3!=16/6.

Change only 2x2x to −2x-2x. The sign from the input now combines with the alternating coefficient.

Worked example 4: every term becomes negative

Question. Obtain the Maclaurin series for ln⁡(1−2x)\ln(1-2x) from the general derivative, including its general term.

Plan. Set a=−2a=-2, simplify the signs, and retain the infinite summation.

g(0)=0constant termg(r)(0)=(−1)r−1(r−1)!(−2)ra=−2=−2r(r−1)!(−1)2r−1=−1g(r)(0)r!xr=−(2x)rrcancel factorialsln⁡(1−2x)=−∑r=1∞(2x)rrinfinite series=−2x−2x2−83x3−⋯initial terms\begin{aligned} g(0)&=0 && \text{constant term} \\ g^{(r)}(0)&=(-1)^{r-1}(r-1)!(-2)^r && a=-2 \\ &=-2^r(r-1)! && (-1)^{2r-1}=-1 \\ \frac{g^{(r)}(0)}{r!}x^r&=-\frac{(2x)^r}{r} && \text{cancel factorials} \\ \ln(1-2x)&=-\sum_{r=1}^{\infty}\frac{(2x)^r}{r} && \text{infinite series} \\ &=-2x-2x^2-\frac83x^3-\cdots && \text{initial terms} \end{aligned}

Why this step? There are two sign sources: the alternating derivative and the negative inner coefficient. Together they make every coefficient negative.

Answer. −∑r=1∞(2x)r/r-\sum_{r=1}^{\infty}(2x)^r/r, valid for −12≤x<12-\frac12\le x<\frac12.

Check. g′′(0)=−4g''(0)=-4, so the quadratic coefficient is −4/2!=−2-4/2!=-2.

The logarithm series itself is in the formula booklet. The derivative-based arguments establish it from the general Maclaurin formula, which matters when a question asks “hence prove”.

Exam tip

To establish a whole series from a general derivative, show the coefficient for arbitrary rr, include f(0)f(0), and make the infinite continuation explicit. A few initial terms do not establish every coefficient.

Keep the negative inner sign and change its numerical coefficient.

Watch out

Wrong: g(r)(0)xr/r!=−2rxrg^{(r)}(0)x^r/r!=-2^r x^r for g(x)=ln⁡(1−2x)g(x)=\ln(1-2x). The factorials leave a divisor: (r−1)!/r!=1/r(r-1)!/r!=1/r. The correct general term is −(2x)r/r-(2x)^r/r.

Cancel the factorials before writing the next infinite sum.

Where an expansion is valid

A function may exist where its Maclaurin series fails. Convergence is a condition on the infinite expansion, not just on the function's formula.

For example, 1/(1−u)1/(1-u) exists at u=1.1u=1.1, but 1+u+u2+⋯1+u+u^2+\cdots grows without bound there. At u=0.5u=0.5, its partial sums approach 22.

[DIAGRAM: asset_name: A function can exist beyond its series validity; asset_slug: series_validity_partial_sums; caption: Geometric partial sums converge at u=0.5 but fail at u=1.1; description: Two panels plot the sums from power 0 through power N of u to that power. At u=0.5, the values approach the function value 2. At u=1.1, the positive sums grow while the function value 1 over 1-u is minus 10. The panels distinguish the existing function from the divergent series.]
Geometric partial sums converge at u=0.5 but fail at u=1.1

Logarithm validity after substitution

The booklet gives

ln⁡(1+u)=u−u22+u33−⋯for −1<u≤1\ln(1+u)=u-\frac{u^2}{2}+\frac{u^3}{3}-\cdots \qquad\text{for }-1<u\le1

After a substitution u=g(x)u=g(x), impose −1<g(x)≤1-1<g(x)\le1. The endpoint u=1u=1 is included; u=−1u=-1 is excluded.

In the formula booklet.

At u=1u=1, the alternating series has sum ln⁡2\ln2. At u=−1u=-1, the logarithm itself is undefined. Use the stated range; a proof of convergence is not needed to apply it.

Worked example 5: a linear substitution's range

Question. State the set of xx-values for which the Maclaurin expansion obtained by substituting u=3xu=3x into the logarithm series represents ln⁡(1+3x)\ln(1+3x).

Plan. Apply the complete logarithm condition to the substituted expression.

−1<3x≤1booklet validity−13<x≤13divide by positive 3\begin{aligned} -1&<3x\le1 && \text{booklet validity} \\ -\frac13&<x\le\frac13 && \text{divide by positive }3 \end{aligned}

Why this step? The condition applies to 3x3x, so using −1<x≤1-1<x\le1 would give the wrong interval.

Answer. −13<x≤13-\frac13<x\le\frac13.

Check. At x=1/3x=1/3, the series is the convergent alternating expansion of ln⁡2\ln2; at x=−1/3x=-1/3, the logarithm is undefined.

Change only the input from 3x3x to 3x23x^2. It is now non-negative, so the lower condition adds no restriction.

Worked example 6: a squared input

Question. State the validity set for the expansion of ln⁡(1+3x2)\ln(1+3x^2) obtained from the logarithm series.

Plan. Impose −1<3x2≤1-1<3x^2\le1 and solve the resulting square inequality.

−1<3x2≤1substituted conditionx2≤133x2≥0−13≤x≤13both square-root bounds\begin{aligned} -1&<3x^2\le1 && \text{substituted condition} \\ x^2&\le\frac13 && 3x^2\ge0 \\ -\frac1{\sqrt3}&\le x\le\frac1{\sqrt3} && \text{both square-root bounds} \end{aligned}

Why this step? Both signs of xx give the same input. At either endpoint the input is 11, so both endpoints are included.

Answer. −1/3≤x≤1/3-1/\sqrt3\le x\le1/\sqrt3.

Check. The function exists for every real xx, since 1+3x2>01+3x^2>0, but its Maclaurin series has this smaller validity set.

The opening approximation e0.06≈1.061836e^{0.06}\approx1.061836 used a function whose series is valid everywhere. A short truncation is still an approximation; convergence of the infinite series does not make a finite polynomial exact.

Watch out

Wrong: all standard series require ∣x∣<1|x|<1. Right: read the specific condition. Exponential and trigonometric series hold for every real input, while the logarithm includes one endpoint and excludes the other.

The final input changes the coefficient inside the square. Keep both endpoint decisions.

Quick Recap

  • The coefficient of xrx^r is f(r)(0)/r!f^{(r)}(0)/r!.
  • Find and simplify a general coefficient when an entire infinite series is required.
  • Include the constant term and an explicit infinite continuation.
  • Apply validity to the substituted expression, retaining the correct endpoints.

Four derivatives at zero give the opening estimate e0.06≈1.061836e^{0.06}\approx1.061836.