# Math Help - Integral

1. ## Integral

Hello.
For $\alpha>0$, calculate

$\int{|x^2-2\alpha x+2\alpha^2|}dx$

To me it looks like doesn't matter if $\alpha$ is greater or less than 0. But I don't know so some help would be appreciated!

Thanks

2. $|x^2 - 2\alpha x + 2\alpha^2| =$

$|x^2 - 2\alpha x + \alpha^2 + \alpha^2| =$

$|(x - \alpha)^2 + \alpha^2| = (x - \alpha)^2 + \alpha^2$

now integrate.