Proof that $\cos(2\theta) = \cos^2\theta-\sin^2\theta$ by showing equivalence of derivatives
Sure, totally valid. There are other interesting ways like this that also work for verifying other trig identities. I recall proving one through Fourier series back in August for a class, an example.
A bit overkill, obviously, but 100% valid, as with your method.
The ideas and work shown are valid.
In order to format the work here into the format of a proof, we need to identify our hypotheses.
The things that are assumed here are that $\sin{2x}=2\sin{x}\cos{x},$ (I am calling this an assumption, since the double angle formula for cosine is not implicitly assumed), the derivative of sin is cos, and the derivative of cos is -sin.
Usually, the double angle formula for cos is used to prove that the derivatives of the trigonometric functions are what they are. So explicitly calling those things assumptions allow this to not be circular logic.