Solve differential equation y'+2xy= 4x

Question
Solve differential equation $$y'+2xy= 4x$$

2021-01-29
$$y'+2xy=4x$$
$$y'=4x-2xy$$
$$dy/dx= x(4-2y)$$
$$dy/(4-2y)= xdx$$
$$int dy/(4-2y)= int xdx$$
$$(ln(4-2y))/-2= x^2/2+C$$
$$ln(4-2y)= -(x^2+2C)$$
$$4-2y= e^(-(x^2+2C))$$
$$y=(4-e^(-(x^2+2C)))/2$$

Relevant Questions

Solve differential equation $$\displaystyle{2}{x}{y}-{9}{x}^{{2}}+{\left({2}{y}+{x}^{{2}}+{1}\right)}{\frac{{{\left.{d}{y}\right.}}}{{{\left.{d}{x}\right.}}}}={0},\ {y}{\left({0}\right)}=-{3}$$
Solve differential equation $$2xy-9x^2+(2y+x^2+1)dy/dx=0$$, y(0)= -3
Solve differential equation $$1+y^2+xy^2)dx+(x^2y+y+2xy)dy=0$$
Solve differential equation $$\displaystyle{\frac{{{\left.{d}{y}\right.}}}{{{\left.{d}{x}\right.}}}}+{\frac{{{y}}}{{{4}{x}}}}={3}{x},\ {y}{\left({2}\right)}={3}$$
Solve differential equation $$y'-y=(3x^2+4x-3)e^x$$
Solve differential equation $$dy/dx = e^4x(y-3)$$
Find general solution of the following differential equation $$dy/dx=(2y^2+x^2e^(-(y/x)^2))/(2xy)$$
Solve differential equation $$(cos^2y)/(4x+2)dy= ((cosy+siny)^2)/(sqrt(x^2+x+3))dx$$
Solve differential equation $$\displaystyle{y}{\left({2}{x}-{2}+{x}{y}+{1}\right)}{\left.{d}{x}\right.}+{\left({x}-{y}\right)}{\left.{d}{y}\right.}={0}$$
Solve differential equation $$\displaystyle{\frac{{{\left.{d}{y}\right.}}}{{{\left.{d}{x}\right.}}}}={\frac{{{x}-{y}-{1}}}{{{x}+{y}+{3}}}}$$