The context is these notes ( https://see.stanford.edu/materials/aimlcs229/cs229-notes1.pdf ) page 17.
From here:
$\frac{1}{{(}{1}\hspace{0.33em}{+}\hspace{0.33em}{e}^{{-}{z}}{)}^{2}}\hspace{0.33em}\cdot\hspace{0.33em}{(}{e}^{{-}{z}}{)}$
To Here:
$\frac{1}{{(}{1}\hspace{0.33em}{+}\hspace{0.33em}{e}^{{-}{z}}{)}}\hspace{0.33em}\cdot\hspace{0.33em}\left({{1}{-}\hspace{0.33em}\frac{1}{{(}{1}\hspace{0.33em}{+}\hspace{0.33em}{e}^{{-}{z}}{)}}}\right)$
Bit confused about the negative:
${-}\hspace{0.33em}\frac{1}{{(}{1}\hspace{0.33em}{+}\hspace{0.33em}{e}^{{-}{z}}{)}}$
Can someone please help by filling in some of the intemediate steps....
Thanks