SOLVER7 Study. Nothing Else.
2023 Board Paper Q31(b)

Find : \(\int\dfrac{1}{cos(x-a)\ cos(x-b)}dx\)

CBSE Class 12 Maths · Integrals

Solution

👶 Simple Explanation

Simple Explanation

Imagine two doors blocking your path, and you cannot open them together. The trick is to sneak in a clever number — one that turns two locked doors into two separate, easy-to-open ones. Here, the two cosine terms are like those doors. A special identity quietly swaps the hard product into a difference of two tangents. Each tangent is easy to integrate on its own, giving a logarithm answer. The final result looks neat and clean once everything simplifies.

Answer: \[ \int \frac{1}{\cos(x-a)\cos(x-b)} \, dx = \frac{1}{\sin(a-b)} \log\left| \frac{\cos(x-a)}{\cos(x-b)} \right| + C. \]

📖 Integral of 1/[cos(x-a)cos(x-b)]

Detailed Explanation

When the denominator is a product like \( \cos(x-a)\cos(x-b) \), we cannot integrate directly. The key trick is to create a difference of the two angles in the numerator so that the product can be split into a difference of tangents. Notice that the difference of angles \( (x-b) - (x-a) = a - b \) is a constant. We use the identity for \( \sin \) of a difference to break the fraction into two simple terms, each of which integrates into a logarithm of secant (or cosine).

Formula Used

Key identity: \( \sin(A - B) = \sin A \cos B - \cos A \sin B \). Also \( \int \tan x \, dx = \log|\sec x| + C = -\log|\cos x| + C \).

Solution

  1. Step 1: We want to introduce the constant \( a - b \) in the numerator. Multiply and divide by \( \sin(a-b) \), which is a constant: \[ I = \frac{1}{\sin(a-b)} \int \frac{\sin(a-b)}{\cos(x-a)\cos(x-b)} \, dx. \]
  2. Step 2: Write \( a - b \) as \( (x-b) - (x-a) \). Using \( \sin(A-B) = \sin A \cos B - \cos A \sin B \) with \( A = x-b \) and \( B = x-a \): \[ \sin(a-b) = \sin\big((x-b)-(x-a)\big) = \sin(x-b)\cos(x-a) - \cos(x-b)\sin(x-a). \]
  3. Step 3: Substitute this into the numerator: \[ I = \frac{1}{\sin(a-b)} \int \frac{\sin(x-b)\cos(x-a) - \cos(x-b)\sin(x-a)}{\cos(x-a)\cos(x-b)} \, dx. \]
  4. Step 4: Split the fraction into two parts, cancelling common factors in each: \[ I = \frac{1}{\sin(a-b)} \int \left( \frac{\sin(x-b)}{\cos(x-b)} - \frac{\sin(x-a)}{\cos(x-a)} \right) dx. \] This gives us tangents: \[ I = \frac{1}{\sin(a-b)} \int \big( \tan(x-b) - \tan(x-a) \big) \, dx. \]
  5. Step 5: Integrate each tangent using \( \int \tan(x-c)\, dx = -\log|\cos(x-c)| + C \): \[ I = \frac{1}{\sin(a-b)} \Big( -\log|\cos(x-b)| + \log|\cos(x-a)| \Big) + C. \]
  6. Step 6: Combine the logarithms into a single ratio: \[ I = \frac{1}{\sin(a-b)} \log\left| \frac{\cos(x-a)}{\cos(x-b)} \right| + C. \]

Final Answer

\[ \int \frac{1}{\cos(x-a)\cos(x-b)} \, dx = \frac{1}{\sin(a-b)} \log\left| \frac{\cos(x-a)}{\cos(x-b)} \right| + C. \]

Common Mistake

