I am self-studying Pazy's book "Semigroups of Linear Operators and Applications to PDE's." In Theorem 2.6, $T(t)$ and $S(t)$ are $C_{0}$-semigroups, $A$ generates $T(t)$, and $B$ generates $S(t)$. Moreover, $(A,D(A))=(B,D(B))$. We are supposed to show that $T(t)=S(t)$ for all $t\geq 0$.
Pazy's strategy is basically to let $x\in D(A)=D(B)$, define the function $s\mapsto T(t-s)S(s)x$, show that this function is constant, and then make use of the fact that $D(A)=D(B)$ is dense in overall space, $X$. In taking the derivative of the defined function, we have:
$\frac{d}{ds}\Big{[}T(t-s)S(s)x\Big{]}= -AT(t-s)S(s)x+T(t-s)BS(s)x$
Intuitively, this theorem should clearly be true. My question is simply how does Pazy arrive at this derivative. It looks like he's using the product rule, and I know I'm just missing something really simple, but could someone point me in the right direction here?