将以下英文翻译为中文:Besides trigonometry and geometry, two of the other most important tools used in the field of shading are integrals and differentials. These belong to a field of mathematics known as calculus: "calculus is the mathematical study of change, in the same way, that geometry is the study of shape and algebra is the study of operations and their application to solving equations". Both concepts are incredibly simple (and related to each other in a way we will explain now) when you know a few basic things about them.
Let's start with differentials. In computer graphics, we often have to deal with functions. Measuring the amount of light arriving at a point on a surface can be seen as a function which we could write as
where
here denotes a point on the surface. What this equation tells us is that the amount of light arriving on a point from the surface of an object is a function of this point's position in 3D space (Figure 3). Simpler examples can be found such as the position of a moving ball as a function of time which we can write as
. Many times we will want to know how this function changes within the proximity of
which we note
. In mathematical notation, the symbol
(the greek upper case letter delta) generally refers to a very small difference between two points (where these points are the input value of the function's argument). We have illustrated the concept in Figure 4. If we plot the result of a function
at two positions,
and
we can then trace a secant line between these two points. As
approaches zero, we can see (Figure 4) that the line passing through these two points gives a more precise approximation of the tangent line at
. The tangent line is the limit of the secant line, as
approaches zero. The slope of this line is equal to the derivative of the function
at
and can be computed as
(the difference between
and
) divided by
: