Why Do Physicists Write Integrals as ##\int dx f(x)##?

  • Thread starter Thread starter martinbn
  • Start date Start date
  • Tags Tags
    Dx Integrals
Click For Summary
Physicists often prefer the notation ##\int dx f(x)## over ##\int f(x) dx## because it can enhance clarity, especially with complex integrands, by placing the integration variable first. This style is thought to have emerged from practices in quantum mechanics, particularly in Dirac notation, where it aligns with the representation of states. However, opinions vary, as some physicists still commonly use the traditional notation. The discussion also touches on the idea that notation can be a matter of personal or stylistic preference rather than a strict rule. Ultimately, the choice of notation reflects the diverse conventions within the fields of physics and mathematics.
  • #31
martinbn said:
The second notation looks very strange to me because surely ##\int_a^bdx=b-a##.
How about
$$\sum_{n=1}^{10}\sum_{m=1}^{10}f_{nm}\; ?$$
Does it look strange to you because surely ##\sum_{n=1}^{10}=10##?
 
  • Like
Likes nrqed and weirdoguy
Physics news on Phys.org
  • #32
Demystifier said:
How about
$$\sum_{n=1}^{10}\sum_{m=1}^{10}f_{nm}\; ?$$
Does it look strange to you because surely ##\sum_{n=1}^{10}=10##?
There is no closing bracket here the ##\int\dots dx## is analogous to ##(\dots)##. To be analogous it needs to be like $$\left(\sum_{m=1}^{10}\right)f_m.$$
A sum is an integral with respect to the counting measure and usually the measure is not explicit in the notation. Strictly the sum $$\sum_{m=1}^{10}f_m$$ is $$\int_{\{1,\dots, 10\}}f(m)dm$$ or if you prefer a different notation for the integral $$\sum_{m=1}^{10}f_mdm.$$ Then of course you could think that $$\sum_{m=1}^{10}dmf_m = 10f_m.$$
 
  • #33
By the way, this ##\int(x+1)dx## means integrate the function ##x+1## and you are comfortable to write it as ##\int dx(x+1)##.

What about ##(x+1)^3##? It means cube the function ##x+1##, do you ever write it as ##()^3(x+1)## or as ##{}^3 (x+1)##?
 
  • #34
martinbn said:
By the way, this ##\int(x+1)dx## means integrate the function ##x+1## and you are comfortable to write it as ##\int dx(x+1)##.

What about ##(x+1)^3##? It means cube the function ##x+1##, do you ever write it as ##()^3(x+1)## or as ##{}^3 (x+1)##?
You view ##dx## as the right bracket, so for you it must be on the right. I view ##dx## as an infinitesimal multiplied with ##f(x)##, so, since multplication is commutative, we have ##dx \,f(x)=f(x)dx##.

For instance, if ##v(t)## is time-dependent velocity, the infinitesimal path is
$$dx=v(t)dt=dt\,v(t)$$
so
$$x=\int dx=\int v(t)dt=\int dt\,v(t)$$
 
  • Like
Likes dlgoff, nrqed and weirdoguy
  • #35
Demystifier said:
You view ##dx## as the right bracket, so for you it must be on the right. I view ##dx## as an infinitesimal multiplied with ##f(x)##, so, since multplication is commutative, we have ##dx \,f(x)=f(x)dx##.
This was already pointed out, but it doesn't explain the choice. You say they are the same, but in some cases you prefer ##dxf(x)##. I am simply curious why. I guess you wouldn't write that way differential forms? How about integrals not in the sense of Riemann? There the infinitesimals that commute is not very meaningful.
 
  • #36
martinbn said:
This was already pointed out, but it doesn't explain the choice. You say they are the same, but in some cases you prefer ##dxf(x)##. I am simply curious why.
I think the best explanation why is given in my #18. Your objection in #30 does not make much sense when ##dx## is not viewed as a right bracket.
martinbn said:
How about integrals not in the sense of Riemann? There the infinitesimals that commute is not very meaningful.
Could you be more specific about that? What kind of integral do you have in mind? If you talk about Grassmann/Berezin integral, there ##d\eta## cannot be interpreted as an infinitesimal at all.
 
  • #37
