I recently proved this statement using only a few basic properties of real numbers and the definition of absolute value. So it may be a bit easier to grasp than some of the other proofs presented here.
Proof:
Suppose a and b are real numbers.
By trichotomy law only one of the following relation holds:
a = b, a > b, or a < b.
Case 1: a = b
|a - b| = |0 - 0| = |0| = 0.
|b - a| = |0 - 0| = |0| = 0.
Because |0| = 0 by definition of absolute value.
Hence |a - b| = |b - a|
Case 2: a > b
Starting with a > b,
a - b > b - b
a - b > 0
Starting with a > b,
a - a > b - a
0 > b - a
By definition of absolute value, |a - b| = a - b because a - b > 0. And |b - a| = -(b - a) = a - b because b - a < 0.
Hence |a - b| = |b - a|
Case 3: a < b
Starting with a < b,
a - b < b - b
a - b < 0
Starting with a < b,
a - a < b - a
0 < b - a
By definition of absolute value, |a - b| = -(a - b) = b - a because a - b < 0. And |b - a| = b - a because b - a > 0.
Hence |a - b| = |b - a|
In all three cases |a - b| = |b - a|, therefore for any real numbers a and b, |a - b| = |b - a|.
Q.E.D.
References: