SOLVER7 Study. Nothing Else.
Exercise 5.5 Q3

Differentiate the functions given in Exercises 1 to 11 \(w.r.t. x.\) \( (log\ x)^{cos\ x}\)

CBSE Class 12 Maths · Continuity and Differentiability

Solution

👶 Simple Explanation

Simple Explanation

Imagine you want to find how fast something is changing, but the thing looks like a number raised to a wobbly power — both parts keep changing together. Taking a logarithm is like opening a locked box: it brings that power down to a friendlier level. Once the power is down, you can use ordinary rules to find the rate of change. Multiply back by the original thing at the end. The answer tells us exactly how fast \( (\log x)^{\cos x} \) changes.

Answer: \[ \frac{dy}{dx} = (\log x)^{\cos x}\left[ \frac{\cos x}{x\log x} - \sin x \cdot \log(\log x) \right] \]

📖 Differentiating (log x)^(cos x) using Logarithmic Differentiation

Detailed Explanation

When a function has the form \( (\text{function of } x)^{\text{function of } x} \), we cannot directly use the power rule or the exponential rule, because both the base and the power depend on \( x \). The standard technique is logarithmic differentiation: we take the natural logarithm of both sides to convert the power into a product using the log property \( \log(a^b) = b \log a \). This makes the expression easier to differentiate. After taking logs, we differentiate both sides with respect to \( x \), using the product rule and chain rule on the right side, and then solve for \( \frac{dy}{dx} \).

Formula Used