Perhaps the whole problem stems from the fact that it is sacrilegious for mathematicians to think of ##dx## as an infinitesimal. For if it is not an infinitesimal, then what is it? The only remaining option seems to be that ##dx## is a kind of a right bracket, so it must be on the right. But sloppy physicists do not have problems with thinking of ##dx## as an infinitesimal, so they have a freedom to put it either on the right or on the left. Then they make a final choice by other criteria, such as those in post #18.
 
  • #38
There is also a good cognitive reason to prefer ##\int dx\, f(x)## over ##\int f(x)dx##. In plain English, the first would be expressed as "integrate over x the function f", while the second would be "integrate the function f over x". But when one just says "integrate", the first question that comes to one's mind is "integrate over what?", especially if there are many variables involved. So it seems cognitively more natural to say "integrate over x the function f", rather than "integrate the function f over x".

EDIT: Linguistically, "integrate the function f over x" sounds better than "integrate over x the function f". But when I translate it to my native Croatian language, it is no longer the case. How about other languages?
 
Last edited:
  • Like
Likes nrqed
  • #39
Another thought. Sometimes the order of integration in multiple integrals matters. But if I write this as
$$\int\int f(x,y)dxdy \neq \int\int f(x,y)dydx$$
it looks confusing to me because my first thought is that it implies ##dxdy \neq dydx##, which of course is wrong. On the other hand, if I write this as
$$\int dx\int dy \, f(x,y) \neq \int dy\int dx \, f(x,y)$$
it does not make me confused. Indeed, if I think of ##\int dx## as an operator that may act on a function, then I can interpret the above as non-commutativity of operators
$$\int dx\int dy \neq \int dy\int dx $$
which is quite true.
 
Last edited:
  • #40
Demystifier said:
But when I translate it to my native Croatian language, it is no longer the case. How about other languages?
German doesn't have the strict SPO rule, so you could say:
  • I integrate f over x.
  • Over x I integrate f.
  • f w.r.t.x must be integrated.
  • f must be integrated over x.
  • I integrate over x the function f.
although some of them sound a bit constructed.
 
  • Like
Likes dlgoff
  • #41
Demystifier said:
EDIT: Linguistically, "integrate the function f over x" sounds better than "integrate over x the function f".

In polish "integrate the function f over x" sounds better and actually I don't see any other way to say it.
 
  • #42
martinbn said:
And also when did that start?
So far we said nothing about that. I have just checked out several old physics books and they all use ##\int f dx##. The oldest physics book with ##\int dx\, f## that I found is Schweber (1961). Can someone find an older example?
 
  • #43
Demystifier said:
Could you be more specific about that? What kind of integral do you have in mind?
Well, any integral really that comes from a measure. For example how do you think of Lebesgue's integral as an infinite sum of infinitesimals?
Demystifier said:
EDIT: Linguistically, "integrate the function f over x" sounds better than "integrate over x the function f". But when I translate it to my native Croatian language, it is no longer the case. How about other languages?
For me nether sounds right. You don't integrate over x, you integrate with respect to x and over a set. By the way how is it in Croatian?
Demystifier said:
it looks confusing to me because my first thought is that it implies ##dxdxdy \neq dydx##, which of course is wrong.
One would have to say what meaning one puts in this notation otherwise you cannot simply say that it is wrong. For example if these are suppose to be differential forms, then certainly ##dx\wedge dy \neq dy\wedge dx##.
Demystifier said:
So far we said nothing about that. I have just checked out several old physics books and they all use ∫fdx∫fdx\int f dx. The oldest physics book with ∫dxf∫dxf\int dx\, f that I found is Schweber (1961). Can someone find an older example?
Finally something towards my actual questions. How did Dirac write his integrals? Somewhere I saw a statement that Leibniz was using both notations! In any case there must have been a switch, I still want to know why. Also every one who writes it the "physicists" way must at some point in his life switch because it is more likely that he started in school or university studying integrals in a math course.
 
  • #44
martinbn said:
Finally something towards my actual questions. How did Dirac write his integrals?
He did it like a mathematician.

