Skip to main content

Ordinary Differential Equations

Section 2.6 Variation of parameters

In the previous section, we saw that the method of undetermined coefficients is a delicate method. In this section, we consider second-order linear nonhomogeneous ODEs of the form
\begin{equation} a_2(t)y''+a_1(t)y'+a_0(t)y=g(t),\tag{2.6.1} \end{equation}
where \(g\) is a continuous function of \(t\text{.}\) While the method of undetermined coefficients was an algebra ("bookkeeping") method, we now introduce a calculus method that applies to a wider range of linear nonohomogeneous ODEs.

Proof.

Recall from the superposition principle (Theorem TheoremΒ 2.1.9) that any scalar multiple of a homogeneous solution to (2.6.1) on an interval \(I\) is also a solution on \(I\text{.}\) For (2.6.1), a homogeneous solution on \(I\) can be written as
\begin{equation*} y_h(t)=c_1y_1(t) + c_2y_2(t). \end{equation*}
To satisfy the right-hand side when \(g(t) \neq 0\text{,}\) we can "vary the parameters" to get
\begin{equation} y_p(t)=u_1(t)y_1(t)+u_2(t)y_2(t).\tag{2.6.2} \end{equation}

Proof.

Example 2.6.4.

Consider the differential equation \(2y''-4y'+2y=\dfrac{4e^t}{t^2}\) with \(t>0\text{.}\)
  1. Classify the differential equation by order, linearity, type of coefficients, and whether it is homogeneous or nonhomogeneous.
  2. What method(s) can you use to solve this differential equation?
  3. Find the general solution.

Example 2.6.5.

Consider the differential equation \(t^2y''-ty'+y=\dfrac{3t}{\ln(t)}\) with \(t>1\text{.}\)
  1. Classify the differential equation by order, linearity, type of coefficients, and whether it is homogeneous or nonhomogeneous.
  2. What method(s) can you use to solve this differential equation?
  3. Find the general solution.

Example 2.6.6.

Consider the differential equation \(t^2y''-2ty'+2y=\dfrac{4t^3}{1+t^2}\) with \(t>0\text{.}\)
  1. Classify the differential equation by order, linearity, type of coefficients, and whether it is homogeneous or nonhomogeneous.
  2. What method(s) can you use to solve this differential equation?
  3. Find the general solution.

Example 2.6.7.

Let \(y''+y=f(t)\text{,}\) where \(f\) is a continuous function on \((-\infty,\infty)\text{.}\) Show that a general solution is of the form \(y(t)=c_1\cos(t)+c_2\sin(t)+\displaystyle\int_0^t f(s)\sin(t-s)\mathrm{d}s\text{.}\)