I'm trying to learn this notation, but I have some questions regarding its uses:
Why is a "$:$" used instead of "$=$" when defining the function, e.g. $f: x\mapsto f(x)$ isntead of $f = x\mapsto f(x)$, or even $f\triangleq x\mapsto f(x)$, as you define the function?
WolframAlpha uses the symbol $\to$ instead of $\mapsto$, and mentions the latter being "used when explicitly considered as a "map."", but what's the difference between a function and a map? Is $f:x\to f(x)$ better?
And lastly, is there a way with this notation to define the function at a value? Like $(f : x\mapsto f(x))|_{x=a} = f(a)$ or something?
Here is what I have seen used:
Usually, we write $f: A \to B$, where $A$ is the domain of $f$ (i.e. the set of inputs), and $B$ is the codomain of $f$, i.e., the set where the outputs lie (note that it isn't necessarily true that an element of $B$ must be an output of $A$ -- if this were true, $f$ would be called onto).
Now, if we want to specify where each specific element goes, perhaps by a formula, then we use the $\mapsto$ arrow instead of $\to$. So we might write $f: \Bbb R \to \Bbb R$ with $x \mapsto x^{2}$. This tells us that $f$ takes input from $\Bbb R$, and has output in $\Bbb R$, and each element $x \in \Bbb R$ is sent to $x^{2}$.
Usually, when we use the equal sign, =, we are using it between two objects that are of the same type. For example, if $A$ and $B$ are sets, we might write $A = B$. If $x$ and $y$ are numbers, we might write $x = y$. If $M$ and $N$ are both matrices with the same dimensions, we might write $M = N$. But if $x$ is a number and $A$ is a set, it doesn't make sense to write $x = A$. For example, $2 = 2$, clearly, and $\{ x, y, z \} = \{ x, y, z\}$, clearly, but does it make sense to say $2 = \{ x, y, z \}$? We can't even say these two aren't equal because they aren't the same type of thing.
We only use $=$ between two things that are of the same type to indicate they are the same thing. This is why it doesn't make sense to say $f = A \to B$. What are we saying? That $f$ equals $A$ arrow $B$? Instead, we use $:$ because it is a definition. Like if you write the definition of a word:
running: (n) a physical activity.