4 Solving exact equations

As we have seen, the differential equation d d x ( y x ) = 3 x 2 has solution y = x 2 + C x . In the solution, x 2 is called the definite part and C x is called the indefinite part (containing the arbitrary constant of integration). If we take the definite part of this solution, i.e. y d = x 2 , then

d d x ( y d x ) = d d x ( x 2 x ) = d d x ( x 3 ) = 3 x 2 .

Hence y d = x 2 is a solution of the differential equation.

Now if we take the indefinite part of the solution i.e. y i = C x then

d d x ( y i x ) = d d x C x x = d d x ( C ) = 0.

It is always the case that the general solution of an exact equation is in two parts: a definite part y d ( x ) which is a solution of the differential equation and an indefinite part y i ( x ) which satisfies a simpler version of the differential equation in which the right-hand side is zero.

Task!
  1. Solve the equation

    d d x ( y cos x ) = cos x

  2. Verify that the indefinite part of the solution satisfies the equation

    d d x ( y cos x ) = 0.

  1. Integrate both sides of the first differential equation:

    y cos x = cos x d x = sin x + C leading to y = tan x + C sec x

  2. Substitute for y in the indefinite part (i.e. the part which contains the arbitrary constant) in the second differential equation:

    The indefinite part of the solution is y i = C sec x and so y i cos x = C and

    d d x ( y i cos x ) = d d x ( C ) = 0