It is usually easiest to define a coordinate system in which as many variables as possible will be constant. Expressing a sphere in a rectangular coordinates requires using all three variables:
where k is some constant. It can be done, but this is not the best answer.
The Project Links Glossary has an entry on Cartesian coordinates for those who are not very familiar with it.