We now develop a solution technique for any first-order linear differential equation. We start with the standard form of a first-order linear differential equation:
[latex]y^ <\prime>+p\left(x\right)y=q\left(x\right)[/latex].The first term on the left-hand side of [latex]^<\prime >+\fracy=\frac
[latex]\mu \left(x\right)
The left-hand side of [latex]y^ <\prime>+p\left(x\right)y=q\left(x\right)[/latex] can be matched perfectly to the product rule:
Matching term by term gives [latex]y=f\left(x\right),g\left(x\right)=\mu \left(x\right)[/latex], and [latex]^<\prime >\left(x\right)=\mu \left(x\right)p\left(x\right)[/latex]. Taking the derivative of [latex]g\left(x\right)=\mu \left(x\right)[/latex] and setting it equal to the right-hand side of [latex]^<\prime >\left(x\right)=\mu \left(x\right)p\left(x\right)[/latex] leads to
[latex]<\mu >^<\prime >\left(x\right)=\mu \left(x\right)p\left(x\right)[/latex].This is a first-order, separable differential equation for [latex]\mu \left(x\right)[/latex]. We know [latex]p\left(x\right)[/latex] because it appears in the differential equation we are solving. Separating variables and integrating yields
Here [latex]_[/latex] can be an arbitrary (positive or negative) constant. This leads to a general method for solving a first-order linear differential equation. We first multiply both sides of [latex]^<\prime >+p\left(x\right)y=q\left(x\right)[/latex] by the integrating factor [latex]\mu \left(x\right)[/latex]. This gives
[latex]\mu \left(x\right)
The left-hand side of the above equation can be rewritten as [latex]\frac\left(\mu \left(x\right)y\right)[/latex].
[latex]\fracNext integrate both sides with respect to [latex]x[/latex].
Divide both sides by [latex]\mu \left(x\right)\text[/latex]
[latex]y=\dfrac<1><\mu \left(x\right)>\left[\displaystyle\int \mu \left(x\right)q\left(x\right)dx+C\right][/latex].1>Since [latex]\mu \left(x\right)[/latex] was previously calculated, we are now finished. An important note about the integrating constant [latex]C\text[/latex] It may seem that we are inconsistent in the usage of the integrating constant. However, the integral involving [latex]p\left(x\right)[/latex] is necessary in order to find an integrating factor for [latex]^<\prime >+\fracy=\frac
Find a general solution for the differential equation [latex]xy^ <\prime>+3y=4^-3x[/latex]. Assume [latex]x>0[/latex].
Show SolutionYou may have noticed the condition that was imposed on the differential equation; namely, [latex]x>0[/latex]. For any nonzero value of [latex]C[/latex], the general solution is not defined at [latex]x=0[/latex]. Furthermore, when [latex]x<0[/latex], the integrating factor changes. The integrating factor is given by [latex]\mu \left(x\right)
Watch the following video to see the worked solution to Example: Solving a First-Order Linear Equation.
For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.
Find the general solution to the differential equation [latex]\left(x - 2\right)y^ <\prime>+y=3^+2x[/latex]. Assume [latex]x>2[/latex].
Use the method outlined in the problem-solving strategy for first-order linear differential equations.