Isn't $ x^2+1$ irreducible in $\mathbb Z$, then why is $\langle x^2+1 \rangle$ not a maximal ideal in $\mathbb Z[x]$?
$ x^2+1$ cannot be broken down further non trivially in $\mathbb Z[x]$. hence, it's irreducible in $\mathbb Z[x]$. Hence, shouldn't $\mathbb Z[x]/\langle x^2+1 \rangle$ be a field and hence, $ x^2+1$ a maximal ideal in $\mathbb Z[x]$
Thanks for your help.
Because the quotient is not a field, as you can easily check!
For example, the class of $2$ is neither zero nor invertible in $\mathbb Z[x]/(x^2+1)$.