SOLVER7 Study. Nothing Else.
Chapter 5 Examples Q29

Differentiate \(x^{sin\ x},x>0\ w.r.t. x.\)

CBSE Class 12 Maths · Continuity and Differentiability

Solution

👶 Simple Explanation

Simple Explanation

Imagine you have a number that is raised to a power, but both the number and the power keep changing as x changes. Normal shortcuts do not work here. So we use a clever trick: take the logarithm of both sides, which turns the tricky power into a simple multiplication. Differentiating becomes much easier after that. Finally, we multiply both sides by the original function to get our answer. It is like untying a knot by loosening it gently instead of pulling hard.

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

📖 Differentiating x^(sin x) using Logarithmic Differentiation

Detailed Explanation

When we differentiate a function of the form \( y = [f(x)]^{g(x)} \), where BOTH the base and the exponent depend on \( x \), we cannot use the simple power rule \( \frac{d}{dx}(x^n) = nx^{n-1} \) (which needs a constant power), nor the exponential rule \( \frac{d}{dx}(a^x) = a^x \ln a \) (which needs a constant base). Instead we use logarithmic differentiation. The idea is to take the natural logarithm of both sides. The log converts the awkward power into a product using the rule \( \log(a^b) = b \log a \), which is much easier to differentiate. Here the base is \( x \) and the exponent is \( \sin x \), so this method is exactly what we need.

Formula Used

Key rules used: \[ \ln(a^b) = b \ln a \] \[ \frac{d}{dx}(\ln y) = \frac{1}{y}\frac{dy}{dx} \] \[ \frac{d}{dx}(uv) = u'v + uv' \quad \text{(product rule)} \]

Solution

  1. Step 1: Let the function be \( y \). \[ y = x^{\sin x}, \quad x > 0 \] Since the power \( \sin x \) is not a constant, we use logarithmic differentiation.
  2. Step 2: Take the natural logarithm on both sides. \[ \ln y = \ln\left(x^{\sin x}\right) \] Using the log rule \( \ln(a^b) = b \ln a \), the exponent comes down as a multiplier. \[ \ln y = \sin x \cdot \ln x \]
  3. Step 3: Differentiate both sides with respect to \( x \). On the left, using the chain rule, \( \frac{d}{dx}(\ln y) = \frac{1}{y}\frac{dy}{dx} \). On the right, the term \( \sin x \cdot \ln x \) is a product, so we apply the product rule. \[ \frac{1}{y}\frac{dy}{dx} = \frac{d}{dx}(\sin x) \cdot \ln x + \sin x \cdot \frac{d}{dx}(\ln x) \]
  4. Step 4: Substitute the known derivatives \( \frac{d}{dx}(\sin x) = \cos x \) and \( \frac{d}{dx}(\ln x) = \frac{1}{x} \). \[ \frac{1}{y}\frac{dy}{dx} = \cos x \cdot \ln x + \sin x \cdot \frac{1}{x} \] So we get \[ \frac{1}{y}\frac{dy}{dx} = \cos x \, \ln x + \frac{\sin x}{x} \]
  5. Step 5: Multiply both sides by \( y \) to isolate \( \frac{dy}{dx} \). \[ \frac{dy}{dx} = y\left( \cos x \, \ln x + \frac{\sin x}{x} \right) \] Finally replace \( y \) with the original expression \( x^{\sin x} \). \[ \frac{dy}{dx} = x^{\sin x}\left( \cos x \, \ln x + \frac{\sin x}{x} \right) \]

Final Answer

\[ \frac{dy}{dx} = x^{\sin x}\left( \cos x \, \ln x + \frac{\sin x}{x} \right) \]

Common Mistake

