Question
Question: The solution of \(\dfrac{{dy}}{{dx}} + y = {e^x}\) \( a)\,2y = {e^{2x}} + c \\\ b)\,2y{e^x...
The solution of dxdy+y=ex
a)2y=e2x+c b)2yex=ex+c c)2yex=e2x+c d)2ye2x=2ex+c
Solution
In this type of question you have to find out the (IF) that is integrating factor and then use integration to solve this problem.
Complete step-by-step answer:
So question is dxdy+y=ex
Here dxdyis the derivative of y with respect to x
So we know if the equation is dxdy+f(x)y=g(x)
Then Integrating Factor (IF) =e∫f(x)dx
And then the general solution is given by
(IF)y=∫(IF)g(x)dx
Now, let us find the (IF) of given equation dxdy+y=ex
Here f(x)=1&g(x)=ex
(IF) =e∫f(x)dx
=e∫dx
And we know ∫dx=x
So we get (IF) =ex
Now we know the general solution is given by
(IF)y=∫(IF)g(x)dx
Here,
exy=∫exexdx exy=∫e2xdx
And we know ∫eaxdx=aeax+c , using this we get
exy=2e2x+c,
2exy=e2x+2c, 2exy=e2x+c,,
So, the correct answer is “Option C”.
Note: This type of differential equation is solved by finding the integration factor and putting into the formula for equation of differential equation, if differential equation is given by dxdy+f(x)y=g(x) then (IF) =e∫f(x)dxand general solution is given by (IF)y=∫(IF)g(x)dx