Here we have, the differential equation y′−y=2ex where y′=dxdy
Now, the co-efficient of y is −1 .
So, let μ(x)=e∫−1dx=e−x
Now, multiplying both sides of the differential equation by μ(x) we get:-
μ(x)y′−μ(x)y=2exμ(x)⇒e−x⋅dxdy−ye−x=2⇒e−x⋅dxd(y)+y⋅dxd(e−x)=2⇒dxd(ye−x)=2⇒d(ye−x)=2dx Integrating both sides we have:-
∫d(ye−x)=2∫dx+C(C(constant)∈R)⇒ye−x=2x+C
Now, to check if y=2ex is a solution we substitute y in place of the general solution:-
2ex⋅e−x=2x+C⇒C=2−2x
As C is not a constant (i.e. independent of x) so y=2ex is not a solution for the given differential equation.
Comments