Note this is only true if the scalar function are twice continously differentiable.

Writing it out will work. Also if you know some other identities they could be helpful for example.

Then for any scalar function with continous 2nd partial derviatives it is known that

Thus in the above identity if we get zero.

Or you can also use the scalar triple product

Just simplify from here