Professional Documents
Culture Documents
FENG QI
1. Main results
It is common knowledge that the tangent function tan x, defined by
sin x
tan x = (1.1)
cos x
π
for x 6= kπ + 2 and k ∈ Z, where Z stands for the set of all integers, and the
cotangent function cot x, defined by
cos x
cot x = (1.2)
sin x
for x 6= kπ and k ∈ Z, are two of the simplest elementary functions.
It is well known that the sine function sin x and the cosine function cos x have
the n-th derivatives
(n) nπ (n) nπ
sin x = sin x + and cos x = cos x + (1.3)
2 2
for n ∈ N, where N denotes the set of all positive integers. They are collected in a lot
of textbooks for undergraduates and handbooks of mathematics. See, for example,
[1, p. 77, 4.3.111 and 4.3.112]. However, the formulas for the n-th derivatives of the
tangent function tan x and the cotangent function cot x can not be found anywhere,
to the best of my ability.
The aim of this paper is to establish explicit formulas for the n-th derivatives of
the tangent function tan x and the cotangent function cot x.
Our main results may be stated as the following theorems.
Theorem 1.1. For n ∈ N, the derivatives of the tangent function may be computed
by
n−1
1 X
tan(2n−1) x = 2n
a2n−1,2i cos(2ix) (1.4)
cos x i=0
and
n−1
(2n) 1 X
tan x= a2n,2i+1 sin[(2i + 1)x], (1.5)
cos2n+1 x i=0
where
a1,0 = 1, (1.6)
n−2
X 2n − 1
a2n−1,0 = 2n (−1)ℓ (n − ℓ − 1)2n−2 (1.7)
ℓ
ℓ=0
for n > 1,
n−i−1
X
i+ℓ 2n
a2n−1,2i = 2 (−1) (n − i − ℓ)2n−1 (1.8)
ℓ
ℓ=0
for 1 ≤ i ≤ n − 1, and
n−i−1
X 2n + 1
a2n,2i+1 = 2 (−1)i+ℓ (n − i − ℓ)2n (1.9)
ℓ
ℓ=0
for 0 ≤ i ≤ n − 1.
Theorem 1.2. For n ∈ N, the derivatives of the cotangent function may be calcu-
lated by
n−1
1 X
cot(2n−1) x = 2n b2n−1,2i cos(2ix) (1.10)
sin x i=0
and
n−1
1 X
cot(2n) x = b2n,2i+1 cos[(2i + 1)x], (1.11)
sin2n+1 x i=0
where
b2n−1,2i = (−1)i+1 a2n−1,2i , (1.12)
i
b2n,2i+1 = (−1) a2n,2i+1 , (1.13)
for 0 ≤ i ≤ n − 1 and ap,q for p ∈ N and 0 ≤ q ≤ p − 1 are defined by (1.6), (1.7),
(1.8), and (1.9).
Remark 1.1. The equalities (1.8) and (1.9) can be unified as
p−q−1
2
p
p+1 p−q−1
p
1
p− 3+(−1)
X p−q−1
−ℓ
ap,q = (−1) 2 2 2 (−1) 2 −ℓ+1 (1.14)
ℓ 2
ℓ=0
for 0 < q < p.
Remark 1.2. By the way, the explicit formula for the n-th derivative of the expo-
nential function e1/x was recently established in [2].
2. Proofs of theorems
Now we are in a position to prove Theorems 1.1 and 1.2 by induction.
Proof of Theorem 1.1. We verify Theorem 1.1 by induction.
It is easy to obtain that
1
(tan x)′ = sec2 x =
cos2 x
and
2 sin x
(tan x)′′ = 2 tan x sec2 x = .
cos3 x
FORMULAS FOR n-TH DERIVATIVES OF TANGENT AND COTANGENT 3
and
′
tan(2n+2) x = tan(2n+1) x
" n
#′
1 X
= a2n+1,2i cos(2ix)
cos2n+2 x i=0
n ′
X cos(2ix)
= a2n+1,2i
i=0
cos2n+2 x
n
1 X
= a2n+1,2i {(n + 1 − i) sin[(2i + 1)x] − (n + 1 + i) sin[(2i − 1)x]}
cos2n+3 x i=0
(n−1
1 X
= [(n + 1 − i)a2n+1,2i − (n + 2 + i)a2n+1,2(i+1) ] sin[(2i + 1)x]
cos2n+3 x i=1
)
+ [2(n + 1)a2n+1,0 − (n + 2)a2n+1,2 ] sin x + a2n+1,2n sin[(2n + 1)x] .
Equating coefficients in
n
(
1 X 1
a2n+1,2i cos(2ix) = (n + 1)a2n,1
cos2(n+1) x i=0
cos2(n+1) x
n−1
)
X
− a2n,2n−1 cos(2nx) + [(n + 1 + i)a2n,2i+1 − (n + 1 − i)a2n,2i−1 ] cos(2ix)
i=1
and
4 F. QI
n
(
1 X 1
a2n+2,2i+1 sin[(2i + 1)x] = [2(n + 1)a2n+1,0
cos2n+3 x i=0
cos2n+3 x
− (n + 2)a2n+1,2 ] sin x + a2n+1,2n sin[(2n + 1)x]
n−1
)
X
+ [(n + 1 − i)a2n+1,2i − (n + 2 + i)a2n+1,2(i+1) ] sin[(2i + 1)x]
i=1
yields
a2n+1,0 = (n + 1)a2n,1 , (2.2)
a2n+1,2n = −a2n,2n−1 , (2.3)
a2n+2,1 = 2(n + 1)a2n+1,0 − (n + 2)a2n+1,2 , (2.4)
a2n+2,2n+1 = a2n+1,2n , (2.5)
a2n+1,2i = (n + 1 + i)a2n,2i+1 − (n + 1 − i)a2n,2i−1 , (2.6)
a2n+2,2i+1 = (n + 1 − i)a2n+1,2i − (n + 2 + i)a2n+1,2(i+1) , (2.7)
where 1 ≤ i ≤ n − 1.
In virtue of (2.3), (2.5), and (2.1), it is easy to obtain that
a2n,2n−1 = (−1)n−1 2 (2.8)
and
a2n+1,2n = (−1)n 2. (2.9)
Substituting (2.6) into the first term on the right hand side of (2.7) yields
a2n+2,2i+1 = (n+1)2 −i2 a2n,2i+1 −(n+1−i)2a2n,2i−1 −(n+2+i)a2n+1,2i+2. (2.10)
(2.24)
Substituting (2.21) and (2.23) for n = 4 into (2.12) for n = 4 produces
a10,1 = 50a8,1 − 6a9,2 = 2620708. (2.25)
Combination of (2.25) with the recursion (2.24) procures
(n − 1)n(2n − 1)(2n + 1) n(2n − 1)(2n + 1) 2n
a2n,2n−9 = (−1)n−1 2 − 2
6 3
(2.26)
+ n(2n + 1)32n − (2n + 1)42n + 52n .
From (2.8), (2.14), (2.18), (2.22), and (2.26), it is observed that the formu-
las (2.26) and (2.22) may be rearranged respectively as
n−1 (2n − 2)(2n − 1)(2n)(2n + 1) (2n − 1)(2n)(2n + 1) 2n
a2n,2n−9 = (−1) 2 − 2
4! 3!
6 F. QI
(2n)(2n + 1) 2n 2n + 1 2n
+ 3 − 4 + 52n
2! 1!
4
ℓ 2n + 1
X
n−1
= (−1) 2 (−1) (5 − ℓ)2n
ℓ
ℓ=0
and
3
n−1
X
3−ℓ 2n + 1
a2n,2n−7 = (−1) 2 (−1) (4 − ℓ)2n .
ℓ
ℓ=0
This reminds us to claim
i
X 2n + 1
a2n,2n−2i−1 = (−1)n−1 2 (−1)i−ℓ (i − ℓ + 1)2n (2.28)
ℓ
ℓ=0
Proof of Theorem 1.2. This theorem can be proved by induction as the proof of
Theorem 1.1. However, we would like to derive it from Theorem 1.2 as follows.
FORMULAS FOR n-TH DERIVATIVES OF TANGENT AND COTANGENT 7
Since
π
cot x = − tan x + (2.33)
2
for x 6= kπ and k ∈ Z, we have
π
cot(n) x = − tan(n) x +
2
for n ∈ N. By Theorem 1.1, we obtain
n−1
1 X
cot(2n−1) x = − a2n−1,2i cos(2ix + iπ)
x + π2 i=0
cos2n
n−1
1 X
= 2n (−1)i+1 a2n−1,2i cos(2ix)
sin x i=0
and
n−1
1 X π
cot(2n) x = − π
a2n,2i+1 sin (2i + 1) x +
cos2n+1 x + 2 i=0
2
n−1
1 X
= 2n+1 (−1)i a2n,2i+1 cos[(2i + 1)x].
sin x i=0
Thus, Theorem 1.2 is proved.
References
[1] M. Abramowitz and I. A. Stegun (Eds), Handbook of Mathematical Functions with Formulas,
Graphs, and Mathematical Tables, National Bureau of Standards, Applied Mathematics Series
55, 9th printing, Washington, 1970. 1
[2] F. Qi, Properties of three functions relating to the exponential function and the existence of
partitions of unity, Available online at http://arxiv.org/abs/1202.0766. 2