Integrate[Cos[x^2-1]/x, {x, -1, 2}, PrincipalValue -> True]