# Leading-order term

The leading-order terms (or leading-order corrections) within a mathematical equation, expression or model are the terms with the largest order of magnitude. The sizes of the different terms in the equation(s) will change as the variables change, and hence, which terms are leading-order may also change.
A common and powerful way of simplifying and understanding a wide variety of complicated mathematical models is to investigate which terms are the largest (and therefore most important), for particular sizes of the variables and parameters, and analyse the behaviour produced by just these terms (regarding the other smaller terms as negligible). This gives the main behaviour – the true behaviour is only small deviations away from this.
The main behaviour may be captured sufficiently well by just the strictly leading-order terms, or it may be decided that slightly smaller terms should also be included. In which case, the phrase "leading-order terms" might be used informally to mean this whole group of terms. The behaviour produced by just the group of leading-order terms is called the leading-order behaviour of the model.

## Basic example

Sizes of the individual terms in y = x$^3$ + 5x + 0.1. (Leading-order terms highlighted in pink.) :
| x | 0.001 | 0.1 | 0.5 | 2 | 10 |
| x$^3$ | 0.000000001 | 0.001 | 0.125 | 8 | 1000 |
| 5x | 0.005 | 0.5 | 2.5 | 10 | 50 |
| 0.1 | 0.1 | 0.1 | 0.1 | 0.1 | 0.1 |
| y | 0.105000001 | 0.601 | 2.725 | 18.1 | 1050.1 |
Consider the equation y = x$^3$ + 5x + 0.1. For five different values of x, the table shows the sizes of the four terms in this equation, and which terms are leading-order. As x increases further, the leading-order terms stay as x$^3$ and y, but as x decreases and then becomes more and more negative, which terms are leading-order again changes.
There is no strict cut-off for when two terms should or should not be regarded as approximately the same order, or magnitude. One possible rule of thumb is that two terms that are within a factor of 10 (one order of magnitude) of each other should be regarded as of about the same order, and two terms that are not within a factor of 100 (two orders of magnitude) of each other should not. However, in between is a grey area, so there are no fixed boundaries where terms are to be regarded as approximately leading-order and where not. Instead the terms fade in and out, as the variables change. Deciding whether terms in a model are leading-order (or approximately leading-order), and if not, whether they are small enough to be regarded as negligible, (two different questions), is often a matter of investigation and judgement, and will depend on the context.

## Leading-order behaviour

Equations with only one leading-order term are possible, but rare. For example, the equation 100 = 1 + 1 + 1 + ... + 1, (where the right hand side comprises one hundred 1's). For any particular combination of values for the variables and parameters, an equation will typically contain at least two leading-order terms, and other lower-order terms. In this case, by making the assumption that the lower-order terms, and the parts of the leading-order terms that are the same size as the lower-order terms (perhaps the second or third significant figure onwards), are negligible, a new equation may be formed by dropping all these lower-order terms and parts of the leading-order terms. The remaining terms provide the leading-order equation, or leading-order balance, or dominant balance, and creating a new equation just involving these terms is known as taking an equation to leading-order. The solutions to this new equation are called the leading-order solutions to the original equation. Analysing the behaviour given by this new equation gives the leading-order behaviour of the model for these values of the variables and parameters. The size of the error in making this approximation is normally roughly the size of the largest neglected term.
Suppose we want to understand the leading-order behaviour of the example above.
* When x = 0.001, the x$^3$ and 5x terms may be regarded as negligible, and dropped, along with any values in the third decimal places onwards in the two remaining terms. This gives the leading-order balance y = 0.1. Thus the leading-order behaviour of this equation at x=0.001 is that y is constant.
* Similarly, when x = 10, the 5x and 0.1 terms may be regarded as negligible, and dropped, along with any values in the third significant figure onwards in the two remaining terms. This gives the leading-order balance y = x$^3$. Thus the leading-order behaviour of this equation at x=10 is that y increases cubically with x.
The main behaviour of y may thus be investigated at any value of x. The leading-order behaviour is more complicated when more terms are leading-order. At x=2 there is a leading-order balance between the cubic and linear dependencies of y on x.
Note that this description of finding leading-order balances and behaviours gives only an outline description of the process – it is not mathematically rigorous.

## Next-to-leading order

Of course, y is not actually completely constant at x = 0.001 – this is just its main behaviour in the vicinity of this point. It may be that retaining only the leading-order (or approximately leading-order) terms, and regarding all the other smaller terms as negligible, is insufficient (when using the model for future prediction, for example), and so it may be necessary to also retain the set of next largest terms. These can be called the next-to-leading order (NLO) terms or corrections. The next set of terms down after that can be called the next-to-next-to-leading order (NNLO) terms or corrections.

## Usage
### Matched asymptotic expansions

Leading-order simplification techniques are used in conjunction with the method of matched asymptotic expansions, when the accurate approximate solution in each subdomain is the leading-order solution.

### Simplifying the Navier–Stokes equations

For particular fluid flow scenarios, the (very general) Navier–Stokes equations may be considerably simplified by considering only the leading-order components. For example, the Stokes flow equations. Also, the thin film equations of lubrication theory.

### Simplification of differential equations by machine learning

Various differential equations may be locally simplified by considering only the leading-order components. Machine learning algorithms can partition simulation or observational data into localized partitions with leading-order equation terms for aerodynamics, ocean dynamics, tumor-induced angiogenesis, and synthetic data applications.