SOLVER7 Study. Nothing Else.
Exercise 7.3 Q22

Find the integrals of the functions in Exercises 1 to 22: \(\dfrac{1}{cos(x-a)cos(x-b)}\)

CBSE Class 12 Maths · Integrals

Solution

👶 Simple Explanation

Simple Explanation

Imagine you have two clocks showing different times, but the gap between them never changes. This integral is like that — two cosine expressions whose difference is always a fixed number. We cleverly multiply by that fixed gap in a hidden form, then split one messy fraction into two simpler ones. Each simpler piece turns into an easy logarithm. Like untangling a knot by finding the right loose end, spotting the constant difference is the key that unlocks the whole problem.

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

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

Detailed Explanation

The integrand \( \dfrac{1}{\cos(x-a)\cos(x-b)} \) cannot be integrated directly. The key idea is that the difference of the two angles, \( (x-a) - (x-b) = b - a \), is a constant. We multiply and divide by \( \sin(b-a) \) and then write \( \sin(b-a) \) as \( \sin[(x-a) - (x-b)] \). Expanding this using the sine difference formula creates two terms whose denominators cancel neatly, leaving simple \( \tan \) integrals.

Formula Used

\[ \sin(A - B) = \sin A \cos B - \cos A \sin B \] \[ \int \tan x \, dx = \log|\sec x| + C = -\log|\cos x| + C \]

Solution

  1. Step 1: Let \( I = \int \dfrac{1}{\cos(x-a)\cos(x-b)} \, dx \). Notice that the angle difference \( (x-a) - (x-b) = b - a \) is a constant. To use this, multiply and divide by \( \sin(b-a) \), which is a nonzero constant: \[ I = \frac{1}{\sin(b-a)} \int \frac{\sin(b-a)}{\cos(x-a)\cos(x-b)} \, dx. \]
  2. Step 2: Rewrite the constant \( b - a \) as \( (x - a) - (x - b) \), since these are equal: \[ I = \frac{1}{\sin(b-a)} \int \frac{\sin[(x-a) - (x-b)]}{\cos(x-a)\cos(x-b)} \, dx. \]
  3. Step 3: Expand the numerator using \( \sin(A - B) = \sin A \cos B - \cos A \sin B \) with \( A = x-a \) and \( B = x-b \): \[ \sin[(x-a)-(x-b)] = \sin(x-a)\cos(x-b) - \cos(x-a)\sin(x-b). \]
  4. Step 4: Substitute this back and split the fraction over the common denominator: \[ I = \frac{1}{\sin(b-a)} \int \left[ \frac{\sin(x-a)\cos(x-b)}{\cos(x-a)\cos(x-b)} - \frac{\cos(x-a)\sin(x-b)}{\cos(x-a)\cos(x-b)} \right] dx. \] Cancelling common factors gives \[ I = \frac{1}{\sin(b-a)} \int \left[ \tan(x-a) - \tan(x-b) \right] dx. \]
  5. Step 5: Integrate each term using \( \int \tan(x-c) \, dx = -\log|\cos(x-c)| \): \[ I = \frac{1}{\sin(b-a)} \left[ -\log|\cos(x-a)| + \log|\cos(x-b)| \right] + C. \]
  6. Step 6: Combine the logarithms into a single term using \( \log m - \log n = \log\dfrac{m}{n} \): \[ I = \frac{1}{\sin(b-a)} \log \left| \frac{\cos(x-b)}{\cos(x-a)} \right| + C. \]

Final Answer

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

Common Mistake

