The constant of integration, often denoted by \(C\), arises when we perform integration. Since differentiation of a constant term is zero, any constant could have been part of the function prior to differentiation. Therefore, when integrating, we must include \(C\) to account for this unknown constant.
In the initial-value problem, once we integrate to find \[ y = 2t + C \], applying initial conditions helps us find the exact value of \(C\) for the situation given.
- With \(y(0) = 1\), substituting into the equation gives \(C = 1\), so \(y = 2t + 1\).
- With \(y(0) = -1\), substituting gives \(C = -1\), so \(y = 2t - 1\).
This illustrates how the constant of integration is pivotal in finding specific solutions to differential equations with given initial conditions.