Consider the system of equations
where x {\displaystyle x} and y {\displaystyle y} are positive integers with x > y {\displaystyle x>y} . (Source: 1991 AIME)
Solving this normally is not very difficult, but it may get a little tedious. However, we can rewrite the second equation as x y ( x + y ) = 880 {\displaystyle xy(x+y)=880} . Making the substitutions s = x + y {\displaystyle s=x+y} and t = x y {\displaystyle t=xy} reduces the system to s + t = 71 , s t = 880 {\displaystyle s+t=71,st=880} . Solving this gives ( s , t ) = ( 16 , 55 ) {\displaystyle (s,t)=(16,55)} and ( s , t ) = ( 55 , 16 ) {\displaystyle (s,t)=(55,16)} . Back-substituting the first ordered pair gives us x + y = 16 , x y = 55 , x > y {\displaystyle x+y=16,xy=55,x>y} , which gives the solution ( x , y ) = ( 11 , 5 ) . {\displaystyle (x,y)=(11,5).} Back-substituting the second ordered pair gives us x + y = 55 , x y = 16 , x > y {\displaystyle x+y=55,xy=16,x>y} , which gives no solutions. Hence the solution that solves the system is ( x , y ) = ( 11 , 5 ) {\displaystyle (x,y)=(11,5)} .
Let A {\displaystyle A} , B {\displaystyle B} be smooth manifolds and let Φ : A → B {\displaystyle \Phi :A\rightarrow B} be a C r {\displaystyle C^{r}} -diffeomorphism between them, that is: Φ {\displaystyle \Phi } is a r {\displaystyle r} times continuously differentiable, bijective map from A {\displaystyle A} to B {\displaystyle B} with r {\displaystyle r} times continuously differentiable inverse from B {\displaystyle B} to A {\displaystyle A} . Here r {\displaystyle r} may be any natural number (or zero), ∞ {\displaystyle \infty } (smooth) or ω {\displaystyle \omega } (analytic).
The map Φ {\displaystyle \Phi } is called a regular coordinate transformation or regular variable substitution, where regular refers to the C r {\displaystyle C^{r}} -ness of Φ {\displaystyle \Phi } . Usually one will write x = Φ ( y ) {\displaystyle x=\Phi (y)} to indicate the replacement of the variable x {\displaystyle x} by the variable y {\displaystyle y} by substituting the value of Φ {\displaystyle \Phi } in y {\displaystyle y} for every occurrence of x {\displaystyle x} .
Some systems can be more easily solved when switching to polar coordinates. Consider for example the equation
This may be a potential energy function for some physical problem. If one does not immediately see a solution, one might try the substitution
Note that if θ {\displaystyle \theta } runs outside a 2 π {\displaystyle 2\pi } -length interval, for example, [ 0 , 2 π ] {\displaystyle [0,2\pi ]} , the map Φ {\displaystyle \Phi } is no longer bijective. Therefore, Φ {\displaystyle \Phi } should be limited to, for example ( 0 , ∞ ] × [ 0 , 2 π ) {\displaystyle (0,\infty ]\times [0,2\pi )} . Notice how r = 0 {\displaystyle r=0} is excluded, for Φ {\displaystyle \Phi } is not bijective in the origin ( θ {\displaystyle \theta } can take any value, the point will be mapped to (0, 0)). Then, replacing all occurrences of the original variables by the new expressions prescribed by Φ {\displaystyle \Phi } and using the identity sin 2 x + cos 2 x = 1 {\displaystyle \sin ^{2}x+\cos ^{2}x=1} , we get
Now the solutions can be readily found: sin ( θ ) = 0 {\displaystyle \sin(\theta )=0} , so θ = 0 {\displaystyle \theta =0} or θ = π {\displaystyle \theta =\pi } . Applying the inverse of Φ {\displaystyle \Phi } shows that this is equivalent to y = 0 {\displaystyle y=0} while x ≠ 0 {\displaystyle x\not =0} . Indeed, we see that for y = 0 {\displaystyle y=0} the function vanishes, except for the origin.
Note that, had we allowed r = 0 {\displaystyle r=0} , the origin would also have been a solution, though it is not a solution to the original problem. Here the bijectivity of Φ {\displaystyle \Phi } is crucial. The function is always positive (for x , y ∈ R {\displaystyle x,y\in \mathbb {R} } ), hence the absolute values.
Main article: Chain rule
The chain rule is used to simplify complicated differentiation. For example, consider the problem of calculating the derivative
Let y = sin u {\displaystyle y=\sin u} with u = x 2 . {\displaystyle u=x^{2}.} Then:
Main article: Integration by substitution
Difficult integrals may often be evaluated by changing variables; this is enabled by the substitution rule and is analogous to the use of the chain rule above. Difficult integrals may also be solved by simplifying the integral using a change of variables given by the corresponding Jacobian matrix and determinant.1 Using the Jacobian determinant and the corresponding change of variable that it gives is the basis of coordinate systems such as polar, cylindrical, and spherical coordinate systems.
The following theorem allows us to relate integrals with respect to Lebesgue measure to an equivalent integral with respect to the pullback measure under a parameterization G.2 The proof is due to approximations of the Jordan content.
Suppose that Ω {\displaystyle \Omega } is an open subset of R n {\displaystyle \mathbb {R} ^{n}} and G : Ω → R n {\displaystyle G:\Omega \to \mathbb {R} ^{n}} is a C 1 {\displaystyle C^{1}} diffeomorphism. If f {\displaystyle f} is a Lebesgue measurable function on G ( Ω ) {\displaystyle G(\Omega )} , then f ∘ G {\displaystyle f\circ G} is Lebesgue measurable on Ω {\displaystyle \Omega } . If f ≥ 0 {\displaystyle f\geq 0} or f ∈ L 1 ( G ( Ω ) , m ) , {\displaystyle f\in L^{1}(G(\Omega ),m),} then ∫ G ( Ω ) f ( x ) d x = ∫ Ω f ∘ G ( x ) | det D x G | d x {\displaystyle \int _{G(\Omega )}f(x)dx=\int _{\Omega }f\circ G(x)|{\text{det}}D_{x}G|dx} . If E ⊂ Ω {\displaystyle E\subset \Omega } and E {\displaystyle E} is Lebesgue measurable, then G ( E ) {\displaystyle G(E)} is Lebesgue measurable, then m ( G ( E ) ) = ∫ E | det D x G | d x {\displaystyle m(G(E))=\int _{E}|{\text{det}}D_{x}G|dx} .
Suppose that Ω {\displaystyle \Omega } is an open subset of R n {\displaystyle \mathbb {R} ^{n}} and G : Ω → R n {\displaystyle G:\Omega \to \mathbb {R} ^{n}} is a C 1 {\displaystyle C^{1}} diffeomorphism.
As a corollary of this theorem, we may compute the Radon–Nikodym derivatives of both the pullback and pushforward measures of m {\displaystyle m} under T {\displaystyle T} .
The pullback measure in terms of a transformation T {\displaystyle T} is defined as T ∗ μ := μ ( T ( A ) ) {\displaystyle T^{*}\mu :=\mu (T(A))} . The change of variables formula for pullback measures is
∫ T ( Ω ) g d μ = ∫ Ω g ∘ T d T ∗ μ {\displaystyle \int _{T(\Omega )}gd\mu =\int _{\Omega }g\circ TdT^{*}\mu } .
Pushforward measure and transformation formula
The pushforward measure in terms of a transformation T {\displaystyle T} , is defined as T ∗ μ := μ ( T − 1 ( A ) ) {\displaystyle T_{*}\mu :=\mu (T^{-1}(A))} . The change of variables formula for pushforward measures is
∫ Ω g ∘ T d μ = ∫ T ( Ω ) g d T ∗ μ {\displaystyle \int _{\Omega }g\circ Td\mu =\int _{T(\Omega )}gdT_{*}\mu } .
As a corollary of the change of variables formula for Lebesgue measure, we have that
From which we may obtain
Variable changes for differentiation and integration are taught in elementary calculus and the steps are rarely carried out in full.
The very broad use of variable changes is apparent when considering differential equations, where the independent variables may be changed using the chain rule or the dependent variables are changed resulting in some differentiation to be carried out. Exotic changes, such as the mingling of dependent and independent variables in point and contact transformations, can be very complicated but allow much freedom.
Very often, a general form for a change is substituted into a problem and parameters picked along the way to best simplify the problem.
Probably the simplest change is the scaling and shifting of variables, that is replacing them with new variables that are "stretched" and "moved" by constant amounts. This is very common in practical applications to get physical parameters out of problems. For an nth order derivative, the change simply results in
where
This may be shown readily through the chain rule and linearity of differentiation. This change is very common in practical applications to get physical parameters out of problems, for example, the boundary value problem
describes parallel fluid flow between flat solid walls separated by a distance δ; μ is the viscosity and d p / d x {\displaystyle dp/dx} the pressure gradient, both constants. By scaling the variables the problem becomes
Scaling is useful for many reasons. It simplifies analysis both by reducing the number of parameters and by simply making the problem neater. Proper scaling may normalize variables, that is make them have a sensible unitless range such as 0 to 1. Finally, if a problem mandates numeric solution, the fewer the parameters the fewer the number of computations.
Consider a system of equations
for a given function H ( x , v ) {\displaystyle H(x,v)} . The mass can be eliminated by the (trivial) substitution Φ ( p ) = 1 / m ⋅ p {\displaystyle \Phi (p)=1/m\cdot p} . Clearly this is a bijective map from R {\displaystyle \mathbb {R} } to R {\displaystyle \mathbb {R} } . Under the substitution v = Φ ( p ) {\displaystyle v=\Phi (p)} the system becomes
Main article: Lagrangian mechanics
Given a force field φ ( t , x , v ) {\displaystyle \varphi (t,x,v)} , Newton's equations of motion are
Lagrange examined how these equations of motion change under an arbitrary substitution of variables x = Ψ ( t , y ) {\displaystyle x=\Psi (t,y)} , v = ∂ Ψ ( t , y ) ∂ t + ∂ Ψ ( t , y ) ∂ y ⋅ w . {\displaystyle v={\frac {\partial \Psi (t,y)}{\partial t}}+{\frac {\partial \Psi (t,y)}{\partial y}}\cdot w.}
He found that the equations
are equivalent to Newton's equations for the function L = T − V {\displaystyle L=T-V} , where T is the kinetic, and V the potential energy.
In fact, when the substitution is chosen well (exploiting for example symmetries and constraints of the system) these equations are much easier to solve than Newton's equations in Cartesian coordinates.
Kaplan, Wilfred (1973). "Change of Variables in Integrals". Advanced Calculus (Second ed.). Reading: Addison-Wesley. pp. 269–275. /wiki/Wilfred_Kaplan ↩
Folland, G. B. (1999). Real analysis : modern techniques and their applications (2nd ed.). New York: Wiley. pp. 74–75. ISBN 0-471-31716-0. OCLC 39849337. 0-471-31716-0 ↩