Write in the form of a first order Bernoulli Ordinary Differential Equation
y′−x1y=2y2 The general solution is obtained by substituting
z=y1−n=y1−2=y−1 Differentiating, we find:
z′=(y−1)′=−y−2y′ Solve
y−2y′−x1y−1=2
−z′−x1z=2z′+x1z=−2
μ(x)=e∫x1dx=elnx=x We can make sure that the function x is the integrating factor
xz′+z=−2x
(xz)′=−2x Integrate
∫d(xz)=−∫2xdx
xz=−x2+C
xy−1=−x2+C
y=−x2+Cx
Comments