Key results used: \( \log(a^b) = b\log a \), \(\ \frac{d}{dx}(\log x) = \frac{1}{x} \), \(\ \frac{d}{dx}(\cos x) = -\sin x \), and the product rule \( (uv)' = u'v + uv' \).

Solution

  1. Step 1: Let the given function be \( y = (\log x)^{\cos x} \). Our goal is to find \( \frac{dy}{dx} \).
  2. Step 2: Take the natural logarithm on both sides. This is done to bring the exponent down: \[ \log y = \log\left( (\log x)^{\cos x} \right) \] Using the property \( \log(a^b) = b\log a \), we get \[ \log y = \cos x \cdot \log(\log x) \]
  3. Step 3: Differentiate both sides with respect to \( x \). On the left, use the chain rule for \( \log y \). On the right, the term \( \cos x \cdot \log(\log x) \) is a product, so apply the product rule: \[ \frac{1}{y}\frac{dy}{dx} = \frac{d}{dx}(\cos x)\cdot \log(\log x) + \cos x \cdot \frac{d}{dx}\big(\log(\log x)\big) \]
  4. Step 4: Compute each derivative. We know \( \frac{d}{dx}(\cos x) = -\sin x \). For \( \log(\log x) \), use the chain rule: \[ \frac{d}{dx}\big(\log(\log x)\big) = \frac{1}{\log x}\cdot \frac{1}{x} = \frac{1}{x\log x} \] Substituting these back gives \[ \frac{1}{y}\frac{dy}{dx} = -\sin x \cdot \log(\log x) + \cos x \cdot \frac{1}{x\log x} \]
  5. Step 5: Multiply both sides by \( y \) to isolate \( \frac{dy}{dx} \), then replace \( y \) with the original function \( (\log x)^{\cos x} \): \[ \frac{dy}{dx} = (\log x)^{\cos x}\left[ \frac{\cos x}{x\log x} - \sin x \cdot \log(\log x) \right] \]

Final Answer

\[ \frac{dy}{dx} = (\log x)^{\cos x}\left[ \frac{\cos x}{x\log x} - \sin x \cdot \log(\log x) \right] \]

Common Mistake

A common mistake is treating the function like a simple power and writing \( \cos x \cdot (\log x)^{\cos x - 1} \), or forgetting the chain rule when differentiating \( \log(\log x) \), which gives \( \frac{1}{x\log x} \), not just \( \frac{1}{\log x} \).

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Identify the function and name it: Let \( y = (\log x)^{\cos x} \). — Reason: Giving the expression a name y allows us to differentiate both sides of an equation and ultimately isolate \( \frac{dy}{dx} \).
  2. Step 2: Apply logarithm to both sides: Take the natural log of both sides: \[ \log y = \log\left((\log x)^{\cos x}\right) \] Now use the log-power property \( \log(a^b) = b\log a \) to pull the exponent in front: \[ \log y = \cos x \cdot \log(\log x) \] — Reason: This transforms the variable exponent into a product of two ordinary functions, making differentiation straightforward.
  3. Step 3: Differentiate the left-hand side: Differentiating \( \log y \) with respect to x using the chain rule gives \( \frac{1}{y}\frac{dy}{dx} \). — Reason: Since y is itself a function of x, the chain rule must be applied; this is the hallmark step of logarithmic differentiation.
  4. Step 4: Differentiate the right-hand side using the product rule: The right side \( \cos x \cdot \log(\log x) \) is a product of two functions of x, so apply the product rule \( (uv)' = u'v + uv' \) with \( u = \cos x \) and \( v = \log(\log x) \): \[ \frac{d}{dx}\bigl[\cos x \cdot \log(\log x)\bigr] = (-\sin x)\cdot\log(\log x) + \cos x \cdot \frac{d}{dx}\bigl[\log(\log x)\bigr] \] — Reason: The product rule is required whenever two variable expressions are multiplied together.
  5. Step 5: Evaluate the remaining derivative: Find \( \frac{d}{dx}\bigl[\log(\log x)\bigr] \) using the chain rule: the outer function is log and the inner function is \( \log x \), so \[ \frac{d}{dx}\bigl[\log(\log x)\bigr] = \frac{1}{\log x} \cdot \frac{1}{x} = \frac{1}{x\log x} \] — Reason: Applying chain rule correctly here is essential; a common error is forgetting to differentiate the inner function \( \log x \).
  6. Step 6: Combine everything into one equation: Putting Steps 3, 4, and 5 together: \[ \frac{1}{y}\frac{dy}{dx} = -\sin x \cdot \log(\log x) + \cos x \cdot \frac{1}{x\log x} \] This can be written neatly as \[ \frac{1}{y}\frac{dy}{dx} = \frac{\cos x}{x\log x} - \sin x \cdot \log(\log x) \] — Reason: Grouping both terms on the right gives the complete derivative of the right-hand side.
  7. Step 7: Solve for dy/dx by multiplying both sides by y: Multiply both sides by \( y \): \[ \frac{dy}{dx} = y\left[\frac{\cos x}{x\log x} - \sin x \cdot \log(\log x)\right] \] Now substitute back \( y = (\log x)^{\cos x} \): \[ \frac{dy}{dx} = (\log x)^{\cos x}\left[\frac{\cos x}{x\log x} - \sin x \cdot \log(\log x)\right] \] — Reason: Replacing y with the original expression gives the final answer entirely in terms of x.

Final Answer

\[ \frac{dy}{dx} = (\log x)^{\cos x}\left[ \frac{\cos x}{x\log x} - \sin x \cdot \log(\log x) \right] \]

Common Mistake

One common mistake: when differentiating \( \log(\log x) \), students often write \( \frac{1}{\log x} \) and forget to multiply by the derivative of the inner function \( \log x \), which is \( \frac{1}{x} \). The correct result is \( \frac{1}{x \log x} \), not \( \frac{1}{\log x} \).

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Let \( y = (\log x)^{\cos x} \). Taking log both sides: \[ \log y = \cos x \cdot \log(\log x) \]
  2. Step 2: Differentiating both sides w.r.t. \( x \) using the product rule on the right: \[ \frac{1}{y}\frac{dy}{dx} = (-\sin x)\cdot \log(\log x) + \cos x \cdot \frac{1}{\log x}\cdot\frac{1}{x} \]
  3. Step 3: Multiplying both sides by \( y = (\log x)^{\cos x} \): \[ \frac{dy}{dx} = (\log x)^{\cos x}\left[\frac{\cos x}{x\log x} - \sin x \cdot \log(\log x)\right] \]

Answer: \[ \frac{dy}{dx} = (\log x)^{\cos x}\left[ \frac{\cos x}{x\log x} - \sin x \cdot \log(\log x) \right] \]

➕ More Examples

More Examples

Example 1

Question: Differentiate \( y = (\sin x)^{\ln x} \) with respect to \( x \).

Solution: Let \( y = (\sin x)^{\ln x} \). Taking the natural logarithm of both sides: \[ \ln y = \ln x \cdot \ln(\sin x) \] Differentiating both sides with respect to \( x \) (using the product rule on the right side): \[ \frac{1}{y} \cdot \frac{dy}{dx} = \frac{d}{dx}\left[\ln x \cdot \ln(\sin x)\right] \] Applying the product rule: \[ \frac{1}{y} \cdot \frac{dy}{dx} = \frac{1}{x} \cdot \ln(\sin x) + \ln x \cdot \frac{\cos x}{\sin x} \] Simplifying the second term: \[ \frac{1}{y} \cdot \frac{dy}{dx} = \frac{\ln(\sin x)}{x} + \ln x \cdot \cot x \] Multiplying both sides by \( y = (\sin x)^{\ln x} \): \[ \frac{dy}{dx} = (\sin x)^{\ln x} \left[ \frac{\ln(\sin x)}{x} + (\cot x)(\ln x) \right] \]

Answer: \( \frac{dy}{dx} = (\sin x)^{\ln x} \left[ \frac{\ln(\sin x)}{x} + \cot x \cdot \ln x \right] \)

Example 2

Question: Differentiate \( y = x^{\tan x} \) with respect to \( x \).

Solution: Let \( y = x^{\tan x} \). Taking the natural logarithm of both sides: \[ \ln y = \tan x \cdot \ln x \] Differentiating both sides with respect to \( x \): \[ \frac{1}{y} \cdot \frac{dy}{dx} = \frac{d}{dx}\left[\tan x \cdot \ln x\right] \] Applying the product rule on the right side: \[ \frac{1}{y} \cdot \frac{dy}{dx} = \sec^2 x \cdot \ln x + \tan x \cdot \frac{1}{x} \] Simplifying: \[ \frac{1}{y} \cdot \frac{dy}{dx} = (\ln x)(\sec^2 x) + \frac{\tan x}{x} \] Multiplying both sides by \( y = x^{\tan x} \): \[ \frac{dy}{dx} = x^{\tan x} \left[ (\ln x)(\sec^2 x) + \frac{\tan x}{x} \right] \]

Answer: \( \frac{dy}{dx} = x^{\tan x} \left[ \sec^2 x \cdot \ln x + \frac{\tan x}{x} \right] \)

🎯 Try a Similar Question

Try a Similar Question

Question: Differentiate the following function with respect to \( x \): \[ y = (\sin x)^{\ln x} \]

Solution

  1. Step 1 – Take the natural logarithm of both sides: Let \( y = (\sin x)^{\ln x} \). Taking the natural logarithm on both sides gives \[ \ln y = \ln x \cdot \ln(\sin x) \]
  2. Step 2 – Differentiate both sides with respect to x: Differentiating the left side: \( \frac{1}{y}\frac{dy}{dx} \). Differentiating the right side using the product rule \( (uv)' = u'v + uv' \) with \( u = \ln x \) and \( v = \ln(\sin x) \): \[ \frac{d}{dx}[\ln x \cdot \ln(\sin x)] = \frac{1}{x} \cdot \ln(\sin x) + \ln x \cdot \frac{\cos x}{\sin x} \] So the full equation becomes \[ \frac{1}{y}\frac{dy}{dx} = \frac{\ln(\sin x)}{x} + \ln x \cdot \cot x \]
  3. Step 3 – Solve for dy/dx: Multiply both sides by \( y \): \[ \frac{dy}{dx} = y \left[ \frac{\ln(\sin x)}{x} + \ln x \cdot \cot x \right] \]
  4. Step 4 – Substitute back the original expression for y: Replace \( y \) with \( (\sin x)^{\ln x} \): \[ \frac{dy}{dx} = (\sin x)^{\ln x} \left[ \frac{\ln(\sin x)}{x} + \ln x \cdot \cot x \right] \]

Answer: \[ \frac{dy}{dx} = (\sin x)^{\ln x}\left[ \frac{\ln(\sin x)}{x} + \ln x \cdot \cot x \right] \]

Everything you get with Solver7

More questions in Continuity and Differentiability

Chapter 5 Examples Q1 Chapter 5 Examples Q2 Chapter 5 Examples Q3 65/1/1 2024 / Section A Q3 Chapter 5 Examples Q4 65/2/1 2024 / Section A Q4 65/3/1 2024 / Section A Q4 Chapter 5 Examples Q5 65/4/1 2026 / Section A Q5 Chapter 5 Examples Q6 65(B) 2026 / Section A Q6 65/4/1 2023 / Section A Q6 65/4/2 2024 / Section A Q6 65/5/1 2026 / Section A Q6 Chapter 5 Examples Q7 65/3/1 2026 / Section A Q7 65/4/1 2023 / Section A Q7 65/4/1 2026 / Section A Q7 65/4/2 2024 / Section A Q7 Chapter 5 Examples Q8 65/4/1 2026 / Section A Q8 65/5/1 2026 / Section A Q8 Chapter 5 Examples Q9 Chapter 5 Examples Q10 Chapter 5 Examples Q11 65/2/2 2023 / Section A Q11 65/2/3 2026 / Section A Q11 Chapter 5 Examples Q12 65/2/2 2023 / Section A Q12 Chapter 5 Examples Q13 65/1/1 2023 / Section A Q13 65/1/1 2024 / Section A Q13 65/2/1 2024 / Section A Q13 Chapter 5 Examples Q14 65/3/1 2024 / Section A Q14 Chapter 5 Examples Q15 65/3/1 2023 / Section A Q15 Chapter 5 Examples Q16 65/3/1 2023 / Section A Q16 Chapter 5 Examples Q17 Chapter 5 Examples Q18 Chapter 5 Examples Q19 Chapter 5 Examples Q20 Chapter 5 Examples Q21 65/1/1 2024 / Section B Q21(a) 65/1/1 2026 / Section B Q21(a) 65/3/1 2026 / Section B Q21 Chapter 5 Examples Q22 65/1/1 2024 / Section B Q21(b) 65/1/1 2026 / Section B Q21(b) 65/3/1 2024 / Section B Q22(a) 65/4/1 2026 / Section B Q22(a) 65/5/1 2026 / Section B Q22(a) Chapter 5 Examples Q23 65/2/1 2024 / Section B Q22(a) 65/3/1 2024 / Section B Q22(b) 65/4/1 2023 / Section B Q22 65/4/1 2026 / Section B Q22(b) 65/5/1 2026 / Section B Q22(b) Chapter 5 Examples Q24