Find an equation in rectangular coordinates for the equation given in spherical coordinates: $\phi=\pi/6$
Equation must be such that $z \ge 0$.
Here is what I did:
$z = \rho\cos\phi$
$z = \cos{\pi/6}\sqrt{x^2 +y^2 + z^2}$
and since z must be greater than or equal to zero:
z = $| \cos{\pi/6}\sqrt{x^2 +y^2 + z^2} |$
Please note how your expression of $z$ is already positive, you don't need absolute values. Else, your expression is correct.