Given: x = r sin θ cos ϕ, y = r sin θ sin φ and z = r cos θ,
Solution: x = r sin θ cos ϕ
Squaring both sides, we get
x2 = r2 sin2 θ cos2ϕ …….(i)
and y = r sin θ sin ϕ
Squaring both sides, we get
⇒ y2 = r2 sin2 θ sin2ϕ …….(ii)
z = r cos θSquaring both sides, we get
⇒ z2 = r2 cos2θ ….(iii)
Adding (i), (ii) and (iii), we get
x2 + y2 + z2 = r2 sin2 θ cos2ϕ + r2 sin2θ sin2ϕ + r2 cos2θ
= r2 (sin2θ cos2ϕ + sin2θ sin2ϕ + cos2θ)
= r2 [sin2θ (cos2ϕ + sin2ϕ) + cos2θ]
∵ sin2θ + cos2θ = 1
= r2 [sin2θ + cos2θ]
Again apply the identity sin2θ + cos2θ = 1
= r2
Hence x2 + y2 + z2 = r2