I'm not sure where to start or how to even attempt this problem. I need to find a function for $A= \{x \in \mathbb R |0\leq x \leq 1 \}\cup {2}$.
Help please!
I'm not sure where to start or how to even attempt this problem. I need to find a function for $A= \{x \in \mathbb R |0\leq x \leq 1 \}\cup {2}$.
Help please!
Consider the following mapping where A =[0,1}$\cup${2} and f:R$\rightarrow$R defined by:If $0\leq x \leq 1$ or x=2, then f(x) =1 iff x is rational and 0 if x is not rational. If $x\notin [0,1]$, then f(x) = x.It's easy to check f is discontinuous at every x in A= [0,1] and continuous everywhere else on the real line. Notice this function covers the case where x = 2 since 2 is rational i.e. 2 = $\frac{2}{1}$.
I'm not sure if this is the domain you wanted, your question isn't that clear. But this should give you the kind of function you're seeking and it's easily modified.
According to the title of your question..Although the function is NOT defined on your set $A$.
Consider Thomae's function...which is discontinuous at all rational points , i.e. in the set $\mathbb Q$..but is continuous in $\mathbb R \setminus \mathbb Q$.
Consider , $f:\Bbb R\to \Bbb R$ by $$f(x)=\begin{cases}1&\text{ if } x=0\\0 & \text{ for } x\text{ is irrational. }\\\frac{1}{q} & \text{ if } x=\frac{p}{q}\text{ where }p,q\text{ are relatively prime with }q\not =0\end{cases}$$