# Let $Z_t=\int{W_s }ds$. Show that $Z_t=\int (t-s) dW_s$

Let $Z_t=\int_{0}^{t} W_s ds$. Use integration by parts to show that $Z_t=\int_{0}^{t} (t-s) dW_s$. I have tried and i can't get the answer.

For $$Z_t = \int_{0}^{t} W_s \,ds$$, \begin{align}Z_t &= \bigl[sW_s\bigr]^{t}_{0} - \int_{0}^{t} s\,dW_s\\ &=tW_t - s(W_t) \\ &= (t-s)W_t\\ &=\int_{0}^{t}(t-s) dW_s \end{align} where I used the property that $$\int_{a}^{b} c\,dW_t = c(W_b - W_a), \, c$$ is an arbitrary constant, and $$W_0 = 0$$