martinbn said:
Also every one who writes it the "physicists" way must at some point in his life switch because it is more likely that he started in school or university studying integrals in a math course.
When I reread my undergraduate textbooks, it seems that I was first exposed to the physicist-like notation at the 3rd year, in Jackson's Classical Electrodynamics.
 
  • #45
martinbn said:
By the way how is it in Croatian?
Integral po x od funkcije f.
 
  • Like
Likes martinbn
  • #46
Demystifier said:
So far we said nothing about that. I have just checked out several old physics books and they all use ##\int f dx##. The oldest physics book with ##\int dx\, f## that I found is Schweber (1961). Can someone find an older example?
R.Courant / D.Hilbert, 1924, kept it consequently at the end. The first appearance I have found was in:
E. Madelung, 1950, Die Mathematischen Hilfsmittel des Physikers (The Mathematical Tools of the Physicist)
but only for those integrals with long integrands like ##F(t,v) = \int dv \int dt \varphi(x,t)e^{\{\,\ldots\,\}}##
 
  • #47
Demystifier said:
By analogy with ##\sum_n f_n## I would propose to use a third notation
$$\int_x f(x)$$
This form is used in the theory of differential forms!
 
  • #48
DrDu said:
This form is used in the theory of differential forms!
I think in differential forms it is more like
$$\int_V f$$
where ##V## is the domain of integration, not the variable of integration.
 
  • Like
Likes dlgoff and fresh_42
  • #49
martinbn said:
For example how do you think of Lebesgue's integral as an infinite sum of infinitesimals?
If Riemann's integral is a sum of infinitesimal vertical strips, then Lebesgue's integral is a sum of infinitesimal horizontal strips. See e.g. the picture in https://en.wikipedia.org/wiki/Lebesgue_integration .
 
  • #51
fresh_42 said:
but only for those integrals with long integrands like ##F(t,v) = \int dv \int dt \varphi(x,t)e^{\{\,\ldots\,\}}##
Yes, somehow that also makes sense, even though I am not able to explain why. Anyway, since physicists more often than mathematicians use long integrands, perhaps it could explain why such notation was adopted by physicists and not by mathematicians.
 
  • Like
Likes weirdoguy
  • #52
Demystifier said:
Yes, somehow that also makes sense, even though I am not able to explain why. Anyway, since physicists more often than mathematicians use long integrands, perhaps it could explain why such notation was adopted by physicists and not by mathematicians.
It could also has been because of
Demystifier said:
If you have a double integral, then the notation
$$\int_{a}^{b}\int_{c}^{d}f(x,y)dxdy$$
is ambiguous, because it is not clear whether ##x\in[a,b]## or ##x\in[c,d]##. With notation
$$\int_{a}^{b}dx\int_{c}^{d}dy \,f(x,y)$$
there is no risk for such a confusion.
since I found this exception from his other notations in a double integral, which occur more often in physics, too, as mathematicians would probably write it usually as a single integral over an appropriate area. Maybe it took the way from double integrals to single integrals. An occurrence in 1950 appears reasonable, too.
 
  • Like
Likes Demystifier
  • #53
(1) While contemplating about the use and position of ##dx## in ##\int f(x) dx## one must not forget history. For the inventor of this notation, Leibniz (1646-1716), the notation ##\int f(x) dx## literally meant the sum of the "infinitesimals" ##f(x) dx## (hence the S-notation ##\int##).

(2) It seems to me that in a physical context, ##\int f(x)## has another physical dimension than ##\int f(x) dx##
 
  • Like
Likes Demystifier
  • #54
martinbn said:
Yes, this is the same. Mathematicians wouldn't put basis vectors first and the numbers second. It would be ##\sum a_i\vec{e}_i##, not ##\sum\vec{e}_i a_i##.

Yes, but the advantage of writing ##\sum_i |i\rangle \langle i |a\rangle## is that it can be interpreted as the identity operator ##I = \sum_i |i\rangle \langle i|## operating on the vector ##|a\rangle##.
 
  • Like
Likes Demystifier
  • #55
