Applying the implicit midpoint rule to the simple harmonic oscillator system gives
Factor the change in the quadratic form and substitute these equations:
Thus every step preserves the first integral
For completeness, the implicit equations are solvable for every real : putting , their coefficient matrix has determinant and the update is
This is an orthogonal matrix, as follows from . It therefore preserves the Euclidean norm, explaining geometrically the exact energy conservation. This is a concrete instance of Runge-Kutta conservation of quadratic invariants. Preservation of the circle does not assert that the numerical and exact solutions have the same phase at a fixed nonzero step size.
Let be continuous in its first variable and uniformly Lipschitz continuous in its second variable, with constant . Retain the finite-interval smoothness assumptions and the bound from the preceding subpart. We first establish solvability of each implicit step. For a proposed starting state , the map
has Lipschitz constant . If , the contraction mapping theorem on the complete state space gives a unique next state .
To compute a useful Lipschitz constant for the method, introduce its increment function by
For two starting states ,
Rearranging gives the implicit midpoint Lipschitz estimate
Thus, for example, gives an increment Lipschitz constant at most , uniformly as .
For an explicit global error estimate, set . Subtract the numerical formula from the exact-value identity containing :
The Lipschitz condition and the triangle inequality imply
and therefore
Iterating this inequality is the elementary discrete Gronwall inequality argument. For , summing the geometric series and using gives
For , . If , this proves
With the exact initial value, , the global error is and tends uniformly to zero on every such finite interval. If , the recurrence instead gives , with the same conclusion. Starting values merely converging to the exact initial value also suffice for numerical convergence; second-order accuracy requires their errors to be . The result concerns exact implicit solves and convergence on fixed finite intervals, not uniform accuracy over an unbounded time interval.
Work on a fixed finite interval . Write , , and use the paper's normalized local truncation error
Assume has bounded continuous derivatives through order three on this interval, with and . Assume also that the Jacobian matrix has operator norm at most on the segments joining to the endpoint averages. For a scalar equation this last hypothesis is simply there.
Two symmetric estimates separate the errors. By Taylor's theorem applied to about , the linear term integrates to zero on , giving
Likewise the two linear terms in the endpoint expansions cancel, and their second-order remainders give
The derivative bound on gives a Lipschitz condition in its second variable. Since , the triangle inequality now yields
The constant is independent of and as long as the steps remain in the fixed interval. This implicit midpoint consistency bound proves numerical consistency of order two. The corresponding unnormalized residual is ; the two powers conventionally called local truncation error differ because the paper divides by the step size. If local error instead means the error of an exactly solved numerical step started at , the small-step Lipschitz condition gives the bound as well.
Integrate the ordinary differential equation across one step, using the fundamental theorem of calculus:
The midpoint quadrature rule approximates the integral by . Approximate the unknown midpoint state by the midpoint value of linear interpolation between the endpoint states:
Combining these approximations gives the implicit midpoint rule
It is an implicit time-stepping method because its new state occurs inside the evaluation of . An equivalent derivation uses a straight-line approximation on the step and imposes the ordinary differential equation at its midpoint, a one-stage collocation method.
Clearing the denominators in the rational interpolation conditions gives
These are linear equations for unknowns. The th row of the coefficient matrix, in the order , is
This rational interpolation linearization is equivalent to the original fraction conditions only if at every interpolation node. If , the cleared equation merely forces , leaving the fraction undefined.
For , the coefficient row becomes
This is the Vandermonde matrix, whose determinant is . Equivalently, a vector in its null space would define a degree-at-most- polynomial vanishing at all distinct interpolation nodes, which is zero by the preceding uniqueness proof. Thus the cleared linear system has exactly one solution.
There is also a constructive description of that solution. Define the monic polynomial
The polynomial is monic of degree and vanishes at every interpolation node. It must therefore equal . By polynomial division, write uniquely
The quotient is monic of degree , and
is the unique coefficient solution. This does not assert that is nonzero at every interpolation node.
For a counterexample with , , choose and the specified data , so . The cleared equations reduce to
giving the unique solution , . But at the quotient is . Indeed, any genuine rational interpolant of this prescribed form would need ; then forces the constant numerator to be zero. At a nonzero denominator its value at would also be zero, never one. Cancelling the common factor in the cleared candidate would merely give the identically zero rational function, which still fails the data. Hence

Pinned article: Introduction to the OurBigBook Project

Welcome to the OurBigBook Project! Our goal is to create the perfect publishing platform for STEM subjects, and get university-level students to write the best free STEM tutorials ever.
Everyone is welcome to create an account and play with the site: ourbigbook.com/go/register. We belive that students themselves can write amazing tutorials, but teachers are welcome too. You can write about anything you want, it doesn't have to be STEM or even educational. Silly test content is very welcome and you won't be penalized in any way. Just keep it legal!
We have two killer features:
  1. topics: topics group articles by different users with the same title, e.g. here is the topic for the "Fundamental Theorem of Calculus" ourbigbook.com/go/topic/fundamental-theorem-of-calculus
    Articles of different users are sorted by upvote within each article page. This feature is a bit like:
    • a Wikipedia where each user can have their own version of each article
    • a Q&A website like Stack Overflow, where multiple people can give their views on a given topic, and the best ones are sorted by upvote. Except you don't need to wait for someone to ask first, and any topic goes, no matter how narrow or broad
    This feature makes it possible for readers to find better explanations of any topic created by other writers. And it allows writers to create an explanation in a place that readers might actually find it.
    Figure 1.
    Screenshot of the "Derivative" topic page
    . View it live at: ourbigbook.com/go/topic/derivative
  2. local editing: you can store all your personal knowledge base content locally in a plaintext markup format that can be edited locally and published either:
    This way you can be sure that even if OurBigBook.com were to go down one day (which we have no plans to do as it is quite cheap to host!), your content will still be perfectly readable as a static site.
    Figure 5. . You can also edit articles on the Web editor without installing anything locally.
    Video 3.
    Edit locally and publish demo
    . Source. This shows editing OurBigBook Markup and publishing it using the Visual Studio Code extension.
  3. https://raw.githubusercontent.com/ourbigbook/ourbigbook-media/master/feature/x/hilbert-space-arrow.png
  4. Infinitely deep tables of contents:
    Figure 6.
    Dynamic article tree with infinitely deep table of contents
    .
    Descendant pages can also show up as toplevel e.g.: ourbigbook.com/cirosantilli/chordate-subclade
All our software is open source and hosted at: github.com/ourbigbook/ourbigbook
Further documentation can be found at: docs.ourbigbook.com
Feel free to reach our to us for any help or suggestions: docs.ourbigbook.com/#contact