TITLE: What does the equal sign mean in mathematics?
QUESTION [15 upvotes]: When we say $a=a$ means that are absolutely the same right? What does equal mean in $3+2=7-2$? Does it mean that they are absolutely the same or that the value is just the same?

REPLY [8 votes]: It is certainly true that, considered as strings of characters, the expressions "$3+2$" and "$7-2$" are different things.  And it is also true that we sometimes do care about expressions from a purely formal viewpoint, and would like to distinguish between different strings of characters that mean the same thing.  (For example, people who study mathematical logic and metamathematics often need to describe the properties of strings of symbols as strings.)  So in such a context it would be reasonable to write something like
$$\textrm{"}3 + 2 \textrm{"} \ne \textrm{"}7 - 2 \textrm{"} $$
But notice that I have here introduced an ad hoc notational convention (the quotation marks) to distinguish the expression "$3+2$" from the number that the expression stands for.  In general, establishing clear notational conventions are essential if you want to distinguish between an object and an expression or string of symbols that designates that object.
This comes up at higher levels so often that we don't even pause to reflect on it.  For example:

We often distinguish between a function $f$ and the value of a function at a generic value $f(x)$, so that the equation $f(x)=g(x)$ means that two functions agree at the $x$, whereas $f=g$ means that two functions agree globally;
We may define an equivalence relation on a structure, and use brackets or an overbar to indicate an equivalence class; then it makes perfect sense to say that $a \ne b$ but  $[a] = [b]$;
We might be interested in polynomials over a ring $R$; every polynomial $p\in R[x]$ naturally can be interpreted as a function $\hat{p}:R\to R$.  However, two different polynomials may induce the same function:  for example, with $R=\mathbb Z_6$ the polynomials $p=x^5 + 3x^2 + 4x$, $q = 3x^4 + 5x$ and $r = 2x$ all induce the exact same function, so $\hat{p}=\hat{q}=\hat{r}$ although $p \ne q \ne r$.

We don't normally make such fine distinctions at the level of simple arithmetic, but we could, and there may be contexts in which we should.  For example if we are interested in computational complexity, it worth knowing that the expression $\sqrt{5^2 + 12^2}$ requires 4 operations, while $5+8$ requires only 1; likewise storing the first expression in memory takes more bits than storing the second expression.  So while the numbers named by $\sqrt{5^2 + 12^2}$ and $5+8$ are the same number, the expressions naming them are different names.
I believe this distinction is related to what linguists call the use-mention distinction, i.e. a distinction between using a word or phrase to refer to a thing, and mentioning a word or phrase to refer to the word or phrase itself.  An example from the Wikipedia page linked to in the previous sentence:

Use: Cheese is derived from milk.
Mention: "Cheese" is derived from the Old English word ċēse.

Note in this example the use of quotation marks to distinguish between the thing and the word.
Back in the days of the New Math, this kind of distinction between "number" and "numeral" (where the latter refers to the name used to express a numerical quantity) was baked into the K-12 mathematics curriculum in the United States, but that level of nuance came to be widely regarded as unnecessary hair-splitting.