ArticleslgStudy

computer science

Muller's method

Muller's method is a computer science 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 Muller's method rather than just read about it. In short: Muller's method is a root-finding algorithm, a numerical method for solving equations of the form f(x) = 0. It was first presented by David E.

Muller's method — main illustration
Muller's method — illustration

Key takeaways

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

Reference excerpt

Muller's method is a root-finding algorithm, a numerical method for solving equations of the form f(x) = 0. It was first presented by David E. Muller in 1956.

Muller's method proceeds according to a third-order recurrence relation similar to the second-order recurrence relation of the secant method. Whereas the secant method proceeds by constructing a line through two points on the graph of f corresponding to the last two iterative approximations and then uses the line's root as the next approximation at every iteration, by contrast, Muller's method uses three points corresponding to the last three iterative approximations, constructs a parabola through these three points, and then uses a root of the parabola as the next approximation at every iteration. It converges with order ⁠p≈1.839⁠, faster than the secant method but slower than Newton's method.

Derivation Muller's method uses three initial approximations of the root, x0,x1 and ⁠x2⁠, and determines the next approximation x3 by considering the intersection of the x-axis with the parabola through ⁠(x0,f(x0))⁠, (x1,f(x1)) and ⁠(x2,f(x2))⁠. Consider the quadratic polynomial P(x)=a(x−x2)2+b(x−x2)+c, that passes through ⁠(x0,f(x0))⁠, (x1,f(x1)) and ⁠(x2,f(x2))⁠. To simplify notation, define the differences h0=x1−x0,h1=x2−x1 and δ0=f(x1)−f(x0)h0,δ1=f(x2)−f(x1)h1. Substituting each of the three points ⁠(x0,f(x0))⁠, (x1,f(x1)) and (x2,f(x2)) into P(x) and solving simultaneously for a,b and c gives a=δ1−δ0h1+h0,b=ah1+δ1,c=f(x2). The quadratic formula is then applied to P(x) to determine x3 as x3−x2=−2cb+sign⁡(b)b2−4ac=−2cb(1+1−4ac/b2), where the sign preceding the radical term is chosen to match the sign of b to ensure the next iterate is closest to ⁠x2⁠. Thus, x3=x2−2cb(1+1−4ac/b2). Once x3 is determined, the process is repeated. Note that due to the radical expression in the denominator, iterates can be complex even when the previous iterates are all real. This is in contrast with other root-finding algorithms like the secant method, Sidi's generalized secant method or Newton's method, whose iterates will remain real if one starts with real numbers. Having complex iterates can be an advantage (if one is looking for complex roots) or a disadvantage (if it is known that all roots are real), depending on the problem. The method can easily be adopted for scenarios, such as collision detection, where not the closest root is of interest, but the smaller one by replacing sign⁡(b) with sign⁡(−a): x3=x2−2cb−sign⁡(a)b2−4ac.

Algorithm The following pseudocode describes Muller's method for approximating a root of the equation f(x) = 0. It returns an estimate x3 that satisfies ⁠|x3−x2|<ε⁠, where ε is a user-specified tolerance.

input: function f, initial approximations x0, x1, x2, tolerance ε, maximum iterations Nmax for n = 0 to Nmax do h0 ← x1 − x0 h1 ← x2 − x1 δ0 ← (f(x1) − f(x0)) / h0 δ1 ← (f(x2) − f(x1)) / h1 a ← (δ1 − δ0) / (h1 + h0) b ← a·h1 + δ1 c ← f(x2) if b ≥ 0 then denominator ← b + sqrt(b² − 4·a·c) else denominator ← b − sqrt(b² − 4·a·c) end if x3 ← x2 − 2·c / denominator if |x3 − x2| < ε then return x3 end if x0 ← x1 x1 ← x2 x2 ← x3 end for return x3

