Factor $x^4+1$ over $\mathbb{R}$
Well, I read this question first wrongly, because the reader is about complex analysis, I did it for $\mathbb{C}$ first.
I got. $x^4+1=(x-e^{\pi i/4 })(x-e^{3 \pi i/4})(x-e^{5\pi i/4})(x-e^{7\pi i/4})$.
My teacher told me that there is very smart way to do this for $\mathbb{R}$ that we already learned. But I only can think of trial and error kind of methods.
Group each complex root $\alpha$ with $\bar\alpha$: $$ (x-\alpha)(x-\bar\alpha)=x^2-(\alpha+\bar\alpha)x+\alpha\bar\alpha\in{\Bbb R}[x]. $$