A common mistake is to multiply and divide by \( \cos(a-b) \) instead of \( \sin(a-b) \), or to forget that \( a-b \) can be split as \( (x-b)-(x-a) \). Using the cosine expansion will not let the fraction split neatly into tangents.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Identify the constant hidden in the angles: Observe that \( (x - b) - (x - a) = a - b \), which is a constant (independent of \( x \)). This means \( \sin(a - b) \) is also a constant, so multiplying and dividing by it does not change the integral. Write: \[ I = \frac{1}{\sin(a-b)} \int \frac{\sin(a-b)}{\cos(x-a)\cos(x-b)} \, dx \] — Reason: We prepare to rewrite \( \sin(a-b) \) in the numerator using an angle-difference identity, which will split the single hard-looking fraction into two recognisable tangent terms.
  2. Step 2: Rewrite \( a - b \) as a difference of \( x \)-dependent angles: Express \( a - b = (x - b) - (x - a) \). Now apply the sine-difference identity \( \sin(A - B) = \sin A \cos B - \cos A \sin B \) with \( A = x - b \) and \( B = x - a \): \[ \sin(a-b) = \sin(x-b)\cos(x-a) - \cos(x-b)\sin(x-a) \] — Reason: By writing the constant angle as a difference of two \( x \)-dependent angles, we get terms that pair exactly with the denominator factors \( \cos(x-a) \) and \( \cos(x-b) \).
  3. Step 3: Substitute the expanded numerator: Replace \( \sin(a-b) \) in the numerator with the expanded form: \[ I = \frac{1}{\sin(a-b)} \int \frac{\sin(x-b)\cos(x-a) - \cos(x-b)\sin(x-a)}{\cos(x-a)\cos(x-b)} \, dx \] — Reason: The numerator now contains both \( \cos(x-a) \) and \( \cos(x-b) \), which are present in the denominator, setting up a clean cancellation in the next step.
  4. Step 4: Split the fraction and cancel common factors: Separate the fraction into two parts and cancel: \[ I = \frac{1}{\sin(a-b)} \int \left( \frac{\sin(x-b)}{\cos(x-b)} - \frac{\sin(x-a)}{\cos(x-a)} \right) dx \] which simplifies to \[ I = \frac{1}{\sin(a-b)} \int \Big( \tan(x-b) - \tan(x-a) \Big) \, dx \] — Reason: Each ratio \( \frac{\sin(\cdot)}{\cos(\cdot)} \) is simply a tangent function, which has a standard integral formula.
  5. Step 5: Integrate each tangent term: Using \( \int \tan(x - c) \, dx = -\log|\cos(x-c)| + C \), integrate term by term: \[ I = \frac{1}{\sin(a-b)} \Big[ -\log|\cos(x-b)| + \log|\cos(x-a)| \Big] + C \] — Reason: The standard result for \( \int \tan u \, du \) applies directly since the inner derivative of \( (x - c) \) with respect to \( x \) is 1, so no extra factor appears.
  6. Step 6: Combine the logarithms into a single expression: Apply the log-quotient rule \( \log|P| - \log|Q| = \log\left|\frac{P}{Q}\right| \): \[ I = \frac{1}{\sin(a-b)} \log\left| \frac{\cos(x-a)}{\cos(x-b)} \right| + C \] — Reason: Combining into a single logarithm gives the neatest closed form and matches the standard result expected in CBSE Class 12.

Final Answer

\[ \int \frac{1}{\cos(x-a)\cos(x-b)} \, dx = \frac{1}{\sin(a-b)} \log\left| \frac{\cos(x-a)}{\cos(x-b)} \right| + C. \]

Common Mistake

One common mistake: Students often forget to multiply and divide by \( \sin(a-b) \) at the very first step, and instead try to apply partial fractions or other methods that do not simplify the product of cosines — always look for the hidden constant angle \( a - b \) and introduce it deliberately in the numerator.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Multiply and divide by the constant \( \sin(a-b) \): \[ I = \frac{1}{\sin(a-b)} \int \frac{\sin(a-b)}{\cos(x-a)\cos(x-b)} \, dx \]
  2. Step 2: Write \( \sin(a-b) = \sin\big((x-b)-(x-a)\big) = \sin(x-b)\cos(x-a) - \cos(x-b)\sin(x-a) \) and substitute into the numerator: \[ I = \frac{1}{\sin(a-b)} \int \frac{\sin(x-b)\cos(x-a) - \cos(x-b)\sin(x-a)}{\cos(x-a)\cos(x-b)} \, dx \]
  3. Step 3: Split the fraction and simplify to tangents: \[ I = \frac{1}{\sin(a-b)} \int \big(\tan(x-b) - \tan(x-a)\big) \, dx \]
  4. Step 4: Integrate term by term using \( \int \tan u \, du = -\log|\cos u| + C \): \[ I = \frac{1}{\sin(a-b)} \Big[ -\log|\cos(x-b)| + \log|\cos(x-a)| \Big] + C \]

Answer: \[ \int \frac{1}{\cos(x-a)\cos(x-b)} \, dx = \frac{1}{\sin(a-b)} \log\left| \frac{\cos(x-a)}{\cos(x-b)} \right| + C. \]

➕ More Examples

More Examples

Example 1

