4. A particle \(P\) moves along the \(x\)-axis in a straight line so that, at time \(t\) seconds, the velocity of \(P\) is \(v \mathrm {~m} \mathrm {~s} ^ { - 1 }\), where
$$v = \begin{cases} 10 t - 2 t ^ { 2 } , & 0 \leqslant t \leqslant 6
\frac { - 432 } { t ^ { 2 } } , & t > 6 \end{cases}$$
At \(t = 0 , P\) is at the origin \(O\). Find the displacement of \(P\) from \(O\) when
- \(t = 6\),
- \(t = 10\).