The first identity comes out because spherical coordinates are orthonormal so have the property

Can you see why if that property holds then that identity holds?

The second formula occurs because the unit vectors are also functions of the coordinates themselves, a proof of it can be found here

http://www.csupomona.edu/~ajm/materials/delsph.pdf

(also please put your latex in TEX tags!)