ArticleslgStudy

mathematics

Risch algorithm

Risch algorithm is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Risch algorithm rather than just read about it. In short: In symbolic computation, the Risch algorithm is a method of indefinite integration used in some computer algebra systems to find antiderivatives. It is named after the American mathematician Robert Henry Risch, a specialist in computer algebra who developed it in 1968.

Key takeaways

  • Risch algorithm belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Risch algorithm to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Risch algorithm from memory before moving on to harder problems.

Reference excerpt

In symbolic computation, the Risch algorithm is a method of indefinite integration used in some computer algebra systems to find antiderivatives. It is named after the American mathematician Robert Henry Risch, a specialist in computer algebra who developed it in 1968. The algorithm transforms the problem of integration into a problem in algebra. It is based on the form of the function being integrated and on methods for integrating rational functions, radicals, logarithms, and exponential functions. Risch called it a decision procedure, because it is a method for deciding whether a function has an elementary function as an indefinite integral, and if it does, for determining that indefinite integral. However, the algorithm does not always succeed in identifying whether or not the antiderivative of a given function in fact can be expressed in terms of elementary functions. Specifically, the algorithm cannot solve the constant problem, which is undecidable when it needs to determine whether an arbitrary complex number expression is equal to zero. The complete description of the Risch algorithm takes over 100 pages. The Risch–Norman algorithm is a simpler, faster, but less powerful variant that was developed in 1976 by Arthur Norman. Some significant progress has been made in computing the logarithmic part of a mixed transcendental-algebraic integral by Brian L. Miller.

Description The Risch algorithm is used to integrate elementary functions. These are functions obtained by composing exponentials, logarithms, radicals, trigonometric functions, and the four arithmetic operations (+ − × ÷). Laplace solved this problem for the case of rational functions, as he showed that the indefinite integral of a rational function is the sum of a rational function and a finite number of constant multiples of logarithms of rational functions. The algorithm suggested by Laplace is usually described in calculus textbooks; as a computer program, it was finally implemented in the 1960s. Liouville formulated the problem that is solved by the Risch algorithm. Liouville proved by analytical means that if there is an elementary solution g to the equation g′ = f then there exist constants αi and functions ui and v in the field generated by f such that the solution is of the form

g=v+∑i<nαiln⁡(ui) Risch developed a method that allows one to consider only a finite set of functions of Liouville's form. The intuition for the Risch algorithm comes from the behavior of the exponential and logarithm functions under differentiation. For the function f eg, where f and g are differentiable functions, we have

(f⋅eg)′=(f′+f⋅g′)⋅eg, so if eg were in the result of an indefinite integration, it should be expected to be inside the integral. Also, as

(f⋅(ln⁡g)n)′=f′(ln⁡g)n+nfg′g(ln⁡g)n−1 then if (ln g)n were in the result of an integration, then only a few powers of the logarithm should be expected.

Problem examples Finding an elementary antiderivative is very sensitive to details. For instance, the following algebraic function (posted to sci.math.symbolic by Henri Cohen in 1993) has an elementary antiderivative, as Wolfram Mathematica since version 13 shows (however, Mathematica does not use the Risch algorithm to compute this integral):

f(x)=xx4+10x2−96x−71, namely:

F(x)=−18ln((x6+15x4−80x3+27x2−528x+781)x4+10x2−96x−71−(x8+20x6−128x5+54x4−1408x3+3124x2+10001))+C. But if the constant term 71 is changed to 72, it is not possible to represent the antiderivative in terms of elementary functions, as FriCAS also shows. Some computer algebra systems may here return an antiderivative in terms of non-elementary functions (i.e. elliptic integrals), which are outside the scope of the Risch algorithm. For example, Mathematica returns a result with the functions EllipticPi and EllipticF. Integrals in the form

∫x+Ax4+ax3+bx2+cx+ddx were solved by Chebyshev (and in what cases it is elementary), but the strict proof for it was ultimately done by Zolotarev. The following is a more complex example that involves both algebraic and transcendental functions:

f(x)=x2+2x+1+(3x+1)x+ln⁡xxx+ln⁡x(x+x+ln⁡x). In fact, the antiderivative of this function has a fairly short form that can be found using substitution u=x+x+ln⁡x (SymPy can solve it while FriCAS fails with "implementation incomplete (constant residues)" error in Risch algorithm):

F(x)=2(x+ln⁡x+ln⁡(x+x+ln⁡x))+C. Some Davenport "theorems" are still being clarified. For example in 2020 a counterexample to such a "theorem" was found, where it turns out that an elementary antiderivative exists after all.

Implementation Transforming Risch's theoretical algorithm into an algorithm that can be effectively executed by a computer was a complex task which took a long time. The case of the purely transcendental functions (which do not involve roots of polynomials) is relatively easy and was implemented early in most computer algebra systems. The first implementation was done by Joel Moses in Macsyma soon after the publication of Risch's paper. The case of purely algebraic functions was partially solved and implemented in Reduce by James H. Davenport – for simplicity it could only deal with square roots and repeated square roots and not general radicals or other non-quadratic algebraic relations between variables. The general case was solved and almost fully implemented in Scratchpad, a precursor of Axiom, by Manuel Bronstein, there is Axiom's fork FriCAS, with active Risch and other algorithm development on GitHub. However, the implementation did not include some of the branches for special cases completely. As of 2025, there is no full implementation of the Risch algorithm.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Risch algorithm

Start with the simplest possible case. Write down what Risch algorithm claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Risch algorithm before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Risch algorithm ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Risch algorithm

In research
Risch algorithm appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Risch algorithm in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Risch algorithm is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer algebra, Differential algebra, Integral calculus, so understanding it makes those chapters shorter.
In everyday life
Look for Risch algorithm outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Risch algorithm” →

How to study Risch algorithm in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Risch algorithm means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Risch algorithm out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Risch algorithm in simple terms?

In symbolic computation, the Risch algorithm is a method of indefinite integration used in some computer algebra systems to find antiderivatives. It is named after the American mathematician Robert Henry Risch, a specialist in computer algebra who developed it in 1968.

Why does Risch algorithm matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Risch algorithm?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Risch algorithm.

Tags

  • Computer algebra
  • Differential algebra
  • Integral calculus

Keep exploring