To find the solution y(x) of the given differential equation, we write:
(1+ex)y′+yex=1
Recognizing the product rule on the left-hand side:
dxd[y(1+ex)]=1
Integrating both sides with respect to x:
y(1+ex)=x+C
Using the initial condition y(0)=2:
2(1+e0)=0+C⟹2(1+1)=C⟹C=4
Thus, the particular solution is:
y(x)=1+exx+4
Now, let us evaluate the given options:
1. Checking y(−4) and y(−2):
-
For x=−4:
y(−4)=1+e−4−4+4=0
Hence, Option (A) is correct.
-
For x=−2:
y(−2)=1+e−2−2+4=1+e−22=0
Hence, Option (B) is incorrect.
2. Checking for critical points in (−1,0):
A critical point occurs where the first derivative y′(x)=0.
Differentiating y(x) with respect to x:
y′(x)=(1+ex)2(1+ex)⋅1−(x+4)ex=(1+ex)21−(x+3)ex
Let g(x)=1−(x+3)ex. The denominator (1+ex)2 is strictly positive for all x∈R, so y′(x)=0⟺g(x)=0.
Evaluating g(x) at the endpoints of the interval [−1,0]:
-
At x=−1:
g(−1)=1−(−1+3)e−1=1−e2
Since e≈2.718>2, we have e2<1, which gives:
g(−1)>0
-
At x=0:
g(0)=1−(0+3)e0=1−3=−2<0
Since g(x) is continuous on the closed interval [−1,0] and changes sign (g(−1)>0 and g(0)<0), by the Intermediate Value Theorem, there exists at least one c∈(−1,0) such that g(c)=0, which implies y′(c)=0.
Therefore, y(x) has a critical point in the interval (−1,0).
Hence, Option (C) is correct, and Option (D) is incorrect.
Correct Options: (A) and (C)