Why is wolfram alpha plotting this differently?

The only way I've got for making WolframAlpha recognise this as a request for a 3D plot in which one variable happens to be absent, is:

plot [x^2]+[(y-2)^2] + 0.000000001z = 1

This will not quite produce the right plot, but it's very close; I've had to add a term which is nearly zero, to make WA understand the $z$ term.

I have reported as a bug the fact that ContourPlot3D[x^2+(y-2)^2==1, {x, -1, 1}, {y, 1, 3}, {z, -4, 4}] is not recognised correctly.


Expanding on my comment:

The equation you have is, for example, $x^2+(y-2)^2=1$. The graph you want is the set of all points $(x,y,z)$ which satisfy this equality. Note that $z$ is not in the equation, which means that $z$ can be anything as long as the $x$ and $y$ work.

If we looked at the same equation in two dimensions, we would say the graph is the set of all points $(x,y)$ that satisfy the equation. This would be a circle. In three dimensions, $z$ can be whatever it wants so the circle extends forever in the the $z$ direction and we get the infinite cylinder.

Here's the issue: this is not a function. It fails the vertical line test. A very similar analogy is the line $x=2$. Of course, in two dimensions this means the vertical line at $x=2$. However, there is no way to write this as a function of $x$.

Certain graphing programs are "smart" enough to figure out what you mean. The only real way to plot this is to parameterize it as a well-defined function.


Here is a parametrization using Mathematica. As @Patrick Stevens pointed out, you cannot plot this in Wolfram Alpha (yet).enter image description here