3.3.7.4 Example 4
dydx=1+y2xy(0)=0

The RHS is not defined at x=0, therefore existence and uniqueness theorem does not apply.  Lets solve this as linear ode and not as homogeneous first to show that we obtain same solution. It is much easier to solve this as linear ode.

dydxy2x=1

Integrating factor is I=e12xdx=e12lnx=x12=1x. Hence the above becomes

ddx(yI)=I

Integrating

yx=1xdx=2x+cy=2x+cx

At y(0)=0

0=0+(0)c

Which is true for any c. Therefore there are infinite number of solutions. The solution is

y=2x+cx

Now we solve as homogeneous ode. Let y=ux or u=yx, hence dydx=xdudx+u and the above ode becomes

xdudx+u=1+ux2xxdudx+u=1+u2xdudx=1+u2uxdudx=2u2

This is separable

22udu=1xdx2u20

Integrating

22udu=1xdx2ln(u2)=lnx+c=ln(c1x)

Replacing u=yx gives

2ln(yx2)=ln(c1x)2ln(yx2)ln(c1x)=0ln(x(y2x)2c1)=0

Taking exponential

xc1(y2x)2=1x=c1(y2x)2

Singular solution is when u=2 or y=2x. Hence solutions are

x=c1(y2x)2y=2x

Apply IC y(0)=0 on the above general solution gives

0=c1(0)

Which is true for any c1. Hence solution is

1c1x=y2xy=2x+1c1x

Or

y=2x+c2x

Which is same as earlier solution. Note that when c2=0 we obtain the singular solution y=2x. Hence this is not really a singular solution as it can be obtained from the general solution for some value of c2 and should be removed now.