Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

Difference of two variables, $x$ and $y$

Writer Matthew Harrington
$\begingroup$

Let's say you have two variables, $x$ and $y$, where $x$ is less than $y$. What would be "the difference of $x$ and $y$"? I think it should be $y - x$, since if you plot them on a number line, $x + (y - x) = y$. But my math teacher says it is $x - y$. Which one is right?

$\endgroup$ 4

2 Answers

$\begingroup$

I use the definition of difference as $|y-x|$, since $x<y$, $|y-x|=y-x$.

when in doubt, you might want to ask the definition of "difference" that is being used.

$\endgroup$ $\begingroup$

So Let $r$ be the difference between $x$ and $y$. As $x < y$ this implies that $x+r=y$. Note that $(x+r)-x= (y)-x$. So $r=y-x$. In this situation $r$ is strictly positive.

Let's look at it in a different way. Suppose $x-y$ was the difference between the two (i.e. $x-y=r$). As $x<y$ we would have $x\geq x-x = 0 > x-y$. This would mean that $r$ is strictly negative. Would that seem odd to you?

I would say that the difference is $r=|x-y|$ so regardless of whether $x\le y$ or $x\ge y$ we have a strictly positive number. But who knows maybe there is a specific reason why your teacher wanted it to be $x-y$.

$\endgroup$

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy