- Differentiate the given integral identity
We are given
∫(ex+1x(cosx−sinx)+(ex+1)2g(x)(ex+1−xex))dx=ex+1xg(x)+c.
Since this holds for all x>0, the integrand must equal the derivative of the right-hand side:
dxd(ex+1xg(x))=ex+1x(cosx−sinx)+(ex+1)2g(x)(ex+1−xex).
- Compute the derivative of ex+1xg(x)
Using the quotient rule,
dxd(ex+1xg(x))=(ex+1)2(xg(x))′(ex+1)−xg(x)ex.
Now,
(xg(x))′=xg′(x)+g(x).
So,
dxd(ex+1xg(x))=(ex+1)2(xg′(x)+g(x))(ex+1)−xg(x)ex.
This must equal
ex+1x(cosx−sinx)+(ex+1)2g(x)(ex+1−xex).
Write the first term on RHS over the common denominator:
ex+1x(cosx−sinx)=(ex+1)2x(cosx−sinx)(ex+1).
Hence RHS becomes
(ex+1)2x(cosx−sinx)(ex+1)+g(x)(ex+1−xex).
- Equate numerators
Therefore,
(xg′(x)+g(x))(ex+1)−xg(x)ex=x(cosx−sinx)(ex+1)+g(x)(ex+1−xex).
Notice that the g(x)-terms on both sides cancel:
g(x)(ex+1)−xg(x)ex=g(x)(ex+1−xex).
So we get
xg′(x)(ex+1)=x(cosx−sinx)(ex+1).
Since x>0 and ex+1>0, divide by x(ex+1):
g′(x)=cosx−sinx.
- Find g(x)
Integrating,
g(x)=sinx+cosx+C,
where C is a constant.
- Check each option
Option A: g is decreasing in (0,4π)
We have
g′(x)=cosx−sinx.
For 0<x<4π, we know
cosx>sinx⟹g′(x)>0.
So g is increasing, not decreasing.
Hence, A is false.
Option B: g′ is increasing in (0,4π)
Differentiate again:
g′′(x)=−sinx−cosx.
For 0<x<4π, both sinx,cosx>0, so
g′′(x)<0.
Thus g′ is decreasing, not increasing.
Hence, B is false.
Option C: g+g′ is increasing in (0,2π)
Compute:
g+g′=(sinx+cosx+C)+(cosx−sinx)=2cosx+C.
Differentiate:
dxd(g+g′)=−2sinx.
For 0<x<2π,
−2sinx<0.
So g+g′ is decreasing, not increasing.
Hence, C is false.
Option D: g−g′ is increasing in (0,2π)
Compute:
g−g′=(sinx+cosx+C)−(cosx−sinx)=2sinx+C.
Differentiate:
dxd(g−g′)=2cosx.
For 0<x<2π,
2cosx>0.
So g−g′ is increasing on (0,2π).
Hence, D is true.
- Final answer
The only correct option is
D.
- Comparison with stored answer
Stored correct answer: D.
This matches our derived answer.