When we find the derivative of $z^2$ with respect to $z$ it means the slope of the graph,Which comes out to be $2z$. $$ \frac{dz^2}{dz}=2z $$if we take $dz$ on the other side it becomes $dz^2=2zdz$ which is known as the differnetial of $z^2$. I am not sure what this means, does it mean if we change $z^2 $with $dz$ then $z$ changes by $2zdz$?
If so, then for example I have an equation $z^2+\cos\theta+26$. Then can I differentiate the sides and get $$2zdz-\sin\theta d\theta=0$$ What does this even mean?