Is the function $f(x) = \frac{x^2}{x}$ defined for every $x \in \mathbb R$, or only defined on $\mathbb R \setminus \{0 \}$?
Background:
Say we are given $P(x) = x^2 - 4x + 3$ and $Q(x) = (x - 1)(2x + 3) - (2x - 2)(3x + 5)$. The question asks to factorize both expressions and then consider the function: $F(x) = \frac{P(x)}{Q(x)}$. Then, the question asks to find the domain of definition of $F(x)$.
I teach my students that $F$ is defined for $Q(x) \neq 0$.
However, shouldn't one try to simplify $F(x)$ before one finds the domain of definition?
I can write for instance:
$$F(x) = \frac{P(x)(x - 10)}{Q(x)(x - 10)}$$
Should this writing change the domain of definition of $F$?
Then, I suppose that we should try to simplify $F$ before determining its domain of definition.
Can someone correct/validate my supposition?
Thank you.