Safekipedia

Finite difference

Adapted from Wikipedia Β· Adventurer experience

A finite difference is a way to see how a function or idea changes between two points. It looks at the change between the value of a function at one point and its value at another point, often very close. This helps us guess how fast something is changing, which is useful in many parts of math and science.

The difference operator, shown as Ξ” (uppercase Delta), is a special tool used to find these changes. For example, it can show 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 very small steps.

Finite differences are important in numerical analysis, where they help us guess 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 useful this idea is in understanding how things change.

Basic types

There are three basic types of finite differences: forward, backward, and central differences.

A forward difference finds 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.

A central difference averages these two methods, giving a more balanced view of how the function’s value changes.

Relation with derivatives

Main article: difference quotient

Finite differences help us guess how fast a function is changing at a point. This change is called a derivative. In math, a derivative is usually found using a special math rule. But with finite differences, we use a small number called "h" instead. This lets us guess the derivative using forward, backward, or central differences.

The central difference method often gives a better guess than the forward or backward methods. But it can sometimes give the wrong answer for certain functions.

Higher-order differences

Higher-order differences help us understand more complex changes in functions. For example, they can show us how the rate of change itself is changing. This is like learning not just how fast something is moving, but also how quickly its speed is changing.

These methods improve our guesses by using different types of differences together. They are important in mathematics for solving hard problems more precisely.

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), doing n pairwise differences gives a constant value. This constant is ahnn!, where h is the space between x-values and a is the biggest number in the polynomial.

This way helps us find the polynomial that goes through a group of points where the x-values are evenly spaced. By using a table of differences, we can learn the degree of the polynomial and its numbers. For example, if it takes three pairwise differences to get a constant, the polynomial is of degree 3. With this knowledge, we can find each number and make the polynomial.

xy
14
4109
7772
102641
136364
xyΞ”yΞ”2yΞ”3y
14
4109105
7772663558
10264118691206648
13636437231854648
xyΞ”yΞ”2y
14 βˆ’ 4(1)3 = 4 βˆ’ 4 = 0
4109 βˆ’ 4(4)3 = 109 βˆ’ 256 = βˆ’147βˆ’147
7772 βˆ’ 4(7)3 = 772 βˆ’ 1372 = βˆ’600βˆ’453βˆ’306
102641 βˆ’ 4(10)3 = 2641 βˆ’ 4000 = βˆ’1359βˆ’759βˆ’306
136364 βˆ’ 4(13)3 = 6364 βˆ’ 8788 = βˆ’2424βˆ’1065βˆ’306
xyΞ”y
10 βˆ’ (βˆ’17(1)2) = 0 + 17 = 17
4βˆ’147 βˆ’ (βˆ’17(4)2) = βˆ’147 + 272 = 125108
7βˆ’600 βˆ’ (βˆ’17(7)2) = βˆ’600 + 833 = 233108
10βˆ’1359 βˆ’ (βˆ’17(10)2) = βˆ’1359 + 1700 = 341108
13βˆ’2424 βˆ’ (βˆ’17(13)2) = βˆ’2424 + 2873 = 449108
xy
117 βˆ’ 36(1) = 17 βˆ’ 36 = βˆ’19
4125 βˆ’ 36(4) = 125 βˆ’ 144 = βˆ’19
7233 βˆ’ 36(7) = 233 βˆ’ 252 = βˆ’19
10341 βˆ’ 36(10) = 341 βˆ’ 360 = βˆ’19
13449 βˆ’ 36(13) = 449 βˆ’ 468 = βˆ’19

Arbitrarily sized kernels

Further information: Five-point stencil

Using linear algebra, we can find ways to guess how a function changes by checking many points around a central point. This helps us learn about the function, especially when we are close to the edge of our data and can't see points on one side. These methods can be shown as patterns on special grids, like hexagons or diamonds. These patterns help us see how the function behaves from different directions.

The rules for these patterns follow certain math ideas. For example, when we combine two functions, we can break down how they change together into simpler parts. This makes it easier to study their behavior. This way of thinking helps scientists and engineers solve hard problems by splitting them into smaller, easier pieces.

In differential equations

Finite differences help us solve math problems called differential equations. These equations describe how things change, like how heat moves or how fluids flow. Instead of using hard math, scientists use finite differences to find answers that are close enough. This makes it easier to solve these problems with computers, especially when studying heat and how fluids move.

Newton's series

The Newton series is a way to show functions by looking at how values change. It is named after Isaac Newton. This idea is like describing curves with polynomial math, but it works for points that are not smooth.

This series was first shared in Newton's Principia Mathematica in 1687.

It works well for polynomial functions and many other types. It helps to guess or find exact values at different points. It can also be used in special parts of math and physics.

Calculus of finite differences

The calculus of finite differences looks at how to estimate changes in functions using steps. A main idea is the difference operator, written as Ξ”. It helps us see how a function changes from one point to the next. For a function f, the forward difference is found by doing f(x + 1) βˆ’ f(x). This works like a derivative in calculus but uses differences.

We can use this idea for more complex cases and different types of differences, like backward and central differences. These tools are helpful in numerical methods when exact derivatives are difficult to find, and we need approximations. The rules for using these operators are similar to those in regular calculus, which makes them useful for solving many math problems.

Generalizations

A generalized finite difference is a way to look at how a function changes. It adds up values of the function at different points, each multiplied by a special number.

These ideas can be made even broader. For instance, the sum can go on forever, making an infinite difference. The numbers can also change based on where they are used, resulting in a weighted finite difference. These ideas help mathematicians study how smoothly or roughly a function changes. They are useful in many areas, like studying structures known as difference algebras.

Multivariate finite differences

Finite differences can work with more than one variable, just like partial derivatives in several variables.

We can approximate these derivatives by using finite differences. For example, we can estimate how a function changes when we move slightly in both the x and y directions. This helps us see how the function changes in different directions on a grid.

For functions with many variables, there are special methods to make these calculations faster and easier.

Related articles

This article is a child-friendly adaptation of the Wikipedia article on Finite difference, available under CC BY-SA 4.0.