Example Suppose we seek a solution of the polynomial f(x)=−x3−x+7. Applying Muller's method with initial guesses ⁠x0=1⁠, x1=2 and x2=3 and a tolerance of 10−9 gives the following approximations:

To the required tolerance, Muller's method generates the solution 1.7392038612200968 on the sixth iteration. By modifying the initial guesses, Muller's method can also generate complex solutions. Applying Muller's method again but with initial guesses ⁠x0=−1⁠, x1=−2 and x2=−3 and a tolerance of 10−9 gives the following approximations:

To the required tolerance, Muller's method generates the complex solution −0.8696019306084998−1.8079332269621338i on the eighth iteration.

Speed of convergence Suppose the real-valued function f(x) has a root at ⁠x=α⁠. Let en=xn−α denote the error at the ⁠n⁠-th iteration of Muller's method. By definition, we have en+1=Kenp where p is the order of convergence and K is an asymptotic constant. Therefore, en=Ken−1p and en−1=Ken−2p which gives en−1∼en1/p and en−2∼en1/p2. Near the root ⁠x=α⁠, Taylor's theorem gives f(x)=f′(α)(x−α)+f″(α)2(x−α)2+R(x) where R(x) is the remainder term, defined as R(x)=f‴(ξ)6(x−α)3 for some ξ between x and ⁠α⁠. Using the three consecutive iterates of Mullers method, ⁠x=xn⁠, x=xn−1 and x=xn−2 evaluated at the root gives R(α)=O(enen−1en−2) or en+1=O(enen−1en−2) since the next iterate is obtained by setting the interpolating quadratic to zero. Asymptotically, en+1=Kenen−1en−2. Using en−1∼en1/p and en−2∼en1/p2 gives en+1=Ken1+1p+1p2. By definition, en+1=Kenp so equating exponents gives p=1+1p+1p2 which can be rearranged to give p3−p2−p−1=0. Solving this equation gives ⁠p≈1.839⁠, so the order of convergence of Muller's method is exactly the tribonacci constant. This can be compared with approximately 1.618, exactly the golden ratio, for the secant method and with exactly 2 for Newton's method. So, the secant method makes less progress per iteration than Muller's method and Newton's method makes more progress. More precisely, if α denotes a single root of f(x) and f′(α)≠0 and f(x) is three times continuously differentiable, if the initial guesses ⁠x0⁠, x1 and x2 are taken sufficiently close to ⁠α⁠, then the iterates satisfy limk→∞|xk−α||xk−1−α|μ=|f‴(α)6f′(α)|(μ−1)/2 where μ≈1.84 is the positive solution of ⁠x3−x2−x−1=0⁠, the defining equation for the tribonacci constant.

… excerpt ends here. Continue reading the full article.

Illustrations

Muller's method: Animation illustrating Muller's method applied to the function f(x) = cos(x) − x.
At each iteration, a parabola interpolating three points is constructed, and one of its
roots is used to generate the next approximation.
Animation illustrating Muller's method applied to the function f(x) = cos(x) − x. At each iteration, a parabola interpolating three points is constructed, and one of its roots is used to generate the next approximation.

Worked examples

Example 1 — a first encounter with Muller's method

Start with the simplest possible case. Write down what Muller's method claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, 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 Muller's method 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 Muller's method 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 Muller's method

In research
Muller's method appears in computer science 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 Muller's method 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
Muller's method is common in secondary-school and first-year university syllabi. It links to neighbouring topics Root-finding algorithms, so understanding it makes those chapters shorter.
In everyday life
Look for Muller's method 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 “Muller's method” →

How to study Muller's method in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Muller's method 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 Muller's method out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Muller's method in simple terms?

Muller's method is a root-finding algorithm, a numerical method for solving equations of the form f(x) = 0. It was first presented by David E.

Why does Muller's method matter?

Because it connects several computer science 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 Muller's method?

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 Muller's method.

Tags

  • Root-finding algorithms

Keep exploring