How do I generalize the derivatives / integrals from multivariable calc?
I'm going to try my best to give you some answers, although I'm definitely not an expert. As Martin said, lots of these integrals you've talked about, as well as certain integral identities (FTC, Stokes theorem, Gauss' theorem) can be seen to be equivalent to a general form of Stokes theorem stated in terms of differential forms on smooth manifolds. A good reference would be Spivak, or Lee's "Introduction to Smooth Manifolds" which spends a majority of the book developing differential forms and then eventually de Rham cohomology. Another source is Rudin's "Principles of Mathematical Analysis" which talks about differential forms on $\Bbb R^n$.
Some additional references: http://www.math.ucla.edu/~tao/preprints/forms.pdf- In this "paper" Terry Tao introduces the three forms of integral you initially identified and talks about how they all generalize to different things. This paper really opened my eyes and I highly suggest reading it, Tao is an amazing expositor.
Something you personally might find cute: http://math.bu.edu/people/sr/articles/book.pdf
Here is a link to Steve Rosenberg's book "The Laplacian on a Riemannian Manifold". In the first chapter he discusses how differential forms and the exterior derivative generalize the standard $d/dt$ operator for functions on the real line. He then goes on to mention that there is no generalization of the second derivative to general smooth manifolds, and you need the additional structure of a Riemannian metric, which roughly speaking allows you to measure the lengths of tangent vectors, and thus to define lengths of paths, etc. It turns out that the Laplacian is the simplest differential operator you can define on a Riemannian manifold, and leads to amazing theorems such as the Atiyah-Singer index theorem. I'm afraid I don't know much about it, or have much more to add, but hopefully this will keep you happy and busy.
$\newcommand{\RR}{\mathbb{R}} \newcommand{\pd}[2]{\frac{\partial #1}{\partial #2}} \newcommand{\vect}[1]{\left\langle #1 \right\rangle}$ In single-variable calculus, lots of concepts collapse to the same thing. So generalizing up to multivariable is tricky.
You'll need these definitions:
- $k$-form: An alternating, multilinear map from $V^k$ to $R$, where $V$ is a vector space over $\RR$.
- differential $k$-form: A map from your domain (whether that be $\RR$, $\RR^3$, or a torus), to $k$-forms. Sometimes just called a $k$-form, confusingly.
- the wedge product ($\wedge$): Takes a $k$-form and $\ell$-form, and spits out a $(k + \ell)$-form; associative and bilinear.
- the exterior derivative ($d$): Takes a $k$-form, spits out a $k+1$-form; linear.
Some properties are good to know, but hard to prove. If $f$ is a function, $\omega$ is a $k$-form, and $\eta$ is an $\ell$ form,
- $\omega \wedge \eta = (-1)^{k\ell} (\eta \wedge \omega)$
- $df$ is a $1$-form that, at each point $p$, takes $h$ to $h \cdot \nabla f(p)$
- $d(d\omega) = 0$
- $d(\omega \wedge \eta) = d\omega \wedge \eta + (-1)^k (\omega \wedge d\eta)$
The standard approach to multivariable is all about integrating scalar or vector fields. But it turns out that's not the best approach. Really, you want to be integrating differential forms.
When you do a line integral, you take your path and cut it into tiny line segments. Then, you take each line segment, and dot it against your vector field to get a scalar. Adding up all these scalars gives you the final value. Integration on $k$-forms is similar. You take your surface (of dimension $k$) and cut it up into parallelepipeds. Plug those into your $k$-form, and add up the resulting scalars. (Of course, you take the limit of infinitely small pieces, as usual.)
So that's integrals. What about derivatives? Since the things we integrate are differential forms, that's what the outputs of div, grad, and curl had better be.
With the classical approach:
- grad: scalar field to vector field
- curl: vector field to vector field
- div: vector field to scalar field
There's nothing intrinsically wrong with that, but it's clumsy and hard to generalize to $n$ dimensions. Secretly, they're all the exterior derivative, but for particular values of $k$:
- grad: $0$-form to $1$-form
- curl: $1$-form to $2$-form
- div: $2$-form to $3$-form
Since high schoolers probably don't like $k$-forms, people make use of some dualities to convert them into scalar or vector fields. But this fractures the exterior derivative (only one operator) into $\nabla$ and all its relatives. The correspondence between $d$ and $\nabla$ becomes more convincing with examples (try them!):
Grad: $$ df = \pd{f}{x} dx + \pd{f}{y} dy + \pd{f}{z} dz \\ \nabla f = \vect{\pd{f}{x}, \pd{f}{y}, \pd{f}{z}} $$
Curl: $$ d ( M dx + N dy + P dz ) = \left( \pd{P}{y} - \pd{N}{z} \right) (dy \wedge dz) + \left( \pd{M}{z} - \pd{P}{x} \right) (dz \wedge dx) + \left( \pd{N}{x} - \pd{M}{y} \right) (dx \wedge dy) \\ \nabla \times \vect{M, N, P} = \vect{ \left( \pd{P}{y} - \pd{N}{z} \right), \left( \pd{M}{z} - \pd{P}{x} \right), \left( \pd{N}{x} - \pd{M}{y} \right)} $$
Div: $$ d [M (dy \wedge dz) + N (dz \wedge dx) + P (dx \wedge dy)] = \left( \pd{M}{x} + \pd{N}{y} + \pd{P}{z} \right) (dx \wedge dy \wedge dz) \\ \nabla \cdot \vect{M, N, P} = \pd{M}{x} + \pd{N}{y} + \pd{P}{z} $$
So in $n$ dimensions, there are $n$ "flavors" of differential. For example, in 4D, grad and div are the same as usual, but we also have two curl-like maps: one from $1$-forms to $2$-forms, the other from $2$-forms to $3$-forms.
Lastly, the cherry on top is that Green's, Stokes', and Gauss' theorem all collapse to a single thing. Let $M$ be a manifold, and $\partial M$ be its boundary. Then: $$ \int_M d\omega = \int_{\partial M} \omega $$
Just a very partial answer here.
The indefinite integral, as you say, does not belong. "Indefinite Integral" is just a bad name (justified by the Fundamental Theorem of Calculus, but still a bad name) for "antiderivative". An integral, on the other hand, is a number obtained from a function and a region in the domain of the function where you take the limit of sums of "value of the function times size of the small region".
Also as you say, all the integrals can be seen as integration of differential forms.