Processing math: 100%

EXAMPLE 2Identifying and Solving an Exact Differential Equation

  1. (a) Show that (cosycosx)dx+(eyxsiny)dy=0 is an exact differential equation.
  2. (b) Find the particular solution that satisfies the boundary condition y(π)=0.

Solution(a) Let M=cosycosx and N=eyxsiny. Then My=sinyandNx=siny

Since My=Nx for all x and y, the differential equation is exact over the xy-plane.

(b) Since the differential equation is exact, there is a function z= f(x,y) so that fx=M=cosycosxandfy=N=eyxsiny

We integrate fx=M=cosycosx partially with respect to x (holding y constant). Then f(x,y)=(cosycosx)dx=xcosysinx+B(y)

where B, which is yet unknown, is a function of y alone. To find B, we differentiate f with respect to y. fy=y[xcosysinx+B(y)]=xsiny0+yB(y)=xsiny+dBdy

Since fy=N=eyxsiny, we have xsiny+dBdy=eyxsinydBdy=eyB(y)=ey+C

where C is a constant. Now we substitute B(y) into (3) to obtain the general solution f(x,y)=xcosysinx+ey+C=0

To find the particular solution that satisfies the boundary condition y(π)=0, we need to find C so that y=0 when x=π. Then πcos0sinπ+e0+C=0π+1+C=0C=(1+π)

The particular solution is  xcosysinx+ey=π+1.