Skip to content

C.9 · Integrating factors and nonhomogeneous differential equations

GRE MathematicsTopic 25

Video lesson for this topic Open the video page
5:53

C.9 · Integrating factors and nonhomogeneous differential equations

On 10 June 2000 thousands of people walked across London's new Millennium Bridge on its opening day. The bridge began to sway from side to side. Walkers…

English narration · English and 中文 subtitles you can switch

25.1

Integrating factors and nonhomogeneous differential equations

On 10 June 2000 thousands of people walked across London's new Millennium Bridge on its opening day. The bridge began to sway from side to side. Walkers instinctively adjusted their steps to the sway, which pushed it further: the bridge’s natural sideways frequency, close to 1 Hz, matched the side-to-side rhythm of walking. It closed after two days and reopened in 2002, fitted with dampers. In a differential equation, a forcing term that matches a natural solution produces a response that keeps growing, and the method for finding it changes too.

GRE Mathematics questions on nonhomogeneous equations ask you to:

  • Solve first-order linear equations with an integrating factor 积分因子.
  • Write general solutions as homogeneous plus particular solution 特解.
  • Choose trial solutions by undetermined coefficients, including the resonance case.
  • Check solutions and use initial conditions.
Vocabulary Train
English
integrating factor/ˈɪntɪɡreɪtɪŋ ˈfæktə/
particular solution/pəˈtɪkjʊlə səˈluːʃn/
25.2

First-order linear equations

For $y' + p(x)y = q(x)$:

  • Multiply by $\mu = e^{\int p\,dx}$. The left side becomes $(\mu y)'$.
  • Integrate: $\mu y = \int\mu q\,dx + C$, so $y = \dfrac{1}{\mu}\left(\int\mu q\,dx + C\right)$.
  • The constant must be included before dividing by $\mu$.
Integrating-factor recipe: y' + p y = q, mu = e to the integral of p, (mu y)' = mu q, y = (integral of mu q + C) over mu
Integrating factor in four steps.
25.3

Superposition

For a linear equation $L[y] = g$:

  • The general solution is $y = y_h + y_p$: all solutions of $L[y] = 0$, plus one solution of $L[y] = g$.
  • If $g = g_1 + g_2$, add particular solutions for each part.
  • Apply the initial conditions to the full $y$, not to $y_h$ alone.
25.4

Undetermined coefficients

For constant coefficients, guess a particular solution of the same form as $g$:

  • $g = e^{kx}$: try $Ae^{kx}$. $g$ a polynomial of degree $n$: try a general polynomial of degree $n$.
  • $g = \cos\omega x$ or $\sin\omega x$: try $A\cos\omega x + B\sin\omega x$.
  • Resonance: if the trial already solves the homogeneous equation, multiply it by $x$ (by $x^2$ for a double root).
Left: the solution of y′ + 2xy = x with y(0) = 1, approaching 1/2. Right: e^x and the particular solution −x·e^x of y″ − 3y′ + 2y = e^x
When the forcing term solves the homogeneous equation, multiply the trial solution by x
25.5

Worked example: an integrating factor

Solve $y' + 2y = e^x$, $y(0) = 1$.

  • $\mu = e^{2x}$, so $(e^{2x}y)' = e^{3x}$ and $e^{2x}y = \tfrac13e^{3x} + C$.
  • $y = \tfrac13e^x + Ce^{-2x}$, and $y(0) = 1$ gives $C = \tfrac23$.
  • Check: $y' + 2y = \tfrac13e^x - \tfrac43e^{-2x} + \tfrac23e^x + \tfrac43e^{-2x} = e^x$.
  • Similarly $y' + 2xy = x$, $y(0) = 1$ has $\mu = e^{x^2}$ and solution $y = \tfrac12 + \tfrac12e^{-x^2}$, which tends to $\tfrac12$.
25.6

Worked example: resonance

Find a particular solution of $y'' - 3y' + 2y = e^x$.

  • The characteristic roots are 1 and 2, so $e^x$ solves the homogeneous equation and $Ae^x$ fails.
  • Try $y = Axe^x$: $y' = A(x + 1)e^x$, $y'' = A(x + 2)e^x$, and $y'' - 3y' + 2y = A\left[(x + 2) - 3(x + 1) + 2x\right]e^x = -Ae^x$.
  • So $A = -1$, $y_p = -xe^x$, and $y = C_1e^x + C_2e^{2x} - xe^x$.
25.7

Common errors

  • Forgetting the constant of integration before dividing by $\mu$.
  • Using $e^{p}$ instead of $e^{\int p\,dx}$.
  • Using a trial solution that already solves the homogeneous equation.
  • Applying initial conditions before adding $y_p$.
  • Writing the equation with a coefficient on $y'$ and not dividing by it first.
25.8

Key terms

integrating factor: A multiplier that turns a first-order linear equation into the derivative of a product.

particular solution: One solution of the nonhomogeneous equation, added to the homogeneous solutions.

25.9

Check yourself

  • What is the integrating factor for $y' + y/x = 1$, $x > 0$?
  • What trial solution suits $y'' + y = \sin x$?
  • What is the general solution of $y' - y = 2$?

Answers: $x$. $x(A\cos x + B\sin x)$. $y = -2 + Ce^x$.

Was this helpful?

Interactive lessons on this topic

Work through it step by step, with instant-check exercises.

More topics in GRE Mathematics

Log in or create account

IGCSE, A-Level & AP