If differs mean to compare two things, then what does "Elementary algebra differs from arithmetic in the use of abstractions, such as using letters to stand for numbers that are either unknown or allowed to take on many values." mean?
Differs does not exactly mean to compare. Differs refers to how things are different. The statement above is explaining how elementary algebra is different from arithmetic because it uses letters to represent unknown numbers.