I understand the concept, but I still can't figure out how to read the notation:
$$f^{-1}(E):=\{x\in A:f(x)\in E\}$$
I understood the concept due to the examples, not with the notation. Can someone translate/explain how to read it to me?
I'm thinking that it means: All numbers that when evaluated, will result in $f(x)$, I could find a inverse image in $f(x)=x^2+x$, for example: Consider $A=\{2,-3\}$ and $B=\{6\}$ where $A$ is the inverse image, for this I just took the procedure I found on wikipedia.
For example, for the function $f(x) = x^2$, the inverse image of $\{4\}$ would be $\{-2,2\}$.
But I got confused when I read this:
$x^2+x$ is not invertible as a function on R. Are you restricting the domain?
What's wrong?

Recall that in modern mathematics functions are also relations, i.e. sets of ordered pairs. Given a relation $R$, we can talk about the inverse relation, $R^{-1}=\{\langle y,x\rangle\mid \langle x,y\rangle\in R\}$.
To understand the inverse relation one simply has to think about a relation as a bunch of arrows between points, and the inverse relation is merely the inversion of these arrows.
Now it should be simpler to understand $f^{-1}(E)$. This is the inverse relation of $f$. Note that if $f$ is injective, then $f^{-1}(x)$ is at most one point, and that defines a function (on a subset of the codomain); but this is irrelevant to the main point: "$f^{-1}(E)$ is the image of $E$ under the inverse relation of $f$"
On a general level, when we write $\{x\mid \varphi(x)\}$ (the $\mid$ is sometimes replaced by $\colon$) we define a collection, naively a set, which includes all the objects $x$ such that $\varphi(x)$ is true for them.
When we write $\{x\in A\mid\varphi(x)\}$ we mean $\{x\mid x\in A\land\varphi(x)\}$. This way we limit our collection to elements of $A$. This is a solution for several possible paradoxes of naive set theory when we assume that $A$ is a set, and the result is a set.