Let $I=\langle x^{2}+1\rangle.$
Consider A be an ideal containing $I$ properly . How can I prove that A contains some nonzero number? After that I can do it
Let $I=\langle x^{2}+1\rangle.$
Consider A be an ideal containing $I$ properly . How can I prove that A contains some nonzero number? After that I can do it
You're supposing $\langle x^2+1\rangle\subsetneq A\subsetneq \mathbb{R}[x]$.
Pick an $f\in A\setminus I$ and consider the remainder of $f$ divided by $x^2+1$. What form must it take? What can you do with that element and $x^2+1$? (Remeber, you're aiming to get a constant.)
Hint for an alternative solution: Consider the ring homomorphism $\mathbb R[x] \to \mathbb C$ given by $f(x) \mapsto f(i)$. Prove that it is surjective and find its kernel.
If it was not a maximal ideal, $(x^2+1)\subset (p)$, you would have $x^2+1=p(x)q(x)$ where $p,q$ are not constant, and their degree is $1$. This implies that $x^2+1$ has a root, contradiction.
Hint $\ p= x^2\!+1\,$ is irreducible so $\ f\not\in (p)\,\Rightarrow\, p\nmid f\,\Rightarrow\, 1 = \gcd(f,p) = a f + b p\in (f,p) $