A frequent error is writing \( b - a \) as \( (x-b) - (x-a) \) instead of \( (x-a) - (x-b) \), which flips the sign and gives the wrong ordering inside the logarithm. Also, students often forget the minus sign in \( \int \tan x \, dx = -\log|\cos x| \), leading to an incorrect final ratio.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Set up the integral and identify the key constant. Let \[ I = \int \frac{dx}{\cos(x-a)\cos(x-b)} \] Observe that \( (x - a) - (x - b) = b - a \), a fixed constant. — Reason: Recognising this constant difference is the key insight that allows us to engineer a useful numerator in the next step.
  2. Step 2: Multiply and divide by the nonzero constant \( \sin(b - a) \): \[ I = \frac{1}{\sin(b-a)} \int \frac{\sin(b-a)}{\cos(x-a)\cos(x-b)} \, dx \] — Reason: Introducing \( \sin(b-a) \) in the numerator lets us replace it with a sine of a difference of two angles, which we can then expand.
  3. Step 3: Rewrite \( \sin(b - a) \) as \( \sin\!\left[(x-a)-(x-b)\right] \) since these expressions are equal: \[ I = \frac{1}{\sin(b-a)} \int \frac{\sin\!\left[(x-a)-(x-b)\right]}{\cos(x-a)\cos(x-b)} \, dx \] — Reason: Expressing the constant as a difference of two variable angles lets us apply the sine subtraction formula in the next step.
  4. Step 4: Expand the numerator using \( \sin(A - B) = \sin A \cos B - \cos A \sin B \) with \( A = x - a \) and \( B = x - b \): \[ \sin\!\left[(x-a)-(x-b)\right] = \sin(x-a)\cos(x-b) - \cos(x-a)\sin(x-b) \] Substituting back: \[ I = \frac{1}{\sin(b-a)} \int \frac{\sin(x-a)\cos(x-b) - \cos(x-a)\sin(x-b)}{\cos(x-a)\cos(x-b)} \, dx \] — Reason: Expanding the numerator creates two terms, each of which simplifies cleanly with the denominator.
  5. Step 5: Split the fraction into two separate fractions and cancel common factors: \[ I = \frac{1}{\sin(b-a)} \int \left[ \frac{\sin(x-a)}{\cos(x-a)} - \frac{\sin(x-b)}{\cos(x-b)} \right] dx \] which simplifies to \[ I = \frac{1}{\sin(b-a)} \int \left[ \tan(x-a) - \tan(x-b) \right] dx \] — Reason: After cancellation, each term is a standard tangent function, which has a known antiderivative.
  6. Step 6: Integrate each term using \( \int \tan u \, du = -\log|\cos u| + C \): \[ I = \frac{1}{\sin(b-a)} \left[ -\log|\cos(x-a)| + \log|\cos(x-b)| \right] + C \] — Reason: Applying the standard result for \( \int \tan u \, du \) to each term separately gives the antiderivative in logarithmic form.
  7. Step 7: Combine the two logarithms using the log quotient rule \( \log P - \log Q = \log\!\left|\tfrac{P}{Q}\right| \): \[ I = \frac{1}{\sin(b-a)} \log\left|\frac{\cos(x-b)}{\cos(x-a)}\right| + C \] — Reason: Merging the two logarithms into a single log-of-quotient gives the most compact and standard form of the answer.

Final Answer

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

Common Mistake

One common mistake: writing \( \sin(b - a) \) as \( \sin(a - b) \) — these differ by a sign, so the final answer would carry the wrong sign; always define the constant carefully and keep track of the order of subtraction.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Let \( I = \int \frac{dx}{\cos(x-a)\cos(x-b)} \). Multiply and divide by \( \sin(b-a) \), and write \( \sin(b-a) = \sin[(x-a)-(x-b)] \): \[ I = \frac{1}{\sin(b-a)} \int \frac{\sin[(x-a)-(x-b)]}{\cos(x-a)\cos(x-b)} \, dx \]
  2. Step 2: Expand the numerator using the sine difference formula and split: \[ I = \frac{1}{\sin(b-a)} \int \left[ \frac{\sin(x-a)}{\cos(x-a)} - \frac{\sin(x-b)}{\cos(x-b)} \right] dx = \frac{1}{\sin(b-a)} \int \left[ \tan(x-a) - \tan(x-b) \right] dx \]
  3. Step 3: Integrate each term using \( \int \tan u \, du = -\log|\cos u| + C \): \[ I = \frac{1}{\sin(b-a)} \left[ -\log|\cos(x-a)| + \log|\cos(x-b)| \right] + C = \frac{1}{\sin(b-a)} \log\left|\frac{\cos(x-b)}{\cos(x-a)}\right| + C \]

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

➕ More Examples

More Examples

Example 1

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

