Derivatives and Integrals


Derivatives and Integrals

Anna
So Maria, let's talk about derivatives. Most of us first learned them as slopes of tangent lines, right? That works fine for simple functions like x², but it breaks down when you have functions with multiple inputs and outputs.

Maria
Exactly. If you have a function from R² to R², you'd need four dimensions to graph it. So thinking of derivatives as slopes just doesn't generalize. That's why we need a better way to think about them.

Anna
And it's similar with integrals. We usually think of them as areas under curves, but that's also limited. The real idea is adding up little pieces—like summing masses of tiny segments or rectangles.

Maria
Right. So to build a more general view, we need to start with linear maps. They're the key to understanding derivatives and integrals in higher dimensions.

Anna
Linear maps have three properties: they keep parallel lines parallel, evenly spaced lines evenly spaced, and they fix the origin. In 2D, you can completely describe a linear map by where the basis vectors (1,0) and (0,1) go. Those coordinates form the matrix.

Maria
And the determinant of that matrix tells you how areas scale under the map. For example, if the determinant is 2, any region's area doubles. A negative determinant means a reflection, but the absolute value still gives the area scaling.

Anna
In 1D, linear maps are just scaling. The matrix is a single number, and the determinant is that number. So derivatives in 1D are just the scaling factor near a point.

Maria
That's the key insight! For a 1D function f, near a point a, if you zoom in, it looks like a linear map—just scaling. The derivative f'(a) is that scaling factor. And yes, it can be negative if there's a reflection.

Anna
In 2D, it's the same idea but with matrices. For a function f from R² to R², near a point (a,b), the best linear approximation is given by the Jacobian matrix. Its entries are partial derivatives—like how much the x-coordinate changes when you move a little in x or y.

Maria
And the determinant of that Jacobian is the Jacobian determinant. It tells you how areas scale near that point. That's crucial when you want to change variables in integrals.

Anna
Speaking of integrals, let's go back to the 1D rod example. You want the mass of a rod with varying density f(x). You chop it into small pieces, approximate each piece's mass as density times length, and sum them. The limit gives the integral from a to b of f(x) dx.

Maria
In 2D, you chop a region into small rectangles. The mass of each rectangle is density times area. But to compute the integral, you often do iterated integrals—first integrate in y for each vertical strip, then integrate those strips in x.

Anna
Now, if the region is defined by a transformation, like the rod's endpoints are g(a) and g(b), you can change variables to make the limits nicer. In 1D, the change of variables formula is ∫_{g(a)}^{g(b)} f(x) dx = ∫_a^b f(g(u)) g'(u) du.

Maria
But wait—why don't we take absolute value of g'(u) in 1D? Because 1D integrals do care about orientation. If g'(u) is negative, it flips the interval, and the sign accounts for that. So the formula uses g'(u) directly, not its absolute value.

Anna
In 2D, it's different. The double integral over a region g(D) of f(x,y) dx dy becomes ∫∫_D f(g(u,v)) |det J_g(u,v)| du dv. The absolute value is needed because area doesn't care about orientation—only the scaling factor matters.

Maria
Also, in 2D, the transformation g must be injective—it can't map two different points to the same place, or you'd double-count area. In 1D, that's not required because orientation handles it.

Anna
A classic example is switching to polar coordinates. To integrate over a unit disc, you can map from a rectangle in (r,θ) space: x = r cos θ, y = r sin θ. The Jacobian determinant turns out to be r, so the area element becomes r dr dθ.

Maria
And you can find that r geometrically: a small rectangle of width Δr and height Δθ maps to a curved region that's roughly a rectangle with sides Δr and r Δθ, so the area scales by r. That's a neat way to avoid the messy square roots in Cartesian coordinates.

Anna
So to wrap up: derivatives are best thought of as best linear approximations given by the Jacobian matrix, and integrals are sums of little pieces with the Jacobian determinant scaling when you change variables.

Maria
Exactly. And while slopes and areas are useful starting points, these deeper ideas are what let us handle functions in any dimension. It's a beautiful unified view.

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