3.3.6.1 Example 1 y=y3sinx

Solve

y=y3sinxy(0)=0

From uniqueness and existence theory we see that solution to y=y3sinx exist and is unique. This is because f=y3sinx is continuous everywhere (hence solution exist) and fy=3y2sinx is also continuous everywhere (hence uniqueness is guaranteed).

This is little more tricky than it looks. Notice that y=0 at x=0. This is special IC, because this means if we start by dividing both sides by y3 to separate them as we normally do, this gives

dyy3=sinxdx

But when we get to later on (after integration and adding constant of integration) to solve for c we will have problems. The reason is,  we should not divide by y in first place, since y=0 at initial conditions. In this special IC case, then at x=0 the ode is

y=0

Hence y=C1. But since the solution is guaranteed to be unique, then C1 must be zero to give y=0 as only one value of y(x) can exist. Hence this is the solution. This way we do not even have to integrate or solve for constant of integration. If we were not given IC, then we do as normal and now can divide by y. Assuming y0 then the ode becomes

dyy3=sinxdxy0

Integrating gives

12y2=cosx+c1y2=2cosx2c(1)1y2=2cosx+c1

Hence

y2=12cosx+c1

Therefore

(2)y=±12cosx+c1

So we should always start, when IC are given, by checking uniqueness and existence and never divide by y if y=0 at initial conditions. In all other cases, we can divide to separate. Lets do more examples on this to practice.