Evaluate the following integrals, in the different cases that arise according to the value of the positive constant $a\,$:
(i) $\displaystyle \int_0^1 \frac 1 {x^2 + (a+2)x +2a} \; \mathrm d x \;; $
(ii) $\displaystyle \int _{1}^2\frac 1 {u^2 +au +a-1} \; \mathrm d u \;. $