I opened this question because I am still very confused by the answers and the comments from the following post: differentiability check.
In the problem, the OP asks the following simple question:
"What is the number of points at which $f(x) =\frac{1}{(x-2)}$ not differentiable?"
The OP himself and a number of people said that the correct answer is none, pointing out that differentiability of $f$ at $x=2$ is not well-defined, since $2$ doesn't belong to the domain of $f$.
I think the question here is ambiguous and it depends on the precise way "$f$ is differentiable at $x$" is defined. For example, if the definition is "$x$ is differentiable if and only if ($x$ is in the domain of $f$ and $f'(x)$ exists)," then $f$ is not differentiable at $2$. But then $f$ is also not differentiable at a 2x2 matrix, or any complex number (assuming that we defined the domain of $f$ to be $\mathbb{R}\setminus 2$).
However, if the question was
"What is the number of points in $\mathbb{R}$ at which $f(x) = \frac{1}{(x-2)}$ not differentiable?,"
then I believe that the answer is unequivocally 1. @GitGub said that merely adding the words "in $\mathbb{R}$" isn't sufficient to make a difference, but I don't really understand his argument. You can see his arguments here.
Here's my reasoning:
Let $E = \{ x\in dom(f): \text{$f'(x)$ exists.} \}$.
$2\in \mathbb{R}$, but $2\not\in E$. Therefore, $2\in \mathbb{R} \setminus E =\{2\}$.
The question is asking for the number of elements in $\mathbb{R} \setminus E$, which is 1.
I feel like I am missing some very basic understanding of logic. Can someone help me clarify this?
Edit: It doesn't feel like anyone is really addressing my reasoning. From the way I see it, the definition of "the set where $f$ is differentiable" is not the issue. Note the way I defined :
$E = \{ x\in dom(f): \text{$f'(x)$ exists.} \}$.
I have defined the set $E$, the set where $f$ is differentiable to be the points in the domain of $f$, as both @Vladimir, @Github, and @Hurkly is saying that some/many people would.
What I understood as the original issue was that just asking what $E^c$ (complement) is not well-defined, because there is no universe for the set $E$. When the universe is not specified, the most sensible interpretation would be to look at $dom(f) - E$.
The issue I am having is, if the question explicitly mentions $ \mathbb{R}$, "How many points in $\mathbb{R}$ is $f$ not differentiable," i.e. when a universe is given, why isn't this question logically equivalent to "How many points in $\mathbb{R} \setminus E$?"
Vladimir asked: "What if $g(x) =x$ was defined with $dom(g) = R\setminus\{2\}$."?
It doesn't change anything. $E = \{ dom(g): g'(x)\text{ exists}\}$ would be "$R\setminus\{2\}$", and $R\setminus E = \{2\}$.
EDIT2: I feel like reference to calculus is detracting the entire discussion.
Here is what I believe to be the essence of my question.
I have sets $A$ and $B$, with $A\subset B$, a proper subset.
Let $P$ be a predicate such that $P_A(x)$ is the sentence: "For $x\in A$, $x$ has property $P'$."
Let $E = \{ x\in A: P_A(x)\}$.
Then $E$ is a subset of $A$ and is also a subset of $B$.
Take a point $y \in B$.
I feel that @Hurkyl and @Github would say, for $y\not\in A$, $P_A(y)$ is not a well-defined statement.
But then, why isn't asking "Is $P_A(y)$ true" equivalent to asking "Is $y \in E$"?