How do I find a solution to the following equations?

39 Views Asked by At

I need to find a function $a$ of $x$ such that: $a(x) \equiv 2x+1\bmod x^2+1$ and $a(x) \equiv 3\bmod x+1$.

Furthermore, $a(x) \in \mathbb{R}[x]/(x^3+x^2+x+1)$ is an element of the stated quotient ring.

How do I find $a(x)$?