I computed the gcd of the 2 polynomials in the ideal and their gcd is equal to 1 ,using euclid algorithm.
I want to know if the ideal in the title is a principal ideal and why ?
I know a principal ideal is the ideal generated by only one element.So $\langle x^2,x+1 \rangle = \langle 1 \rangle$ but if that was a principal ideal then any ideal generated by 2 or more ideals would be principal because he could be generated by $1$ or some gcd of those polynomials. I think the same for non polynomial rings .. since the gcd can be 1 or any number , any ideal can be generated by one element so any ideal would be principal.What am I missing ?