Consider the equation for the charge on a capacitor in an LRC circuit which is linear with constant coefficients.

First we will work on solving the corresponding homogeneous equation. Divide through the equation by the coefficient on , and find the auxiliary equation (using m as your variable) which has roots .

The solutions of the homogeneous equation are

Now we are ready to solve the nonhomogeneous equation . We will use to do reduction of order (it doesn't matter which one of the homogenous solutions we choose), which will give us a particular solution of the nonhomogeneous equation. With this choice the particular solution has the form
.
Then (using the prime notation for the derivatives)


So, plugging into the left side of the differential equation, and reducing, we get


Using this reduced form, moving the term to the right side of the equation, we can rewrite in terms of and as


At this point to solve for u we want to integrate both sides, but to do that we need to integrate E. We will look at two special cases for E so that you get the idea how to proceed.

Case 1: E is a constant (DC voltage).
Then integrating both sides
(we don't use a constant when we do this integration, it turns out to be redundant)
This is a linear equation with integrating factor
Solving this equation, using b as our constant, we get that

Plugging this back into we finally find that

Making the general solution . Notice that we already knew that and where solutions to the homogeneous equation, we just did all that work to figure out that the constant is a solution of the nonhomogeneous equation, which is kind of obvious when you look at it. Now lets do an example where the answer will not be so obvious.

Case 2: E = sin(pt) (AC voltage).
You might want to break out your TI-89, Maple, Mathematica, etc for this one. Or you can practice up your integration by parts, a lot.
Starting with the equation from above, , integrating both sides (again without using a constant) we get

This is a linear equation with integrating factor , just like the example above. Solving this equation, using b as our constant, we get

Plugging this back into we finally find that

Making the general solution
Since we already knew that and were solutions to the homogeneous equation, what we really worked out here is that the particular solution is . Going back to look at our calculations, we could have done the integrations above without using constants, and pieced the solution together using superposition.

You can earn partial credit on this problem.