57

So we do a lot of variable substitution in limits at school. Stuff like $\lim\limits_{x\to5}\ (x+1)^2\ =\ \lim\limits_{y\to6}\ y^2$, where we define the substitution $y = x + 1$.

But I've never been clear on what exactly the theoretical basis for this is. What is the formula that you're actually applying when you do variable substitution? What are the formal conditions under which it is possible?

My conjecture would be the following:

For all continuous $f$, and all real $a$:
$\lim\limits_{x\to a}\ (f\circ g)(x)\ =\lim\limits_{x\to g(a)}\ f(x)$, where $g$ is a continuous function

So to take my first example, $f$ would be $x^2$, $g$ would be $x + 1$, and $a$ would be $5$.

Am I in the right area? If this is correct, can it be proven using $\epsilon$-$\delta$? I had a half-hearted shot at it the other night and didn't get anywhere.

Jack M
  • 27,819
  • 7
  • 63
  • 129

6 Answers6

36

The complete story is as follows:

If the functions $g:\ A\to B$ and $f:\ B\to C$ have limits $$\lim_{x\to\xi}g(x)=:\eta\ ,\qquad \lim_{y\to\eta}f(y)=:\zeta\ ,$$ and if $f$ is continuous at $\eta$ in case $\eta$ occurs as value of $g$, then $$\lim_{x\to\xi}f\bigl(g(x)\bigr)=\lim_{y\to\eta} f(y)\ .$$

This holds also if any one of $\xi$, $\eta$, $\zeta$ is $\ =\infty$.

The extra condition "and if $f$ is continuous $\ldots$" is usually fulfilled, but one cannot do without it: Consider the example $g(x):\equiv 1$ and $f(y):=2$ $\ (y=1)$, $\ f(y):=3$ $\ (y\ne1)$. Then $\lim_{x\to1}f\bigl(g(x)\bigr)=2$, but $\lim_{x\to1}g(x)=1$, $\ \lim_{y\to1}f(y)=3$.

  • So essentially, in this version, by using the limit of f rather than its exact value at a particular point, we can include cases at infinity in the theorem? – Jack M Jul 07 '12 at 19:00
  • @Jack M: Yes. By the way, I have changed the rôles of $f$ and $g$, as suggested by Arturo Magidin. – Christian Blatter Jul 07 '12 at 19:40
  • I found this answer those most clear and complete. Arturo did include a proof, but this answer covers limits at infinity (to be fair though, my wording could be interpreted as only covering real limits). Also I was able to work out why a variable substitution I tried the other day failed - $f$ wasn't continuous at the limit of $g$. – Jack M Jul 07 '12 at 21:58
  • 1
  • There is no requirement the value of $g(\xi)$ right? It can be any real number? 2) If $g(x)$ does not equal $\eta$ except possibly at $\xi$, then continuity of $f$ at $\eta$ is not required, correct? Thanks.
  • – TSJ Mar 22 '15 at 03:16
  • 3
    One more comment. The second condition states we need to know the original limit, $\lim_{y\to\eta}f(y)$, actually exists. So there are cases where after the change of variable we find $\lim_{x\to\xi}f\bigl(g(x)\bigr)$ exists, but the original $\lim_{y\to\eta}f(y)$ does not, in fact, exist? It would really useful in practice if we can say, under some condition, $\lim_{x\to\xi}f\bigl(g(x)\bigr)$ exists iff $\lim_{y\to\eta}f(y)$ exists. – TSJ Mar 22 '15 at 03:34
  • 1
    What do you mean by "any one of $ξ, η, ζ$ is $=∞$"? Can I let both $ξ=∞$ and $η=\infty$? For example, $g(x)=e^x$ and $f(x)=1/x$. – lovetl2002 May 08 '18 at 09:52
  • It seems to me that only holds if $\eta = \infty$.

    Since if $\xi = \infty$, consider the example given in the answer, $\lim_{x \to \infty}f(g(x)) = 2$ but $\lim_{x \to \infty} g(x) = 1$ and $\lim_{y \to 1} f(y) = 3$.

    For the other case, consider $f(x) = 1/x (x \ne 0)$, $f(x) = 0 (x = 0)$, $g(x) \equiv 0$, with $\xi = 0, \eta = 0, \zeta = \infty$.

    – Astrick Harren Feb 12 '20 at 08:25
  • @AstrickHarren If $\eta=\infty$ the result is always true. If $\eta\in\mathbb R$ we can have $\xi,\zeta$ real or $\infty$ provided that $g(x)\neq \eta$ in a punctured neighbourhood of $\xi$. So, this answer have a missing hypothesis. See a general statement with all the needed hypothesis in my answer. – Pedro May 04 '23 at 14:23
  • What does the phrase "in case $\eta$ occurs as value of $g$" mean? (And why can't it be omitted?) – user182601 Jan 05 '24 at 01:00