I have a rotation matrix let us say $R(t)$ and its quaternion $q(t)$. We know already how to convert a quaternion to rotation matrix. Now if I want find $\int R(t) \ dt \tag1 $ can we do that in quaternion domain somthing like $\int q(t) \ dt \tag 2$ and convert back to 3D matrix form. ? If not how?