Methods for Finding and Using Taylor Series

Known Taylor Series for Common Functions

To find Taylor series efficiently, it is often more practical to utilize known series expansions rather than calculating derivatives manually, which can be laborious for many functions. The following standard Taylor series (Maclaurin series, centered at x=0x=0) are fundamental:

  • Exponential Function:     ex=1+x+x22!+x33!+x44!+e^x = 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \frac{x^4}{4!} + \dots

  • Sine Function:     sin(x)=xx33!+x55!x77!+\sin(x) = x - \frac{x^3}{3!} + \frac{x^5}{5!} - \frac{x^7}{7!} + \dots

  • Cosine Function:     cos(x)=1x22!+x44!x66!+\cos(x) = 1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \frac{x^6}{6!} + \dots

  • Natural Logarithm (Shifted):     ln(1+x)=xx22+x33x44+\ln(1+x) = x - \frac{x^2}{2} + \frac{x^3}{3} - \frac{x^4}{4} + \dots

  • Geometric Series:     11x=n=0xn=1+x+x2+x3+\frac{1}{1-x} = \sum_{n=0}^{\infty} x^n = 1 + x + x^2 + x^3 + \dots

  • Binomial Series:     (1+x)p=1+px+p(p1)2!x2+p(p1)(p2)3!x3+(1+x)^p = 1 + px + \frac{p(p-1)}{2!} x^2 + \frac{p(p-1)(p-2)}{3!} x^3 + \dots

Finding Taylor Series via Substitution

