FourierTransform[Piecewise[{{t, 0 < t < 1}, {t^2, t > 1}}], t, u]