Order of Variables and Constants in Mathematical Expressions

  • Thread starter Cspeed
  • Start date
In summary, there is no universally accepted order for writing mathematical expressions. While some conventions exist, such as keeping integral constants on the far left and variables on the right, there is no clear rule for the placement of radicals. The main concerns are readability and ease of manipulation, and different individuals and publications may have different preferences.
  • #1
Cspeed
44
0
Does anyone know if there is a list of the order that goes in writing a mathematical expression (i.e. 7 [tex]\pi[/tex] [tex]\sqrt{5}[/tex] vs 7 [tex]\sqrt{5}[/tex] [tex]\pi[/tex] )?

Is there a generally accepted method?
 
Mathematics news on Phys.org
  • #2
Cspeed said:
Does anyone know if there is a list of the order that goes in writing a mathematical expression (i.e. 7 [tex]\pi[/tex] [tex]\sqrt{5}[/tex] vs 7 [tex]\sqrt{5}[/tex] [tex]\pi[/tex] )?

Is there a generally accepted method?
I don't know if there is an explicit rule other than by what looks better. For expressions with radicals, factors are usually collected in front of the radical, like this (using your example):
[tex]7 \pi \sqrt{5}[/tex]

Tip: When you create expressions or equations in LaTeX, it's usually best to put everything inside one pair of tags rather than use a bunch of pairs of tags.
 
  • #3
The reason for that is that if you write something like [itex]\sqrt{2}x[/itex], rather than [itex]x\sqrt{2}[/itex] is that it can be hard to distinguish whether or not the "x" is supposed to be inside the square root or not. Of course, as long as you are careful about that, [itex]x\sqrt{2}[/itex] and [itex]\sqrt{2} x[/itex] mean exactly the same thing- it's not like the ordering of operations where a+ bc is different from (a+b)c.
 
  • #4
Speaking in (incredibly) general terms, the problem you have just described is that of finding the "normal" form of a term.

In the study of formal systems, equivalent terms usually have several different representations. For example, if we're working with polynomials, x^2 + 1 + 2x is equal to 2x + x^2 + 1, even though how they are written on paper ("exs squared plus one... etc" versus "two exs plus ... etc") are different.

So if you have two terms, how can you tell if they are equal if they can be written out different? One practical example of this would be: If you were a math teacher and the answer your student gave you was different from your answer key, how could you tell if their answer was incorrect? Your answer key may say the answer is "x^2 + 2x + 1", but the student put "1 + 2x + x^2". Obviously these terms are different, yet they are "equal" inside the system we're working with.

The answer is you convert them to normal formal. The definition on "normal form" differs from system to system. For polynomials, we usually use the following definition:

A polynomial is in normal form when it is written [tex]c_nx^n + c_{n-1}x^{n-1} + c_{n-2}x^{n-2} + \cdots + c_1x + c_0[/tex] for some (constant) integers [tex]c_0, c_1, c_2, \cdots, c_n[/tex] and (constant) integer n.

Some systems do not have normal forms. This was one of the big discoveries in the early 20th Century. For example, if instead of polynomials (a kind of mathematical object), we used computer programs in some programming language (another kind of mathematical object), we would find there is no useful way to put a program in any sort of "normal" form. The major consequence of this is that it's impossible to mechanically decide whether two programs are equal to each other. (To show two programs are equal, you need look for a custom proof -- it's effectively a very difficult guessing game to show two arbitrary computer programs are equal).

In your particular case, you're working with algebraic expressions. There are no hard-and-fast definitions for what constitutes a normal form (I wouldn't imagine there is one at all). However, there are lots of loose conventions. Generally, you keep integral constants on the far left. Variables on the right. But in the case of the radical, those rules can be bent to avoid confusion (since some people are sloppy with the "bar" of the radical). The two primary concerns are readability and ease of manipulation. If you can achieve those, it really doesn't matter how you write them.
 
  • #5
Thanks for the explanations, but I am a little surprised. I always felt that there was some "right" way to write algebraic expressions. For example, in published mathematical papers, I'm sure they strive for consistency, so that from article to article you don't have radicals coming first one place and last somewhere else.

I've been searching, but couldn't find a list like this (just made up):
1. Integers
2. Variables, in alphabetical order
3. Greek letters, in alphabetical order
4. Radicals
etc.
 

FAQ: Order of Variables and Constants in Mathematical Expressions

What is the purpose of defining the order of variables/constants?

The order of variables/constants is important because it determines the sequence in which the values are assigned and used in a mathematical expression or computer program. This can affect the outcome of a calculation or the functionality of a program.

How do you determine the correct order of variables/constants?

The correct order of variables/constants is typically determined by following the rules of mathematical operations, such as PEMDAS (Parentheses, Exponents, Multiplication/Division, Addition/Subtraction). Additionally, some programming languages may have specific rules for the order of variables/constants in a code sequence.

Can the order of variables/constants change the result of a calculation?

Yes, the order of variables/constants can significantly impact the result of a calculation. For example, changing the order of operations in a mathematical expression can result in a different answer. It is important to carefully consider the order of variables/constants to ensure accurate results.

Are there any conventions for setting the order of variables/constants?

There are some general conventions for setting the order of variables/constants, such as using parentheses to group operations and following the standard mathematical order of operations. However, specific conventions may vary depending on the programming language or industry standards.

How does the order of variables/constants affect the readability of code?

The order of variables/constants can greatly impact the readability of code. Following a consistent and logical order can make the code easier to understand and debug. In contrast, a chaotic or illogical order can make the code difficult to follow and maintain.

Similar threads

Back
Top