Lably
Skip to content

Discrete calculus

Discrete (i.e., incremental) version of infinitesimal calculus

  • 18 min read
  • 9 chapters

Related on Lably

Through Mathematics, Geometry and Algebra

Discrete calculus has two entry points, differential calculus and integral calculus. Differential calculus concerns incremental rates of change and the slopes of piece-wise linear curves. Integral calculus concerns accumulation of quantities and the areas under piece-wise constant curves. These two points of view are related to each other by the fundamental theorem of discrete calculus.

The study of the concepts of change starts with their discrete form. The development is dependent on a parameter, the increment Δx of the independent variable. If we so choose, we can make the increment smaller and smaller and find the continuous counterparts of these concepts as limits. Informally, the limit of discrete calculus as Δx→0 is infinitesimal calculus. Even though it serves as a discrete underpinning of calculus, the main value of discrete calculus is in applications.

Two initial constructions

Discrete differential calculus is the study of the definition, properties, and applications of the difference quotient of a function. The process of finding the difference quotient is called differentiation. Given a function defined at several points of the real line, the difference quotient at that point is a way of encoding the small-scale (i.e., from the point to the next) behavior of the function. By finding the difference quotient of a function at every pair of consecutive points in its domain, it is possible to produce a new function, called the difference quotient function or just the difference quotient of the original function. In formal terms, the difference quotient is a linear operator which takes a function as its input and produces a second function as its output. This is more abstract than many of the processes studied in elementary algebra, where functions usually input a number and output another number. For example, if the doubling function is given the input three, then it outputs six, and if the squaring function is given the input three, then it outputs nine. The derivative, however, can take the squaring function as an input. This means that the derivative takes all the information of the squaring function—such as that two is sent to four, three is sent to nine, four is sent to sixteen, and so on—and uses this information to produce another function. The function produced by differentiating the squaring function turns out to be something close to the doubling function.

Suppose the functions are defined at points separated by an increment Δx=h>0: a,a+h,a+2h,…,a+nh,…

The "doubling function" may be denoted by g(x)=2x and the "squaring function" by f(x)=x2. The "difference quotient" is the rate of change of the function over one of the intervals [x,x+h] defined by the formula: f(x+h)−f(x)h. It takes the function f as an input, that is all the information—such as that two is sent to four, three is sent to nine, four is sent to sixteen, and so on—and uses this information to output another function, the function g(x)=2x+h, as will turn out. As a matter of convenience, the new function may defined at the middle points of the above intervals: a+h/2,a+h+h/2,a+2h+h/2,...,a+nh+h/2,... As the rate of change is that for the whole interval [x,x+h], any point within it can be used as such a reference or, even better, the whole interval which makes the difference quotient a 1-cochain.

The most common notation for the difference quotient is: ΔfΔx(x+h/2)=f(x+h)−f(x)h.

If the input of the function represents time, then the difference quotient represents change with respect to time. For example, if f is a function that takes a time as input and gives the position of a ball at that time as output, then the difference quotient of f is how the position is changing in time, that is, it is the velocity of the ball.

If a function is linear (that is, if the points of the graph of the function lie on a straight line), then the function can be written as y=mx+b, where x is the independent variable, y is the dependent variable, b is the y-intercept, and: m=riserun=change in ychange in x=ΔyΔx.

This gives an exact value for the slope of a straight line.

If the function is not linear, however, then the change in y divided by the change in x varies. The difference quotient give an exact meaning to the notion of change in output with respect to change in input. To be concrete, let f be a function, and fix a point x in the domain of f. (x,f(x)) is a point on the graph of the function. If h is the increment of x, then x+h is the next value of x. Therefore, (x+h,f(x+h)) is the increment of (x,f(x)). The slope of the line between these two points is m=f(x+h)−f(x)(x+h)−x=f(x+h)−f(x)h. So m is the slope of the line between (x,f(x)) and (x+h,f(x+h)).

Here is a particular example, the difference quotient of the squaring function. Let f(x)=x2 be the squaring function. Then: ΔfΔx(x)=(x+h)2−x2h=x2+2hx+h2−x2h=2hx+h2h=2x+h.

The difference quotient of the difference quotient is called the second difference quotient and it is defined at a+h,a+2h,a+3h,…,a+nh,… and so on.

Discrete integral calculus is the study of the definitions, properties, and applications of the Riemann sums. The process of finding the value of a sum is called integration. In technical language, integral calculus studies a certain linear operator.

The Riemann sum inputs a function and outputs a function, which gives the algebraic sum of areas between the part of the graph of the input and the x-axis.

A motivating example is the distances traveled in a given time. distance=speed⋅time

If the speed is constant, only multiplication is needed, but if the speed changes, we evaluate the distance traveled by breaking up the time into many short intervals of time, then multiplying the time elapsed in each interval by one of the speeds in that interval, and then taking the sum (a Riemann sum) of the distance traveled in each interval.

When velocity is constant, the total distance traveled over the given time interval can be computed by multiplying velocity and time. For example, travelling a steady 50 mph for 3 hours results in a total distance of 150 miles. In the diagram on the left, when constant velocity and time are graphed, these two values form a rectangle with height equal to the velocity and width equal to the time elapsed. Therefore, the product of velocity and time also calculates the rectangular area under the (constant) velocity curve. This connection between the area under a curve and distance traveled can be extended to any irregularly shaped region exhibiting an incrementally varying velocity over a given time period. If the bars in the diagram on the right represents speed as it varies from an interval to the next, the distance traveled (between the times represented by a and b) is the area of the shaded region s.

So, the interval between a and b is divided into a number of equal segments, the length of each segment represented by the symbol Δx. For each small segment, we have one value of the function f(x). Call that value v. Then the area of the rectangle with base Δx and height v gives the distance (time Δx multiplied by speed v) traveled in that segment. Associated with each segment is the value of the function above it, f(x)=v. The sum of all such rectangles gives the area between the axis and the piece-wise constant curve, which is the total distance traveled.

Suppose a function is defined at the mid-points of n intervals of equal length Δx=h>0, so h=a−bn: a+h/2,a+h+h/2,a+2h+h/2,…,a+nh−h/2. Then the Riemann sum from a to b=a+nh in sigma notation is: ∑i=0n−1f(a+ih+h/2)Δx. As this computation is carried out for each n, the new function is defined at the points: a,a+h,a+2h,…,a+nh,…

The fundamental theorem of calculus states that differentiation and integration are inverse operations. More precisely, it relates the difference quotients to the Riemann sums. It can also be interpreted as a precise statement of the fact that differentiation is the inverse of integration.

The fundamental theorem of calculus: If a function f is defined on a partition of the interval [a,b], b=a+nh, and if F is a function whose difference quotient is f, then we have: ∑i=0n−1f(a+ih+h/2)Δx=F(b)−F(a). Furthermore, for every m=0,1,2,…,n−1, we have: ΔΔx∑i=0mf(a+ih+h/2)Δx=f(a+mh+h/2).

This is also a prototype solution of a difference equation. Difference equations relate an unknown function to its difference or difference quotient, and are ubiquitous in the sciences.

Sign in to keep reading

8 more chapters are free with a Lably account.

More in Topics in mathematics