stevendaryl said:
Yes, but the advantage of writing ##\sum_i |i\rangle \langle i |a\rangle## is that it can be interpreted as the identity operator ##I = \sum_i |i\rangle \langle i|## operating on the vector ##|a\rangle##.
Yes, I agree, but this is an advantage of the bra-ket notation. It is absent in the ##\sum \vec{e}_i a_i##.
 
  • #56
Demystifier said:
If Riemann's integral is a sum of infinitesimal vertical strips, then Lebesgue's integral is a sum of infinitesimal horizontal strips. See e.g. the picture in https://en.wikipedia.org/wiki/Lebesgue_integration .
Yes, and for Riemann the base of the strip is the infinitesimal ##dx## the height is the value of the function ##f(x)##, so the area can be written as ##f(x)dx## or equally (perhaps better) as ##dxf(x)##. For Lebesgue the base is the measure of some set, the height might be interpreted somehow as an infinitesimal. But I don't see how you can make the area, even just heuristically and non-rigorously as ##f(x)dx##.
 
  • #57
martinbn said:
Yes, and for Riemann the base of the strip is the infinitesimal ##dx## the height is the value of the function ##f(x)##, so the area can be written as ##f(x)dx## or equally (perhaps better) as ##dxf(x)##. For Lebesgue the base is the measure of some set, the height might be interpreted somehow as an infinitesimal. But I don't see how you can make the area, even just heuristically and non-rigorously as ##f(x)dx##.
Well, physicists don't often use Lebesgue integrals in practical computations, so they don't invent their own notation for that. But if they did, I guess they would write it something like
$$\int df\,x(f)$$
where ##df## would be an infinitesimal. Here ##x(f)## is the inverse of ##f(x)## and the nontrivial thing to take into account is that ##x(f)## can be a multivalued "function", some branches of which have actually a negative contribution to the integral, which somehow should be incorporated into the notation too. Perhaps something like
$$\int d_s f\,x(f)$$
with
$$d_s f=-df \, {\rm sign}\left( x\frac{df(x)}{dx} \right)$$

EDIT: I have never seen such a representation of Lebesgue integrals before, I've just invented it. Is it really new, or has somebody somewhere already done something similar?
 
Last edited:
  • #58
Demystifier said:
Well, physicists don't often use Lebesgue integrals in practical computations, so they don't invent their own notation for that. But if they did, I guess they would write it something like
$$\int df\,x(f)$$
where ##df## would be an infinitesimal. Here ##x(f)## is the inverse of ##f(x)## and the nontrivial thing to take into account is that ##x(f)## can be a multivalued "function", some branches of which have actually a negative contribution to the integral, which somehow should be incorporated into the notation too. My proposal is
$$\int d_s f\,x(f)$$
where
$$d_s f=-df \, {\rm sign}\frac{df(x)}{dx}$$

EDIT: I have never seen such a representation of Lebesgue integrals before, I've just invented it. Is it really new, or has somebody somewhere already done something similar?

A Lebesgue integral can be converted into a Riemann type integral by switching the integration variable.

You have (for simplicity, assume it's nonnegative) a function ##f(x)##. You define a new function ##f^*(t) = \mu(\{ x | f(x) > t \})## (##\mu(A)## means the Lebesgue measure of set ##A##). Then the lebesgue integral of ##f## is the Riemann integral of ##\int_0^\infty f^*(t) dt##. I guess the reason it's better defined is that ##f^*(t)## will often be better-behaved than ##f##.
 
  • Like
Likes Demystifier
  • #59
Speaking of physicists's way of doing Lebesque integrals, how about the following heuristics?
$${\rm Riemann}=\int dx\, f \cong \int dx \int df \cong \int df \int dx \cong \int df\, x ={\rm Lebesque} $$
 
  • #60
You don't need to write ##df## it is enough to write ##f##, and ##x(f)## is not just the set of all those values, you need the measure, so it is better to write ##\mu## or ##\mu(x)## so you integral becomes ##\int f\mu##, which of course is standard.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
773
  • · Replies 20 ·
Replies
20
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
3
Views
2K
Replies
9
Views
1K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
7
Views
2K
  • · Replies 105 ·
4
Replies
105
Views
6K
Replies
0
Views
1K