Lets have look at $f:\mathbb{R} \rightarrow \mathbb{R}$ with $f(x) = \left\{\begin{matrix} x &,& \text{ if } x \in \mathbb{Q}\\ a \in \mathbb{R} & ,& \text{ else } \end{matrix}\right.$
Prove where $f$ is continuos depending on the constant $a \in \mathbb{R}$.
I think $f$ could be continuos where $a$ equals $x_0 \in \mathbb{Q}$. But there are $a$'s that wont work on this. Im not sure how to handle this $a$.
Further i want to show that $f$ is nowhere else continuos. I thought about it this way. I would like to use the $\epsilon - \delta $ Criterium. Let me give you an $\epsilon>0$ with $\epsilon = 1$ than theres always a irrational value for $a \in \mathbb{R}-\mathbb{Q}$ such that for every $x,y \in \mathbb{Q}$ with $x>y$ and $x>a>y$ so that $a$ is not in the $\delta$ enviroment.
This is only a draft and not a try of a proof. Please help me out on this. First i wont to know if there is a continuos point on $f$ depending on $a$ and then i would like to know how to show that $f$ is nowhere (else) continuos. Thank you!