Skip to content
Exercise 7.6 · Q18

Q.Integrate the following function: ex(1+sin⁡x1+cos⁡x)e^x \left(\frac{1+\sin x}{1+\cos x}\right)

Punjab PsebTextbookSubjective· 3mImportance★★★★★
Appeared in past exams:GUJCET 2024· Set 13· 1mexactKCET 2021· Set A-1· 1mexactMHT-CET 2021· Set pcm-2021-09-24-E· 2mexact
47% · 174/373 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

The key idea is to rewrite the integrand as exe^x times a sum of a function and its derivative, so that the integral simplifies via the formula ∫ex[f(x)+f′(x)] dx=exf(x)+C\int e^x [f(x) + f'(x)]\,dx = e^x f(x) + C. The final result is extan⁡x2+C\boxed{e^x \tan\frac{x}{2} + C}.

Why This Approach Works

When you see an integral of the form ∫ex⋅(something) dx\int e^x \cdot (\text{something})\,dx, your first instinct should be to check if that "something" can be expressed as f(x)+f′(x)f(x) + f'(x). Why? Because there's a beautiful shortcut:

∫ex[f(x)+f′(x)] dx=exf(x)+C\int e^x [f(x) + f'(x)]\,dx = e^x f(x) + C

This is a direct consequence of the product rule: ddx[exf(x)]=exf(x)+exf′(x)\frac{d}{dx}[e^x f(x)] = e^x f(x) + e^x f'(x). So if your integrand matches that pattern, the answer is simply exf(x)e^x f(x).

Our integrand is ex(1+sin⁡x1+cos⁡x)e^x \left(\frac{1+\sin x}{1+\cos x}\right). The challenge is to rewrite 1+sin⁡x1+cos⁡x\frac{1+\sin x}{1+\cos x} as f(x)+f′(x)f(x) + f'(x) for some cleverly chosen f(x)f(x).

Step-by-Step Solution

1. Simplify the trigonometric fraction using half-angle identities.

Recall the standard half-angle formulas:

  • 1+cos⁡x=2cos⁡2x21 + \cos x = 2\cos^2\frac{x}{2}
  • sin⁡x=2sin⁡x2cos⁡x2\sin x = 2\sin\frac{x}{2}\cos\frac{x}{2}
  • 1+sin⁡x=(sin⁡x2+cos⁡x2)21 + \sin x = \left(\sin\frac{x}{2} + \cos\frac{x}{2}\right)^2 (this is less common but useful)

Let's verify that last one: (sin⁡x2+cos⁡x2)2=sin⁡2x2+cos⁡2x2+2sin⁡x2cos⁡x2=1+sin⁡x\left(\sin\frac{x}{2} + \cos\frac{x}{2}\right)^2 = \sin^2\frac{x}{2} + \cos^2\frac{x}{2} + 2\sin\frac{x}{2}\cos\frac{x}{2} = 1 + \sin x. Perfect.

So:

1+sin⁡x1+cos⁡x=(sin⁡x2+cos⁡x2)22cos⁡2x2\frac{1+\sin x}{1+\cos x} = \frac{\left(\sin\frac{x}{2} + \cos\frac{x}{2}\right)^2}{2\cos^2\frac{x}{2}}

2. Split the square into two terms.

(sin⁡x2+cos⁡x2)22cos⁡2x2=12(sin⁡x2+cos⁡x2cos⁡x2)2=12(tan⁡x2+1)2\frac{\left(\sin\frac{x}{2} + \cos\frac{x}{2}\right)^2}{2\cos^2\frac{x}{2}} = \frac{1}{2}\left(\frac{\sin\frac{x}{2} + \cos\frac{x}{2}}{\cos\frac{x}{2}}\right)^2 = \frac{1}{2}\left(\tan\frac{x}{2} + 1\right)^2

Now expand:

12(tan⁡2x2+2tan⁡x2+1)\frac{1}{2}\left(\tan^2\frac{x}{2} + 2\tan\frac{x}{2} + 1\right)

3. Use the identity tan⁡2θ=sec⁡2θ−1\tan^2\theta = \sec^2\theta - 1 to simplify.

12[(sec⁡2x2−1)+2tan⁡x2+1]=12(sec⁡2x2+2tan⁡x2)\frac{1}{2}\left[(\sec^2\frac{x}{2} - 1) + 2\tan\frac{x}{2} + 1\right] = \frac{1}{2}\left(\sec^2\frac{x}{2} + 2\tan\frac{x}{2}\right)

The −1-1 and +1+1 cancel neatly. So:

1+sin⁡x1+cos⁡x=12sec⁡2x2+tan⁡x2\frac{1+\sin x}{1+\cos x} = \frac{1}{2}\sec^2\frac{x}{2} + \tan\frac{x}{2}

4. Spot the f(x)+f′(x)f(x) + f'(x) pattern.

Let f(x)=tan⁡x2f(x) = \tan\frac{x}{2}. Then: …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.