Problems from Separable ordinary differential equations

Solve the following ODE: x2+2yy=0

See development and solution

Development:

It is a separable ODE, since we can manage to separate the x's and the y's and put them on each side of the equation: 2yy=x2 Now we transform y=dydx

And we proceed as we have explained: 2ydydx=x22ydy=x2dx2ydy=x2dx y2=x33+C Now, we solve for y in terms of x: y(x)=±Cx33, CR We observe that we have not obtained a unique solution. This is because f(x,y)=x22y which is not continuous at y=0.

Solution:

y(x)=±Cx33, CR

Hide solution and development

Solve the following PVI: {y=ysin(x)y(π)=3

See development and solution

Development:

It is a separable ODE; we have to divide by y, so we will have to check if y=0 is also a solution. Therefore, we have to distinguish two cases:

Case 1: If y0 it is a separable ODE and we have: y=ysin(x)1yyy=sin(x)1ydydx=sin(x) dyy=sin(x)dxdyy=sin(x)dx ln|y(x)|=cos(x)+C|y(x)|=ecos(x)+C=ecos(x)eC=kecos(x), k>0 y(x)=kecos(x), k0 where k is a constant to be determined by the initial conditions.

Case 2: If y=0. We see that this is a solution. Therefore we also have to consider it, however it does not satisfy the initial condition

Thus the general solution is: y(x)=kecos(x), kR Now we can impose the initial conditions to determine k: y(π)=33=kecos(π)=kek=3e

Solution:

y(x)=3e(cos(x)+1)

Hide solution and development
View theory