1. Home
  2. Explore
  3. Mathematics
  4. Derivatives and Integrals

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

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:

  1. Parallel lines remain parallel.

  2. Evenly spaced lines remain evenly spaced.

  3. The origin is fixed.

In two dimensions, a linear map is fully determined by where the basis vectors (1,0)(1,0)(1,0) and (0,1)(0,1)(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)(x,y)(x,y) in the original coordinate system ends up at the same coordinates (x,y)(x,y)(x,y) but in the transformed coordinate system.

A linear map in R2\mathbb{R}^2R2 is represented by a 2×22 \times 22×2 matrix MMM where the first column is the image of (1,0)(1,0)(1,0) and the second column is the image of (0,1)(0,1)(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)∣\lvert \det(M) \rvert∣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)∣\lvert \det(M) \rvert∣det(M)∣.

For a 2×22 \times 22×2 matrix M=(abcd)M = \begin{pmatrix} a & b \\ c & d \end{pmatrix}M=(ac​bd​), the determinant is computed as:

det⁡(M)=ad−bc\det(M) = ad - bcdet(M)=ad−bc

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×11 \times 11×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→Rf: \mathbb{R} \to \mathbb{R}f:R→R, pick a point aaa on the input number line. Zoom into a tiny neighborhood around aaa; 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)f'(a)f′(a).

The derivative f′(a)f'(a)f′(a) is the best linear approximation to fff near aaa. It describes the local scaling factor of the transformation.

If the derivative is negative, the transformation includes a reflection: points on one side of aaa are mapped to the opposite side of f(a)f(a)f(a). The derivative depends on the choice of aaa; different points yield different scaling factors for the same function.

The Jacobian in 1D

In one dimension, the Jacobian matrix is simply the 1×11 \times 11×1 matrix [f′(a)][f'(a)][f′(a)]. The derivative is the single entry of that matrix. This matrix represents the best linear approximation of fff near aaa.

Derivatives in 2D

Functions of Two Variables

For a function f:R2→R2f: \mathbb{R}^2 \to \mathbb{R}^2f:R2→R2 with two inputs and two outputs, the derivative generalizes to a 2×22 \times 22×2 Jacobian matrix. At a point (a,b)(a,b)(a,b), zooming into the neighborhood reveals that fff looks approximately like a linear map. The best linear approximation is represented by the Jacobian matrix Jf(a,b)J_f(a,b)Jf​(a,b).

The Jacobian matrix Jf(a,b)J_f(a,b)Jf​(a,b) is the matrix of partial derivatives:

Jf(a,b)=(∂f1∂x(a,b)∂f1∂y(a,b)∂f2∂x(a,b)∂f2∂y(a,b))J_f(a,b) = \begin{pmatrix} \frac{\partial f_1}{\partial x}(a,b) & \frac{\partial f_1}{\partial y}(a,b) \\ \frac{\partial f_2}{\partial x}(a,b) & \frac{\partial f_2}{\partial y}(a,b) \end{pmatrix}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)(1,1)(1,1): Fix y=by = by=b, define g(x)=f1(x,b)g(x) = f_1(x,b)g(x)=f1​(x,b). Then ∂f1∂x(a,b)=g′(a)\frac{\partial f_1}{\partial x}(a,b) = g'(a)∂x∂f1​​(a,b)=g′(a).

  • Entry (2,1)(2,1)(2,1): Fix y=by = by=b, define h(x)=f2(x,b)h(x) = f_2(x,b)h(x)=f2​(x,b). Then ∂f2∂x(a,b)=h′(a)\frac{\partial f_2}{\partial x}(a,b) = h'(a)∂x∂f2​​(a,b)=h′(a).

  • Entry (1,2)(1,2)(1,2): Fix x=ax = ax=a, define p(y)=f1(a,y)p(y) = f_1(a,y)p(y)=f1​(a,y). Then ∂f1∂y(a,b)=p′(b)\frac{\partial f_1}{\partial y}(a,b) = p'(b)∂y∂f1​​(a,b)=p′(b).

  • Entry (2,2)(2,2)(2,2): Fix x=ax = ax=a, define q(y)=f2(a,y)q(y) = f_2(a,y)q(y)=f2​(a,y). Then ∂f2∂y(a,b)=q′(b)\frac{\partial f_2}{\partial y}(a,b) = q'(b)∂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))\det(J_f(a,b))det(Jf​(a,b)) is the factor by which areas scale near the point (a,b)(a,b)(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)f(x)f(x) where xxx is the position. To find the total mass, the rod is divided into small segments of length Δx\Delta xΔx. On each small segment, the density is approximated as constant, say f(x∗)f(x^*)f(x∗) at some sample point x∗x^*x∗. The mass of that segment is approximately f(x∗)Δxf(x^*) \Delta xf(x∗)Δx. Summing over all segments and taking the limit as Δx→0\Delta x \to 0Δx→0 yields the definite integral:

