Recently I've been studying quantum dynamics with Sakurai's modern quantum mechanics, but I am confused with why the time evolution operator is written as
$$U(t,t_0)=\exp\left[\frac{-iH(t-t_0)}{\hbar}\right]$$ for time-independent Hamiltonian, while $$U(t,t_0)=\exp\left[-\left(\frac{i}{\hbar}\right)\int_{t_0}^tdt'H(t')\right]$$ for time-dependent (commuting case). My thought is that, since we can Taylor expand the wave function at $t=t_0$
$$\begin{align}\psi(x,t)&=\sum_{n=0}^\infty \frac{1}{n!}\left(\left(\frac{\partial}{\partial t}\right)^n\psi(x,t)\bigg|_{t=t_0}\right) (t-t_0)^n\\ &= \sum_{n=0}^\infty \frac{1}{n!}\left(\left(\frac{-iH}{\hbar}\right)^n\psi(x,t)\right)(t-t_0)^n\\ &=e^{\frac{-iH(t-t_0)}{\hbar}}\psi(x,t) \end{align} $$
we only need to know the value of $H$ at $t=t_0$. If this is true, then $U(t,t_0)=\exp\left[\frac{-iH(t-t_0)}{\hbar}\right]$ should hold whether $H$ is time-dependent or not. What have I done wrong here?