| Line 97: |
Line 97: |
| | | | |
| | Here is a simple example, not (yet) involving integrals. Suppose u is a function of y, and y is a function of x, as follows: | | Here is a simple example, not (yet) involving integrals. Suppose u is a function of y, and y is a function of x, as follows: |
| − | ::<math>y = \log u</math> | + | ::<math>y = \log u\,</math> |
| − | ::<math>u = \sin x</math> | + | ::<math>u = \sin x\,</math> |
| | We know that | | We know that |
| | ::<math>\frac{dy}{du} = \frac{1}{u}</math> | | ::<math>\frac{dy}{du} = \frac{1}{u}</math> |
| Line 107: |
Line 107: |
| | ::<math>\frac{dy}{dx} = \frac{\cos x}{\sin x} = \cot x</math> | | ::<math>\frac{dy}{dx} = \frac{\cos x}{\sin x} = \cot x</math> |
| | This is the same answer as the [[chain rule]] would have given: | | This is the same answer as the [[chain rule]] would have given: |
| − | ::<math>y = \log (\sin x)</math> | + | ::<math>y = \log (\sin x)\,</math> |
| | ::<math>\frac{dy}{dx} = \frac{1}{\sin x} \cos x</math> | | ::<math>\frac{dy}{dx} = \frac{1}{\sin x} \cos x</math> |
| | It's easy to see why this is true—the multiplication in the chain rule is just the multiplication from which we canceled the dy. | | It's easy to see why this is true—the multiplication in the chain rule is just the multiplication from which we canceled the dy. |
| Line 114: |
Line 114: |
| | ::<math>\int \cot x\ dx</math> | | ::<math>\int \cot x\ dx</math> |
| | we introduce a new variable u: | | we introduce a new variable u: |
| − | ::<math>u = \sin x</math> | + | ::<math>u = \sin x\,</math> |
| | so the integral is | | so the integral is |
| | ::<math>\int \frac{\cos x}{u} dx</math> | | ::<math>\int \frac{\cos x}{u} dx</math> |
| Line 130: |
Line 130: |
| | ::<math>\int_{-R}^{R}\int_{-\sqrt{R^2 - x^2}}^{\sqrt{R^2 - x^2}}\ 1\ dy dx</math> | | ::<math>\int_{-R}^{R}\int_{-\sqrt{R^2 - x^2}}^{\sqrt{R^2 - x^2}}\ 1\ dy dx</math> |
| | That would change to: | | That would change to: |
| − | ::<math>\int_{0}^{2\pi}\int_{0}^{R}\ 1\ ?? dr d\theta</math> | + | ::<math>\int_{0}^{2\pi}\int_{0}^{R}\ 1\ ??\ dr d\theta</math> |
| | The limits of integration are, as expected, easy to set up. But we need something that is the equivalent of | | The limits of integration are, as expected, easy to set up. But we need something that is the equivalent of |
| − | ::<math>\frac{d x, y}{d r, \theta}</math> | + | ::<math>\frac{d\ x, y}{d\ r, \theta}</math> |
| | to use as the coordinate-change multiplier. | | to use as the coordinate-change multiplier. |
| | | | |
| Line 139: |
Line 139: |
| | ::<math>\begin{pmatrix} \frac{\partial x}{\partial r} & \frac{\partial x}{\partial \theta} \\ \frac{\partial y}{\partial r} & \frac{\partial y}{\partial \theta}\end{pmatrix}</math> | | ::<math>\begin{pmatrix} \frac{\partial x}{\partial r} & \frac{\partial x}{\partial \theta} \\ \frac{\partial y}{\partial r} & \frac{\partial y}{\partial \theta}\end{pmatrix}</math> |
| | | | |
| − | The Jacobian is written <math>J(x, y / r, \theta)</math>. Working out the derivatives and the determinant, its value in thsi case is r. | + | The Jacobian is written <math>J(x, y / r, \theta)\,</math>. Working out the derivatives and the determinant, its value in thsi case is r. |
| | | | |
| | So the area of a circle is: | | So the area of a circle is: |
| | ::<math>\int_{0}^{2\pi}\int_{0}^{R}\ 1\ J(x, y / r, \theta) dr d\theta = \int_{0}^{2\pi}\int_{0}^{R}\ r dr d\theta = \int_{0}^{2\pi}\frac{R^2}{2} d\theta = \pi R^2</math> | | ::<math>\int_{0}^{2\pi}\int_{0}^{R}\ 1\ J(x, y / r, \theta) dr d\theta = \int_{0}^{2\pi}\int_{0}^{R}\ r dr d\theta = \int_{0}^{2\pi}\frac{R^2}{2} d\theta = \pi R^2</math> |
| | + | |
| | + | ==Integration Over Parametrically Defined Regions== |
| | + | |
| | + | A variation of this method is used when integrating over curves in 2 or 3-dimensional spaces, or surface in 3-dimensional spaces. Recall that a parametric description of such a thing is closely related to a change of coordinate system, but with different numbers of coordinates in the two systems. This means that the matrix of partial derivatives is not square, so it has no determinant. |
| | + | |
| | + | The general problem, in arbitrary dimensions, goes deeply into advance topics of differential geometry. We will state the methods, without proof, for the cases of parametrically defined curves and surfaces. |
| | + | |
| | + | ==Curve Integrals== |
| | + | For a curve in a 2-dimensional plane or 3-dimensional volume, let the parameter (the single coordinate in the 1-dimensional curve) be denoted by t. Work out the partial derivatives, and form the vector |
| | + | ::<math>\left(\frac{\partial x}{\partial t}, \frac{\partial y}{\partial t}\right)</math> |
| | + | for a curve in a plane, or |
| | + | ::<math>\left(\frac{\partial x}{\partial t}, \frac{\partial y}{\partial t}, \frac{\partial z}{\partial t}\right)</math> |
| | + | for a curve in a volume. |
| | + | Let J (not really the Jacobian, but we treat it that way) be the [[norm]] of that vector, that is, the square root of the sum of the squares of its 2 or 3 components. |
| | + | ::<math>J = ||\left(\frac{\partial x}{\partial t}, \frac{\partial y}{\partial t}, \frac{\partial z}{\partial t}\right)|| = \sqrt{\left(\frac{\partial x}{\partial t}\right)^2 + \left(\frac{\partial y}{\partial t}\right)^2 + \left(\frac{\partial z}{\partial t}\right)^2}</math> |
| | + | Then |
| | + | ::<math>\int f(t)\ J dt</math> |
| | + | is the integral over the curve, in terms of the parameter t. |
| | + | |
| | + | Example: |
| | + | |
| | + | Suppose a circle of radius R is described in terms of a parameter t, as |
| | + | ::<math>x = R \cos t</math> |
| | + | ::<math>y = R \sin t</math> |
| | + | We have |
| | + | ::<math>\frac{\partial x}{\partial t} = - R \sin t</math> |
| | + | ::<math>\frac{\partial y}{\partial t} = R \cos t</math> |
| | + | ::<math>J = \sqrt{R^2 \sin^2 t + R^2 \cos^2 t} = \sqrt{R^2} = R</math> |
| | + | So, to integrate any function over the full circle (with t running from 0 to <math>2 \pi</math>), we have: |
| | + | ::<math>\int_0^{2\pi} f(t)\ R dt</math> |
| | + | The length of the curve (that is, the circumference of the circle) is: |
| | + | ::<math>\int_0^{2\pi} 1\ R dt = 2 \pi R</math> |
| | + | |
| | + | ==Surface Integrals== |
| | + | For a surface in a 3-dimensional volume, let the parameters be u and v. Work out the six partial derivatives, and form these two vectors: |
| | + | ::<math>\stackrel{\textstyle{\rightarrow}}{U} = \left(\frac{\partial x}{\partial u}, \frac{\partial y}{\partial u}, \frac{\partial z}{\partial u}\right)</math> |
| | + | ::<math>\stackrel{\textstyle{\rightarrow}}{V} = \left(\frac{\partial x}{\partial v}, \frac{\partial y}{\partial v}, \frac{\partial z}{\partial v}\right)</math> |
| | + | Calculate their cross product, and let J be the norm of that. Use the [[cross product]] formula. |
| | + | ::<math>J = ||\stackrel{\textstyle{\rightarrow}}{U} \times\stackrel{\textstyle{\rightarrow}}{V}||</math> |
| | + | Then |
| | + | ::<math>\int\int f(u, v)\ J\ dv\ du</math> |
| | + | is the integral over the surface, in terms of the parameters u and v. |
| | + | |
| | + | Unless one is careful to choose the order of the parameters so the "outward" direction of the surface follows a right-hand rule, and use that order in forming the corss product, there may be ambiguity in the sign of J. In practice, one just figures out what to do. |
| | + | |
| | + | Example: |
| | + | |
| | + | Parameterize a sphere of radius R in terms of <math>\theta</math> and <math>\phi</math>. (These are two of the same coordinates that are used in 3-dimensional spherical coordinates—<math>r</math>, <math>\theta</math> and <math>\phi</math>—but <math>r</math> is held constant, so it is no longer a coordinate.) |
| | + | ::<math>x = R \sin \theta \cos \phi\,</math> |
| | + | ::<math>y = R \sin \theta \sin \phi\,</math> |
| | + | ::<math>z = R \cos \theta\,</math> |
| | + | |
| | + | ::<math>\frac{\partial x}{\partial \theta} = R \cos \theta \cos \phi</math> |
| | + | etc. |
| | + | ::<math>\stackrel{\textstyle{\rightarrow}}{U} = \left(R \cos \theta \cos \phi, R \cos \theta \sin \phi, - R \sin \theta\right)</math> |
| | + | ::<math>\stackrel{\textstyle{\rightarrow}}{V} = \left(- R \sin \theta \sin \phi, R \sin \theta \cos \phi, 0\right)</math> |
| | + | ::<math>J = ||\stackrel{\textstyle{\rightarrow}}{U} \times\stackrel{\textstyle{\rightarrow}}{V}|| = R^2 \sin \theta</math> |
| | + | |
| | + | So an integral over the entire surface would be: |
| | + | ::<math>\int_0^{\pi}\int_0^{2\pi} f(\theta, \phi)\ R^2 \sin \theta\ d\phi\ d\theta</math> |
| | + | The area of a sphere is: |
| | + | ::<math>\int_0^{\pi}\int_0^{2\pi} R^2 \sin \theta\ d\phi\ d\theta = \int_0^{\pi} R^2 \sin \theta \left(\int_0^{2\pi} d\phi\right) d\theta = 2 \pi R^2 \int_0^{\pi} \sin \theta\ d\theta = 4 \pi R^2</math> |
| | + | |
| | + | To find, for example, the area of a sphere only from <math>\theta = 0\,</math> to <math>\theta = T\,</math> (that is, the area of the Earth north of latitude <math>\pi/2 - T\,</math>), we have |
| | + | ::<math>\int_0^{T}\int_0^{2\pi} R^2 \sin \theta d\phi d\theta = 2 \pi R^2 \int_0^{T} \sin \theta d\theta = 2 \pi R^2 (1 - \cos T)</math> |
| | | | |
| | ==Definition of the Double Integral== | | ==Definition of the Double Integral== |