Solve in $\mathbb R$ the following equation $$x^2-2x+1=\log_2 (\frac{x+1}{x^2+1})$$
First of all from the existence conditions of the logarithm, we have $x > -1$. Analyzing $x^2 - 2x - 1$ , we get that for $x \in (-1,1]$ , the function $ x \mapsto x^2 - 2x - 1$ is strictly decreasing and $ x^2 - 2x - 1 \in [-2,2)$ and for $x \in [1,\infty)$ the function $ x \mapsto x^2 - 2x - 1$ is strictly increasing and $ x^2 - 2x - 1 \in [-2, \infty)$.I don't know if it helps, but at least we know the monotony of the left member. Now it seems quite complicated what I have to do next. I don't know how many solutions there are, but I assume there are 2. We'll probably have to rely on the convexity/concavity of the functions(IDEA : as the coefficient of $x^2$ is strictly positive, and the discriminant of the equation of degree 2 is greater than 0, the function $ x \mapsto x^2 - 2x - 1$ is strictly convex , maybe we can show that the right member is strictly concave so we have at most 2 solutions), but I don't really know how.If you have any idea or a solution, I'm here to listen. Thanks!

Let's start with your observation: The LHS is strictly convex while the RHS is strictly concave - hence there can be at max two intersections!
Let's note that $x^2-2x+1=(x-1)^2$. Identify here that at $x=1$, these two intersect.
Note that at $x=0$, $LHS=1$ and $RHS=0$, so $LHS>RHS$.
At $x=1$ where both are equal, the derivative of LHS is zero, while the derivative of the RHS is negative. Which means, there is some point $0<p<1$ where $LHS<RHS$
Because these functions are "nice", there must be at least one intersection between 0 and $p$! And we got 2 intersections :)