The original question wanted the real solutions to $$ 2(2^x- 1) x^2 + (2^{x^2}-2)x = 2^{x+1} -2 . $$ I graphed this equation and worked out the trivial roots $x=-1$ and $x=1$, and I could not find any more. Checking again, these are the only two solutions. So the problem is, I don't know how to write a formal derivation of those roots.
Thank you in advance for your help.
Since for the right-hand term of the original equation we have $2^{x+1}-2=2\left(2^x-1\right)$, the equation can be rewritten as: $$2\left(2^x-1\right)\left(x^2-1\right)+2\left(2^{x^2-1}-1\right)x=0,$$ which after simplifying the factor $2$ reduces to the even simpler form: $$\left(2^x-1\right)\left(x^2-1\right)+\left(2^{x^2-1}-1\right)x=0.$$ It is easy to ascertain that the roots of the equations $x=0$ respectively $x^2-1=0$ (in other words, the elements of the set $\{-1, 0, 1\}$) are also roots of our equation. We proceed to show they are the only roots, by assuming the existence of an additional real root $a \in \mathbb{R} \setminus \{-1, 0, 1\}$ of our equation, other than these special values. In this case, via dividing by $a\left(a^2-1\right)\neq0$ the equation can be brought to the form: $$\frac{2^a-1}{a}+\frac{2^{a^2-1}-1}{a^2-1}=0.$$ We remark that for any $y \in \mathbb{R}^{\times}=\mathbb{R} \setminus \{0\}$ and and any $t \in (1, \infty)$ the inequality $\frac{t^y-1}{y}>0$ holds, so by the particular application of this observation for $t=2$ and $y=a$ respectively $y=a^2-1$ we gather that the left-hand side of the last equation above is strictly positive, which constitutes a contradiction. This concludes the argument.
P.S. There is a very natural way to immediately generalise this exercise and for this we require the following ingredients (objects):
If we define the map: $$h=\sum_{i \in I}\left(\left(g_i \circ f_i\right)\prod_{j \in I \setminus \{i\}}f_j\right),$$ then the roots of $h$ are described by the relation: $$h^{-1}[\{0_K\}]=\displaystyle\bigcup_{i \in I}f_i^{-1}[\{0_K\}].$$ In the particular case of your exercise we have $K=\mathbb{R}$ with the standard ordered field structure, $A=\mathbb{R}$, $I=\{1, 2\}$, $g_1=g_2$ given by $g_1(x)=2^x-1$ (in general the map $x \mapsto a^x-1$ will be sign-preserving as long as $a>1$) and finally $f_1=\mathbf{1}_{\mathbb{R}}$ respectively $f_2(x)=x^2-1$ for all $x \in \mathbb{R}$.