I'm asked to study whether the ideal $I=(t^2+1)$ of $\mathbb{Z}[t]$ is prime or maximal.
I believe the following argument shows that it is prime: If $ab\in I$ for $a,b\in \mathbb{Z}[t]$, then $$ab=(t^2+1)c$$ for some $c\in \mathbb{Z}[t]$, but $t^2+1$ is irreducible and so must divide either $a$ or $b$. Is this proof correct?
Regarding maximality, I'm stuck and would appreciate some help.
For solving such questions, it is better if work on $\Bbb{Z}[t]/(t^2+1)$ directly.
We have $$\Bbb{Z}[t]/(t^2+1)=\{a+bt:a,b\in \Bbb{Z},t^2=-1\}$$ therefore the product is $$(a+bt)(c+dt)=(ac-bd)+(ad+bc)t .$$ Then it is eqsy to see that if $(a+bt)(c+dt)=0$, then $a+bt=0$ or $c+dt=0$, which implies $\Bbb{Z}[t]/(t^2+1)$ is an integral domain, i.e. $(t^2+1)$ is prime.
Also $$(a+bt)^{-1}=\frac{a}{a^2+b^2}-\frac{b}{a^2+b^2}t$$ so, the ideal is not maximal.