Why Do Physicists Write Integrals as ##\int dx f(x)##?
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
83 replies · 11K views
Discussion
Physics news on Phys.org
Psinter
- 278
- 785
I have never seen that before.
Found a quick answer (with another linked question and answer):
https://math.stackexchange.com/ques...in-usage-for-dx-before-or-after-the-integrand
Although it doesn't say when it started.
Attachments
- 20,819
- 28,466
It's a matter of taste. E.g. if we have especially long integrands with multiple variables and constants, it can be very helpful to denote the integration variable first. My guess is, that some physicists started with it for exactly this reason: write down the "unnecessary" first and concentrate on the essential part.martinbn said:Why do physicists like to write ##\int dx f(x)## instead of ##\int f(x) dx##? And also when did that start?
- 29,815
- 21,642
martinbn said:Why do physicists like to write ##\int dx f(x)## instead of ##\int f(x) dx##? And also when did that start?
In QM Dirac notation, it is a more natural extension of the representation of vector/state for a countable basis, ##|n \rangle##:
$$|\alpha \rangle = \sum_n |n \rangle \langle n | \alpha \rangle $$
For a continuous basis, ##|x \rangle##, this becomes:
$$|\alpha \rangle = \int dx |x \rangle \langle x| \alpha \rangle $$
Where we have the identity:
$$\sum_n |n \rangle \langle n | = I$$
and
$$\int dx |x \rangle \langle x| = I $$
- 32,819
- 4,724
martinbn said:Why do physicists like to write ##\int dx f(x)## instead of ##\int f(x) dx##?
Says who? I'm a physicist, and I don't write it like that most of the time. I've seen mathematicians wrote dx first many times.
And why does this even merit a question? Isn't this no different than asking why someone prefers the color yellow instead of blue?
Zz.
Science Advisor
- 4,477
- 2,513
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##.PeroK said:In QM Dirac notation, it is a more natural extension of the representation of vector/state for a countable basis, ##|n \rangle##:
$$|\alpha \rangle = \sum_n |n \rangle \langle n | \alpha \rangle $$
Science Advisor
- 4,477
- 2,513
Well, at some point someone must have started doing it. I might be wrong but I think the other notation have been around for a while before some, not all, started using the differential first notation. So there must have been a reason.ZapperZ said:And why does this even merit a question? Isn't this no different than asking why someone prefers the color yellow instead of blue?
Also I have never seen seen it in introductory calculus/analysis textbooks. My guess is that physicists are exposed to it later on. It is puzzling to me that it is used.
- 32,819
- 4,724
martinbn said:Well, at some point someone must have started doing it. I might be wrong but I think the other notation have been around for a while before some, not all, started using the differential first notation. So there must have been a reason.
Also I have never seen seen it in introductory calculus/analysis textbooks. My guess is that physicists are exposed to it later on. It is puzzling to me that it is used.
Again, why is this "puzzling"? Unless you think that these things do not commute, does it matter that I write the product of A and B as BA instead of AB?
It is also a matter of typesetting style. Maybe some publishers or journals have a standard where the integration variables are written first. This is often useful if the integrand itself is a long, complicated function.
Once again, isn't this a matter of personal preference? Should I need to conform to liking the same color as you do?
Zz.
- 29,815
- 21,642
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, exactly, and the Dirac notation doesn't quite work the mathematician's way round! It's the same with the inner product being linear in the second argument, rather than the first.
Science Advisor
- 4,477
- 2,513
Yes, and it is convenient that way. For the integral it is not, at least not any more. Are you saying that it is because of Dirac's notations? If you've been writing your integrals one way for a while there has to be a good reason to change later on, no?PeroK said:Yes, exactly, and the Dirac notation doesn't quite work the mathematician's way round! It's the same with the inner product being linear in the second argument, rather than the first.
- 29,815
- 21,642
martinbn said:Yes, and it is convenient that way. For the integral it is not, at least not any more. Are you saying that it is because of Dirac's notations? If you've been writing your integrals one way for a while there has to be a good reason to change later on, no?
All I know is that I started doing the integrals the other way round when I was learning QM Dirac notation. I've no idea whether Dirac started it. That's the only time I do it that way. Any other time I put the ##dx## at the end.
It's the same with vectors, it's only in QM that I write things back to front.
Science Advisor
- 4,477
- 2,513
I have given it a little more thought. Here is a speculation. For some people, at least for me, the notation ##\int \dots dx## serves as parentheses to enclose the expression to be integrated, so it is natural to put it that way. Also if one does more abstract integration, or integration on groups it would seem awkward otherwise. Of course just ##\int\dots## would be fine. For other people it may be more important, at least in some cases, or more natural to think of the integral as an operator. It takes a function and it produces something else, a number, a function so on. Then it is more natural to write it as an operator ##\int dx\dots## acting on functions.
Jehannum
- 102
- 26
ZapperZ said:Says who? I'm a physicist, and I don't write it like that most of the time. I've seen mathematicians wrote dx first many times.
And why does this even merit a question? Isn't this no different than asking why someone prefers the color yellow instead of blue?
Zz.
Of course it "merits" a question. It elicited several sensible answers.
Science Advisor
- 14,794
- 7,440
By analogy with ##\sum_n f_n## I would propose to use a third notation
$$\int_x f(x)$$
$$\int_x f(x)$$
- 20,819
- 28,466
Makes sense, and before there will be complaints about the location for the boundaries:Demystifier said:By analogy with ##\sum_n f_n## I would propose to use a third notation
$$\int_x f(x)$$
$$\int_{x \in (a,\infty]} f(x)$$
Science Advisor
- 14,794
- 7,440
To make the analogy with sums complete, how aboutfresh_42 said:Makes sense, and before there will be complaints about the location for the boundaries:
$$\int_{x \in (a,\infty]} f(x)$$
$$\int_{x =a}^{b} f(x) \;\;?$$
Science Advisor
- 14,794
- 7,440
If you have a double integral, then the notationmartinbn said:Why do physicists like to write ##\int dx f(x)## instead of ##\int f(x) dx##? And also when did that start?
$$\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.
- 20,819
- 28,466
I guess, because I like to write the sums as well as sum over instead of from to.Demystifier said:To make the analogy with sums complete, how about
$$\int_{x =a}^{b} f(x) \;\;?$$
And if the integration order is arbitrary, we can even write
$$
\int_{x_1}^{x_2}\, \int_{y_1}^{y_2} \, \int_{z_1}^{z_2} \,f(x,y,z) = \iiint_\stackrel{\stackrel{x \in [x_1,x_2]}{y \in [y_1,y_2]}}{\stackrel{z \in [z_1,z_2]}{}}\,f(x,y,z) = \int_{(x,y,z)\in [x_1,x_2]\times [y_1,y_2] \times [z_1,z_2]}\,f(x,y,z)
$$
in which case the term volume gets a complete new feeling!
Science Advisor
- 14,794
- 7,440
Let me also note that Schiff in his quantum mechanics textbook uses the same notationDemystifier said:By analogy with ##\sum_n f_n## I would propose to use a third notation
$$\int_x f(x)$$
$${\large\sf S}_k f_k$$
for both sums and integrals.
Science Advisor
- 14,794
- 7,440
Isn't that a proof that physicist's notation is better?fresh_42 said:
And if the integration order is arbitrary, we can even write
$$
\int_{x_1}^{x_2}\, \int_{y_1}^{y_2} \, \int_{z_1}^{z_2} \,f(x,y,z) = \iiint_\stackrel{\stackrel{x \in [x_1,x_2]}{y \in [y_1,y_2]}}{\stackrel{z \in [z_1,z_2]}{}}\,f(x,y,z) = \int_{(x,y,z)\in [x_1,x_2]\times [y_1,y_2] \times [z_1,z_2]}\,f(x,y,z)
$$
in which case the term volume gets a complete new feeling!
- 20,819
- 28,466
I might have agreed, if it wouldn't have happened, that I read this thread here in parallelDemystifier said:Isn't that a proof that physicist's notation is better?![]()
Science Advisor
- 14,794
- 7,440
Well, in this thread physicists are silly, but this thread is not about notation.fresh_42 said:I might have agreed, if it wouldn't have happened, that I read this thread here in parallel![]()
- 20,819
- 28,466
There are two major disadvantages with your proposal:

