WordGPT

Taylor series of tan x up to degree 7

The Taylor polynomial of degree 7 for tan x about 0 (the Maclaurin polynomial) is x + x³/3 + 2x⁵/15 + 17x⁷/315. The full series converges for |x| < π/2.

tan x and its degree 7 Taylor polynomial-2-112-15-10-551015tan xdegree 7
tan x and its degree 7 Taylor polynomial. The polynomial hugs the curve inside the radius of convergence (π/2) and leaves it outside.

How to work it out

  1. 1

    The Taylor series of f about 0 uses the derivatives of f at 0:

    f(x)=∑k=0∞f(k)(0)k! xkf(x) = \sum_{k=0}^{\infty} \frac{f^{(k)}(0)}{k!}\,x^k
  2. 2

    For f(x) = tan x the first derivatives at 0 are:

    f(0)(0)=0,f(1)(0)=1,f(2)(0)=0,f(3)(0)=2,f(4)(0)=0,f(5)(0)=16,f(6)(0)=0f^{(0)}(0) = 0,\quad f^{(1)}(0) = 1,\quad f^{(2)}(0) = 0,\quad f^{(3)}(0) = 2,\quad f^{(4)}(0) = 0,\quad f^{(5)}(0) = 16,\quad f^{(6)}(0) = 0
  3. 3

    Divide each by k! and keep the terms up to degree 7:

    tan⁡(x)≈x+13x3+215x5+17315x7\tan\left(x\right) \approx x + \frac{1}{3}x^{3} + \frac{2}{15}x^{5} + \frac{17}{315}x^{7}
  4. 4

    Radius of convergence: π/2 ≈ 1.5708. Inside it, more terms give a better approximation; outside, the series does not settle.

LaTeX source of the formulas on this page
\[ \tan\left(x\right) \approx x + \frac{1}{3}x^{3} + \frac{2}{15}x^{5} + \frac{17}{315}x^{7} \]
\[ f(x) = \sum_{k=0}^{\infty} \frac{f^{(k)}(0)}{k!}\,x^k \]
\[ f^{(0)}(0) = 0,\quad f^{(1)}(0) = 1,\quad f^{(2)}(0) = 0,\quad f^{(3)}(0) = 2,\quad f^{(4)}(0) = 0,\quad f^{(5)}(0) = 16,\quad f^{(6)}(0) = 0 \]

Degree 7 polynomial against the real tan x

xPolynomialExactError
0.10.100334670.100334672.20e-11
0.50.546254960.546302494.75e-5
0.91.24754481.26015821.26e-2
215.841270-2.18503991.80e+1

Questions

What is the Taylor series of tan x?

x + x³/3 + 2x⁵/15 + 17x⁷/315 + …

What is the degree 7 Taylor polynomial of tan x?

x + x³/3 + 2x⁵/15 + 17x⁷/315

What is the radius of convergence of the series of tan x?

π/2 ≈ 1.5708

What is the Maclaurin series?

A Taylor series centred at 0.

Other degrees of tan x

Degree 7 of other functions

    Taylor series of tan x: degree 7 polynomial and error | WordGPT