Problem with graphical representation of quadratic equation.

138 Views Asked by At

I have an equation $x^2 -x =0$
I know, it has two solutions, $x=0,1$
If I plot it using a math software, it shows a straight line passing through $1$, perpendicular to x-axis. (I have plotted, $x^2-x=0$)

BUT, if I plot $y=x^2-x$ , then it does show a parabola that passes through both $0$ and $1$ .

The question- What's the reason behind this?

The image shows the two graphs- enter image description here

2

There are 2 best solutions below

2
On BEST ANSWER

How can you "plot" the equation $x^2-x=0$? It is an equation in a single variable. The "plot" of that would be the two points $0$ and $1$ on the real number line. There is no $x$-$y$ plane involved. What math software are you using?

Addendum: (Thanks to the comment of @DylanSp) If $x_0$ is a solution to the equation $x^2-x=0$, then of course $(x_0,y)$ is a solution of the equation (regarded as an equation in two variables) for every value of $y$ because the equation places no restriction on $y$. The set of points of the form $(0,y)$ or $(1,y)$ is the union of the two vertical lines $x=0$ and $x=1$ in the plane.

0
On

You graph is correct. It represents the two set of points: $$ P=\{(x,y)|(x,y)\in \mathbb{R}^2\,,\,y=x^2-x \} $$ that is the parabola, and

$$ R=\{(x,y)|(x,y)\in \mathbb{R}^2\,,\,x^2-x=0 \} $$ That is a couple of straight lines: one $x=0$ (that you don't ''see'' because coincident with the $y-$axis) and the other $x=1$.