- You cannot take away a loved infinitesimal from physicists.
- Half of them would immediately lose the ability to perform a correct substitution.
Science Advisor
- 14,794
- 7,440
The greatest notation master among physicists is DeWitt, who writes e.g.
$$\int d^4x \sum_{\mu=0}^3 j_{\mu}(x)A^{\mu}(x)$$
simply as
$$j_kA^k$$
$$\int d^4x \sum_{\mu=0}^3 j_{\mu}(x)A^{\mu}(x)$$
simply as
$$j_kA^k$$
Science Advisor
- 14,794
- 7,440
I would propose that all physicists should learn non-standard analysis, just for the sake of replying to pretentious mathematicians who mock physicists for using infinitesimals.fresh_42 said:
- You cannot take away a loved infinitesimal from physicists.
Physicists don't do any substitutions anyway. They solve integrals either by looking into a comprehensive math handbook such as Bronstein et al (especially if they are old enough), or put it into Mathematica.fresh_42 said:
- Half of them would immediately lose the ability to perform a correct substitution.
Science Advisor
- 3,762
- 297
Well, I have rarely seen multiple integrals in physics written with the ##d^nx## (or whatever variable) written at the far end, it is always written right next to the integral symbol. Therefore it is logical to use the same notation when there is a single integration, no?martinbn said:Why do physicists like to write ##\int dx f(x)## instead of ##\int f(x) dx##? And also when did that start?
Science Advisor
- 4,477
- 2,513
Oh, the question was about integrals in general, not just single integrals.nrqed said:Well, I have rarely seen multiple integrals in physics written with the ##d^nx## (or whatever variable) written at the far end, it is always written right next to the integral symbol. Therefore it is logical to use the same notation when there is a single integration, no?
Science Advisor
- 4,477
- 2,513
The first notation is not ambiguous unless the text is very poorly written. It is used in many math books and i have never seen anyone, including tones of american undergrad students, be confused by it. Of course the way you've written it ##x\in[c,d]##. The integral sign ##\int## and the differential ##dx## are just like parentheses.The second notation looks very strange to me because surely ##\int_a^bdx=b-a##.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.
Similar threads
Undergrad Why Do Physicists Use Gaussian Error Distributions?
- ohwilleke
- · Replies 5 ·
- Other Physics Topics
- Replies
- 5
Graduate Why do physicists assume all phenomena can be modeled with math?
- thetexan
- · Replies 17 ·
- Other Physics Topics
- Replies
- 17
Why do physicists use Bob and Alice in thought experiments?
- mankin2006
- · Replies 31 ·
- Other Physics Topics
- Replies
- 31
High School Why do physicists use coordinate grids for space and time?
- vidgmaetester
- · Replies 6 ·
- Other Physics Topics
- Replies
- 6
Graduate Why do physicists dismiss consciousness in quantum mechanics?
- alex.cordero
- · Replies 36 ·
- Other Physics Topics
- Replies
- 36
Undergrad Why do physicists show the magnetic field perpendicular to F
- physics user1
- · Replies 2 ·
- Special and General Relativity
- Replies
- 2
Undergrad Why do physicists pursue a unified theory?
- ChrisPeace
- · Replies 15 ·
- Other Physics Topics
- Replies
- 15
Undergrad Why Do Physicists Use 'Per' When Multiplying Units?
- Xavier692912
- · Replies 9 ·
- General Math
- Replies
- 9
Graduate Why Do Physicists Care About Causality?
- ChrisVer
- · Replies 8 ·
- Special and General Relativity
- Replies
- 8
Undergrad ## \int ~ dx dy dz ~ f(x,y,z)~ \delta (x+y+z-1)##
- Safinaz
- · Replies 11 ·
- Calculus
- Replies
- 11