Sonzaschool
Rudi

Sekondari ya Juu · Kidato cha Tano

Advanced Mathematics 1

Taylor’s Series and Maclaurin’s Series

takriban dakika 3 kusoma

Mada za sehemu hiiDifferentiationMada 5

Taylor's and Maclaurin's series

Taylor's series expresses a function f(x)f(x) near a point x=ax = a as an infinite sum of terms involving derivatives of the function at x=ax = a. When a=0a = 0, the series is called Maclaurin's series.

Taylor's theorem

The Taylor series expansion of a function f(x)f(x) about x=ax = a is given by:

f(x)=f(a)+f(a)(xa)+f(a)2!(xa)2+f(a)3!(xa)3+f(4)(a)4!(xa)4+f(x) = f(a) + f'(a)(x - a) + \frac{f''(a)}{2!}(x - a)^2 + \frac{f'''(a)}{3!}(x - a)^3 + \frac{f^{(4)}(a)}{4!}(x - a)^4 + \dots

If x=a+hx = a + h, then h=xah = x - a, and the theorem becomes:

f(a+h)=f(a)+f(a)h+f(a)2!h2+f(a)3!h3+f(4)(a)4!h4+f(a + h) = f(a) + f'(a)h + \frac{f''(a)}{2!}h^2 + \frac{f'''(a)}{3!}h^3 + \frac{f^{(4)}(a)}{4!}h^4 + \dots

Example 1: Expand sin(π3+h)\sin(\frac{\pi}{3} + h) in ascending powers of hh up to the term in h4h^4.

Let f(x)=sinxf(x) = \sin x, so f(π3+h)f(\frac{\pi}{3} + h) is the expansion we seek. We evaluate the function and its derivatives at x=π3x = \frac{\pi}{3}:

  • f(π3)=sin(π3)=32f(\frac{\pi}{3}) = \sin(\frac{\pi}{3}) = \frac{\sqrt{3}}{2}
  • f(x)=cosxf'(x) = \cos x, f(π3)=cos(π3)=12f'(\frac{\pi}{3}) = \cos(\frac{\pi}{3}) = \frac{1}{2}
  • f(x)=sinxf''(x) = -\sin x, f(π3)=sin(π3)=32f''(\frac{\pi}{3}) = -\sin(\frac{\pi}{3}) = -\frac{\sqrt{3}}{2}
  • f(x)=cosxf'''(x) = -\cos x, f(π3)=cos(π3)=12f'''(\frac{\pi}{3}) = -\cos(\frac{\pi}{3}) = -\frac{1}{2}
  • f(4)(x)=sinxf^{(4)}(x) = \sin x, f(4)(π3)=sin(π3)=32f^{(4)}(\frac{\pi}{3}) = \sin(\frac{\pi}{3}) = \frac{\sqrt{3}}{2}

Using Taylor's theorem:

sin(π3+h)=32+12h32h22!12h33!+32h44!+\sin\left(\frac{\pi}{3} + h\right) = \frac{\sqrt{3}}{2} + \frac{1}{2}h - \frac{\sqrt{3}}{2}\frac{h^2}{2!} - \frac{1}{2}\frac{h^3}{3!} + \frac{\sqrt{3}}{2}\frac{h^4}{4!} + \dots

sin(π3+h)=32+12h34h2112h3+348h4+\sin\left(\frac{\pi}{3} + h\right) = \frac{\sqrt{3}}{2} + \frac{1}{2}h - \frac{\sqrt{3}}{4}h^2 - \frac{1}{12}h^3 + \frac{\sqrt{3}}{48}h^4 + \dots

Example 2: Expand cos(π6+h)\cos(\frac{\pi}{6} + h) in ascending powers of hh up to h4h^4.

Let f(x)=cosxf(x) = \cos x. Evaluating at x=π6x = \frac{\pi}{6}:

  • f(π6)=cos(π6)=32f(\frac{\pi}{6}) = \cos(\frac{\pi}{6}) = \frac{\sqrt{3}}{2}
  • f(x)=sinxf'(x) = -\sin x, f(π6)=12f'(\frac{\pi}{6}) = -\frac{1}{2}
  • f(x)=cosxf''(x) = -\cos x, f(π6)=32f''(\frac{\pi}{6}) = -\frac{\sqrt{3}}{2}
  • f(x)=sinxf'''(x) = \sin x, f(π6)=12f'''(\frac{\pi}{6}) = \frac{1}{2}
  • f(4)(x)=cosxf^{(4)}(x) = \cos x, f(4)(π6)=32f^{(4)}(\frac{\pi}{6}) = \frac{\sqrt{3}}{2}

cos(π6+h)=3212h34h2+112h3+348h4+\cos\left(\frac{\pi}{6} + h\right) = \frac{\sqrt{3}}{2} - \frac{1}{2}h - \frac{\sqrt{3}}{4}h^2 + \frac{1}{12}h^3 + \frac{\sqrt{3}}{48}h^4 + \dots

Maclaurin's series

Maclaurin's series is a special case of Taylor's series where a=0a = 0:

f(x)=f(0)+f(0)x+f(0)2!x2+f(0)3!x3+f(4)(0)4!x4+f(x) = f(0) + f'(0)x + \frac{f''(0)}{2!}x^2 + \frac{f'''(0)}{3!}x^3 + \frac{f^{(4)}(0)}{4!}x^4 + \dots

Example 3: Expand ln(1+x)\ln(1 + x) in ascending powers of xx up to x4x^4.

  • f(x)=ln(1+x)f(x) = \ln(1 + x), f(0)=ln(1)=0f(0) = \ln(1) = 0
  • f(x)=11+xf'(x) = \frac{1}{1 + x}, f(0)=1f'(0) = 1
  • f(x)=1(1+x)2f''(x) = -\frac{1}{(1 + x)^2}, f(0)=1f''(0) = -1
  • f(x)=2(1+x)3f'''(x) = \frac{2}{(1 + x)^3}, f(0)=2f'''(0) = 2
  • f(4)(x)=6(1+x)4f^{(4)}(x) = -\frac{6}{(1 + x)^4}, f(4)(0)=6f^{(4)}(0) = -6

ln(1+x)=0+1x12x2+26x3624x4+=xx22+x33x44+\ln(1 + x) = 0 + 1x - \frac{1}{2}x^2 + \frac{2}{6}x^3 - \frac{6}{24}x^4 + \dots = x - \frac{x^2}{2} + \frac{x^3}{3} - \frac{x^4}{4} + \dots

Example 4: Find the Maclaurin's series for e5xe^{5x} up to the term in x3x^3.

  • f(x)=e5xf(x) = e^{5x}, f(0)=1f(0) = 1
  • f(x)=5e5xf'(x) = 5e^{5x}, f(0)=5f'(0) = 5
  • f(x)=25e5xf''(x) = 25e^{5x}, f(0)=25f''(0) = 25
  • f(x)=125e5xf'''(x) = 125e^{5x}, f(0)=125f'''(0) = 125

e5x=1+5x+252x2+1256x3+e^{5x} = 1 + 5x + \frac{25}{2}x^2 + \frac{125}{6}x^3 + \dots

Mwalimu

Unasoma somo hili? Niulize nikuelezee chochote kilichomo.

Ingia ili kumuuliza Mwalimu wa AI wa Sonza kuhusu mada hii.

Ingia ili kuuliza