According to the three-dimensional Pythagorean formula:
r^2 = x^2 + y^2 + z^2[/itex]<br />
<br />
Something that might be causing confusion here is that the formula for a three-dimensional wave depends on the "shape" of the wave. For a plane wave (whose maxima form a series of planes marching through space),<br />
<br />
\psi(x, y, z, t) = A \cos (\vec k \cdot \vec r - \omega t) = A \cos (k_x x + k_y y + k_z z - \omega t)<br />
<br />
where the \vec k vector and its components are constant.<br />
<br />
For a spherical wave (whose maxima form a series of concentric spheres spreading out from a central point, let's say the origin),<br />
<br />
\psi(x, y, z, t) = A \cos (kr - \omega t) = A \cos (k \sqrt{x^2 + y^2 + z^2} - \omega t)<br />
<br />
At each point in a spherical wave the \vec k vector points radially outward from the origin, so the direction is different everywhere but the magnitude k = \sqrt {k_x^2 + k_y^2 + k_z^2} is constant.