39

I'm a student just starting calculus in college, and my math skills are pretty stale.

So... how come finding limits using change of variable works?

For example: $$\lim_{x \to 1}\frac{x\cos(x-1) -1}{x-1}$$

A way to solve this is to invent "out of thin air" $t = x-1$, and then the limit above is equal to: $$\lim_{t \to 0}\frac{(t + 1)\cos(t) - 1}{t}$$

How come this works?
A limit is not an algebraic equation. what about domains of definition? We are actually finding a different limit of a different function in a different place, how come they are equal (in general)?


just to clarify I'm not asking about this specific example. I'm asking in general, when can you do this to find limits? when not? and why?

AK_
  • 571

4 Answers4

37

There is a very general result which guarantees such substitutions. Let $\lim\limits_{x \to a}f(x) = L$ exist and let $\lim\limits_{t \to b}g(t) = a$ exist and also assume that $g(t) \neq a$ when $t$ is in a certain neighborhood of $b$ then $\lim_{t \to b}f(g(t)) = L$.

Please understand that the theorem is valid only under the conditions given in the above result and one of the first conditions is that $\lim_{x \to a}f(x)$ exists. If we don't know in advance whether the limit of $f(x)$ exists then how do we make a substitution $x = g(t)$ (in this question we put $x = t + 1$)?

To answer this we need to understand that the substitution $x = g(t)$ ($x = t + 1$) used here is invertible so that we have an inverse substitution $t = h(x)$ ($t = x - 1$) with $x = g(h(x)), t = h(g(t))$ which will allow us to infer the existence of limit $\lim_{x \to a}f(x)$ on the basis of existence of limit $\lim_{t \to b}f(g(t))$ via the theorem given in the beginning of this post.

Another condition which is very very important is to ensure that $g(t) \neq a$ when $t$ is near $b$. Clearly this holds in the substitution used in the current question when $x = t + 1$ and $a = 1, b = 0$.

If we think deeply we will find that if $g(t)$ is invertible in the neighborhood of $t = b$ then it will automatically ensure that $g(t) \neq a$ in a certain neighborhood of $b$. So in practice we use the following :

Theorem: If $x = g(t)$ is an invertible function with inverse $t = h(x)$ in the deleted neighborhood of $t = b$ and $\lim\limits_{t \to b}g(t) = a, \lim\limits_{x \to a}h(x) = b$ then either both the limits $\lim\limits_{x \to a}f(x)$ and $\lim\limits_{t \to b}f(g(t))$ exist and are equal or both of them don't exist.

