ArticleslgStudy

mathematics

Midpoint method

Midpoint method 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 Midpoint method rather than just read about it. In short: In numerical analysis, a branch of applied mathematics, the midpoint method is a one-step method for numerically solving the differential equation, y′(t)=f(t,y(t)),y(t0)=y0. The explicit midpoint method is given by the formula the implicit midpoint method by for n=0,1,2,… Here, h is the step size — a small positive number, tn=t0+nh, and yn is the computed approximate value of y(tn).

Midpoint method — main illustration
Midpoint method — illustration

Key takeaways

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

Reference excerpt

In numerical analysis, a branch of applied mathematics, the midpoint method is a one-step method for numerically solving the differential equation, y′(t)=f(t,y(t)),y(t0)=y0. The explicit midpoint method is given by the formula

the implicit midpoint method by

for n=0,1,2,… Here, h is the step size — a small positive number, tn=t0+nh, and yn is the computed approximate value of y(tn). The explicit midpoint method is sometimes also known as the modified Euler method, the implicit method is the most simple collocation method, and, applied to Hamiltonian dynamics, a symplectic integrator. Note that the modified Euler method can refer to Heun's method, for further clarity see List of Runge–Kutta methods. The name of the method comes from the fact that in the formula above, the function f giving the slope of the solution is evaluated at t=tn+h/2=tn+tn+12, the midpoint between tn at which the value of y(t) is known and tn+1 at which the value of y(t) needs to be found. A geometric interpretation may give a better intuitive understanding of the method (see figure at right). In the basic Euler's method, the tangent of the curve at (tn,yn) is computed using f(tn,yn). The next value yn+1 is found where the tangent intersects the vertical line t=tn+1. However, if the second derivative is only positive between tn and tn+1, or only negative (as in the diagram), the curve will increasingly veer away from the tangent, leading to larger errors as h increases. The diagram illustrates that the tangent at the midpoint (upper, green line segment) would most likely give a more accurate approximation of the curve in that interval. However, this midpoint tangent could not be accurately calculated because we do not know the curve (that is what is to be calculated). Instead, this tangent is estimated by using the original Euler's method to estimate the value of y(t) at the midpoint, then computing the slope of the tangent with f(). Finally, the improved tangent is used to calculate the value of yn+1 from yn. This last step is represented by the red chord in the diagram. Note that the red chord is not exactly parallel to the green segment (the true tangent), due to the error in estimating the value of y(t) at the midpoint. The local error at each step of the midpoint method is of order O(h3), giving a global error of order O(h2). Thus, while more computationally intensive than Euler's method, the midpoint method's error generally decreases faster as h→0. The methods are examples of a class of higher-order methods known as Runge–Kutta methods.

Derivation of the midpoint method

The midpoint method is a refinement of the Euler method yn+1=yn+hf(tn,yn), and is derived in a similar manner. The key to deriving Euler's method is the approximate equality

which is obtained from the slope formula

and keeping in mind that y′=f(t,y). For the midpoint methods, one replaces (3) with the more accurate y′(t+h2)≈y(t+h)−y(t)h when instead of (2) we find

One cannot use this equation to find y(t+h) as one does not know y at t+h/2. The solution is then to use a Taylor series expansion exactly as if using the Euler method to solve for y(t+h/2): y(t+h2)≈y(t)+h2y′(t)=y(t)+h2f(t,y(t)), which, when plugged in (4), gives us y(t+h)≈y(t)+hf(t+h2,y(t)+h2f(t,y(t))) and the explicit midpoint method (1a). The implicit method (1b) is obtained by approximating the value at the half step t+h/2 by the midpoint of the line segment from y(t) to y(t+h) y(t+h2)≈12(y(t)+y(t+h)) and thus y(t+h)−y(t)h≈y′(t+h2)≈k=f(t+h2,12(y(t)+y(t+h))) Inserting the approximation yn+hk for y(tn+h) results in the implicit Runge-Kutta method k=f(tn+h2,yn+h2k)yn+1=yn+hk which contains the implicit Euler method with step size h/2 as its first part. Because of the time symmetry of the implicit method, all terms of even degree in h of the local error cancel, so that the local error is automatically of order 𝒪(h3). Replacing the implicit with the explicit Euler method in the determination of k results again in the explicit midpoint method.

See also Rectangle method Heun's method Leapfrog integration and Verlet integration

Notes

References Griffiths, D. V.; Smith, I. M. (1991). Numerical methods for engineers: a programming approach. Boca Raton: CRC Press. p. 218. ISBN 0-8493-8610-1. Süli, Endre; Mayers, David (2003), An Introduction to Numerical Analysis, Cambridge University Press, ISBN 0-521-00794-1. Burden, Richard; Faires, John (2010). Numerical Analysis. Richard Stratton. p. 286. ISBN 978-0-538-73351-9.

Illustrations

Midpoint method: Illustration of the midpoint method assuming that yn equals the exact value y(tn). The midpoint method computes yn+1 so that the red chord is approximately parallel to the tangent line at the midpoint (the green line).
Illustration of the midpoint method assuming that yn equals the exact value y(tn). The midpoint method computes yn+1 so that the red chord is approximately parallel to the tangent line at the midpoint (the green line).
Midpoint method: Illustration of numerical integration for the equation y′=y,y(0)=1. Blue: the Euler method, green: the midpoint method, red: the exact solution, y=et. The step size is h=1.0.
Illustration of numerical integration for the equation y′=y,y(0)=1. Blue: the Euler method, green: the midpoint method, red: the exact solution, y=et. The step size is h=1.0.
Midpoint method: The same illustration for h=0.25. It is seen that the midpoint method converges faster than the Euler method.
The same illustration for h=0.25. It is seen that the midpoint method converges faster than the Euler method.

Worked examples

Example 1 — a first encounter with Midpoint method

Start with the simplest possible case. Write down what Midpoint method 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 Midpoint 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 Midpoint 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 Midpoint method

In research
Midpoint method 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 Midpoint 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
Midpoint method is common in secondary-school and first-year university syllabi. It links to neighbouring topics Numerical differential equations, Runge–Kutta methods, so understanding it makes those chapters shorter.
In everyday life
Look for Midpoint 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 “Midpoint method” →

How to study Midpoint method in 20 minutes

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

Frequently asked questions

What is Midpoint method in simple terms?

In numerical analysis, a branch of applied mathematics, the midpoint method is a one-step method for numerically solving the differential equation, y′(t)=f(t,y(t)),y(t0)=y0. The explicit midpoint method is given by the formula the implicit midpoint method by for n=0,1,2,… Here, h is the step size —…

Why does Midpoint method 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 Midpoint 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 Midpoint method.

Tags

  • Numerical differential equations
  • Runge–Kutta methods

Keep exploring