<s>[INST] Expanding with fractional powers I've been given the following integral to evaluate
$$\int_0^1(3x^3 - x^2 + 2x - 4)\frac{1}{\sqrt{x^2 - 3x + 2}} dx.$$
Can I expand fractional powers?
 [/INST] You should complete the square to obtain
$$ x^2-3x+2=\left(x-\frac{3}{2}\right)^2-\frac{1}{4} $$
then let $x-\frac{3}{2}=\frac{1}{2}\sec(t)$, that is, $x=\frac{3}{2}+\frac{1}{2}\sec(t)$. Then $dx=\frac{1}{2}\sec(t)\tan(t)\,dt$ and
$$ \sqrt{x^2-3x+2}=\pm\frac{1}{2}\tan(t) $$
For $0\le x\le1$, $\sec(t)<0$ and $\sec^{-1}(-3)\le t\le\pi$, so you will need
$$ \sqrt{x^2-3x+2}=-\frac{1}{2}\tan(t) $$
Upon substitution into the original, you obtain an integral whose terms are powers of the secant function.
</s>