Zero/Zero questions and perhaps faulty logic So I only have an Algebra II level understanding of math seeing as I am still in high school and am still missing some fundamentals seeing as I didn't pay attention in math until this year. However when recalling something my algebra teacher had taught me during the year I came up with some questions regarding the logic recently.
So during the school year, I was taught that $\frac{2}2=1, \frac{a}a=1, \frac{xy}{xy}=1$ and so forth but $\frac{0}0= \text{Undefined}$... and while researching this topic I found that the algebraic way to write all these fractions is as such 
$2(x)=2, a(x)=a,$ and $0(x)=0$ and upon researching this further I found that the reason that $\frac00$ is undefined is that for any value of $x$ the equation holds true. However, seeing as in the fraction $\frac{a}a$ $a$ is a variable and variables can represent any given quantity I was wondering in the case that $a=0$ would $\frac{a}a$ still $=1$ and if not why along with the fact that lets say $a=0$ and you didn't know it why is it safe to assume that $a$ would never equal zero? Also if it happens to be the case where when $a=0, \frac{a}a=1$ (which I doubt it is) shouldn't this mean that $\frac{0}0=1$ then? 
 A: $$\frac{a}{a} = \begin{cases} 1 & a \neq 0 \\
\text{undefined} & a = 0\end{cases}$$
Strictly speaking, you have to check whether $a$ is zero before you cancel terms off from both numerator or denominator.
Even before we write down $\frac{a}{a}$, we should first check if the denominator can be zero, i.e. check it before we write down such term. (Credit : Sean Roberson)
A: If you are working problems or doing proofs you do need to know that $a \ne 0$, if $a/a$ appears. Even though $a$ is a variable, it still represents something, and you have to understand what it represents well enough to know it won't be zero. Alternatively you can just say something like: for $a \ne 0$ then $a/a=1$. 
Example 1. Problem: Let $a$ be number of pounds of apples, and $P$ be the price in dollars of $a$ pounds of apples plus 10 cents for a sack. What is cost per pound of apple? Answer: the cost per pound of apples (in dollars) is $(P-0.1)/a$  if $a$ is not zero. In this example it may be implicitly or explicitly known that $a \ne 0$ (eg "George buys $a$ pounds of apples" implies $a \ne 0$), in which case the qualification isn't necessary, but still doesn't hurt.
Example 2. Problem: Given that $a+b=15$, give an expression that is the ratio of $b$ to $a$ in terms of $a$. The simple answer is $ratio = \frac{15-a}{a}$. However that answer must be qualified as "for $a \ne 0$ then $ratio = \frac{15-a}{a}$", or it might even be better to say "for $0 <a \le 15$ then $ratio = \frac{15-a}{a}$", depending on the context of the problem. In this case you don't know what $a$ is, and the way I stated the problem you don't know what values $a$ can have, so you're forced to either get clarification about the problem or state your assumptions.
A: 
To address your question using algebra, you formally define 
  $$\frac{a}{b}=(a,b)$$ where $b\ne 0.$ The reason for this last condition is how you define fractions as being equivalent. Namely, if $(c,d)$ with $d\ne 0$ you say $(a,b)=(c,d)$ when $ad=bc.$

You may then use relation to define addition and multiplication of these ordered pairs
$$(a,b)+(c,d)=(ad+bc,bd)\quad \quad (a,b)\cdot(c,d)=(ac,bd).$$
The previous should look very familiar, because it is fraction addition and multiplication. 
Finally, to consider $\frac{0}{0},$ that is $(0,0),$ you find yourself in a bad situation, because you're in direct conflict with the definition of a fraction. Next thing you may try is to assume that if $(0,0)$ exists, then $(0,0)=(a,b)$ precisely when $a\cdot 0= b\cdot 0,$ so you see that any $(a,b)$ is equivalent to $(0,0),$ that is, $\frac{0}{0}$ isn't well defined. If you and I do computations in separate rooms, using the exact same rules for arithmetic, then we can both end up with different results, even if what we did was "allowed." Let's try. You do a computation with $\frac{0}{0},$ and I'll do one below, check your work against mine.

Take $$\frac{0}{0}\cdot \frac{1}{0}$$ and $$\frac{0}{0}\cdot \frac{2}{0}$$ these, according to traditional arithmetic, produce 
  $$\frac{0\cdot 1}{0\cdot 0}\text{ and } \frac{0\cdot 2}{0\cdot 0}$$
  Since $0\cdot0=0,$ we have $$\frac{0\cdot 1}{ 0}\text{ and } \frac{0\cdot 2}{ 0}$$ producing $$1\cdot \frac{0}{ 0}\text{ and } 2\cdot \frac{0}{ 0},$$
  and if $\frac{0}{0}=1,$ (which is a choice!) then we arrive at the contradictory statement,
  $$1=2.$$ Which indicates, much lie the above statement that $(0,0)=(a,b),$ that any fraction $(a,b)$ where $b=0,$ is equivalent to any number you please.

Thus, we conclude that dividing by zero isn't well defined, and cannot be permitted with standard arithmetic. 
A: Your logic is very good! Another way to phrase the conclusion: it's NOT true that "$\frac{a}{a}=1$ always". The true statement is that

$\displaystyle\frac{a}{a}=1$ always (i.e. for any number $a$) when it's well-defined.

This more careful phrasing reminds us that first we have to check whether the expression is well-defined; and with a quick look we would realize that this property is not applicable to $a=0$.
A: You may, at some point, learn about limits in mathematics. Limits are about looking at how particular things behave when you approach certain values - for example, the limit of the sequence $2.1, 2.01, 2.001, 2.0001, \ldots$ is just 2, whereas the limit of the sequence $2, 3, 4, 5, 6, \ldots$ does not exist (and we sometimes say the limit "is" infinity, although that's just notation and doesn't mean you should treat the infinity as a real number).
You can also have limits that involve approaching a value from two directions. For example, if we have the function $xy$ (i.e. $x$ multiplied by $y$), then as we approach the point $x = 2, y = 3$ from any possible direction then we always approach the value 6. It doesn't matter if we just set $x = 2$ and then try $y = 2.9, 2.99, 2.999, 2.9999, \ldots$, or if we come via the pairs $(1.9, 3.1), (1.99, 3.01), (1.999, 3.001), \ldots$ or whatever, it always gets closer and closer to being 6.
However, if we have the function $\frac{x}{y}$ and want to find the limit at the point (0, 0), then it matters very much what direction we approach from. In fact, if there's a value you want to get as the limit, there's a direction you can approach from where the limit will appear to be that value - come along the $x = 0$ line, and the limit is just 0. But try coming from pairs like $(10, 10), (1, 1), (0.1, 0.1), (0.01, 0.01), \ldots$ and the limit is 1. Come from another direction, and the limit is -10, or a googol. There's even a way to take the limit so that it becomes infinite. Since we can assign any possible limit value, we can't pick one meaningful value - and so we say that the function $\frac{x}{y}$ has indeterminate value at the point $(0, 0)$, because we can't meaningfully determine what value it should have.
