Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

With the method of Residues, we can calculate the integral \begin{equation}\int_{0}^{2\pi}\phi(\cos x,\sin x)\, dx \end{equation} where $\phi(x,y)=\frac{p(x,y)}{q(x,y)}$, ($p,q$ are polynomials of $x,y$)

In all the examples I have seen however, the antiderivative of $\phi$ is an elementary function (although very complicated) and as such, residues are an optional aid, not a "neccessity". My question is does there exist a function $\phi(x,y)$ so that \begin{equation}\int\phi(\cos x,\sin x)\, dx \end{equation} is not elementary yet \begin{equation}\int_{0}^{2\pi}\phi(\cos x,\sin x)\, dx \end{equation} can be (preferably easily) computed using the Residue Theorem?

A function is said to be elementary if it can be written in terms of polynomial, rational, exponential, logarithmic, trigonometric functions and their inverses. Whether or not a function has an elementary antiderivative is decided by the Risch algorithm.

share|cite|improve this question
up vote 6 down vote accepted

The indefinite integral of such a function can always be written in terms of elementary functions.

Given such a $\phi$, there exists polynomials $P$ and $Q$ such that: $$\phi(\cos x,\sin x)=\frac{P(e^{ix})}{Q(e^{ix})}$$

Using $u=e^{ix}$, we see that $du/(iu)=dx$, and so you want a closed form for:

$$\int \frac{P(u)}{iuQ(u)}du$$

But we can apply partial fractions to come up with a closed form for such an integral.

This is not necessarily gonna be pretty - the formula depends on the roots of $Q$. But there will be a formula in terms of the elementary functions and numbers that are algebraic with respect to the coefficients of $P$ and $Q$.

share|cite|improve this answer
So the answer to my question is no. Thank you. – Nameless Dec 7 '12 at 18:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.