Method of Integrating Factors
An integrating factor is a function by which an ordinary differential equation can be multiplied in order to make it integrable.
Problem 1 Solve y′=2y+3ex.
Solution The big idea of integrating factor is to multiply both sides of the DE y′−2y=3ex by μ(x) so that the left hand side becomes (μy)′. In other words, μ ought to satisfy (μy)′=μy′−2μy.
By the product rule, we get μy′+μ′y=μy′−2μy, which gives μ′=−2μ. The solution of the last DE is μ(x)=e−2x. Thus multiplying both side of y′−2y=3ex by the integrating factor gives (e−2xy)′=3e−x. Integrate the last equation, e−2xy=−3e−x+C, hence y=−3ex+Ce2x.
Remark In general, the integrating factor of y′+p(x)y=q(x) is μ(x)=exp∫p(x)dx.
Problem 2 Solve y′+x1y=3cos2x for x>0.
Solution The integrating factor is exp∫x1dx=explnx=x. Multiplying both sides of the DE, we have (xy)′=3xcos2x, and so xy=∫3xcos2xdx. Using integration by parts, we get xy=∫3xcos2xdx=43(2xsin2x+cos2x)+C, and so y=43(2sin2x+x1cos2x)+xC.
Separable Equations
A separable differential equation is an equation of the form a(x)dx=b(y)dy. Let A(x),B(y) be the anti-derivative of a(x),b(y). Then A(x)=B(y)+C for some constant C depending on the initial condition. In general, you can solve separable equations essentially by “separating the two variables x and y, and you can then usually solve for y in terms of x.
Problem 3 Solve dy/dx=x2/y2 with the initial condition y(0)=2.
Solution Separate the tow variables y2dy=x2dx. Integrate and get 31y3=31x3+C, that is, y3=x3+C. Using the initial condition, C=8.
Problem 4 Find the implicit solution of dy/dx=x−yy−4x.
Solution We cannot directly separate the two variables. However, because the equation is a homogeneous differential equation, heuristically, the substitution v=y/x helps. Since y=vx, we have dxdy=xdxdv+v and x−yy−4x=1−y/xy/x−4=1−vv−4. We write the DE of x and y as a DE of x and v: xdxdv+v=1−vv−4 and so xdxdv