The complementary function is one of the two main components we look for when solving a non-homogeneous differential equation. It is derived by solving the related homogeneous equation, which is obtained by setting the non-homogeneous part to zero.
In the equation \(y'' + 4y = 0\), the solution involves finding the characteristic roots. These roots, obtained from the characteristic equation, help define the form of the complementary function. For our example, the roots were \(r = \pm 2i\), leading to complex roots.
For complex roots, the complementary function emerges as a combination of sine and cosine functions:
- \(y_c(t) = A \cos(2t) + B \sin(2t)\)
Here, \(A\) and \(B\) are constants that need to be determined either through initial conditions or boundary values. This component captures part of the behavior of the differential equation's solution, independent of the forcing function.