It is nonhomogeneous if r(x)=0 and homogeneous if r(x)=0.
A second-order ODE requires two additional pieces of information to fully
specify the problem.
If y(x0) and y′(x0) are prescribed at the same point x0, we have an
initial value problem (IVP). This IVP is analogous to the one we had for
first-order ODEs, and often occurs when the independent variable is time. Note
that if p(x) and q(x) are continuous, the IVP has a unique solution!
However, we may also have information about the function at two different points
x0 and x1, which we call a boundary value problem (BVP). For example,
y(x0) and y(x1), their derivatives, or combinations of the two may be
prescribed at different points. BVPs are often associated with problems where
the independent variable represents a spatial coordinate. Note that, unlike an
IVP, a unique solution is not guaranteed for a BVP.
This is an application of the principle of superposition. Importantly, this form
of solution contains all general solutions for the homogeneous ODE. For
example, to solve
The coefficients in yh are used to “correct” the initial/boundary
values of yp to satisfy the initial/boundary value problem. We will
learn how to find particular solutions later.