Note that there is no condition on $f$ for the above theorem.

  • 1
    After further thought and reading your answer again, the change of variables you commented on my post is essentialy the counter example you wanted, and rightfully pointed out could exist. Here is a fix (your counter example failed because of the continuity of $f$). Let $$h(x) = \begin{cases} x & x \neq 0 \ 1 & x = 0. \end{cases}$$ Then, for $g(t) = t \sin(\frac{1}{t})$, we have $\lim_{t \rightarrow 0} h(g(t)) $ does not exist. Because of the lack of a punctured neighborhood around $0$ where $g(t) \neq 0$.

    Thanks for your precision and diligence.

    – mlg4080 Dec 19 '14 at 20:14
  • @mlg4080: My counterexample is OK, but yours is simpler. Thanks. – Paramanand Singh Dec 20 '14 at 05:18
  • @ParamandSing If you don't trust me, check your favorite computer algebra system (or work it yourself) the limit in your example exists and is two when you say it does not exist. – mlg4080 Dec 20 '14 at 20:13
  • 1
    @mlg4080: you should use symbolic software for heavy calculation and not for simple conceptual problems. The reason limit of $$f(g(t))=\dfrac{(1+t\sin(1/t))^{2}-1}{t\sin(1/t)}$$ as $t\to 0$ does not exist is because the function is not defined when $t=1/n\pi$. Symbolic package will try to simplify $f(g(t))=2+t\sin(1/t)$ without noticing that this simplification fails when $t=1/n\pi$ because when this happens both numerator and denominator of $f(g(t))$ are $0$. – Paramanand Singh Dec 21 '14 at 07:38
  • @ParamanandSingh it is a great post, I still have a question, sometimes $x=g(t)$ may be very complicated, rather than $t+1$. is there some theorem let us know whether or not a function is inverse in a deleted neighborhood? thank you – noname1014 Nov 28 '15 at 20:14
  • @noname1014: A simple and sufficient condition is that derivative $g'(t)$ should be non-zero and continuous at the point $t = a$ under consideration. However this is not a necessary condition (the counter example is $x = t^{3}$ near $t = 0$). – Paramanand Singh Nov 30 '15 at 03:30
  • @ParamanandSingh in fact we can generalize this theorem, if when $(x,y)\to (x_0,y_0)$, $f(x,y)\to A$ and there is a deleted neighborhood such than $f(x,y)\neq A$ and when $x\to A$, $g(x) \to B$, then we have $g(f(x,y)) \to B$, when $(x,y)\to (x_0,y_0)$, do you know how to know whether or not there is a deleted neighborhood such that $f(x,y)\neq A$? – noname1014 Nov 30 '15 at 04:48
  • @noname1014: things are not so easy in 2 dimensions. I am not sure if there is an easy way to check for $f(x, y) \neq A$. Maybe partial derivatives can help here, I have not delved so deep into two dimensional limits. – Paramanand Singh Nov 30 '15 at 04:51
  • @ParamanandSingh sorry to dig up this old post! Is there a particular name of the theorem that you you first mention in your answer? In Spivak's book Calculus, there is an exercise in Chapter 6 (Problem 12) that I believe is a slightly altered version of your theorem: "Prove that if $f$ is continuous at $l$ and $\displaystyle \lim_{x \to a}g(x)=l$, then $\displaystyle \lim_{x \to a} f(g(x))=f(l)$". I just wanted to confirm the motivation for your theorem's $g(t)\neq a$ condition and whether or not that is to "account for" the non-assumed continuity (unlike Problem 12 in Spivak's book). – S.C. Jul 26 '21 at 22:43
  • 2
    @S.Cramer: you should compare the definition of limit of $f$ at $a$ and continuity of $f$ at $a$. For limit we have a condition like $0<|x-a|<\delta$ and for continuity we have $|x-a|<\delta$. When dealing with limits we have to maintain $x\neq a$. And hence if we substitute $x=g(t) $ we must ensure $g(t) \neq a$. When the function $f$ is continuous at $a$ we don't need that restriction. – Paramanand Singh Jul 27 '21 at 00:45
  • @ParamanandSingh roger that! I was able to prove it; thank you~ – S.C. Jul 27 '21 at 01:38
9

It works because the equality holds: $$ {x\cos(x-1)-1\over x-1}={(t+1)\cos(t)-1\over t} \quad \text{where }t=x-1.\tag{1} $$ This is no different than rewriting $2+2$ or $3+1$ or $7-3$ whenever you see a $4$. They are just different ways to same the same thing.

Now, since in the original problem, we had $x\to 1$, then in the new variable we have $t=x-1\to 1-1=0$, i.e., $t\to 0$. Hence, $(1)$ becomes $$ \lim_{x\to 1}{x\cos(x-1)-1\over x-1}=\lim_{t\to 0}{(t+1)\cos(t)-1\over t}.\tag{2} $$

You said limits aren't an algebraic equation---that is correct. But they are an "operation" that one can apply to both sides of an existing equation, such as $(1)$ and maintain equality such as in $(2)$.


Edit based on the comments:

Suppose you have the algebraic expression $f(x)$ and make the change of variables $x=g(t)$. Then $$f(x)=f(g(t)).\tag{3}$$ This is a generalized version of the type of statement in $(1)$.

Moreover, if $g$ is a continuous function then $x\to a\implies g(t)\to a$, but then from $(3)$ we see $$ \lim_{x\to a}f(x)=\lim_{g(t)\to a}f(g(t)). $$ which is a generalized version of $(2)$.

JohnD
  • 14,392
  • Ok... is this always true? doesn't it depend on the functions involved? how can one prove this is true? – AK_ Dec 15 '14 at 21:14
  • Is what always true? (1) or (2)? Clearly the left-hand side and right-side of $(1)$ are equal because one is just a rewriting of the other. As for (2), so long as the change of variables is continuous (as $t=x-1$ is), then taking (correct) limits of both sides of (1) maintains the equality. – JohnD Dec 15 '14 at 21:22
  • no... It's just an example. It's easy to see this specific example is correct. I'm asking in general, when is can you do this to find limits? when not? and why? – AK_ Dec 15 '14 at 21:34
  • 1
    @JohnD: I think it is the continuity of $f$ which is required and not $g$. Thus we have the result that if $\lim\limits_{t \to b}g(t) = a$ and $f$ is continuous at $a$ then $\lim\limits_{x \to a}f(x) = \lim\limits_{t \to b}f(g(t))$. – Paramanand Singh Dec 18 '14 at 07:16
  • 3
    @JohnD: You can see that just continuity of $g$ is not sufficient as shown in the counterexample in my comment to "mlg4080" answer. – Paramanand Singh Dec 18 '14 at 07:26
  • 3
    This answer does not address the problem at all. It just regurgitates the state of limbo in which the OP sees himself. – Christian Blatter Dec 18 '14 at 09:39
1

If a limit of a function exists, then you can define your function to be continuous there. And then if you make a continuous change of variable, you get that continuity preserves the limit, e.g. $\lim_{x \to 1}$ is the same as $\lim_{t \to 0}$.

user2566092
  • 26,142
  • won't the same hold even if the function is not continuous? limit arithmetic should still hold... – AK_ Dec 15 '14 at 21:06
1

The reason that a change of variables works, is two fold. As JohnD mentioned, it's partially by direct substitution. However, you also must take into account the fact that your change of variables is defined by a continuous function. Continuous functions are (in this setting) loosely speaking, the functions that play nicely with limits.

mlg4080
  • 1,805
  • 2
    Please note continuity of change of variables is not sufficient. For example if $f(x) = \dfrac{(1 + x)^{2} - 1}{x}$ then $\lim_{x \to 0}f(x) = 2$ and if we put $x = g(t) = t\sin(1/t)$ then $x = g(t)$ is continuous and $\lim_{t \to 0}g(t) = 0$, but $\lim_{t \to 0}f(g(t))$ does not exist. – Paramanand Singh Dec 18 '14 at 07:24
  • @ParamanandSingh At first I was shocked, and a little concerned after reading your comment. However, the limit of $\lim_{t \rightarrow 0} f (g(t))$ does exist. Moreover, it also equals $2$. L'Hopital's is sufficient to prove this. – mlg4080 Dec 19 '14 at 20:04
  • 1
    Perhaps you should note that $g(t) = 0$ for an infinity of values of $t$ near $0$ (namely as $t = 1/n\pi$ with $n$ integer). If $g(t) = 0$ then it is obvious that $f(g(t))$ is not defined because of denominator vanishing. Hence $f(g(t))$ is not defined in a neighborhood of $t = 0$. Because of this reason the limit does not exist. – Paramanand Singh Dec 20 '14 at 05:15
  • 1
    You obtain an "indeterminate form" each time $t=0$. However, this does not mean that your limit cannot exist. In fact, because it is a removable singularity the limit still exists. – mlg4080 Dec 20 '14 at 20:14
  • 2
    You obtain an indeterminate form each time $t=1/n\pi$ and hence the function is not defined in any neighborhood of $t=0$. Note that the being defined in the neighborhood of point under consideration is the first prerequisite for talking about limit of a function at a given point. – Paramanand Singh Dec 21 '14 at 07:43