The algebra of differential forms is organized in a way that naturally reflects the orientation of the domain of integration. There is an operation on differential forms known as the exterior derivative that, when given a -form as input, produces a -form as output. This operation extends the differential of a function, and is directly related to the divergence and the curl of a vector field in a manner that makes the fundamental theorem of calculus, the divergence theorem, Green's theorem, and Stokes' theorem special cases of the same general result, known in this context also as the generalized Stokes theorem. In a deeper way, this theorem relates the topology of the domain of integration to the structure of the differential forms themselves; the precise connection is known as de Rham's theorem.