NOTE:
This answer gives notes on why and how you do the calculations stated in other answers, as simple as I can explain it.
This is a differential equation (DE)! You are asked to find the curve $y=y(x)$, so note that $y$ is a function, and you have differente derivatives of $y$ in the equation:
$$\frac{d}{dx}y(x)=2x+y(x)\Rightarrow\frac{d}{dx}y(x)-y(x)=2x\qquad(1)$$
The DE has the function $y$ as the unknown. Therefore, the thing is to know what methods can you use to solve it.
In this case, you have first degree linear ordinary DE. That is because the highest derivative is the first derivative (degree 1) and it's linear.
In this case, you can use the method of the integrating factor $\mu$.
In the general case of the DE
$$\frac{d}{dx}y+P(x)\cdot y=Q(x)$$
This integrating factor is calculated as:
$$\mu = e^{\int P(x)\,dx}=\exp\bigg\{\int P(x)\,dx\bigg\}$$
So, for your equation $(1)$, you have:
$$\mu = \exp\bigg\{\int P(x)\,dx\bigg\}=\exp\bigg\{\int -1\,dx\bigg\}=\exp\{-x\}=e^{-x}$$
Then, you can solve easily multiplying $(1)$ by $\mu$, as said in the other answer.
HINT:
Step 2 of the other answer is because:
$$\begin{array}{rcl}
\frac{d}{dx}(y\cdot\mu)&=&\frac{d}{dx}(y)\cdot\mu+y\cdot\frac{d}{dx}(\mu)\\
&=& y'\mu + \mu\cdot P\cdot y
\end{array}$$
Note that, because of the Chain Rule,
$$\frac{d}{dx}(\mu)=\frac{d}{dx}\bigg(e^{\int P\,dx}\bigg)=e^{\int P\,dx}\cdot\frac{d}{dx}\bigg(\int P\,dx\bigg)=e^{\int P\,dx}\cdot P=\mu\cdot P$$