Finite difference
Adapted from Wikipedia Β· Discoverer experience
A finite difference is a way to understand how a function or idea changes between two points. It looks at the difference between the value of a function at one point and its value at another point, often close by. This helps us approximate how fast something is changing, which is very useful in many areas of math and science.
The difference operator, shown as Ξ (uppercase Delta), is a special tool used to find these differences. For example, it can tell us how much a function changes when we move one step forward. This idea is similar to how we study changes in calculus, but it uses whole numbers instead of tiny, invisible steps.
Finite differences are important in numerical analysis, where they help us estimate rates of change without needing exact formulas. They were first introduced by Brook Taylor in 1715 and have been studied by many famous mathematicians like George Boole, L. M. Milne-Thomson, and KΓ‘roly Jordan. Their ideas go back even further, to the time of Jost BΓΌrgi and Isaac Newton, showing how old and valuable this concept is in understanding how things change.
Basic types
Three basic types of finite differences are forward, backward, and central differences. A forward difference calculates the change in a functionβs value by subtracting the value at one point from the value at a later point. A backward difference does the opposite, subtracting the value at an earlier point from the value at a later point. Finally, a central difference averages these two approaches, giving a more balanced view of the change in the functionβs value.
Relation with derivatives
Main article: difference quotient
Finite differences help us estimate how fast a function is changing at a point, which is called a derivative. In math, a derivative is usually found using a limit, but with finite differences, we use a small number called "h" instead of getting infinitely close to zero. By doing this, we can approximate the derivative using forward, backward, or central differences.
The central difference method often gives a better approximation than the forward or backward methods because it reduces errors. However, it can sometimes give the wrong answer for certain types of functions that jump back and forth in value.
Higher-order differences
Higher-order differences help us approximate more complex changes in functions. For example, we can use a special method to estimate the rate at which the rate of change itself is changing. This is like figuring out not just how fast something is moving, but also how quickly its speed is increasing or decreasing.
These methods can be used to build better approximations by combining different types of differences. They connect closely to how we understand changes in mathematics and can help solve difficult problems more accurately.
Polynomials
For a polynomial of degree n, which looks like P(x) = axn + bxnβ1 + l.o.t. (where "l.o.t." means lower order terms), applying n pairwise differences results in a constant value. This constant is given by ahnn!, where h is the difference between x-values and a is the coefficient of the highest-order term.
This method can help find the polynomial that passes through a set of points where the x-values are evenly spaced. By using a table of differences, we can determine the degree of the polynomial and its coefficients. For example, if it takes three pairwise differences to reach a constant, the polynomial is of degree 3. Using this information, we can solve for each coefficient and build the polynomial.
| x | y |
|---|---|
| 1 | 4 |
| 4 | 109 |
| 7 | 772 |
| 10 | 2641 |
| 13 | 6364 |
| x | y | Ξy | Ξ2y | Ξ3y |
|---|---|---|---|---|
| 1 | 4 | |||
| 4 | 109 | 105 | ||
| 7 | 772 | 663 | 558 | |
| 10 | 2641 | 1869 | 1206 | 648 |
| 13 | 6364 | 3723 | 1854 | 648 |
| x | y | Ξy | Ξ2y |
|---|---|---|---|
| 1 | 4 β 4(1)3 = 4 β 4 = 0 | ||
| 4 | 109 β 4(4)3 = 109 β 256 = β147 | β147 | |
| 7 | 772 β 4(7)3 = 772 β 1372 = β600 | β453 | β306 |
| 10 | 2641 β 4(10)3 = 2641 β 4000 = β1359 | β759 | β306 |
| 13 | 6364 β 4(13)3 = 6364 β 8788 = β2424 | β1065 | β306 |
| x | y | Ξy |
|---|---|---|
| 1 | 0 β (β17(1)2) = 0 + 17 = 17 | |
| 4 | β147 β (β17(4)2) = β147 + 272 = 125 | 108 |
| 7 | β600 β (β17(7)2) = β600 + 833 = 233 | 108 |
| 10 | β1359 β (β17(10)2) = β1359 + 1700 = 341 | 108 |
| 13 | β2424 β (β17(13)2) = β2424 + 2873 = 449 | 108 |
| x | y |
|---|---|
| 1 | 17 β 36(1) = 17 β 36 = β19 |
| 4 | 125 β 36(4) = 125 β 144 = β19 |
| 7 | 233 β 36(7) = 233 β 252 = β19 |
| 10 | 341 β 36(10) = 341 β 360 = β19 |
| 13 | 449 β 36(13) = 449 β 468 = β19 |
Arbitrarily sized kernels
Further information: Five-point stencil
Using linear algebra, we can create ways to estimate how a function changes by looking at many points around a central point. This helps us understand the function's behavior, especially when we are near the edge of our data grid and can't look at points on one side. These methods can be shown as patterns on special grids, like hexagons or diamonds, which help us see how the function behaves from different angles.
The rules for these patterns follow certain mathematical principles. For example, when we combine two functions, the way they change together can be broken down into simpler parts, making it easier to study their behavior. This approach helps scientists and engineers solve complex problems by breaking them into smaller, more manageable pieces.
In differential equations
Finite differences are very useful in solving math problems called differential equations. These equations describe how things change, like how heat moves or how fluids flow. Instead of solving these problems with complex math, scientists often use finite differences to approximate the answers. This makes it easier to solve these problems with computers, especially in fields like studying heat and fluid movement.
Newton's series
The Newton series is a way to represent functions using differences between values, named after Isaac Newton. It is similar to how we can describe curves with polynomials in continuous math but works for discrete points instead. This method was first published in Newton's Principia Mathematica in 1687.
This series works well for polynomial functions and many other types, helping to approximate or exactly calculate values at different points. It can also be used in special areas of math and physics, like studying quantum spins or discrete counting.
Calculus of finite differences
The calculus of finite differences studies how to approximate changes in functions using discrete steps. A key idea is the difference operator, often written as Ξ, which helps us understand how a function changes from one point to another. For example, given a function f, the forward difference is calculated as f(x + 1) β f(x). This operator acts similarly to the derivative in calculus but uses differences instead of limits.
This approach can be extended to higher orders and various types of differences, such as backward and central differences. These tools are useful in numerical methods, where exact derivatives are hard to compute, and approximations are needed instead. The rules for working with these operators resemble those in regular calculus, making them a valuable part of solving many mathematical problems.
Generalizations
A generalized finite difference is an expression where the difference includes a sum of values of a function at several points, each multiplied by a specific number. This helps in studying how functions change over intervals.
These ideas can be expanded further. For example, the sum can include an endless number of terms, creating an infinite difference. The numbers used in the sum can also change depending on the point at which they are used, leading to weighted finite difference. These generalizations help mathematicians understand how smooth or rough a functionβs changes are and are useful in various areas, including the study of structures called difference algebras.
Multivariate finite differences
Finite differences can work with more than one variable, similar to how we think about partial derivatives in several variables.
There are ways to approximate these derivatives using finite differences. For example, the derivative of a function with respect to x and y can be approximated by measuring the function's value at points slightly shifted in both x and y directions. This helps us understand how the function changes when we move in different directions on a grid.
For functions with many variables, special methods can reduce the number of calculations needed to estimate these changes efficiently.
This article is a child-friendly adaptation of the Wikipedia article on Finite difference, available under CC BY-SA 4.0.
Safekipedia