Is it well-known/or is there literature for differentiating the Riemann-Siegel $Z$-function?
$$Z(t)=e^{i \theta(t)}\zeta(1/2 +it)$$
I have tried differentiating this according to the chain rule but in the process, whenever I end up differentiating $[\zeta(1/2+it)]’$ using its formula
$$\zeta(1/2it)=e^{-i\theta(t)}Z(t)$$
the terms all end up cancelling with each other so I end up with the trivial result
$$Z’(t)=Z’(t)$$
Wolfram's answer linked by Tyma Gaidash is otained with the logarithmic derivative of $Z(t)$ :
\begin{align} \log Z(t)&=i \theta(t) +\log \zeta(1/2 +it)\\ \tag{1}\frac{Z'(t)}{Z(t)}&=i \theta'(t) +\frac{\zeta'(1/2 +it)}{\zeta(1/2 +it)}\\ \end{align}
where the derivative of the theta function is well known : \begin{align} \theta(t) &= \arg \left( \Gamma\left(\frac{1}{4}+i\frac t2\right) \right) - \frac{\log \pi}{2} t\\ \tag{2}\theta'(t) &=\frac 14\left(\psi\left(\frac 14+i\frac t2\right)+\psi\left(\frac 14-i\frac t2\right)-2\log \pi\right)\\ \end{align} (since the digamma function $\psi$ is the logarithmic derivative of $\Gamma$)
Combining $(1)$ and $(2)$ gives : $$Z'(t)=Z(t)\left(\frac i4\left(\psi\left(\frac 14+i\frac t2\right)+\psi\left(\frac 14-i\frac t2\right)-2\log \pi\right) +\frac{\zeta'(1/2 +it)}{\zeta(1/2 +it)}\right)$$