Mathematics Department

Math 340 Home, Textbook Contents, Online Homework Home

Warning: MathJax requires JavaScript to process the mathematics on this page.
If your browser supports JavaScript, be sure it is enabled.

First Order Linear Equations

Additional Examples

Solve the following initial value problem $$ \begin{align} \frac{dy}{dx} + 4 y &= 6 x + 7 \\ y(0) &= 7 \end{align} $$ This is a linear equation. First we find the general solution following the paradigm.

  1. Find the integrating factor $$ \mu(x) = \exp(\int 4 dx) = \exp(4x) $$
  2. Multiply through by the integrating factor $$ \exp(4x) \frac{dy}{dx} + 4\exp(4x)y = (6 x + 7)\exp(4x) $$
  3. Recognize the left-hand-side as $\displaystyle \frac{d}{dx}(\mu(x)y).$ $$ \frac{d}{dx}(\exp(4x)y) =(6 x + 7)\exp(4x) $$
  4. Integrate both sides. In this case you will need to integrate by parts to evaluate the integral on the right.$$ \exp(4x)y = ((3/2)x + 11/8)\exp(4x) + C $$
  5. Divide through by $\mu(x)$ to solve for $ y.$ $$y = (3/2)x + 11/8+ C\exp(-4x) $$
Now we plug in the initial values $ x = 0 $ and $ y = 7$ and solve for $ C = 45/8$, to obtain the solution to the initial value problem $$ y = (3/2)x + 11/8 + (45/8)\exp(-4x) $$ You may reload this page to generate additional examples.


If you have any problems with this page, please contact bennett@math.ksu.edu.
©2010, 2014 Andrew G. Bennett