Is subtraction commutative and consistent with other mathematical operations?

  • Thread starter Thread starter lLovePhysics
  • Start date Start date
  • Tags Tags
    Properties
AI Thread Summary
Subtraction is not a commutative operation, as demonstrated by the examples 3 - 2 = 1 and 2 - 3 = -1, which yield different results. While certain formulas like the slope and distance formulas allow for the switching of terms, this is due to the properties of multiplication and squaring, not because subtraction itself is commutative. In the slope formula, swapping terms introduces a negative sign that cancels out, while the distance formula ensures positive results through squaring. The relationship |x - y| = |y - x| illustrates that while the absolute difference is commutative, the operation of subtraction itself remains non-commutative. Ultimately, subtraction does not adhere to the commutative property.
lLovePhysics
Messages
169
Reaction score
0
Are there any communative properties of subtraction because there are many formulas like the slope and distance formulas where you can switch the two terms around right? For example:

Slope Formula: m=\frac{y1-y2}{x1-x2}

You can switch the terms around so that it would be y2-y1, x2-x1 right?

Also for the distance formula:

\sqrt{(x1-x2)^{2}+(y1iy2)^{2}


Btw, the numbers are suppose to be subscripts.
 
Mathematics news on Phys.org
No, subtraction does not commute, but you could say something like |x-y|=|y-x|.

The reason you can swap the terms in the first equation you give is, since y1<y2 and x1<x2, swapping both the values of x on the top and y on the bottom will introduce a minus sign in both the numerator and denominator, which will cancel.

In the distance formula, you are squaring the difference between x1 and x2, and y1 and y2, which will make sure the answer is always positive.
 
Subtraction is not commutative. In your example of the slope formula, you're just multiplying the numerator and denominator by -1. In the case of the dist. formula, you're using the property the square of any non-zero real number is positive.

P.S. For subsripts, use underscore, as in x_1. x_1
 
lLovePhysics said:
Are there any communative properties of subtraction ...

Well, as others have pointed out, the answer is no, there isn't. You can pick up a simple example and see:

3 - 2 = 1
whereas: 2 - 3 = -1.

Well, 1 and -1 are, of course, different. So, no, subtraction is not commutative. :)
 
But you can also see that
3 - 2 = - (2 - 3)
which you can read as shorthand for
-1 \times (2 - 3).
Now this does always hold and explains why the formulas in your first post work out:
  • What happens if you multiply numerator and denominator by the same number in a fraction?
  • What happens if you square the opposite of a number (e.g. x^2 = x \times x versus (-x)^2 = (-x) \times (-x).
 
Last edited:
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Thread 'Imaginary Pythagorus'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...
Back
Top