∫abf(x) dx\int_a^b f(x) \, dx∫ab​f(x)dx

This integral gives the total mass of the rod from x=ax=ax=a to x=bx=bx=b.

2D Integration: Mass of a Region

For a region DDD in the plane with density given by f(x,y)f(x,y)f(x,y), divide the region into small rectangles of area ΔA=ΔxΔy\Delta A = \Delta x \Delta yΔA=ΔxΔy. Approximate the density on each rectangle as f(x∗,y∗)f(x^*,y^*)f(x∗,y∗) at some sample point. The mass of that rectangle is approximately f(x∗,y∗) ΔAf(x^*,y^*) \, \Delta Af(x∗,y∗)ΔA. Summing and taking the limit gives the double integral:

∬Df(x,y) dA\iint_D f(x,y) \, dA∬D​f(x,y)dA

where dA=dx dydA = dx\,dydA=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 xxx, the vertical slice of the region runs from lower boundary y1(x)y_1(x)y1​(x) to upper boundary y2(x)y_2(x)y2​(x). The mass per unit width of that strip is ∫y1(x)y2(x)f(x,y) dy\int_{y_1(x)}^{y_2(x)} f(x,y) \, dy∫y1​(x)y2​(x)​f(x,y)dy, which is a function g(x)g(x)g(x). Then integrate g(x)g(x)g(x) over xxx:

∬Df(x,y) dA=∫x1x2(∫y1(x)y2(x)f(x,y) dy)dx\iint_D f(x,y) \, dA = \int_{x_1}^{x_2} \left( \int_{y_1(x)}^{y_2(x)} f(x,y) \, dy \right) dx∬D​f(x,y)dA=∫x1​x2​​(∫y1​(x)y2​(x)​f(x,y)dy)dx

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 fff and extends from x=g(a)x = g(a)x=g(a) to x=g(b)x = g(b)x=g(b), where ggg is a differentiable function. The mass is ∫g(a)g(b)f(x) dx\int_{g(a)}^{g(b)} f(x) \, dx∫g(a)g(b)​f(x)dx. To change the variable to uuu where x=g(u)x = g(u)x=g(u), examine a small piece of the rod: a segment of length dxdxdx at xxx corresponds to a segment of length dududu at uuu, with dx=g′(u) dudx = g'(u) \, dudx=g′(u)du. The density at the point g(u)g(u)g(u) is f(g(u))f(g(u))f(g(u)). Therefore, the mass can be expressed as:

∫g(a)g(b)f(x) dx=∫abf(g(u)) g′(u) du\int_{g(a)}^{g(b)} f(x) \, dx = \int_a^b f(g(u)) \, g'(u) \, du∫g(a)g(b)​f(x)dx=∫ab​f(g(u))g′(u)du

This is integration by substitution. The factor g′(u)g'(u)g′(u) accounts for the stretching or compression of lengths. Importantly, the sign of g′(u)g'(u)g′(u) matters because the 1D integral is oriented: if ggg reverses the direction of the interval, the sign of the integral flips accordingly.

Change of Variables in 2D

