Let $\Phi(t)=a+\frac{1}{2}(1+t)(b-a)$. Then $\Phi'(t)=\frac{b-a}{2}$.
Now let's transform the following $L^2$-norm from the interval $[-1,1]$ to the interval $[a,b]$, trough the substitution: $$ \begin{align*} x&=\Phi(t) \\ dx&=\Phi'(t)\,dt \quad\Longleftrightarrow \quad dt =\frac{1}{\Phi'(t)}\, dx =\frac{2}{b-a}\, dx \end{align*} $$ So, $$ \begin{align*} ||{(f\circ\Phi)}||_{L^2_{[-1,1]}} &=\sqrt{\int_{-1}^1|f(\Phi(t))|^2\, dt}\\ &=\sqrt{\int_{\Phi(-1)=a}^{\Phi(1)=b}|f(x)|^2\frac{2}{b-a}\, dx}\\ &=\sqrt{\frac{2}{b-a}}\sqrt{\int_{a}^{b}|f(x)|^2\, dx}\\ &=\sqrt{\frac{2}{b-a}}||{f}||_{L^2_{[a,b]}}. \end{align*} $$
However, the solution in my book says $||{(f\circ\Phi)}||_{L^2_{[-1,1]}}=\sqrt{|b-a|}\cdot||{f}||_{L^2_{[a,b]}}$. What have I done wrong?