Solveeit Logo

Question

Question: What is the solution to the differential equation \[\left( \dfrac{dy}{dx} \right)-y-{{e}^{3x}}=0\]?...

What is the solution to the differential equation (dydx)ye3x=0\left( \dfrac{dy}{dx} \right)-y-{{e}^{3x}}=0?

Explanation

Solution

In this problem, we have to find the solution for the given linear differential equation. We should know that, the differential equation of the form dydx+Py=Q\dfrac{dy}{dx}+Py=Q which is linear in y, has a solution yePdx=Q×ePdxdx+Cy{{e}^{\int{Pdx}}}=\int{Q}\times {{e}^{\int{Pdx}}}dx+C where, ePdx{{e}^{\int{Pdx}}} is the integrating factor. Here we can first find the integrating factor and we can substitute in the solution equation to get the final answer.

Complete step-by-step solution:
We know that the given linear differential equation is,
(dydx)ye3x=0\left( \dfrac{dy}{dx} \right)-y-{{e}^{3x}}=0
We can write it as,
(dydx)y=e3x\Rightarrow \left( \dfrac{dy}{dx} \right)-y={{e}^{3x}}……. (1)
We can see that the given linear differential equation is of the form,
dydx+Py=Q\dfrac{dy}{dx}+Py=Q
Where, P=1,Q=e3xP=-1,Q={{e}^{3x}}.
We know that the differential equation of the form dydx+Py=Q\dfrac{dy}{dx}+Py=Q which is linear in y, has a solution yePdx=Q×ePdxdx+Cy{{e}^{\int{Pdx}}}=\int{Q}\times {{e}^{\int{Pdx}}}dx+C……. (2)
where, ePdx{{e}^{\int{Pdx}}} is the integrating factor.
We can now find the integrating factor, we get
e1dx=ex\Rightarrow {{e}^{\int{-1dx}}}={{e}^{-x}}
We can now substitute the above integrating factor and the value of Q in the solution equation (2), we get
yex=e3x×exdx+C\Rightarrow y{{e}^{-x}}=\int{{{e}^{3x}}}\times {{e}^{-x}}dx+C
We can now simplify the above step, we get
yex=e2xdx+C\Rightarrow y{{e}^{-x}}=\int{{{e}^{2x}}}dx+C
We can now differentiate the right-hand side, we get
yex=12e2x+C\Rightarrow y{{e}^{-x}}=\dfrac{1}{2}{{e}^{2x}}+C
We can now take the exponential part from the left-hand side to the right-hand side, we get
y=12e3x+Cex\Rightarrow y=\dfrac{1}{2}{{e}^{3x}}+C{{e}^{x}}
Therefore, the solution of the given differential equation (dydx)ye3x=0\left( \dfrac{dy}{dx} \right)-y-{{e}^{3x}}=0 is y=12e3x+Cexy=\dfrac{1}{2}{{e}^{3x}}+C{{e}^{x}}

Note: We should always remember that a linear differential equation of the form dydx+Py=Q\dfrac{dy}{dx}+Py=Q, can be differentiated using the formula yePdx=Q×ePdxdx+Cy{{e}^{\int{Pdx}}}=\int{Q}\times {{e}^{\int{Pdx}}}dx+C, where ePdx{{e}^{\int{Pdx}}} is the integrating factor. We should also know some of the exponential formulas to simplify the steps for the final answer.