Let $R$ be the set of continuous real-valued functions on the interval $[0, 1]$. Show that $R$ is a ring with respect to the operations $(f + g)(x) = f(x) + g(x)$ and $(fg)(x) = f(x)g(x)$.
So my homework asked me to show that R has a multiplicative identity, which I believe is the function with constant value $1$ (hopefully that's right?)
It also asked us to show what elements of $R$ will have multiplicative inverses. I understand that some functions (like $f(x)=x^2+1$) will have one while others (like $g(x)=x-x^2$) will not. But I can't recognize a consistent pattern as to determining which elements will and which won't.
Also would R be an integral domain? I can't think of any nonzero elements that can be manipulated to equal zero, but I just want to be sure on that front as well.
Thank you for any help! :)
As stated in the comments, you can't compute $\frac{1}{f(x)}$ for all $x$ if $f(x)=0$ for some $x$. For a hint on the zero divisors, I will tell you that they do exist. $f(x)$ and $g(x)$ satisfy $f(x)g(x)=0$ if whenever $f(x)\neq 0$ we have that $g(x)=0$. Try to construct a continuous function $f$ that is nonzero if $x<\frac{1}{2}$ and zero if $x\geq \frac{1}{2}$, and also construct a continuous function $g$ such that $g(x)=0$ if $x\leq \frac{1}{2}$ and $g(x)\neq 0$ if $x>\frac{1}{2}$.