A very common mistake is applying the power rule directly and writing \( \frac{dy}{dx} = \sin x \cdot x^{\sin x - 1} \). This is wrong because the power rule only works when the exponent is a constant. Since the exponent \( \sin x \) is a function of \( x \), logarithmic differentiation is required. Another slip is forgetting to multiply back by \( y \) at the end.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Name the function and identify why a special method is needed: Let \\ \( y = x^{\sin x} \) where \( x > 0 \). — Reason: The exponent \( \sin x \) is not a constant, so neither the standard power rule nor the constant-base exponential rule applies. Logarithmic differentiation is needed.
  2. Step 2: Take the natural logarithm of both sides: Apply \( \ln \) to each side: \\ \[ \ln y = \ln\left(x^{\sin x}\right) \] — Reason: Taking the logarithm prepares us to use the log power rule in the very next step.
  3. Step 3: Simplify the right side using the log power rule: Using \( \ln(a^b) = b \ln a \), bring the exponent down as a multiplier: \\ \[ \ln y = \sin x \cdot \ln x \] — Reason: This converts the awkward variable-exponent form into a simple product of two functions, which is straightforward to differentiate.
  4. Step 4: Differentiate both sides with respect to x: Differentiate the left side using the chain rule, and the right side using the product rule with \( u = \sin x \) and \( v = \ln x \): \\ \[ \frac{1}{y}\frac{dy}{dx} = \frac{d}{dx}(\sin x) \cdot \ln x + \sin x \cdot \frac{d}{dx}(\ln x) \] — Reason: The chain rule gives \( \frac{1}{y}\frac{dy}{dx} \) on the left; the product rule handles the two-factor expression on the right.
  5. Step 5: Substitute the known derivatives: We know \( \frac{d}{dx}(\sin x) = \cos x \) and \( \frac{d}{dx}(\ln x) = \frac{1}{x} \), so: \\ \[ \frac{1}{y}\frac{dy}{dx} = \cos x \cdot \ln x + \sin x \cdot \frac{1}{x} \] Simplifying the second term: \\ \[ \frac{1}{y}\frac{dy}{dx} = \cos x \\, \ln x + \frac{\sin x}{x} \] — Reason: Plugging in standard derivative results gives a clean expression for the right-hand side.
  6. Step 6: Isolate dy/dx by multiplying both sides by y: Multiply both sides by \( y \): \\ \[ \frac{dy}{dx} = y\left( \cos x \\, \ln x + \frac{\sin x}{x} \right) \] — Reason: We need \( \frac{dy}{dx} \) by itself, so multiplying by \( y \) clears the denominator on the left.
  7. Step 7: Replace y with the original function: Substitute back \( y = x^{\sin x} \): \\ \[ \frac{dy}{dx} = x^{\sin x}\left( \cos x \\, \ln x + \frac{\sin x}{x} \right) \] — Reason: The final answer must be expressed entirely in terms of \( x \), so we replace \( y \) with the original expression.

Final Answer

\[ \frac{dy}{dx} = x^{\sin x}\left( \cos x \, \ln x + \frac{\sin x}{x} \right) \]

Common Mistake

One common mistake: Attempting to apply the power rule directly and writing \( \frac{dy}{dx} = \sin x \cdot x^{\sin x - 1} \), which is wrong because the power rule only works when the exponent is a constant — here \( \sin x \) varies with \( x \), so the derivative of the exponent itself must also be accounted for through logarithmic differentiation.

✍️ Exam-ready Answer

Exam-ready Answer

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

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

➕ More Examples

More Examples

Example 1

Question: Differentiate \( y = x^{\cos x} \), where \( x > 0 \), with respect to \( x \).

