x
ex 1
Marek Zazrivec
x
and we want to find n-th derivative
ex 1
f (n) (x).
The first two derivative of f (x) are:
f (1) (x) =
f (n) (x) =
n
P
p(k, n)ekx + x
k=0
(ex
q(k, n)ekx
k=0
n+1
1)
(1)
for some p(k, n), q(k, n) Z. But the question is: How to find some explicit general
formulas for p(k, n), q(k, n)?
Our solution is simply based on mathematical induction principle. If we know the
formulas for p(k, n), q(k, n), than we can prove them by induction. We dont know
these formulas yet, but by induction well obtain some recurrent relations, from which
we can deduce them.
n+1
x
x
(e 1)
(e 1)n+1
n
n
P
P
kx
kx
p(k, n)e + x
q(k, n)e
(n + 1) (ex 1)n ex
k=0
k=0
=
x
(e 1)n+1 (ex 1)n+1
x0
ex
x
= 1.
1
=
n
P
kx
kp(k, n)e
k=0
n
P
q(k, n)e
kx
+x
k=0
n
P
kq(k, n)e
kx
(ex 1)
k=0
n+2
(ex
1)
n
n
P
P
kx
kx
(n + 1) ex
p(k, n)e + x
q(k, n)e
k=0
k=0
(ex
1)n+2
f (n+1) (x) =
k=1
(ex 1)n+2
x
n
P
k=1
+
(ex 1)n+2
e(n+1)x (q(n, n) p(n, n)) + xe(n+1)x (q(n, n))
+
(ex 1)n+2
q(0, n)e0x + 0xe0x
+
.
(ex 1)n+2
(2)
If we put n + 1 instead of n in (1), we get:
n+1
P
f (n+1) (x) =
p(k, n + 1)ekx + x
k=0
n+1
P
q(k, n + 1)ekx
k=0
n+2
(ex 1)
(3)
(4)
(5)
(6)
(7)
(8)
1 + ex xex
we have also initial conditions:
(ex 1)2
p(0, 1) = 1, p(1, 1) = 1, q(0, 1) = 0, q(1, 1) = 1.
(9)
(11)
q(2, 3) = 21 1 20 2
q(2, 4) = +22 1 + 21 2 + 20 3
p(2, 5) = 23 1 22 2 21 3 20 4
p(2, 6) = +24 1 + 23 2 + 22 3 + 21 4 + 20 5
..
.
and generally for n N :
q(2, n) = (1)n 2n2 1 + 2n3 2 + 2n4 3 + + 20 (n 1) .
(12)
=
2
2
2
i=1 k=i
i=1
k=0
k=0
n1
n1
X
X
1
1
1
1
n n1
n n1
= (1) 2
= (1) 2
2 n1 2 i1
n1 + i1 =
2
2
2
2
i=1
i=1
n
n1
X
n1k
n n1
n1
n1
X
X
1
1
n n1
= (1) 2
+ (1) 2
= (1)n+1 (n 1)+
n1
i1
2
2
i=1
i=1
1
+ (1)n 2n1 2 n2 = (1)n+1 (n + 1 2n ) .
2
n+1 n1
Now lets try to find analogical formula for q(3, n). This time its more complicated. So well use different method to find it. We put k = 3 in (6) and we also
substitute previous result
q(2, n) = (1)n+1 (n + 1 2n ) , n N, n 2
3
(13)
to get:
q(3, n + 1) = 3q(3, n) + (1)n n2 1 (n 1)2n , n N, n 2.
(14)
Now well try to guess formula using method of undetermined coefficients. Idea is
following: First well find functions E(n), F (n), n N which for all n N satisfies
relations:
3E(3, n) E(3, n + 1) = n2 1,
(15)
3F (3, n) F (3, n + 1) = (n 1)2n .
(16)
Then its not difficult to see, that function of 2 variables: g(c, n) = (1)n (E(n) +
F (n) + c3n ), n N, c R must satisfy (14), thus:
g(c, n + 1) = 3g(c, n) + (1)n n2 1 (n 1)2n , n N.
Using this fact well continue to find formula for q(3, n) using mathematical induction
principle. Because if g(c, n) satisfies initial condition e.g. g(c, 3) = q(3, 3) for some c
and also if g(c, n) satisfies relation (14), then by induction must be g(c, n) = q(3, n)
for all n N .
Lets find functions E(n), F (n). From (15) we can easily guess, that E(n) =
2
e2 n + e1 n + e0 for some constants e2 , e1 , e0 R. Then E(n) satisfies (15) if and only
if:
2e2 n2 + (2e1 2e2 )n + 2e0 e1 e2 = m2 1,
so we can easily calculate, that must be e2 = e1 = 21 , e0 = 0, and we must have
E(n) = 12 n2 + 21 n = n(n+1)
. Analogicaly we can guess that F (n) = (f1 n + f0 )2n for
2
some f1 , f0 R. Then F (n) satisfies (16) if and only if:
(f1 n 2f1 + f0 )2n = (n + 1)2n ,
so we must have f0 = f1 = 1, thus F (n) = (n + 1)2n . Now we know, that function
n(n + 1)
n
n
n
(n + 1)2 + c3
g(c, n) = (1)
(n N, c R)
2
satisfies (14). Lets calculate constat c for which is2 : g(c, 3) = q(3, 3) = 1. We have:
3(3 + 1)
3
3
3
1 = (1)
(3 + 1)2 + c3
c=1
2
and we obtain the following result:
n(n + 1)
n
n
n
q(3, n) = (1)
(n + 1)2 + 3 , n N, n 3.
2
2
(17)
Lets try to guess general formula for q(k, n). From (10), (13) and (17) we can
deduce, that for q(k, n) should be:
n
q(k, n) = (1)
k
X
(1)
i=0
n+1
(k i)n
i
(k N0 , n N, k n).
(18)
Formula is correct and proof can be simply based on the fact, that from (4), (6),
(8), (9) are values of q(k, n) fully determined, so well only show, that coefficients
defined by (18) satisfies relations (4), (6), (8), (9).
From (18) directly follows (4) and q(0, 1) = 0, q(1, 1) = 1. Lets show (6). We
want to show, that:
k
X
n+2
i n+1
n+1
n
(k i)n +
(1)
(k i)
= k(1)
(1)
(1)
i
i
i=0
i=0
(19)
k1
X
n
+
1
(1)i
(k 1 i)n .
+ (k n 2)(1)n
i
i=0
n+1
k
X
Lets make substitution i + 1 i in the last sum of (19), multiple both sides by
1/(1)n+1 and substract k n+1 from both sides (to remove index i = 0 from first two
sums):
k
k
X
X
i n+2
n+1
i n+1
(1)
(k i)
=
(1)
(k i)n k+
i
i
i=1
i=1
k
X
n+1
+
(1)i
(k i)n (k n 2).
i
1
i=1
n+2
n+2i
n+2
Because i = n+1
and n+1
= n+1
we get:
i1
i
i
i1
i
k
k
X
X
(n + 2 i)k
i n+1
i n+1
n (n + 2)(k i)
=
(1)
+
(1)
(k i)n
(k i)
i
i
1
i
i
1
i=1
i=1
k
X
n+1
+
(1)i
(k i)n (k n 2).
i
1
i=1
(20)
Now, its easy to see, that
(n + 2)(k i)
(n + 2 i)k
=
+ (k n 2),
i
i
and therefore identity (20) is correct and also (19).
Lets show (8). Well only show identity:
n
X
n+1
(1)
(n i)n = (1)n ,
q(n, n) = (1)
i
i=0
n
(n N )
(21)
(1)
n+1 n
i = (1)n .
i+1
(22)
k
i
+
1
k
i=0
i=k1
(24)
we get:
n
X
n+1 n
(1)
i =
i+1
i=0
X
n
n
n
X
X
i n+1
i n+1k
= A0
(1)
+
Ak
(1)
(n + 1) n . . . (n + 2 k) =
i+1
i+1k
i=0
i=0
k=1
X
n
n
n
X
X
i n+1
i n+1k
= A0
(1)
+
Ak (n + 1) n . . . (n + 2 k)
(1)
=
i
+
1
i
+
1
k
i=0
k=1
! i=0
n
n
X
X
n+1
n+1
= A0
(1)i
= A0 1 +
(1)i
= A0 .
i
+
1
i
+
1
i=0
i=1
i
n 2, n N.
(25)
n 2, n N.
(26)
n 2, n N
(27)
(28)
(29)
n 2, n N.
n 3, n N,
p(k, n) = (1) n
k
X
i=0
(1)
n+1
(k i)n1
i
(k N0 , n N, k n).
(30)
Formula is correct and proof can be based on the fact, that from (3)-(9) are
values of p(k, n) fully determined. We have also formula (18), so we only need to
prove, that coefficients p(k, n), defined by (30) satisfies relations (3), (5), (7), (9),
where we substitute by (18).
From (18), (30) directly follows (3), (9). Lets show (5) using (18), (30). We want
to show, that
k
k
X
X
i n+2
n
n+1
i n+1
(1) (n + 1)
(1)
(k i) = (1) nk
(1)
(k i)n1 +
i
i
i=0
i=0
k1
X
n+1
+ (1)n n(k n 2)
(1)i
(k 1 i)n1
i
i=0
k1
k
X
X
i n+1
n+1
i n+1
n
n
(k 1 i)n .
+ (1)
(1)
(k i) + (1)
(1)
i
i
i=0
i=0
(31)
n+1
Its interesting, that formula is also valid for incorrect casek = n = 1 (see (26) and footnote
3), if we define 00 = 1. From (30) we have actually correct result: p(1, 1) = (1 2) = 1.
Now we divide (31) by (1)n+1 and substitute i + 1 i in third and fifth sum.
Subsequently we separate out all summands for i = 0 and after simple adjustments
we get following equivalent formula:
k
k
X
X
n
i n+2
i n+1
(k i) (n + 1) =
(k i)n1 nk
(1)
(1)
i
i
i=1
i=1
k
X
n+1
(k i)n1 n(n + 2 k)
(1)i
i1
i=1
k
k
X
X
i n+1
n
i n+1
+
(1)
(k i) +
(1)
(k i)n .
i
i
1
i=1
i=1
And because
n+2
i
n+1 n+2
i
i1
and
n+1
i
n+1 n+2i
,
i1
i
we have:
k
X
(n + 2)(n + 1)(k i)
i n+1
(1)
(k i)n1
=
i
i1
i=1
k
X
(n + 2 i) n k
i n+1
=
(1)
(k i)n1
1
i
i=1
k
X
i n+1
(1)
(k i)n1 n(n + 2 k)+
i
1
i=1
k
X
(n + 2 i)(k i)
i n+1
+
+
(1)
(k i)n1
i
i1
i=1
k
X
i n+1
+
(1)
(k i)n1 (k i).
i1
i=1
(32)
n+1
p(n, n) = (1) n
(1)
(n i)n1 = (1)n+1 n,
i
i=0
n
(n N )
(33)
(34)
n+1 n
(1)
i =
i+1
i=0
X
n
n
n1
X
X
i n+1
i n+1k
= A0
(1)
Ak
(1)
+
(n + 1) n . . . (n + 2 k) =
i+1
i
+
1
k
i=0
i=0
k=1
X
n
n
n1
X
X
i n+1
i n+1k
= A0
(1)
Ak (n + 1) n . . . (n + 2 k)
(1)
+
=
i
+
1
i
+
1
k
i=0
i=0
k=1
!
n
n
X
X
n+1
n+1
= A0
(1)i
= A0 1 +
(1)i
= A0 .
i
+
1
i
+
1
i=0
i=1
i
Summary result
x
:
ex 1
From (18), (30) and (1) we have following formula for n-th derivative of
ex
x
1
n
k
P
P
(n)
n
ekx (1)i
i=0
= (1)n k=0
n
k
P
P
(k i)n1 + x
ekx (1)i
n+1
i
(ex
10
k=0
n+1
1)
i=0
n+1
i
(k i)n
.