New Taylor series can be derived by substituting a variable or expression into the standard series listed above.

  • Example 1: exe^{-x}

    • Start with ex=1+x+x22!+x33!+e^x = 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \dots

    • Replace xx with x-x:

    • ex=1+(x)+(x)22!+(x)33!+e^{-x} = 1 + (-x) + \frac{(-x)^2}{2!} + \frac{(-x)^3}{3!} + \dots

    • Result: ex=1x+x22!x33!+e^{-x} = 1 - x + \frac{x^2}{2!} - \frac{x^3}{3!} + \dots

  • Example 2: ln(12y)\ln(1-2y)

    • Start with ln(1+x)=xx22+x33x44+\ln(1+x) = x - \frac{x^2}{2} + \frac{x^3}{3} - \frac{x^4}{4} + \dots

    • Substitute x=2yx = -2y:

    • ln(12y)=(2y)(2y)22+(2y)33(2y)44+\ln(1-2y) = (-2y) - \frac{(-2y)^2}{2} + \frac{(-2y)^3}{3} - \frac{(-2y)^4}{4} + \dots

    • Result: ln(12y)=2y2y283y34y4\ln(1-2y) = -2y - 2y^2 - \frac{8}{3}y^3 - 4y^4 - \dots

  • Example 3: zez2z e^{-z^2}

    • First, find the series for ez2e^{-z^2} by substituting z2-z^2 into the exe^x series:

    • ez2=1+(z2)+(z2)22!+(z2)33!+=1z2+z42!z63!+e^{-z^2} = 1 + (-z^2) + \frac{(-z^2)^2}{2!} + \frac{(-z^2)^3}{3!} + \dots = 1 - z^2 + \frac{z^4}{2!} - \frac{z^6}{3!} + \dots

    • Multiply the entire series by zz:

    • zez2=z(1z2+z42z66+)z e^{-z^2} = z(1 - z^2 + \frac{z^4}{2} - \frac{z^6}{6} + \dots)

    • Result: zz3+z52z76+z - z^3 + \frac{z^5}{2} - \frac{z^7}{6} + \dots

  • Example 4: tsin(3t)t \sin(3t)

    • Substitute x=3tx = 3t into sin(x)\sin(x).

    • sin(3t)=(3t)(3t)33!+(3t)55!(3t)77!+=3t27t36+243t51202187t75040+\sin(3t) = (3t) - \frac{(3t)^3}{3!} + \frac{(3t)^5}{5!} - \frac{(3t)^7}{7!} + \dots = 3t - \frac{27t^3}{6} + \frac{243t^5}{120} - \frac{2187t^7}{5040} + \dots

    • Simplify and multiply by tt:

    • tsin(3t)=3t292t4+8140t6243560t8+t \sin(3t) = 3t^2 - \frac{9}{2}t^4 + \frac{81}{40}t^6 - \frac{243}{560}t^8 + \dots

  • Example 5: 12x\sqrt{1-2x}

    • This uses the Binomial series with p=12p = \frac{1}{2} and substituting 2x-2x for xx.

    • (12x)1/2=1+(12)(2x)+(12)(121)2!(2x)2+(12)(121)(122)3!(2x)3+(1-2x)^{1/2} = 1 + (\frac{1}{2})(-2x) + \frac{(\frac{1}{2})(\frac{1}{2}-1)}{2!}(-2x)^2 + \frac{(\frac{1}{2})(\frac{1}{2}-1)(\frac{1}{2}-2)}{3!}(-2x)^3 + \dots

    • =1x+(12)(12)2(4x2)+(12)(12)(32)6(8x3)+= 1 - x + \frac{(\frac{1}{2})(-\frac{1}{2})}{2}(4x^2) + \frac{(\frac{1}{2})(-\frac{1}{2})(-\frac{3}{2})}{6}(-8x^3) + \dots

    • Result: 1x12x212x31 - x - \frac{1}{2}x^2 - \frac{1}{2}x^3 - \dots

  • Example 6: tsin(t2)t3t7\frac{t \sin(t^2) - t^3}{t^7}

    • Substitute x=t2x = t^2 into sin(x)\sin(x): sin(t2)=t2t63!+t105!\sin(t^2) = t^2 - \frac{t^6}{3!} + \frac{t^{10}}{5!} - \dots

    • Multiply by tt: tsin(t2)=t3t73!+t115!t \sin(t^2) = t^3 - \frac{t^7}{3!} + \frac{t^{11}}{5!} - \dots

    • Subtract t3t^3: tsin(t2)t3=t73!+t115!t \sin(t^2) - t^3 = -\frac{t^7}{3!} + \frac{t^{11}}{5!} - \dots

    • Divide by t7t^7:

    • Result: 13!+t45!t87!+=16+1120t4-\frac{1}{3!} + \frac{t^4}{5!} - \frac{t^{8}}{7!} + \dots = -\frac{1}{6} + \frac{1}{120}t^4 - \dots

  • Example 7: Hyperbolic Sine (Alternative Construction)

    • sinh(x)=exex2\sinh(x) = \frac{e^x - e^{-x}}{2}

    • Substitute expansions for exe^x and exe^{-x}:

    • sinh(x)=(1+x+x22!+x33!+)(1x+x22!x33!+)2\sinh(x) = \frac{(1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \dots) - (1 - x + \frac{x^2}{2!} - \frac{x^3}{3!} + \dots)}{2}

    • sinh(x)=2x+2x33!+2x55!+2\sinh(x) = \frac{2x + \frac{2x^3}{3!} + \frac{2x^5}{5!} + \dots}{2}

    • Result: sinh(x)=x+x33!+x55!+\sinh(x) = x + \frac{x^3}{3!} + \frac{x^5}{5!} + \dots

Radius of Convergence Affected by Substitution

When substituting an expression into a known Taylor series, the radius of convergence (RR) of the original series must be adjusted based on the substitute.

  • Example: Series for 11+x2\frac{1}{1+x^2}

    • Function: 11(x2)\frac{1}{1 - (-x^2)}. Using geometric series 11H\frac{1}{1-H} which converges if |H| < 1.

    • Substitute H=x2H = -x^2, so convergence is |-x^2| < 1 \implies |x|^2 < 1 \implies |x| < 1. Thus R=1R=1.

    • Series: 1x2+x4x6+1 - x^2 + x^4 - x^6 + \dots

  • Example: Series for 11+4x2\frac{1}{1+4x^2}

    • Substitute 4x2-4x^2 into the geometric series.

    • Convergence: |-4x^2| < 1 \implies 4|x|^2 < 1 \implies |x|^2 < \frac{1}{4} \implies |x| < \frac{1}{2}.

    • Thus, the new radius of convergence is R=12R = \frac{1}{2}.

New Series via Differentiation and Integration

