I know the question is a weird title.
Define $f:\mathbb{R}\to\mathbb{R}$ by $$\begin{cases} 8x & \text{if $x$ is rational}\\ 2x^2+8 & \text{if $x$ is irrational} \end{cases}$$ Determine at which points of $\mathbb{R}$ the function $f$ has a limit and justify your conclusions.
So we see that it is possible that they may approach the same point at $x=2$. Since this is an accumulation point for both parts of the function we can inquire as to the existence of a limit here. We don't consider other points since there will clearly be no other accumulation points that might give the same limit.
I'm confused on how to show the limit formally exists though I am pretty sure it converges to 16 obviously. So I know I have something of the form $0<|x-2|<\delta$ and $|f(x)-16|<\epsilon$. Where I am stuck is talking about the function itself. I don't think showing this with sequences will work but I'm not sure.
Thanks!
The sequential definition of convergence will always work, as long as whatever limit you have actually converges to the point you are trying to prove it converges to. For this problem you might create two sequences $\{x_n\}, \{y_n\}$ such that $x_n \to 2$, $y_n \to 2$ and $x_n$ is always rational, $y_n$ is always irrational for all $n\in \mathbb{N}$. You can build on that if you think that approach would be easier. Other than that you could try to find a $\delta$ for each piece of $f$ in such a way that whenever $|x-2|<\delta$ then $|f(x)-8|<\varepsilon$ is true, regardless of whether $x$ is irrational of rational. If $x$ is rational, $\delta_r = \frac{\varepsilon}{8}$ (delta for rational $x$) seems like a good choice. If it's irrational, work the absolute values to coax something out. For example, $$\left|(2x^2+8)-16 \right| = \left|2x^2-8 \right| = 2\left|x^2-4 \right| = 2\left|x-2 \right| \left|x+2 \right|$$ In this way, you've made $|x-2|$ appear when $x$ is irrational. Can you bundle up the remaining $2|x+2|$ quantity inside a delta for irrational $x$? I'll call it $\delta_i$. When you're done, take $\text{min}\{\delta_r, \delta_i\} = \delta$ to guarantee $|f(x)-8|<\varepsilon$ will be satisfied for your $x$.