Question: Find \[ \int \frac{1}{\sin(x-a)\sin(x-b)} \, dx \]

Solution: We want to evaluate \[ I = \int \frac{1}{\sin(x-a)\sin(x-b)} \, dx. \] Multiply and divide by \( \sin(b - a) \) (assuming \( a \ne b \), so \( \sin(b-a) \ne 0 \)): \[ I = \frac{1}{\sin(b-a)} \int \frac{\sin(b-a)}{\sin(x-a)\sin(x-b)} \, dx. \] Write \( \sin(b - a) = \sin[(x - a) - (x - b)] \) and expand using the sine subtraction formula \( \sin(P - Q) = \sin P \cos Q - \cos P \sin Q \): \[ \sin(b-a) = \sin(x-a)\cos(x-b) - \cos(x-a)\sin(x-b). \] Substituting: \[ I = \frac{1}{\sin(b-a)} \int \frac{\sin(x-a)\cos(x-b) - \cos(x-a)\sin(x-b)}{\sin(x-a)\sin(x-b)} \, dx. \] Split the fraction: \[ I = \frac{1}{\sin(b-a)} \int \left[ \frac{\cos(x-b)}{\sin(x-b)} - \frac{\cos(x-a)}{\sin(x-a)} \right] dx. \] Each term is of the form \( \frac{\cos u}{\sin u} = \cot u \), and \( \int \cot u \, du = \ln|\sin u| + C \). Therefore: \[ I = \frac{1}{\sin(b-a)} \left[ \ln|\sin(x-b)| - \ln|\sin(x-a)| \right] + C. \] Using logarithm properties: \[ I = \frac{1}{\sin(b-a)} \ln\left|\frac{\sin(x-b)}{\sin(x-a)}\right| + C. \]

Answer: \[ \frac{1}{\sin(b-a)} \ln\left|\frac{\sin(x-b)}{\sin(x-a)}\right| + C \]

Example 2

Question: Find \[ \int \frac{1}{\sin(x-a)\cos(x-b)} \, dx \]

Solution: We want to evaluate \[ I = \int \frac{1}{\sin(x-a)\cos(x-b)} \, dx. \] Multiply and divide by \( \cos(b - a) \) (assuming \( \cos(b-a) \ne 0 \)): \[ I = \frac{1}{\cos(b-a)} \int \frac{\cos(b-a)}{\sin(x-a)\cos(x-b)} \, dx. \] Write \( \cos(b - a) = \cos[(x-a) - (x-b)] \) and expand using \( \cos(P - Q) = \cos P \cos Q + \sin P \sin Q \): \[ \cos(b-a) = \cos(x-a)\cos(x-b) + \sin(x-a)\sin(x-b). \] Substituting: \[ I = \frac{1}{\cos(b-a)} \int \frac{\cos(x-a)\cos(x-b) + \sin(x-a)\sin(x-b)}{\sin(x-a)\cos(x-b)} \, dx. \] Split the fraction into two terms: \[ I = \frac{1}{\cos(b-a)} \int \left[ \frac{\cos(x-a)}{\sin(x-a)} + \frac{\sin(x-b)}{\cos(x-b)} \right] dx. \] The first term is \( \cot(x-a) \) and integrates to \( \ln|\sin(x-a)| \); the second term is \( \tan(x-b) \) and integrates to \( -\ln|\cos(x-b)| \) (since \( \int \tan u \, du = -\ln|\cos u| + C \)): \[ I = \frac{1}{\cos(b-a)} \left[ \ln|\sin(x-a)| - \ln|\cos(x-b)| \right] + C. \] Using logarithm properties: \[ I = \frac{1}{\cos(b-a)} \ln\left|\frac{\sin(x-a)}{\cos(x-b)}\right| + C. \]

Answer: \[ \frac{1}{\cos(b-a)} \ln\left|\frac{\sin(x-a)}{\cos(x-b)}\right| + C \]

🎯 Try a Similar Question

Try a Similar Question

Question: Find: \[ \int \frac{1}{\sin(x-a)\sin(x-b)} \, dx \]

Solution

  1. Step 1: Introduce a clever factor: Note that \( \sin(a - b) \ne 0 \). Multiply and divide the integrand by \( \sin(a-b) \): \[ I = \frac{1}{\sin(a-b)} \int \frac{\sin(a-b)}{\sin(x-a)\sin(x-b)} \, dx \]
  2. Step 2: Use the sine subtraction identity: Write \( \sin(a-b) = \sin[(x-b)-(x-a)] \). Expanding using the subtraction formula: \[ \sin(a-b) = \sin(x-b)\cos(x-a) - \cos(x-b)\sin(x-a) \] Substituting into the integral: \[ I = \frac{1}{\sin(a-b)} \int \frac{\sin(x-b)\cos(x-a) - \cos(x-b)\sin(x-a)}{\sin(x-a)\sin(x-b)} \, dx \]
  3. Step 3: Split the integrand into two fractions: Separate the fraction term by term: \[ I = \frac{1}{\sin(a-b)} \int \left( \frac{\cos(x-a)}{\sin(x-a)} - \frac{\cos(x-b)}{\sin(x-b)} \right) dx \] Each term is of the form \( \cot(\cdot) \): \[ I = \frac{1}{\sin(a-b)} \int \left( \cot(x-a) - \cot(x-b) \right) dx \]
  4. Step 4: Integrate each term: Using \( \int \cot(u) \, du = \log|\sin u| + C \): \[ \int \cot(x-a) \, dx = \log|\sin(x-a)| + C_1 \] \[ \int \cot(x-b) \, dx = \log|\sin(x-b)| + C_2 \]
  5. Step 5: Combine and simplify: Putting it all together: \[ I = \frac{1}{\sin(a-b)} \left[ \log|\sin(x-a)| - \log|\sin(x-b)| \right] + C \] Using the logarithm subtraction rule \( \log P - \log Q = \log\left|\dfrac{P}{Q}\right| \): \[ I = \frac{1}{\sin(a-b)} \log\left| \frac{\sin(x-a)}{\sin(x-b)} \right| + C \]

Answer: \[ \int \frac{1}{\sin(x-a)\sin(x-b)} \, dx = \frac{1}{\sin(a-b)} \log\left| \frac{\sin(x-a)}{\sin(x-b)} \right| + C \]

Everything you get with Solver7

More questions in Integrals

Chapter 7 Examples Q1(i) 65/2/2 2023 / Section A Q1 Chapter 7 Examples Q1(ii) 65/2/1 2022 / Section A Q2(a) Chapter 7 Examples Q1(iii) 65/2/1 2022 / Section A Q2(b) Chapter 7 Examples Q2(i) Chapter 7 Examples Q2(ii) 65/1/1 2023 / Section A Q5 Chapter 7 Examples Q2(iii) 65/1/1 2023 / Section A Q6 65/1/1 2024 / Section A Q6 65/2/1 2024 / Section A Q6 65/3/1 2023 / Section A Q6 65/3/1 2024 / Section A Q6 Chapter 7 Examples Q3(i) 65/3/1 2023 / Section A Q7 Chapter 7 Examples Q3(ii) 65(B) 2026 / Section A Q8 65/1/1 2026 / Section A Q8 65/4/1 2022 / Section A Q6 65/4/1 2023 / Section A Q8 65/4/2 2024 / Section A Q8 Chapter 7 Examples Q3(iii) 65(B) 2026 / Section A Q9 65/1/1 2026 / Section A Q9 65/2/1 2022 / Section B Q8(a) 65/2/2 2023 / Section A Q9 65/4/1 2022 / Section B Q7 65/4/1 2023 / Section A Q9 65/4/1 2026 / Section A Q9 Chapter 7 Examples Q4 65/2/1 2022 / Section B Q8(b) 65/3/1 2026 / Section A Q10 65/4/1 2022 / Section B Q8(a) 65/4/1 2026 / Section A Q10 65/5/1 2026 / Section A Q10 Chapter 7 Examples Q5(i) 65/3/1 2026 / Section A Q11 65/4/1 2022 / Section B Q8(b) 65/5/1 2026 / Section A Q11 Chapter 7 Examples Q5(ii) 65/2/3 2026 / Section A Q12 Chapter 7 Examples Q5(iii) Chapter 7 Examples Q5(iv) Chapter 7 Examples Q6(i) 65/2/1 2022 / Section C Q12 Chapter 7 Examples Q6(ii) Chapter 7 Examples Q6(iii) Chapter 7 Examples Q7(i) 65/4/1 2022 / Section C Q13 Chapter 7 Examples Q7(ii) Chapter 7 Examples Q7(iii) Chapter 7 Examples Q8(i) Chapter 7 Examples Q8(ii) Chapter 7 Examples Q9(i) Chapter 7 Examples Q9(ii) 65/1/1 2024 / Section B Q23(a) 65/3/1 2024 / Section B Q23(a) Chapter 7 Examples Q9(iii)