Solution: We want to evaluate \(\int \frac{1}{\sin(x-a)\sin(x-b)} \, dx\). Multiply and divide the numerator by \(\sin(b - a)\) (assuming \(a \ne b\)): \[\int \frac{1}{\sin(x-a)\sin(x-b)} \, dx = \frac{1}{\sin(b-a)} \int \frac{\sin(b-a)}{\sin(x-a)\sin(x-b)} \, dx\] Now write \(\sin(b - a) = \sin[(x - a) - (x - b)]\) and expand using the sine subtraction formula: \[\sin(b - a) = \sin(x - a)\cos(x - b) - \cos(x - a)\sin(x - b)\] Substituting: \[\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: \[= \frac{1}{\sin(b-a)} \int \left[\frac{\cos(x-b)}{\sin(x-b)} - \frac{\cos(x-a)}{\sin(x-a)}\right] dx\] Each part is a standard cot integral: \[= \frac{1}{\sin(b-a)} \int \left[\cot(x-b) - \cot(x-a)\right] dx\] Integrating term by term: \[= \frac{1}{\sin(b-a)} \left[\ln|\sin(x-b)| - \ln|\sin(x-a)|\right] + C\] Using the log quotient rule: \[= \frac{1}{\sin(b-a)} \ln\left|\frac{\sin(x-b)}{\sin(x-a)}\right| + C\]

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

Example 2

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

Solution: We want to evaluate \(\int \frac{1}{\sin(x-a)\cos(x-b)} \, dx\). Multiply and divide by \(\cos(a - b)\) (assuming \(a - b \ne \frac{\pi}{2}\)): \[\int \frac{1}{\sin(x-a)\cos(x-b)} \, dx = \frac{1}{\cos(a-b)} \int \frac{\cos(a-b)}{\sin(x-a)\cos(x-b)} \, dx\] Write \(\cos(a - b) = \cos[(x - b) - (x - a)]\) and expand: \[\cos(a - b) = \cos(x - b)\cos(x - a) + \sin(x - b)\sin(x - a)\] Substituting: \[\frac{1}{\cos(a-b)} \int \frac{\cos(x-b)\cos(x-a) + \sin(x-b)\sin(x-a)}{\sin(x-a)\cos(x-b)} \, dx\] Split the fraction: \[= \frac{1}{\cos(a-b)} \int \left[\frac{\cos(x-a)}{\sin(x-a)} + \frac{\sin(x-b)}{\cos(x-b)}\right] dx\] Simplify each term: \[= \frac{1}{\cos(a-b)} \int \left[\cot(x-a) + \tan(x-b)\right] dx\] Integrating term by term: \[= \frac{1}{\cos(a-b)} \left[\ln|\sin(x-a)| - \ln|\cos(x-b)|\right] + C\] Using the log quotient rule: \[= \frac{1}{\cos(a-b)} \ln\left|\frac{\sin(x-a)}{\cos(x-b)}\right| + C\]

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

🎯 Try a Similar Question

Try a Similar Question

Question: Find the integral of the function \( \dfrac{1}{\sin(x-a)\sin(x-b)} \).

Solution

  1. Step 1: Multiply and divide by \( \sin(b-a) \): We note that \( \sin(b - a) \ne 0 \) (assuming \( a \ne b \)). Multiply and divide the integrand by \( \sin(b-a) \): \[ I = \int \frac{1}{\sin(x-a)\sin(x-b)} \, dx = \frac{1}{\sin(b-a)} \int \frac{\sin(b-a)}{\sin(x-a)\sin(x-b)} \, dx \]
  2. Step 2: Write \( \sin(b-a) \) as a difference: Observe that \( b - a = (x - a) - (x - b) \), so \( \sin(b-a) = \sin\bigl((x-a)-(x-b)\bigr) \). Expanding using the sine subtraction formula: \[ \sin\bigl((x-a)-(x-b)\bigr) = \sin(x-a)\cos(x-b) - \cos(x-a)\sin(x-b) \] Substituting into the integral: \[ 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 \]
  3. Step 3: Split the fraction into two terms: Separate the integrand into two parts: \[ I = \frac{1}{\sin(b-a)} \int \left( \frac{\cos(x-b)}{\sin(x-b)} - \frac{\cos(x-a)}{\sin(x-a)} \right) dx \] This simplifies to: \[ I = \frac{1}{\sin(b-a)} \int \bigl( \cot(x-b) - \cot(x-a) \bigr) \, dx \]
  4. Step 4: Integrate each term: Using the standard result \( \int \cot(x - c) \, dx = \log\left|\sin(x-c)\right| + C \), we get: \[ \int \cot(x-b) \, dx = \log\left|\sin(x-b)\right| + C_1 \] and \[ \int \cot(x-a) \, dx = \log\left|\sin(x-a)\right| + C_2 \]
  5. Step 5: Combine and write the final answer: Combining both integrals: \[ I = \frac{1}{\sin(b-a)} \Bigl( \log\left|\sin(x-b)\right| - \log\left|\sin(x-a)\right| \Bigr) + C \] Using logarithm properties \( \log m - \log n = \log\dfrac{m}{n} \): \[ I = \frac{1}{\sin(b-a)} \log\left| \frac{\sin(x-b)}{\sin(x-a)} \right| + C \]

Answer: \[ \int \frac{dx}{\sin(x-a)\sin(x-b)} = \frac{1}{\sin(b-a)} \log\left| \frac{\sin(x-b)}{\sin(x-a)} \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)