Consider a region g(D)g(D)g(D) that is the image of a region DDD under a transformation g:R2→R2g: \mathbb{R}^2 \to \mathbb{R}^2g:R2→R2. The density on g(D)g(D)g(D) is f(x,y)f(x,y)f(x,y). The total mass is ∬g(D)f(x,y) dx dy\iint_{g(D)} f(x,y) \, dx\,dy∬g(D)​f(x,y)dxdy. To rewrite this as an integral over DDD, examine a small rectangle in DDD of area ΔuΔv\Delta u \Delta vΔuΔv near a point (u,v)(u,v)(u,v). Under ggg, this rectangle maps to a small region of area approximately ∣det⁡(Jg(u,v))∣⋅ΔuΔv\lvert \det(J_g(u,v)) \rvert \cdot \Delta u \Delta v∣det(Jg​(u,v))∣⋅ΔuΔv, where JgJ_gJg​ is the Jacobian matrix of ggg. The density at the image point is f(g(u,v))f(g(u,v))f(g(u,v)). Hence the mass contribution is f(g(u,v)) ∣det⁡(Jg(u,v))∣ ΔuΔvf(g(u,v)) \, \lvert \det(J_g(u,v)) \rvert \, \Delta u \Delta vf(g(u,v))∣det(Jg​(u,v))∣ΔuΔv. Summing and taking the limit gives:

∬g(D)f(x,y) dx dy=∬Df(g(u,v)) ∣det⁡(Jg(u,v))∣ du dv\iint_{g(D)} f(x,y) \, dx\,dy = \iint_D f(g(u,v)) \, \lvert \det(J_g(u,v)) \rvert \, du \, dv∬g(D)​f(x,y)dxdy=∬D​f(g(u,v))∣det(Jg​(u,v))∣dudv

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)g'(u)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 ggg must be injective (one-to-one) on DDD 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}D = \{ (x,y) : x^2 + y^2 \leq 1 \}D={(x,y):x2+y2≤1} with density f(x,y)f(x,y)f(x,y). The standard change of variables uses polar coordinates (r,θ)(r,\theta)(r,θ):

g(r,θ)=(rcos⁡θ, rsin⁡θ)g(r,\theta) = (r\cos\theta, \, r\sin\theta)g(r,θ)=(rcosθ,rsinθ)

The region in the (r,θ)(r,\theta)(r,θ) plane is T={(r,θ):0≤r≤1, 0≤θ≤2π}T = \{ (r,\theta) : 0 \leq r \leq 1, \, 0 \leq \theta \leq 2\pi \}T={(r,θ):0≤r≤1,0≤θ≤2π}.

Jacobian Determinant of the Polar Transformation

Compute the Jacobian matrix:

Jg=(∂(rcos⁡θ)∂r∂(rcos⁡θ)∂θ∂(rsin⁡θ)∂r∂(rsin⁡θ)∂θ)=(cos⁡θ−rsin⁡θsin⁡θrcos⁡θ)J_g = \begin{pmatrix} \frac{\partial (r\cos\theta)}{\partial r} & \frac{\partial (r\cos\theta)}{\partial \theta} \\ \frac{\partial (r\sin\theta)}{\partial r} & \frac{\partial (r\sin\theta)}{\partial \theta} \end{pmatrix} = \begin{pmatrix} \cos\theta & -r\sin\theta \\ \sin\theta & r\cos\theta \end{pmatrix}Jg​=(∂r∂(rcosθ)​∂r∂(rsinθ)​​∂θ∂(rcosθ)​∂θ∂(rsinθ)​​)=(cosθsinθ​−rsinθrcosθ​)

The determinant is:

det⁡(Jg)=(cos⁡θ)(rcos⁡θ)−(−rsin⁡θ)(sin⁡θ)=r(cos⁡2θ+sin⁡2θ)=r\det(J_g) = (\cos\theta)(r\cos\theta) - (-r\sin\theta)(\sin\theta) = r(\cos^2\theta + \sin^2\theta) = rdet(Jg​)=(cosθ)(rcosθ)−(−rsinθ)(sinθ)=r(cos2θ+sin2θ)=r

Thus dx dy=r dr dθdx\,dy = r \, dr\,d\thetadxdy=rdrdθ, and the change of variables formula becomes:

∬Df(x,y) dx dy=∬Tf(rcos⁡θ,rsin⁡θ) r dr dθ\iint_D f(x,y) \, dx\,dy = \iint_T f(r\cos\theta, r\sin\theta) \, r \, dr \, d\theta∬D​f(x,y)dxdy=∬T​f(rcosθ,rsinθ)rdrdθ

The factor rrr accounts for the fact that area elements in polar coordinates are not uniform; a small rectangle of size dr×dθdr \times d\thetadr×dθ maps to a region of area approximately r dr dθr \, dr \, d\thetardrdθ 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.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent