Question:

Evaluate the integral: \[ \int \left[ \log(1+\cos x) - x \tan\left(\frac{x}{2}\right) \right] dx \]

Show Hint

When an integrand contains a logarithmic function and a product involving \(x\), always check if it matches the derivative of a product like \(x \log f(x)\).
Updated On: Jan 26, 2026
  • \( x \log|x| + C \)
  • \( x \log|1+\sin x| + C \)
  • \( x \log\left|\tan\frac{x}{2}\right| + C \)
  • \( x \log|1+\cos x| + C \)
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is D

Solution and Explanation

Step 1: Rewrite the integrand.
We are given the integral \[ \int \left[ \log(1+\cos x) - x \tan\left(\frac{x}{2}\right) \right] dx \] Split the integral into two parts: \[ \int \log(1+\cos x)\,dx - \int x \tan\left(\frac{x}{2}\right)\,dx \] Step 2: Use the identity for tangent.
Recall that \[ \tan\left(\frac{x}{2}\right) = \frac{\sin x}{1+\cos x} \] Thus, the second term becomes \[ \int x \frac{\sin x}{1+\cos x}\,dx \] Step 3: Apply differentiation insight.
Observe that \[ \frac{d}{dx}\left[\log(1+\cos x)\right] = -\frac{\sin x}{1+\cos x} \] Hence, the given integrand matches the derivative structure of \[ x \log(1+\cos x) \] Step 4: Write the final result.
Therefore, the integral evaluates to \[ x \log|1+\cos x| + C \]
Was this answer helpful?
0
0