Just as we can use substitution, we can differentiate or integrate existing series term-by-term to find series for related functions.

  • Finding the Taylor Series for arctan(x)\text{arctan}(x):

    1. Observe that ddx(arctan(x))=11+x2\frac{d}{dx}(\text{arctan}(x)) = \frac{1}{1+x^2}.

    2. Use the series for 11+x2=1x2+x4x6+\frac{1}{1+x^2} = 1 - x^2 + x^4 - x^6 + \dots

    3. Integrate term-by-term:         arctan(x)=(1x2+x4x6+)dx=C+xx33+x55x77+\text{arctan}(x) = \int (1 - x^2 + x^4 - x^6 + \dots) dx = C + x - \frac{x^3}{3} + \frac{x^5}{5} - \frac{x^7}{7} + \dots

    4. Solve for the constant CC: when x=0x=0, arctan(0)=0\text{arctan}(0) = 0, so 0=C+00 = C + 0, implying C=0C=0.

    5. Final Series: arctan(x)=xx33+x55x77+\text{arctan}(x) = x - \frac{x^3}{3} + \frac{x^5}{5} - \frac{x^7}{7} + \dots

  • Finding the Taylor Series for ln(1x)\ln(1-x) (Hint):

    • Use ddx(ln(1x))=11x\frac{d}{dx}(\ln(1-x)) = \frac{-1}{1-x}.

    • Integrate the negative of the geometric series to find the result.

Function Expansions in Specific Variables

Sometimes functions must be expanded in terms of specific variables by algebraic manipulation to fit standard forms.

  • Example A: Expand 15x\frac{1}{5-x} in terms of xx:

    • Factor out the constant: 15(1x5)=1511(x5)\frac{1}{5(1 - \frac{x}{5})} = \frac{1}{5} \cdot \frac{1}{1 - (\frac{x}{5})}.

    • Apply geometric series for H=x5H = \frac{x}{5}:

    • Result: 15[1+x5+(x5)2+(x5)3+]\frac{1}{5} [1 + \frac{x}{5} + (\frac{x}{5})^2 + (\frac{x}{5})^3 + \dots]

  • Example B: Expand x2+x2\frac{x}{2+x^2} in terms of xx:

    • Manipulate: x12(1(x22))=x211(x22)x \cdot \frac{1}{2(1 - (-\frac{x^2}{2}))} = \frac{x}{2} \cdot \frac{1}{1 - (-\frac{x^2}{2})}.

    • Apply geometric series: x2[1+(x22)+(x22)2+]=x2[1x22+x44]\frac{x}{2} [1 + (-\frac{x^2}{2}) + (-\frac{x^2}{2})^2 + \dots] = \frac{x}{2} [1 - \frac{x^2}{2} + \frac{x^4}{4} - \dots]

    • Result: x2x34+x58\frac{x}{2} - \frac{x^3}{4} + \frac{x^5}{8} - \dots

  • Example C: Expand (2+x)3(2+x)^3 in terms of xx using the Binomial formula:

    • Manipulate: [2(1+x2)]3=8(1+x2)3[2(1 + \frac{x}{2})]^3 = 8(1 + \frac{x}{2})^3.

    • Substitute p=3p=3 and H=x2H=\frac{x}{2} into (1+H)p=1+pH+p(p1)2!H2+p(p1)(p2)3!H3(1+H)^p = 1 + pH + \frac{p(p-1)}{2!}H^2 + \frac{p(p-1)(p-2)}{3!}H^3.

    • 8[1+3(x2)+3(2)2(x2)2+3(2)(1)6(x2)3]=8[1+3x2+3x24+x38]8 [1 + 3(\frac{x}{2}) + \frac{3(2)}{2}(\frac{x}{2})^2 + \frac{3(2)(1)}{6}(\frac{x}{2})^3] = 8 [1 + \frac{3x}{2} + \frac{3x^2}{4} + \frac{x^3}{8}].

    • Result: 8+12x+6x2+x38 + 12x + 6x^2 + x^3.

Ordering and Comparison Near Zero

Taylor series allow us to compare the relative magnitudes of different functions for values of yy near 00 by looking at the leading terms.

