Derivation of addition of speeds formula

For $u_x$, $$\begin{align*} u_x &= \dfd xt \\ &= \frac{\dfd x{t'}}{\dfd t{t'}}\\ &= \frac{\dd{t'}\gamma(x' + vt')}{\dd{t'}\gamma(t' + vx'/c^2)} \\ &= \frac{u_x + v}{1 + vu_x/c^2} \end{align*}$$

For $u_y$, $$\begin{align*} u_y &= \dfd yt \\ &= \frac{\dfd y{t'}}{\dfd t{t'}}\\ &= \frac{\dfd {y'}{t'}}{\dd{t'}\gamma(t' + vx'/c^2)} \\ &= \frac{u_y}{\gamma(1 + vu_x/c^2)} \end{align*}$$