Search results
Results from the WOW.Com Content Network
A finite difference is a mathematical expression of the form f (x + b) − f (x + a).If a finite difference is divided by b − a, one gets a difference quotient.The approximation of derivatives by finite differences plays a central role in finite difference methods for the numerical solution of differential equations, especially boundary value problems.
An illustration of the five-point stencil in one and two dimensions (top, and bottom, respectively). In numerical analysis, given a square grid in one or two dimensions, the five-point stencil of a point in the grid is a stencil made up of the point itself together with its four "neighbors".
For arbitrary stencil points and any derivative of order < up to one less than the number of stencil points, the finite difference coefficients can be obtained by solving the linear equations [6] ( s 1 0 ⋯ s N 0 ⋮ ⋱ ⋮ s 1 N − 1 ⋯ s N N − 1 ) ( a 1 ⋮ a N ) = d !
The second derivative of a function f can be used to determine the concavity of the graph of f. [2] A function whose second derivative is positive is said to be concave up (also referred to as convex), meaning that the tangent line near the point where it touches the function will lie below the graph of the function.
For example, consider the ordinary differential equation ′ = + The Euler method for solving this equation uses the finite difference quotient (+) ′ to approximate the differential equation by first substituting it for u'(x) then applying a little algebra (multiplying both sides by h, and then adding u(x) to both sides) to get (+) + (() +).
It is used to write finite difference approximations to derivatives at grid points. It is an example for numerical differentiation. This stencil is often used to approximate the Laplacian of a function of two variables. An illustration of the nine-point stencil in two dimensions.
This method takes advantage of linear combinations of point values to construct finite difference coefficients that describe derivatives of the function. For example, the second-order central difference approximation to the first derivative is given by:
Therefore, the true derivative of f at x is the limit of the value of the difference quotient as the secant lines get closer and closer to being a tangent line: ′ = (+) (). Since immediately substituting 0 for h results in 0 0 {\displaystyle {\frac {0}{0}}} indeterminate form , calculating the derivative directly can be unintuitive.