8

I was watching an online course (The Calculus You Need - MIT OpenCourseWare), when (around 03:08), the lecturer (Gilbert Strang) says that he doesn't "care what that dummy variable is" (the variable x associated with the function y). He made the following change in the video:

$$\frac{d}{dx}\int_{0}^{x}y(x) = y(x)\Rightarrow \text{ change } \Rightarrow\frac{d}{dx}\int_{0}^{x}y(t)dt = y(x)$$

I don't know why the notation of that variable doesn't cause any ambiguity here (I'm assuming Strang wanted to mean that), once x is clearly creating a dependency relation with the bound and the variable associated with the function y.

Ultimately... why it doesn't make a difference to call the variable associated with y by x (in this case)? What exactly is a 'dummy variable'?

  • 1
    Did Strang write $\displaystyle \dfrac{\text d}{\text dx}\int\limits _{0}^{x}y(x)\text dx$? – Git Gud Dec 21 '18 at 21:06
  • Oh, thanks, he didn't. But still, could you clarify me why you asked that? – Nicholas Yamasaki Dec 21 '18 at 21:13
  • 3
    Note that Strang immediately erased the expression $\int_0^x y(x)$, replacing it with $\int_0^x y(t) , dt$. Probably he did this because it is not correct to use the same letter for the dummy variable as for the number $x$ which has already been introduced. (The letter $x$ should not be used for two different things at the same time.) By the way, the "dummy variable" is just a piece of notation and we can eliminate it from the notation entirely if we like by writing $\int_0^x y$ (for example). Spivak uses this notation (omitting the dummy variable) in chapter 3 of Calculus on Manifolds. – littleO Dec 22 '18 at 02:24

2 Answers2

12

You have asked two questions, one about whether the name of a variable matters, the other about dummy variables. They're different but related.

Strictly speaking, it does not matter what you name your variables. If you have a function $f$ from, say, $\mathbb{R}$ to itself then the elements in both the domain and the codomain are real numbers. You may often see this described as "$y = f(x)$". That usually does no damage, and sometimes helps keep the meaning of numbers straight - those called "$x$" are in the domain while those called "$y$" are in the codomain. But that's not at all required and is sometimes confusing. You should talk about the function $\sin$, not the function $\sin(x)$.

Now for dummy variables. The expression $$ \sum_{n=1}^3 n^2 $$ means just $$ 1^2 + 2^2 +3^2 . $$ There is no "$n$" in it. You could write the same thing as $$ \sum_{@=1}^3 @^2 . $$ The $n$ and the $@$ are dummy variables - they are not there. The same is true for the "variable of integration": $$ \int_1^2 \sin(x) dx = \int_1^2 \sin(@) d@ = \int_1^2 \sin . $$ The last of these is unambiguous when you work with $\sin$ as a real valued function of a real variable.

That said, there are times when a (dummy) variable of integration is helpful. With it you can distinguish between $$ \int_1^2 \sin(xt^2) dx \text{ and } \int_1^2 \sin(xt^2) dt . $$ The first is a number that depends on the value of $t$, the second a number that depends on the value of $x$.

The dummy variable $x$ and the $dx$ are quite important when you think about applications of integrals in geometry and physics. If you imagine the integral of $\sin$ as calculating the area under the sine curve then the expression $$ \sin(x) dx $$ is the (infinitesimal) area of a rectangle with height $\sin(x)$ and (infinitesimal) base $dx$. Each of those quantities has units length and their product has units area. The integral sign is Leibniz's elongated "S", for "sum".

Ethan Bolker
  • 95,224
  • 7
  • 108
  • 199
  • Hm.. got it. Just one more thing.. what is the difference between these two expressions?

    $$\int_{0}^{x} y(x) dx$$ and $$\int_{0}^{x} y(t) dt$$

    – Nicholas Yamasaki Dec 21 '18 at 23:13
  • 4
    They are essentially the same, but writing the first one would be very bad expository taste. I hope never to see it anywhere. – Ethan Bolker Dec 22 '18 at 00:40
  • 1
    So in the first expression, the variable associated with the function $y$ doesn't have nothing to do with the bound variable? – Nicholas Yamasaki Dec 22 '18 at 01:00
  • 1
    Yes. But the notation is so weird and (in my view) unacceptable that you shouldn't spend any time or energy trying to parse it correctly. – Ethan Bolker Dec 22 '18 at 01:12
  • But I would like to have the maturity to see why those variables (the bound and the $y$ variable) aren't connected. Is this because of the definition of the integral operation? Why does a function like, let's say: $$A(x) = \int_{0}^{x}y(x)dx$$ Doesn't make sense? If $y(x) = x^2$, then $A(2) = 8$. And that would not be the same if: $$A(x) = \int_{0}^{x} y(t)dt$$I'm very confused...

    Sorry for those dumb questions... I just really want to understand this...

    – Nicholas Yamasaki Dec 22 '18 at 01:42
  • 1
    In both cases an antiderivative is the function $f$ that returns the a third of the cube of its input (you can call that $x^3/3$ if you like) and both times $A(2) = f(2)-f(0) = 2^3/3 - 0^3/3 = 8/3$. When you substitute $2$ for $x$ you don't substitute for the dummy variable of integration. – Ethan Bolker Dec 22 '18 at 02:00
  • Oh, true! Thank you! But when you've said that "I don't substitute for the dummy variable of integration", it seemed that you quickly recognized who was the "dummy variable" in that situation... how? I mean, i've seen my mistake (a huge mistake, btw) of substituting every $x$ by $2$ only because of my contradiction with the fundamental theorem of calculus. But i've done that only because I thought that the bound and the $y$ variable could be dependent. So, ultimately, why is that those two variables can't be related in essence? – Nicholas Yamasaki Dec 22 '18 at 02:26
  • 1
    Your confusion was caused by the author's careless reuse of "$x$". They shouldn't have done that. – Ethan Bolker Dec 22 '18 at 12:26
  • @NicholasYamasaki I'm late to the party, but you might find this question useful. – Joe Dec 30 '20 at 12:33
3

To add to what was already said, I find it helpful to think in programming terms. What is a dummy variable? It's a local variable with very limited scope - a sum, integral, or other similar construct - and it had better not appear anywhere outside that. If it does, as in that initial expression $\frac{d}{dx}\int_0^x y(x)$, we'll get errors and unpredictable results. For example, here? In order to get something that parses, we have to take that integral with respect to some other variable - which means that inside the integral, $x$ and $y(x)$ are constants. We then get $\int_0^x y(x)\,dt=xy(x)$, so its derivative with respect to $x$ is $y(x)+xy'(x)$, and the solution of the equation is for $y(x)$ to be a constant function.
The equation after the change is clearly what was intended all along, and it doesn't mean the same thing as the equation before the change. It doesn't matter what we call the dummy variable - as long as we're careful not to conflict it with a variable name on the outside and cause out-of-scope errors.

As for leaving the $d?$ off the integral? I'm not a fan of that; it's a delimiter, which clearly marks what we're integrating, and what variable we're integrating with respect to. As far as I'm concerned, it's part of the integral sign. The only way I'd ever leave it off is if the dummy variable is left out entirely. $\int_a^b f(x)\,dx$ or $\int_a^b f$ are OK and unambiguous; $\int_a^b f(x)$ is malformed.

jmerry
  • 19,403