Derivatives and Integrals
Derivatives, Integrals, and Change of Variables
Linear Maps
Properties of Linear Maps
Linear maps are transformations that preserve three key geometric properties:
Parallel lines remain parallel.
Evenly spaced lines remain evenly spaced.
The origin is fixed.
In two dimensions, a linear map is fully determined by where the basis vectors (1,0) and (0,1) are sent. These images form the columns of a matrix. Knowing this matrix allows one to compute the image of any point: a point with coordinates (x,y) in the original coordinate system ends up at the same coordinates (x,y) but in the transformed coordinate system.
A linear map in R2 is represented by a 2×2 matrix M where the first column is the image of (1,0) and the second column is the image of (0,1).
Determinant of a Linear Map
The determinant of a linear map quantifies how areas scale. For any region, its area after transformation equals ∣det(M)∣ times the original area. A negative determinant indicates that the map includes a reflection (orientation is reversed), though the area scaling factor remains ∣det(M)∣.
For a 2×2 matrix M=(acbd), the determinant is computed as:
This value can be found directly from the four entries of the matrix.
Linear Maps in 1D
In one dimension, the requirements for linearity reduce to scaling only. The transformation is represented by a 1×1 matrix (a single number). The determinant in 1D is that same number, as it scales lengths rather than areas.
Derivatives in 1D
Rethinking the Derivative
Instead of interpreting the derivative as the slope of a tangent line, a more general perspective is to view it as a local scaling factor. For a function f:R→R, pick a point a on the input number line. Zoom into a tiny neighborhood around a; the function acts approximately like a scaling (and possibly reflection) of that neighborhood. The factor by which the neighborhood is stretched or compressed is precisely the derivative f′(a).
The derivative f′(a) is the best linear approximation to f near a. It describes the local scaling factor of the transformation.
If the derivative is negative, the transformation includes a reflection: points on one side of a are mapped to the opposite side of f(a). The derivative depends on the choice of a; different points yield different scaling factors for the same function.
The Jacobian in 1D
In one dimension, the Jacobian matrix is simply the 1×1 matrix [f′(a)]. The derivative is the single entry of that matrix. This matrix represents the best linear approximation of f near a.
Derivatives in 2D
Functions of Two Variables
For a function f:R2→R2 with two inputs and two outputs, the derivative generalizes to a 2×2 Jacobian matrix. At a point (a,b), zooming into the neighborhood reveals that f looks approximately like a linear map. The best linear approximation is represented by the Jacobian matrix Jf(a,b).
The Jacobian matrix Jf(a,b) is the matrix of partial derivatives:
Jf(a,b)=(∂x∂f1(a,b)∂x∂f2(a,b)∂y∂f1(a,b)∂y∂f2(a,b))
Computing Jacobian Entries
The entries are computed by fixing one variable and taking the derivative of each output component with respect to the unfixed variable.
Entry (1,1): Fix y=b, define g(x)=f1(x,b). Then ∂x∂f1(a,b)=g′(a).
Entry (2,1): Fix y=b, define h(x)=f2(x,b). Then ∂x∂f2(a,b)=h′(a).
Entry (1,2): Fix x=a, define p(y)=f1(a,y). Then ∂y∂f1(a,b)=p′(b).
Entry (2,2): Fix x=a, define q(y)=f2(a,y). Then ∂y∂f2(a,b)=q′(b).
Thus each partial derivative captures how a small change in one input affects one output, while the other input remains fixed.
Jacobian Determinant
The Jacobian determinant det(Jf(a,b)) is the factor by which areas scale near the point (a,b). This quantity is essential when performing change of variables in double integrals, as it adjusts for the distortion of area under the transformation.
Integration
1D Integration: Mass of a Rod
Consider a rod with variable density along its length, described by a function f(x) where x is the position. To find the total mass, the rod is divided into small segments of length Δx. On each small segment, the density is approximated as constant, say f(x∗) at some sample point x∗. The mass of that segment is approximately f(x∗)Δx. Summing over all segments and taking the limit as Δx→0 yields the definite integral:
This integral gives the total mass of the rod from x=a to x=b.
2D Integration: Mass of a Region
For a region D in the plane with density given by f(x,y), divide the region into small rectangles of area ΔA=ΔxΔy. Approximate the density on each rectangle as f(x∗,y∗) at some sample point. The mass of that rectangle is approximately f(x∗,y∗)ΔA. Summing and taking the limit gives the double integral:
where dA=dxdy.
Computing Double Integrals via Iterated Integrals
One systematic way to compute a double integral is to integrate over vertical strips first. For a fixed x, the vertical slice of the region runs from lower boundary y1(x) to upper boundary y2(x). The mass per unit width of that strip is ∫y1(x)y2(x)f(x,y)dy, which is a function g(x). Then integrate g(x) over x:
Alternatively, one can use horizontal strips first, yielding an analogous formula with the order of integration reversed.
Change of Variables in 1D (Integration by Substitution)
Suppose a rod has density f and extends from x=g(a) to x=g(b), where g is a differentiable function. The mass is ∫g(a)g(b)f(x)dx. To change the variable to u where x=g(u), examine a small piece of the rod: a segment of length dx at x corresponds to a segment of length du at u, with dx=g′(u)du. The density at the point g(u) is f(g(u)). Therefore, the mass can be expressed as:
This is integration by substitution. The factor g′(u) accounts for the stretching or compression of lengths. Importantly, the sign of g′(u) matters because the 1D integral is oriented: if g reverses the direction of the interval, the sign of the integral flips accordingly.
Change of Variables in 2D
Consider a region g(D) that is the image of a region D under a transformation g:R2→R2. The density on g(D) is f(x,y). The total mass is ∬g(D)f(x,y)dxdy. To rewrite this as an integral over D, examine a small rectangle in D of area ΔuΔv near a point (u,v). Under g, this rectangle maps to a small region of area approximately ∣det(Jg(u,v))∣⋅ΔuΔv, where Jg is the Jacobian matrix of g. The density at the image point is f(g(u,v)). Hence the mass contribution is f(g(u,v))∣det(Jg(u,v))∣ΔuΔv. Summing and taking the limit gives:
The absolute value of the Jacobian determinant is necessary because area is always positive; the double integral over a region does not include orientation.
Important Caveats
In 1D, the change of variables formula uses g′(u) without absolute value because the integral is oriented (the sign encodes direction). In 2D, the double integral over a region is defined without orientation, so the absolute value of the Jacobian determinant is required.
The transformation g must be injective (one-to-one) on D to prevent overlapping and double-counting of area contributions. This injectivity condition is not needed in the 1D oriented case, as orientation can handle sign changes.
Example: Cartesian to Polar Coordinates
Consider the unit disk D={(x,y):x2+y2≤1} with density f(x,y). The standard change of variables uses polar coordinates (r,θ):
The region in the (r,θ) plane is T={(r,θ):0≤r≤1,0≤θ≤2π}.
Jacobian Determinant of the Polar Transformation
Compute the Jacobian matrix:
The determinant is:
Thus dxdy=rdrdθ, and the change of variables formula becomes:
The factor r accounts for the fact that area elements in polar coordinates are not uniform; a small rectangle of size dr×dθ maps to a region of area approximately rdrdθ in the Cartesian plane. This transformation simplifies integration over circular regions significantly.

Ask anything
We've read this whole study set, so questions about it get the best answers.