Fork me on GitHub
Math for the people, by the people.

User login

example of changing variable

% this is the default PlanetMath preamble.  as your knowledge
% of TeX increases, you will probably want to edit this, but
% it should be fine as is for beginners.

% almost certainly you want these

% used for TeXing text within eps files
% need this for including graphics (\includegraphics)
% for neatly defining theorems and propositions
% making logically defined graphics

% there are many more packages, add them here as you need them

% define commands here


If one performs in the improper integral
I \;:=\; \int_{-\infty}^\infty\frac{e^{kx}}{1\!+\!e^x}\,dx \qquad (0 < k < 1)
the \PMlinkname{change of variable}{ChangeOfVariableInDefiniteIntegral}
$$x \;=\; -\ln{t}, \quad dx = -\frac{dt}{t},$$
the new lower limit becomes $\infty$ and the new upper limit 0; hence one obtains
$$I \;=\; -\int_\infty^0\frac{e^{-k\ln{t}}dt}{(1\!+\!e^{-\ln{t}})t} \;=\; \int_0^\infty\frac{t^{-k}}{t\!+\!1}\,dt.$$
Thus one has recurred $I$ to the integral
the value of which has been determined in the entry using residue theorem near branch point.\, Accordingly, we may write the result
$$\int_{-\infty}^\infty\frac{e^{kx}}{1\!+\!e^x}\,dx \;=\; \frac{\pi}{\sin{\pi k}}.$$\\

Calculating the integral (1) directly is quite laborious:\, one has to use Cauchy residue theorem to the integral
about the perimetre $c$ of the rectangle 
$$-a \,\leqq\, \mbox{Re}\,z \,\leqq\, a, \quad 0 \,\leqq\, \mbox{Im}\,z \,\leqq\, 2\pi$$
and then to let\, $a \to \infty$ (one cannot use the same half-disk as in determining the integral (2)).\, As for using the \PMlinkname{method}{MethodsOfEvaluatingImproperIntegrals} of differentiation under the integral sign or taking Laplace transform with respect to $k$ yields a more complicated integral.