Dividing throughout by dx to get the equation in the required form, we get:

math formula

In this example, P(x) = 3 and Q(x) = e-3x.

Now ePdx = e∫3dx = e3x

and

math formula

Using math formula, we have:

ye3x = x + K

or we could write it as:

math formula