Algorithm for computing semi-Fourier sequences of expressions involving exponentiations and integrations
Hoon Hong, Adam Strzebonski

TL;DR
This paper introduces an algorithm to compute semi-Fourier sequences for complex expressions involving arithmetic, exponentiation, and integration, extending the classical Fourier sequence concept beyond polynomials.
Contribution
The paper presents the first algorithm for semi-Fourier sequences applicable to a broad class of expressions including exponentiation and integration.
Findings
Algorithm successfully computes semi-Fourier sequences for complex expressions.
Extends Fourier sequence concepts to non-polynomial expressions.
Provides a foundation for further symbolic computation research.
Abstract
We provide an algorithm for computing semi-Fourier sequences for expressions constructed from arithmetic operations, exponentiations and integrations. The semi-Fourier sequence is a relaxed version of Fourier sequence for polynomials (expressions made of additions and multiplications).
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Topology and Set Theory · Mathematical and Theoretical Analysis · advanced mathematical theories
Algorithm for computing
Semi-Fourier sequences of
Expressions involving exponentiations and integrations
Hoon Hong
Adam Strzeboński The research of Hoon Hong was partially supported by the following grants US NSF 1319632.
Abstract
We provide an algorithm for computing semi-Fourier sequences for expressions constructed from arithmetic operations, exponentiations and integrations. The semi-Fourier sequence is a relaxed version of Fourier sequence for polynomials (expressions made of additions and multiplications).
1 Introduction
The main contribution of this paper is an algorithm for computing semi-Fourier sequences for expressions constructed from arithmetic operations, exponentiations and integrations. The semi-Fourier sequence is a relaxed version of Fourier sequence for polynomials (expressions made of additions and multiplications). Below we elaborate on the above statements.
Fourier sequence of polynomials is a finite sequence of successive differentiation. As an example, consider
[TABLE]
Then the Fourier sequence of is given by
[TABLE]
It has an obvious but important property: the successive differentiation eventually leads to a constant. It also has another nice property due to Budan-Fourier [1, 2]: Let denote the number of sign changes in the sequence (with zeros ignored). Then the number of roots of in , counted with multiplicities, is equal to , where is a nonnegative integer.
One naturally wonders whether one can do the same for non-polynomials. Consider
[TABLE]
Let us compute the successive differentiation as we did above. We obtain
[TABLE]
Note that the successive differentiation will not lead to a constant. Thus Fourier sequence for does not exist.
In [5, 6], Strzeboński (one of the co-authors of this paper) relaxed the notion of Fourier sequence to “semi”-Fourier sequence. For the above example, a semi-Fourier sequence is given by
[TABLE]
Note that before/after each differentiation one is allowed to multiply by another expression, , which is non-zero for all values of in the domain of . Of course when we require that , then it is a Fourier sequence. By allowing to be other than , one obtains a relaxed version of Fourier sequence. Since is non-zero for all real values of , the semi-Fourier sequence still preserves the Budan-Fourier’s property mentioned above (Theorem 2.4 in [5]).
Strzeboński also proved constructively that a semi-Fourier sequence exists for expressions constructed from arithmetic operations, exponentiations, logarithms and arctangents, by providing an algorithm for computing such a sequence.111The definition of a semi-Fourier sequence in this paper is a bit stricter than the definition used in [5, 6], however the semi-Fourier sequences constructed in [5, 6] satisfy the stricter requirements.
One again naturally wonders whether semi-Fourier sequences exist for even larger class of functions and whether one can find them algorithmically. One natural class to consider is the set (called Exp-Int) of expressions constructed from arithmetic operations, exponentiations and integrations (). It is easy to see that logarithms and arctangents belong to Exp-Int, since they are integrals of and . However there are many expressions in Exp-Int that cannot be expressed in terms of arithmetic operations, exponentiation, logarithms and arctangents, such as
[TABLE]
Many elementary and special functions can be represented as Exp-Int expressions, such as rational functions, exponential functions, logarithm, radicals (), inverse trigonometric functions (), (inverse) hyperbolic trigonometric functions (), hyperbolic sine/cosine integrals , logistic sigmoid function (), error function (), logarithmic integral function (), exponential integral function (), polylogarithm function (), Spence function (), Gudermannian function (), Dawson function (), Kummer function (), Incomplete beta function (), Incomplete gamma function (), Incomplete elliptic integral (), etc.
The main contribution of this paper is to prove constructively that there exists a semi-Fourier sequence for every Exp-Int expression, by providing an algorithm for computing such a sequence. For a semi-Fourier sequence computed by the algorithm for the above , see Example 2.
Of course, the main task of such an algorithm is figuring out ’s at each step, so that the sequence eventually terminates. It was quite challenging because most choices of ’s lead to infinite sequences and because, at each step, it was by no means obvious to predict which ’s would be the lucky ones. We overcame the challenge by defining a partial ordering (ranking) on expressions, and ensuring that the rank decreases.
One again wonders whether there is even larger class of functions for which semi-Fourier sequences exist. It is easy to see that semi-Fourier sequences exist for any real analytic function with finitely many roots, since one can take to be a polynomial which has the same roots as with the same multiplicities. However, in general cannot be constructed algorithmically, since we cannot compute the roots of (in fact, the original reason for introducing semi-Fourier sequences was to be able to isolate roots algorithmically). Finding a larger class of functions for which semi-Fourier sequences exist and can be found algorithmically is an open problem which we leave for future work.
There are several closely related works. As mentioned above, in [5, 6], Strzeboński, one of the authors of the present paper, introduced the notions, and algorithms for semi-Fourier sequence for exponential - logarithmic - arctan expressions and showed that the sequences have the Budan-Fourier property. This present paper gives an algorithm for larger class of expressions. By construction, it is immediate that the output sequences have the Budan-Fourier property. In [5, 6], Strzeboński also gave real root isolation algorithms. However, in the present paper, we do not do so, mainly because such real root isolation algorithm would require zero-testing which is non-trivial for Exp-Int and interesting on its own, deserving a separate paper. Hence we leave it for the future research.
In [4], Richardson gave an algorithm for recognizing zeros among exponential-logarithmic expressions. For this, he generates certain sequences of expressions. They are similar but not the same as a semi-Fourier sequence. Thus they do not have the Budan-Fourier property either. This present paper deals with larger family of expressions and the results have the Budan-Fourier property.
In [3], Kovanskii studied zeros of Pfaffian functions. It involves sequence of functions defined by certain differential equations. The sequence is not semi-Fourier in general. As the result, it does not have the Budan-Fourier property. The present paper deals with smaller family of expressions. However, it generates semi-Fourier sequence with the Budan-Fourier property.
The paper is structured as follows: In Section 2, we give a precise statement of the problem that will be tackled in this paper. In Section 3, we provide an algorithm solving the problem. In Section 4, we prove the correctness of the algorithm. In Section 5, we provide several examples.
2 Problem
In this section, we state the main problem precisely. For this, we need several notions.
Definition 1** (Exp-Int expression).**
An *exp-int expression * is an expression constructed with the variable symbol , rational numbers, the binary operator symbols and and the unary operator symbols , , and . The set of all exp-int expressions is denoted by .
Of course, the symbols , and stand for inverse, exponential and integration (anti-derivative) respectively. As usual, for convenience, we use the following usual short-hands:
[TABLE]
Example 1**.**
We list several expressions that can be rewritten as Exp-Int expressions.
- •
\exp(x)(\exp(\mbox{\mathrm{inv}}(x)-\exp(-x))-\exp(\mbox{\mathrm{inv}}(x)))+5
- •
\exp(x)\ \mbox{\mathrm{int}}(\mbox{\mathrm{inv}}(x))+\exp(x^{2})+x
- •
x\mbox{\mathrm{inv}}(\exp(x)-1)-\mbox{\mathrm{int}}(\mbox{\mathrm{inv}}(\exp(x)-1))-\mbox{\mathrm{inv}}(x)
- •
2\,\mbox{\mathrm{int}}\left(-\exp\left(-\frac{1}{2}\,\mbox{\mathrm{int}}\left(-2\,x\,\mbox{\mathrm{inv}}\left(4-x^{2}\right)\right)\right)\right)-\frac{1}{2}\,x\exp\left(\frac{1}{2}\,\mbox{\mathrm{int}}\left(-2\,x\,\mbox{\mathrm{inv}}\left(4-x^{2}\right)\right)\right)
- •
\mbox{\mathrm{Ei}}\left(x^{2}+2\right)-\,\mbox{\mathrm{li}}\left(x^{2}+2\right)-e^{x^{2}+2}
\mbox{\mathrm{int}}\left(2x\exp\left(x^{2}+2\right)\,\mbox{\mathrm{inv}}\left(x^{2}+2\right)\right)-\,\mbox{\mathrm{int}}\left(2x\,\mbox{\mathrm{inv}}\left(\,\ \mbox{\mathrm{int}}\left(2x\,\mbox{\mathrm{inv}}\left(x^{2}+2\right)\right)\right)\right)-\exp\left(x^{2}+2\right)
In the above, we have used the following translations. Note that integrals may include arbitrary constants.
[TABLE]
Definition 2** (Expression differentiation).**
Expression differentiation is the operation defined recursively as follows.
, 2. 2.
, for , 3. 3.
, 4. 4.
, 5. 5.
, 6. 6.
, 7. 7.
D(\mbox{\mathrm{int}}(f))=f
Remark 3*.*
We explicitly listed the above well known properties of differentiation, because we want to emphasize the obvious but crucial facts (that will be used later):
- •
The derivative (the result of the differentiation) of an exp-int expression is itself an exp-int expression.
- •
Let T\in\{\mbox{\mathrm{inv}},\mbox{\mathrm{int}},\exp\}. If is a subexpression of , then it is a subexpression of .
Remark 4*.*
An expression can be naturally viewed as a partial function, after fixing the meaning of the distinct int subexpressions by choosing anti-derivatives.
Notation 5**.**
We write iff for every choice of anti-derivatives corresponding to the distinct int subexpressions in and and for every in the domain of , we have .
Definition 6** (Semi-Fourier sequence).**
Let . A sequence of pairs of elements of is a semi-Fourier sequence for if
2. 2.
, for , 3. 3.
.
Now we are ready to state the problem precisely.
Problem 1** (Main).**
Devise an algorithm with the following specification.
Input:
**
Output:
a semi-Fourier sequence of
Example 2**.**
Input:
e=\exp(x\ \mbox{\mathrm{int}}(\exp(-x^{2})))-\mbox{\mathrm{int}}(\exp(-x^{2}))-3
Output:
\begin{array}[t]{r|l|l}i&g_{i}&h_{i}\\ \hline\cr 1&f_{3}-f_{2}-3&1\\ 2&\left(f_{1}^{-1}f_{2}+x\right)f_{3}-1&f_{1}^{-1}\\ 3&f_{2}^{2}+\left(2\left(xf_{1}\right)+2x\right)f_{2}+x^{2}f_{1}^{2}+2f_{1}&f_{3}^{-1}f_{1}\\ 4&\left(\left(-4x^{2}+4\right)f_{1}+2\right)f_{2}+\left(-4x^{3}+4x\right)f_{1}^{2}-2\left(xf_{1}\right)&1\\ 5&\left(8x^{3}-16x\right)f_{2}+\left(16x^{4}-32x^{2}+8\right)f_{1}+4x^{2}&f_{1}^{-1}\\ 6&\left(24x^{2}-16\right)f_{2}+\left(-32x^{5}+136x^{3}-96x\right)f_{1}+8x&1\\ 7&48\left(xf_{2}\right)+\left(64x^{6}-432x^{4}+624x^{2}-112\right)f_{1}+8&1\\ 8&48f_{2}+\left(-128x^{7}+1248x^{5}-2976x^{3}+1520x\right)f_{1}&1\\ 9&256x^{8}-3392x^{6}+12192x^{4}-11968x^{2}+1568&f_{1}^{-1}\\ 10&2048x^{7}-20352x^{5}+48768x^{3}-23936x&1\\ 11&14336x^{6}-101760x^{4}+146304x^{2}-23936&1\\ 12&86016x^{5}-407040x^{3}+292608x&1\\ 13&430080x^{4}-1221120x^{2}+292608&1\\ 14&1720320x^{3}-2442240x&1\\ 15&5160960x^{2}-2442240&1\\ 16&10321920x&1\\ 17&10321920&1\\ \end{array}
where \begin{array}[t]{lll}f_{1}&=&\exp(-x^{2})\\ f_{2}&=&\mbox{\mathrm{int}}(f_{1})\\ f_{3}&=&\exp(xf_{2})\end{array}
3 Algorithm
In this section, we describe an algorithm that solves the problem posed in the previous section.
Definition 7** (Equivalence).**
Let . We say that and are equivalent, and write , if can be transformed into by applying the commutative ring properties of and . We write if is equivalent to a subexpression of .
Example 3**.**
- •
- •
\mbox{\mathrm{inv}}(x)\lesssim x+\mbox{\mathrm{int}}(\mbox{\mathrm{inv}}(x))
Definition 8** (Extension tower).**
An extension tower , where , is defined recursively as follows
, 2. 2.
For , , , and
[TABLE]
where and if then and .
Note that if then , , and can be easily transformed into equivalent elements of . In the following when we write , , and for expressions we mean equivalent elements of .
Definition 9** (Rank).**
The rank of an exp-integrate expression is defined recursively as follows:
, 2. 2.
for , 3. 3.
, 4. 4.
, 5. 5.
rank(\mbox{\mathrm{inv}}(f))=rank(f)+1, 6. 6.
, 7. 7.
rank(\mbox{\mathrm{int}}(f))=rank(f)+1.
Algorithm 1** ().**
— Main —
Input:
**
Output:
a semi-Fourier sequence of
Find a sequence of all distinct subexpressions of of the form , where T_{i}\in\{\mbox{\mathrm{inv}},\mbox{\mathrm{int}},\exp\}, ordered by the non-decreasing value of . 2. 2.
Set . 3. 3.
Return .
Algorithm 2** ().**
Input:
* such that*
- •
**
- •
* is a sequence containing all distinct subexpressions of of the form , where T_{i}\in\{\mbox{\mathrm{inv}},\exp,\mbox{\mathrm{int}}\}, ordered by the increasing value of .*
Output:
* such that*
- •
* for *
- •
* for *
- •
.
If
- (a)
For rewrite as . 2. (b)
For set . 3. (c)
Return . 2. 2.
If e_{r}=\mbox{\mathrm{inv}}(v_{r})
- (a)
For rewrite as , where are free of , for . 2. (b)
Compute . 3. (c)
Set f_{r}\leftarrow\mbox{\mathrm{inv}}(w_{r}). 4. (d)
For , set . 5. (e)
Return . 3. 3.
If e_{r}=\mbox{\mathrm{int}}(v_{r})
- (a)
For rewrite as , where are free of , for . 2. (b)
Compute . 3. (c)
Set f_{r}\leftarrow\mbox{\mathrm{int}}(w_{r}). 4. (d)
For , set . 5. (e)
Return . 4. 4.
If
- (a)
For rewrite as , where and are free of , for . 2. (b)
Compute . 3. (c)
Set . 4. (d)
For , set . 5. (e)
Return .
Algorithm 3** ().**
Input:
* such that .*
Output:
a semi-Fourier sequence of such that , for .
If does not contain any of ,
- (a)
Set and . 2. (b)
For set and . 3. (c)
Return . 2. 2.
Let be maximal such that . 3. 3.
If f_{k}=\mbox{\mathrm{inv}}(g), let .
- (a)
Set . 2. (b)
Compute . 3. (c)
Return . 4. 4.
If f_{k}=\mbox{\mathrm{int}}(g), let .
- (a)
Compute . 2. (b)
For , set . 3. (c)
For ,
- i.
Set . 2. ii.
For , set . 3. iii.
Set . 4. (d)
Set . While and decrement . 5. (e)
If , return . 6. (f)
Set . 7. (g)
Compute . 8. (h)
Return . 5. 5.
If , let .
- (a)
Compute . 2. (b)
For , set . 3. (c)
For ,
- i.
Set . 2. ii.
For , set . 4. (d)
Set . While and increment . 5. (e)
If , return . 6. (f)
Set . 7. (g)
Compute . 8. (h)
Return .
Example 4**.**
We illustrate the algorithm by tracing it on the input from Example 2.
[TABLE]
\begin{array}[t]{lll}e_{1}&=&\exp(-x^{2})\\ e_{2}&=&\mbox{\mathrm{int}}(\exp(-x^{2}))\\ e_{3}&=&\exp(x\mbox{\mathrm{int}}(\exp(-x^{2})))\end{array} 2. 2.
Calling with , we obtain
\begin{array}[t]{lll}f&=&f_{3}-f_{2}-3\\ f_{1}&=&\exp(-x^{2})\\ f_{2}&=&\mbox{\mathrm{int}}(f_{1})\\ f_{3}&=&\exp(xf_{2})\end{array} 3. 3.
Calling with , we obtain
\begin{array}[t]{r|l|l}i&g_{i}&h_{i}\\ \hline\cr 1&f_{3}-f_{2}-3&1\\ 2&\left(f_{1}^{-1}f_{2}+x\right)f_{3}-1&f_{1}^{-1}\\ 3&f_{2}^{2}+\left(2\left(xf_{1}\right)+2x\right)f_{2}+x^{2}f_{1}^{2}+2f_{1}&f_{3}^{-1}f_{1}\\ 4&\left(\left(-4x^{2}+4\right)f_{1}+2\right)f_{2}+\left(-4x^{3}+4x\right)f_{1}^{2}-2\left(xf_{1}\right)&1\\ 5&\left(8x^{3}-16x\right)f_{2}+\left(16x^{4}-32x^{2}+8\right)f_{1}+4x^{2}&f_{1}^{-1}\\ 6&\left(24x^{2}-16\right)f_{2}+\left(-32x^{5}+136x^{3}-96x\right)f_{1}+8x&1\\ 7&48\left(xf_{2}\right)+\left(64x^{6}-432x^{4}+624x^{2}-112\right)f_{1}+8&1\\ 8&48f_{2}+\left(-128x^{7}+1248x^{5}-2976x^{3}+1520x\right)f_{1}&1\\ 9&256x^{8}-3392x^{6}+12192x^{4}-11968x^{2}+1568&f_{1}^{-1}\\ 10&2048x^{7}-20352x^{5}+48768x^{3}-23936x&1\\ 11&14336x^{6}-101760x^{4}+146304x^{2}-23936&1\\ 12&86016x^{5}-407040x^{3}+292608x&1\\ 13&430080x^{4}-1221120x^{2}+292608&1\\ 14&1720320x^{3}-2442240x&1\\ 15&5160960x^{2}-2442240&1\\ 16&10321920x&1\\ 17&10321920&1\\ \end{array}
Example 5**.**
We illustrate the algorithm by tracing it on the input , which is taken from Step 3 of Example 4.
[TABLE]
The algorithm is recursive. Hence we trace the recursive calls.
[TABLE]
4 Proof of Correctness of Algorithm
In this section, we prove that the main algorithm is correct. We need to show the termination and the partial correctness. In the following subsections, we will show them one by one.
4.1 Termination
Since the main algorithm consists of a fixed sequence of steps, it suffices to show that the subalgorithms and terminate. The subalgorithm terminates since each recursion reduces the value of the natural number until it becomes [math]. Hence, it remains to show that the subalgorithm terminates. For this, it is convenient to introduce an ordering over .
Definition 10** (Ordering).**
Let be the function from to such that
[TABLE]
Let be the binary relation over such that
[TABLE]
where and . ∎
It is obvious but crucial to note that does not contain infinite -descending chains. In the following we will show that when makes a recursive call, the first argument decreases with . Let be such that it contains at least one of . Let be maximal such that and let . Note
- (3b)
.
Note that where .
Hence where .
Thus . 2. (4a)
.
Note that .
Hence where and is a non-negative integer.
Thus . 3. (4g)
.
Note that where and .
Hence if then else where and is a non-negative integer.
Thus . 4. (5a)
.
Note that .
Hence where and is a non-negative integer.
Thus . 5. (5g)
.
Note that where and .
Hence if then else where and is a non-negative integer.
Thus .
Hence the algorithm terminates. Thus the main algorithm terminates.
4.2 Partial Correctness
In this subsection, we prove the partial correctness of the main algorithm . Let . We need to show that the output of the main algorithm is a semi-Fourier sequence of . The algorithm makes calls to the subalgorithms and . Hence we need to show their partial correctness. The partial correctness of the subalgorithm is obvious. Thus, we need to show the partial correctness of the subalgorithm .
Definition 11** (Extension).**
We say that extends , and write , if be transformed into by applying the commutative ring properties of and and by cancellation (replacing e\cdot\mbox{\mathrm{inv}}(e) with ).
Example 6**.**
(x^{2}-1)\mbox{\mathrm{inv}}(x-1)\rightsquigarrow x+1
For the purpose of the proof let us make the following definition.
Definition 12** (SF sequence).**
Let . A sequence of pairs of elements of is an SF sequence for if
2. 2.
, for , 3. 3.
, 4. 4.
, for , where for each one of the following two conditions holds
- (a)
, 2. (b)
and .
It is easy to see that an SF sequence for is a semi-Fourier sequence for .
Let a sequence of all distinct subexpressions of of the form , where T_{i}\in\{inv,\exp,\mbox{\mathrm{int}}\}, ordered by the non-decreasing value of . Let
[TABLE]
Then we have
- •
for
- •
- •
.
We will show that the output of the subalgorithm is an SF sequence for , and therefore a semi-Fourier sequence for .
- (1c)
Return .
Note that . Thus the output is obviously an SF sequence of (in fact the Fourier sequence of ). 2. (3c)
Return .
Note f_{k}=\mbox{\mathrm{inv}}(g) and then with . By inductive hypothesis, is an SF sequence for . Since
[TABLE]
and , is an SF sequence for . 3. (4e)
If , return .
Note f_{k}=\mbox{\mathrm{int}}(g) and with . By inductive hypothesis, is an SF sequence for . We have
[TABLE]
and, for ,
[TABLE]
Therefore, for ,
[TABLE]
Moreover, since ,
[TABLE]
If the answer is returned in step then , and hence is an SF sequence for . 4. (4h)
Return .
Otherwise
[TABLE]
and, by inductive hypothesis, is an SF sequence for
[TABLE]
Hence
[TABLE]
and therefore is an SF sequence for . 5. (5e)
If , return .
Note and with . By inductive hypothesis, is an SF sequence for . We have
[TABLE]
and, for ,
[TABLE]
Therefore, for ,
[TABLE]
Moreover, since ,
[TABLE]
If then . Since , is an SF sequence for . 6. (5h)
Return .
Otherwise
[TABLE]
and, by inductive hypothesis, is an SF sequence for
[TABLE]
Hence
[TABLE]
and therefore is an SF sequence for .
5 Examples
Example 7** (exp [5]).**
Find a semi-Fourier sequence of the function
[TABLE]
Input expression:
Output:
\begin{array}[t]{r|l|l}i&g_{i}&h_{i}\\ \hline\cr 1&f_{5}f_{7}-100000&1\\ 2&\left(-f_{2}-f_{1}^{-1}\right)f_{3}^{-1}f_{4}f_{6}+1&f_{1}^{-1}f_{3}^{-1}f_{5}^{-1}f_{7}^{-1}\\ 3&\left(-\left(f_{1}f_{2}^{2}\right)+\cdots-f_{1}^{-1}\right)f_{4}-f_{1}f_{2}^{2}+\cdots+1&f_{3}f_{4}^{-1}f_{6}^{-1}\\ 4&\left(-\left(f_{1}f_{2}^{2}\right)+\cdots-3f_{1}^{-1}+2\right)f_{4}+\left(2f_{1}-1\right)f_{2}-2f_{1}+4&f_{1}^{-1}f_{2}^{-1}\\ 5&\left(-\left(f_{1}f_{2}^{3}\right)+\cdots+2f_{1}^{-1}\right)f_{4}+\left(-2f_{1}+3\right)f_{2}-2&f_{1}^{-1}\\ 6&\left(-\left(f_{1}f_{2}^{3}\right)+\cdots+2f_{1}+19f_{1}^{-1}-14\right)f_{4}+2f_{1}-5&f_{1}^{-1}f_{2}^{-1}\\ 7&\left(-\left(f_{1}f_{2}^{4}\right)+\cdots-14f_{1}^{-1}+4\right)f_{4}+2&f_{1}^{-1}\\ 8&-\left(f_{1}^{2}f_{2}^{5}\right)+\cdots+4&f_{4}^{-1}\\ 9&\left(5f_{1}^{2}-2f_{1}\right)f_{2}^{4}+\cdots+12f_{1}^{2}+\cdots+232&f_{1}^{-1}f_{2}^{-1}\\ 10&\left(-20f_{1}^{2}+\cdots-2\right)f_{2}^{4}+\cdots+24f_{1}-116&f_{1}^{-1}\\ 11&\left(80f_{1}^{2}+\cdots+26\right)f_{2}^{4}+\cdots+24&f_{1}^{-1}\\ 12&\left(-320f_{1}^{2}+\cdots-216\right)f_{2}^{3}+\cdots+120f_{1}^{2}+\cdots+3032&f_{1}^{-1}f_{2}^{-1}\\ 13&\left(960f_{1}^{2}+\cdots+1256\right)f_{2}^{3}+\cdots+240f_{1}-1304&f_{1}^{-1}\\ 14&\left(-2880f_{1}^{2}+\cdots-6232\right)f_{2}^{3}+\cdots+240&f_{1}^{-1}\\ 15&\left(8640f_{1}^{2}+\cdots+28008\right)f_{2}^{2}+\cdots+1296f_{1}^{2}+\cdots+38776&f_{1}^{-1}f_{2}^{-1}\\ 16&\left(-17280f_{1}^{2}+\cdots-89712\right)f_{2}^{2}+\cdots+2592f_{1}-15168&f_{1}^{-1}\\ 17&\left(34560f_{1}^{2}+\cdots+264096\right)f_{2}^{2}+\cdots+2592&f_{1}^{-1}\\ 18&\left(-69120f_{1}^{2}+\cdots-732096\right)f_{2}+12096f_{1}^{2}+\cdots+409392&f_{1}^{-1}f_{2}^{-1}\\ 19&\left(69120f_{1}^{2}+\cdots+1209024\right)f_{2}+24192f_{1}-149472&f_{1}^{-1}\\ 20&\left(-69120f_{1}^{2}+\cdots-1824192\right)f_{2}+24192&f_{1}^{-1}\\ 21&69120f_{1}^{2}+\cdots+2577600&f_{1}^{-1}f_{2}^{-1}\\ 22&138240f_{1}-891648&f_{1}^{-1}\\ 23&138240&f_{1}^{-1}\\ \end{array}
where
\begin{array}[t]{lll}f_{1}&=&e^{x}\\ f_{2}&=&e^{-f_{1}}\\ f_{3}&=&e^{f_{1}}\\ f_{4}&=&e^{x-f_{2}}\\ f_{5}&=&e^{f_{3}}\\ f_{6}&=&e^{f_{4}}\\ f_{7}&=&e^{-f_{6}}\end{array}
Example 8** (exp-inv [5]).**
Find a semi-Fourier sequence of the function
[TABLE]
Input expression:
e=\exp(x)(\exp(\mbox{\mathrm{inv}}(x)-\exp(-x))-\exp(\mbox{\mathrm{inv}}(x)))+5
Output:
\begin{array}[t]{r|l|l}i&g_{i}&h_{i}\\ \hline\cr 1&f_{2}f_{5}-f_{2}f_{4}+5&1\\ 2&\left(-\left(x^{2}f_{3}^{2}\right)+x^{2}f_{1}+x^{2}\right)f_{4}^{-1}f_{5}-x^{2}+1&f_{2}^{-1}f_{3}^{-2}f_{4}^{-1}\\ 3&\left(2\left(x^{2}f_{3}^{3}\right)+\cdots+x^{2}f_{1}^{2}+\cdots+2x\right)f_{4}^{-1}f_{5}-2x&1\\ 4&\left(-6\left(x^{2}f_{3}^{4}\right)+\cdots+x^{2}f_{1}^{3}+\cdots+2\right)f_{4}^{-1}f_{5}-2&1\\ 5&x^{7}f_{1}^{3}+\cdots-x^{5}&f_{1}^{-1}f_{3}^{-5}f_{4}f_{5}^{-1}\\ 6&\left(-3x^{7}+7x^{6}\right)f_{1}^{3}+\cdots-5x^{4}&1\\ 7&\left(9x^{7}+\cdots+42x^{5}\right)f_{1}^{3}+\cdots-20x^{3}&1\\ 8&\left(-27x^{7}+\cdots+210x^{4}\right)f_{1}^{3}+\cdots-60x^{2}&1\\ 9&\left(81x^{7}+\cdots+840x^{3}\right)f_{1}^{3}+\cdots-120x&1\\ 10&\left(-243x^{7}+\cdots+2520x^{2}\right)f_{1}^{3}+\cdots-120&1\\ 11&\left(729x^{7}+\cdots+5040x\right)f_{1}^{2}+\cdots+4x^{7}+\cdots-15120&f_{1}^{-1}\\ 12&\left(-1458x^{7}+\cdots+5040\right)f_{1}^{2}+\cdots+28x^{6}+\cdots+88200&1\\ 13&\left(2916x^{7}+\cdots-110880\right)f_{1}^{2}+\cdots+168x^{5}+\cdots-272160&1\\ 14&\left(-5832x^{7}+\cdots+1285200\right)f_{1}^{2}+\cdots+840x^{4}+\cdots+491400&1\\ 15&\left(11664x^{7}+\cdots-10503360\right)f_{1}^{2}+\cdots+3360x^{3}+\cdots-539280&1\\ 16&\left(-23328x^{7}+\cdots+68216400\right)f_{1}^{2}+\cdots+10080x^{2}+\cdots+355320&1\\ 17&\left(46656x^{7}+\cdots-375732000\right)f_{1}^{2}+\cdots+20160x-129600&1\\ 18&\left(-93312x^{7}+\cdots+1827226800\right)f_{1}^{2}+\cdots+20160&1\\ 19&\left(186624x^{7}+\cdots-8060371200\right)f_{1}-320x^{7}+\cdots+1040048640&f_{1}^{-1}\\ 20&\left(-186624x^{7}+\cdots+24812928000\right)f_{1}-2240x^{6}+\cdots-1165919760&1\\ 21&\left(186624x^{7}+\cdots-68012179200\right)f_{1}-13440x^{5}+\cdots+994933440&1\\ 22&\left(-186624x^{7}+\cdots+168875965440\right)f_{1}-67200x^{4}+\cdots-635079360&1\\ 23&\left(186624x^{7}+\cdots-385341707520\right)f_{1}-268800x^{3}+\cdots+293706240&1\\ 24&\left(-186624x^{7}+\cdots+817742822400\right)f_{1}-806400x^{2}+\cdots-92962560&1\\ 25&\left(186624x^{7}+\cdots-1630128648960\right)f_{1}-1612800x+18017280&1\\ 26&\left(-186624x^{7}+\cdots+3078168468480\right)f_{1}-1612800&1\\ 27&186624x^{7}+\cdots-5544580204800&f_{1}^{-1}\\ 28&1306368x^{6}+\cdots+4038444184320&1\\ 29&7838208x^{5}+\cdots-2349935400960&1\\ 30&39191040x^{4}+\cdots+1065791623680&1\\ 31&156764160x^{3}+\cdots-362821939200&1\\ 32&470292480x^{2}+\cdots+87160872960&1\\ 33&940584960x-13168189440&1\\ 34&940584960&1\\ \end{array}
where
\begin{array}[t]{lll}f_{1}&=&e^{-x}\\ f_{2}&=&e^{x}\\ f_{3}&=&\frac{1}{x}\\ f_{4}&=&e^{f_{3}}\\ f_{5}&=&e^{f_{3}-f_{1}}\end{array}
Example 9** (exp-log (toy)).**
Find a semi-Fourier sequence of the function
[TABLE]
Input expression:
\exp(x)\ \mbox{\mathrm{int}}(\mbox{\mathrm{inv}}(x))+\exp(x^{2})+x
Output:
\begin{array}[t]{r|l|l}i&g_{i}&h_{i}\\ \hline\cr 1&f_{4}+f_{1}^{-1}f_{2}+xf_{1}^{-1}&f_{1}^{-1}\\ 2&\left(2x^{2}-x\right)f_{2}+f_{1}-x^{2}+x&xf_{1}\\ 3&\left(4x^{3}+\cdots-1\right)f_{2}+f_{1}-2x+1&1\\ 4&\left(8x^{4}+\cdots+4\right)f_{2}+f_{1}-2&1\\ 5&\left(16x^{5}+\cdots-6\right)f_{1}^{-1}f_{2}+1&f_{1}^{-1}\\ 6&32x^{6}+\cdots+54&f_{1}f_{2}^{-1}\\ 7&192x^{5}+\cdots-108&1\\ 8&960x^{4}+\cdots+672&1\\ 9&3840x^{3}+\cdots-912&1\\ 10&11520x^{2}+\cdots+5568&1\\ 11&23040x-3840&1\\ 12&23040&1\\ \end{array}
where
\begin{array}[t]{lll}f_{1}&=&e^{x}\\ f_{2}&=&e^{x^{2}}\\ f_{3}&=&\frac{1}{x}\\ f_{4}&=&\log x\end{array}
Example 10** (exp-log [5]).**
Find a semi-Fourier sequence of the function
[TABLE]
Input expression:
x\mbox{\mathrm{inv}}(\exp(x)-1)-\mbox{\mathrm{int}}(\mbox{\mathrm{inv}}(\exp(x)-1))-\mbox{\mathrm{inv}}(x)
Output:
\begin{array}[t]{r|l|l}i&g_{i}&h_{i}\\ \hline\cr 1&-f_{4}+xf_{3}-f_{2}&1\\ 2&f_{1}^{2}+\left(-x^{3}-2\right)f_{1}+1&f_{2}^{-2}f_{3}^{-2}\\ 3&2f_{1}-x^{3}-3x^{2}-2&f_{1}^{-1}\\ 4&2f_{1}-3x^{2}-6x&1\\ 5&2f_{1}-6x-6&1\\ 6&2f_{1}-6&1\\ 7&2&f_{1}^{-1}\\ \end{array}
where
\begin{array}[t]{lll}f_{1}&=&e^{x}\\ f_{2}&=&\frac{1}{x}\\ f_{3}&=&-\frac{1}{1-f_{1}}\\ f_{4}&=&\log\left(1-e^{-x}\right)\end{array}
Example 11** (exp-log-arccos [6]).**
Find a semi-Fourier sequence of the function
[TABLE]
Input expression:
2\,\mbox{\mathrm{int}}\left(-\exp\left(-\frac{1}{2}\,\mbox{\mathrm{int}}\left(-2\,x\,\mbox{\mathrm{inv}}\left(4-x^{2}\right)\right)\right)\right)-\frac{1}{2}\,x\exp\left(\frac{1}{2}\,\mbox{\mathrm{int}}\left(-2\,x\,\mbox{\mathrm{inv}}\left(4-x^{2}\right)\right)\right)
Output:
\begin{array}[t]{r|l|l}i&g_{i}&h_{i}\\ \hline\cr 1&2f_{5}-\frac{1}{2}\left(xf_{4}\right)&1\\ 2&\left(\frac{1}{2}\left(x^{2}f_{1}\right)-\frac{1}{2}\right)f_{3}^{-1}f_{4}-2&f_{3}^{-1}\\ 3&2x&f_{1}^{-1}f_{3}f_{4}^{-1}\\ 4&2&1\\ \end{array}
where
\begin{array}[t]{lll}f_{1}&=&\frac{1}{4-x^{2}}\\ f_{2}&=&\log\left(4-x^{2}\right)\\ f_{3}&=&e^{-\frac{f_{2}}{2}}\\ f_{4}&=&e^{\frac{f_{2}}{2}}\\ f_{5}&=&\arccos\left(\frac{x}{2}\right)-\frac{\pi}{4}\end{array}
Example 12** (exp-int).**
Find a semi-Fourier sequence of the function
[TABLE]
Input expression:
\mbox{\mathrm{int}}\left(2x\exp\left(x^{2}+2\right)\,\mbox{\mathrm{inv}}\left(x^{2}+2\right)\right)-\exp\left(x^{2}+2\right)-\,\mbox{\mathrm{int}}\left(2x\,\mbox{\mathrm{inv}}\left(\,\ \mbox{\mathrm{int}}\left(2x\,\mbox{\mathrm{inv}}\left(x^{2}+2\right)\right)\right)\right)
Output:
\begin{array}[t]{r|l|l}i&g_{i}&h_{i}\\ \hline\cr 1&-f_{6}+f_{4}-f_{1}&1\\ 2&\left(-2x^{3}-2x\right)f_{3}+\left(-2x^{3}-4x\right)f_{1}^{-1}&\left(x^{2}+2\right)f_{1}^{-1}f_{3}\\ 3&\left(-6x^{2}-2\right)f_{3}+\left(-4x^{4}-4x^{2}\right)f_{2}+\left(4x^{4}+\cdots-4\right)f_{1}^{-1}&1\\ 4&-12\left(xf_{3}\right)+\left(8x^{5}+8x^{3}\right)f_{2}^{2}+\cdots+\left(-8x^{5}+\cdots+12x\right)f_{1}^{-1}&1\\ 5&-12f_{3}+\left(-32x^{6}-32x^{4}\right)f_{2}^{3}+\cdots+\left(16x^{6}+\cdots+12\right)f_{1}^{-1}&1\\ 6&\left(-24x^{7}+\cdots-1440x\right)f_{1}-32x^{15}+\cdots-4480x^{3}&\left(x^{8}+\cdots+16\right)f_{1}\\ 7&\left(-48x^{8}+\cdots-1440\right)f_{1}-480x^{14}+\cdots-13440x^{2}&1\\ 8&\left(-96x^{9}+\cdots-12480x\right)f_{1}-6720x^{13}+\cdots-26880x&1\\ 9&\left(-192x^{10}+\cdots-12480\right)f_{1}-87360x^{12}+\cdots-26880&1\\ 10&\left(-384x^{11}+\cdots-187200x\right)f_{1}-1048320x^{11}+\cdots-645120x&1\\ 11&\left(-768x^{12}+\cdots-187200\right)f_{1}-11531520x^{10}+\cdots-645120&1\\ 12&\left(-1536x^{13}+\cdots-3951360x\right)f_{1}-115315200x^{9}+\cdots-322560x&1\\ 13&\left(-3072x^{14}+\cdots-3951360\right)f_{1}-1037836800x^{8}+\cdots-322560&1\\ 14&\left(-6144x^{15}+\cdots-105477120x\right)f_{1}-8302694400x^{7}+\cdots+766402560x&1\\ 15&\left(-12288x^{16}+\cdots-105477120\right)f_{1}-58118860800x^{6}+\cdots+766402560&1\\ 16&\left(-24576x^{17}+\cdots-3353011200x\right)f_{1}-348713164800x^{5}+\cdots+29698099200x&1\\ 17&\left(-49152x^{18}+\cdots-3353011200\right)f_{1}-1743565824000x^{4}+\cdots+29698099200&1\\ 18&\left(-98304x^{19}+\cdots-122464742400x\right)f_{1}-6974263296000x^{3}-199264665600x&1\\ 19&\left(-196608x^{20}+\cdots-122464742400\right)f_{1}-20922789888000x^{2}-199264665600&1\\ 20&\left(-393216x^{21}+\cdots-5023130112000x\right)f_{1}-41845579776000x&1\\ 21&\left(-786432x^{22}+\cdots-5023130112000\right)f_{1}-41845579776000&1\\ 22&-1572864x^{23}+\cdots-227809328947200x&f_{1}^{-1}\\ 23&-36175872x^{22}+\cdots-227809328947200&1\\ \vdots&\vdots&\vdots\\ 45&-40661706455989579897896960000&1\\ \end{array}
where
\begin{array}[t]{lll}f&=&-f_{6}+f_{4}-f_{1}\\ f_{1}&=&e^{x^{2}+2}\\ f_{2}&=&\frac{1}{x^{2}+2}\\ f_{3}&=&\log\left(x^{2}+2\right)\\ f_{4}&=&\,\mbox{\mathrm{Ei}}\left(x^{2}+2\right)\\ f_{5}&=&\frac{1}{f_{3}}\\ f_{6}&=&\,\mbox{\mathrm{li}}\left(x^{2}+2\right)\end{array}
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] F. D. Budan. Nouvelle methode pour la resolution des equations numeriques d’un degre quelconque . Paris: Courcier, 1807.
- 2[2] J. Fourier. Sur l’usage du theoreme de descartes dans la recherche des limites des racines. Bulletin des Sciences par la Societe Philomatique de Paris , pages 156–165, 1820.
- 3[3] A. G. Khovanski. Fewnomials . American Mathematical Society, 1991.
- 4[4] D. Richardson. A solution of the identity problem for integral exponential functions. Z. Math. Logik Grundlagen Math. , 15:333–340, 1969.
- 5[5] A. Strzeboński. Real root isolation for exp-log functions. In D. Jeffrey, editor, Proceedings of the International Symposium on Symbolic and Algebraic Computation, ISSAC 2008 , pages 303–313. ACM, 2008.
- 6[6] A. Strzeboński. Real root isolation for exp-log-arctan functions. J. Symb. Comput. , 47:282–314, 2012.
