TITLE: "Canceling out" in division doesn't always work the same way does it?
QUESTION [5 upvotes]: I've been working on Nested Fractions at the Khan Academy. Recently I was doing a routine problem and came to the correct conclusion but I realized I didn't understand why I wouldn't keep dividing. Here's what I begin with. I'm supposed to reduce it to an equivalent simplified expression. I wish I could link to the problem but I had moved on after posting here. Here's the start:
$\displaystyle \frac{(1+\frac xy)}{\frac xy}$
Part way through my problem now looks like:
$\displaystyle \frac{y\cdot(y+x)}{y(x)}$
I decide to "cancel out" the y's out side the parentheses. I end up with...
$\displaystyle \frac{y+x}{x}$
I understood this the be the right answer. But for a moment I was very tempted to cancel the remaining x's and be left with a y. Even though I do this canceling operation all the time I realized then that there is something about it I don't understand. So here I am. Can you explain why it is that I was able to cancel the y earlier but not the x near the end?
Much appreciated.

REPLY [2 votes]: The key fact about "canceling" which is easy to miss 
(unless it is taught very, very well)
is that it is performed strictly by standard arithmetic operations.
It may sometimes look like a matter of finding matching symbols and crossing them out,
but when that occurs it is only a byproduct of the operations that are applied.
Canceling terms in the numerator and denominator of a fraction or ratio is done by
means of multiplication or division. 
First of all, can we take the two facts
$\frac ab \cdot \frac cd = \frac{ac}{bd}$ and $\frac aa = 1,$
and combine them like this:
$$ \frac mn = 1 \cdot \frac mn = \frac aa \cdot \frac mn = \frac {am}{an}.$$
Now, you can use this in two ways. One way is, you can run it backwards to show
that it is OK to cancel the two $a$s in the expression $\frac {am}{an}.$
But another way that I find sometimes easier to understand is,
if I want (for example) to cancel an $x$ in the numerator and denominator of
$\frac {xp}{xq}$,
I can take $a = \frac 1x$ in the example above, so that
$$ \frac {xp}{xq} = \frac {1/x}{1/x} \cdot \frac {xp}{xq} =
 \frac {\frac 1x \cdot xp}{\frac 1x \cdot xq} = \frac pq.$$
Some people would say to divide both the numerator and denominator by $x$,
but I prefer to think of it as multiplying by $\frac 1x$; it's the same thing,
of course, but I find the distributive law of multiplication over addition is
better ingrained in my head than the corresponding rule for division,
so I'll do a multiplication when I can.
In practice, once you have mastered the technique you can usually just write
the first and last expressions without the ones in between, but
sometimes it is still helpful to remember the in-between steps,
especially the one with $\frac 1x \cdot xp$ and $\frac 1x \cdot xq$.
So if you have an expression
$$\frac{y + x}{x},$$
in fact you can try to "cancel" an $x$ if you do it correctly:
$$\frac{y + x}{x} = \frac{\frac 1x(y + x)}{\frac 1x \cdot x}.$$
So the question is what you get from this.
It depends on how you handle $\frac 1x(y + x)$; do you apply the distributive law or not?
If you don't use the distributive law, you get
$$\frac{\frac 1x(y + x)}{\frac 1x \cdot x} =
 \frac{\frac 1x(y + x)}{1} = \frac 1x(y + x) = \frac{y + x}{x},$$
that is, you end up where you started out.
If you use the distributive law, you get 
$$\frac{\frac 1x(y + x)}{\frac 1x \cdot x} = \frac{\frac yx + 1}{1} = \frac yx + 1.$$
Of course you could have gotten the same result using the fact that 
$\frac{a+b}{c} = \frac ac + \frac bc$, like this:
$$\frac{y + x}{x} = \frac yx + \frac xx = \frac yx + 1.$$
So we see that in this case, canceling $x$ did not do anything particularly useful.
But it's not always easy to tell whether you'll find a cancellation useful
until you've tried it.