I came across Fabian's nice old blog post on quaternion differentiation:
https://fgiesen.wordpress.com/2012/08/24/quaternion-differentiation/
I wanted to write a quick note on some of the broader context, which hopefully makes the quaternion case look less special.
Given any associative algebra where you can define what exp means, it's always true that d/dt exp(at) = a exp(at), which means the unique solution of x' = ax is x(t) = exp(at) x(0) = exp(a)^t x(0). In fact, it's true even if you work with formal power series, where you treat t as a formal symbol and interpret differentiation as the operator that shifts t^n down to n t^(n-1).