Solution: We are given \( y = x^{\cos x} \). Since both the base and the exponent involve \( x \), we use logarithmic differentiation. Taking the natural logarithm on both sides: \[ \ln y = \cos x \cdot \ln x \] Differentiating both sides with respect to \( x \): \[ \frac{1}{y} \frac{dy}{dx} = \frac{d}{dx}(\cos x) \cdot \ln x + \cos x \cdot \frac{d}{dx}(\ln x) \] Applying the product rule on the right-hand side: \[ \frac{1}{y} \frac{dy}{dx} = (-\sin x)(\ln x) + \cos x \cdot \frac{1}{x} \] Multiplying both sides by \( y \): \[ \frac{dy}{dx} = y \left( -\sin x \ln x + \frac{\cos x}{x} \right) \] Substituting back \( y = x^{\cos x} \): \[ \frac{dy}{dx} = x^{\cos x} \left( \frac{\cos x}{x} - \sin x \ln x \right) \]

Answer: \( \dfrac{dy}{dx} = x^{\cos x} \left( \dfrac{\cos x}{x} - \sin x \ln x \right) \)

Example 2

Question: Differentiate \( y = (\tan x)^{x} \), where \( 0 < x < \dfrac{\pi}{2} \), with respect to \( x \).

Solution: We are given \( y = (\tan x)^{x} \). Since both the base and the exponent depend on \( x \), we use logarithmic differentiation. Taking the natural logarithm on both sides: \[ \ln y = x \cdot \ln(\tan x) \] Differentiating both sides with respect to \( x \): \[ \frac{1}{y} \frac{dy}{dx} = \frac{d}{dx}(x) \cdot \ln(\tan x) + x \cdot \frac{d}{dx}(\ln(\tan x)) \] Now, \( \dfrac{d}{dx}(\ln(\tan x)) = \dfrac{1}{\tan x} \cdot \sec^2 x = \dfrac{\sec^2 x}{\tan x} \). Substituting: \[ \frac{1}{y} \frac{dy}{dx} = 1 \cdot \ln(\tan x) + x \cdot \frac{\sec^2 x}{\tan x} \] Multiplying both sides by \( y \): \[ \frac{dy}{dx} = y \left( \ln(\tan x) + \frac{x \sec^2 x}{\tan x} \right) \] Substituting back \( y = (\tan x)^{x} \): \[ \frac{dy}{dx} = (\tan x)^{x} \left( \ln(\tan x) + \frac{x \sec^2 x}{\tan x} \right) \]

Answer: \( \dfrac{dy}{dx} = (\tan x)^{x} \left( \ln(\tan x) + \dfrac{x \sec^2 x}{\tan x} \right) \)

🎯 Try a Similar Question

Try a Similar Question

Question: Differentiate \( y = x^{\cos x} \), \( x > 0 \), with respect to \( x \).

Solution

  1. Step 1: Take the natural logarithm of both sides: Let \( y = x^{\cos x} \). Taking the natural logarithm on both sides: \[ \ln y = \cos x \cdot \ln x \]
  2. Step 2: Differentiate both sides with respect to x: Differentiating the left side: \[ \frac{d}{dx}(\ln y) = \frac{1}{y} \cdot \frac{dy}{dx} \] For the right side, apply the product rule to \( \cos x \cdot \ln x \): \[ \frac{d}{dx}(\cos x \cdot \ln x) = -\sin x \cdot \ln x + \cos x \cdot \frac{1}{x} \]
  3. Step 3: Combine both sides: Equating the derivatives of both sides: \[ \frac{1}{y} \cdot \frac{dy}{dx} = -\sin x \ln x + \frac{\cos x}{x} \]
  4. Step 4: Solve for dy/dx: Multiply both sides by \( y \): \[ \frac{dy}{dx} = y \left( -\sin x \ln x + \frac{\cos x}{x} \right) \] Substitute back \( y = x^{\cos x} \): \[ \frac{dy}{dx} = x^{\cos x} \left( -\sin x \ln x + \frac{\cos x}{x} \right) \]
  5. Step 5: Write the final answer: Therefore: \[ \frac{dy}{dx} = x^{\cos x} \left( \frac{\cos x}{x} - \sin x \ln x \right) \]

Answer: \[ \frac{dy}{dx} = x^{\cos x} \left( \frac{\cos x}{x} - \sin x \ln 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