Functions to compare:

  1. a=1+sin(y)1+yy36a = 1 + \sin(y) \approx 1 + y - \frac{y^3}{6}

  2. b=ey1+y+y22b = e^y \approx 1 + y + \frac{y^2}{2}

  3. c=112y=(12y)1/2c = \frac{1}{\sqrt{1-2y}} = (1-2y)^{-1/2}. Using Binomial Series with p=1/2p=-1/2 and substitution 2y-2y:     1+(12)(2y)+(12)(32)2!(2y)2=1+y+32y21 + (-\frac{1}{2})(-2y) + \frac{(-\frac{1}{2})(-\frac{3}{2})}{2!}(-2y)^2 = 1 + y + \frac{3}{2}y^2

Comparison Analysis:

  • All three series match up to the linear term (all are 1+y1+y).

  • Function (a) has no quadratic term (0y20y^2), while (b) has 12y2\frac{1}{2}y^2 and (c) has 32y2\frac{3}{2}y^2.

  • Since \frac{3}{2} > \frac{1}{2} > 0, for small positive yy:     Order: 1 + \sin(y) < e^y < \frac{1}{\sqrt{1-2y}}

Applications: Approximations and Graphing

  • Expansion for exexe^x - e^{-x}:

    • Subtracting the two series (as seen in the sinh(x)\sinh(x) derivation above) leaves only odd powers.

    • exex2x+x33+x560+e^x - e^{-x} \approx 2x + \frac{x^3}{3} + \frac{x^5}{60} + \dots (Adjusting for coefficients: 2x33!=x332\frac{x^3}{3!} = \frac{x^3}{3}; 2x5120=x5602\frac{x^5}{120} = \frac{x^5}{60}).

    • Graphing note: Near x=0x=0, the graph of exexe^x - e^{-x} resembles a cubic polynomial, specifically P3(x)=2x+x33P_3(x) = 2x + \frac{x^3}{3}.

  • Approximating Integrals:

    • To find 01ex2dx\int_0^1 e^{x^2} dx, we first expand f(x)=ex2f(x) = e^{x^2}.

    • ex2=1+x2+x42+e^{x^2} = 1 + x^2 + \frac{x^4}{2} + \dots

    • Integrate: 01(1+x2+x42)dx=[x+x33+x510]01\int_0^1 (1 + x^2 + \frac{x^4}{2}) dx = [x + \frac{x^3}{3} + \frac{x^5}{10}]_0^1

    • Evaluate: 1+13+110=1+0.333+0.1=1.4331 + \frac{1}{3} + \frac{1}{10} = 1 + 0.333 + 0.1 = 1.433.

Exercise Solutions

  • Problem 1b: First four terms for ex2e^{x^2} are 1+x2+x42+x661 + x^2 + \frac{x^4}{2} + \frac{x^6}{6}.

  • Problem 1e: First four terms for etcos(t)e^t \cos(t).

    • (1+t+t22+t36+)(1t22+t424)(1 + t + \frac{t^2}{2} + \frac{t^3}{6} + \dots)(1 - \frac{t^2}{2} + \frac{t^4}{24} - \dots)

    • Multiplying and keeping terms up to t4t^4: 1+tt33t461 + t - \frac{t^3}{3} - \frac{t^4}{6}.

  • Problem 2b: Expand r(a+r)2\frac{r}{(a+r)^2} in terms of rr.

    • ra2(1+ra)2=ra2(1+ra)2\frac{r}{a^2(1+\frac{r}{a})^2} = \frac{r}{a^2}(1+\frac{r}{a})^{-2}.

    • Using Binomial series for p=2p=-2: ra2[12(ra)+3(ra)24(ra)3+]\frac{r}{a^2} [1 - 2(\frac{r}{a}) + 3(\frac{r}{a})^2 - 4(\frac{r}{a})^3 + \dots].

  • Problem 3: For g(x)=1x2f(x)g(x) = \frac{1}{x^2} f(\sqrt{x}) with f(x)=n=0(1)nx2n(2n+1)!f(x) = \sum_{n=0}^{\infty} (-1)^n \frac{x^{2n}}{(2n+1)!}.

    • Value for c3c_3 in the expansion of g(x)g(x).

    • c3=111!c_3 = -\frac{1}{11!}.