Assignment Statement
given $$ y^{\prime} + p(t)y = q(t) $$ a general linear equation where $q(t)$ is not zero everywhere,
I'm asked to find $C(t)$ form $$ C^{\prime}(t)= q(t)e^{\int p(t) \ dt}$$ then substitute in $$ y(t) = C(t)e^{-\int p(t) \ dt}$$ to extract the y(t) solution.
Attempt at solution
I'm having trouble at the first step if I integrate both sides I get $$ C(t) = \int\left( q(t) e^{\int p(t) \ dt}\right) \ dt$$
I feel like I have to do integration by parts on the right-hand side but both substitutions give me very odd expressions involving integrals of integrals and I'm genuinely confused how to start.
I also tough that maybe I just substitute everything and do something on the final expression which is: $$ y(t) = \frac{\int\left( q(t) e^{\int p(t) \ dt}\right) \ dt}{e^{\int p(t) \ dt}}$$ I notice there's a common factor $e^{\int p(t) \ dt}$ maybe I have to do something with that ?