Use an integrating factor and determine the constant from initial data.
Notes and key methods
For \(y'+P(x)y=Q(x)\), an integrating factor is \(I=e^{\int P(x)dx}\). Multiplication gives \((Iy)'=IQ\), allowing one integration followed by the initial condition.
Use one integration constant, and verify the result by substituting it into both the differential equation and the initial condition. Restrict the solution to an interval where the coefficients and chosen integrating factor are defined.
Check the conditions
Put the equation into standard linear form first.
Initial data determine the constant on a connected solution interval.
Three worked examples
Example 1 · First-order linear differential equations
Solve \(y'+1y=5e^{4x},\ y(0)=6\). Write the solution as \(y=Ce^{-1x}+Ke^{4x}\).
Find K.
Find C.
Find y(1).
Find y′(0).
Show the reasoning
(a)
\((1+4)K=5\implies K=1\)
Answer: \(1\).
(b)
\(C=6-K=5\)
Answer: \(5\).
(c)
\(y=e^{4 x} + 5 e^{- x}\); evaluate at \(\displaystyle x=1\).
Answer: \(56.4375472390015\).
(d)
\(y'(0)=5-1(6)=-1\)
Answer: \(-1\).
Example 2 · First-order linear differential equations
Solve \(y'+2y=6e^{1x},\ y(0)=7\). Write the solution as \(y=Ce^{-2x}+Ke^{1x}\).