SOLVER7 Study. Nothing Else.
Exercise 5.5 Q11

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

CBSE Class 12 Maths · Continuity and Differentiability

Solution

👶 Simple Explanation

Simple Explanation

Imagine you have two mystery boxes, each with a power that changes as you move. To find out how fast each box changes, you use a clever trick: take the logarithm, which is like unwrapping the box to see inside. This turns a tricky power problem into a simpler multiplication problem. After unwrapping both boxes and finding each rate of change, you simply add the two results together. That combined sum gives you the final answer for how fast the whole expression is changing.

Answer: \[ \frac{dy}{dx} = (x \cos x)^x\left[\ln(x \cos x) + 1 - x\tan x\right] + (x \sin x)^{1/x}\left[\frac{1}{x^2} + \frac{\cot x}{x} - \frac{\ln(x \sin x)}{x^2}\right]. \]

📖 Differentiating (x cos x)^x + (x sin x)^(1/x)

Detailed Explanation

When a function has a variable in both the base and the exponent, like \( (x \cos x)^x \), we cannot use the simple power rule or the exponential rule directly. Instead we use logarithmic differentiation: take the natural log of the function, use log properties to bring the exponent down, then differentiate both sides implicitly. Since the given expression is a sum of two such functions, we split it as \( y = u + v \) where \( u = (x \cos x)^x \) and \( v = (x \sin x)^{1/x} \), differentiate each separately, and add the results.

Formula Used

If \( u = f(x)^{g(x)} \), then \( \ln u = g(x)\ln f(x) \) and \( \dfrac{1}{u}\dfrac{du}{dx} = g'(x)\ln f(x) + g(x)\dfrac{f'(x)}{f(x)} \). Also \( \ln(ab) = \ln a + \ln b \) and product rule \( (fg)' = f'g + fg' \).

Solution

  1. Step 1: Let the whole function be \( y = (x \cos x)^x + (x \sin x)^{1/x} \). Split it into two parts: \( u = (x \cos x)^x \) and \( v = (x \sin x)^{1/x} \), so \( y = u + v \) and \( \dfrac{dy}{dx} = \dfrac{du}{dx} + \dfrac{dv}{dx} \).
  2. Step 2: Take logarithm of \( u \). Since \( u = (x \cos x)^x \), we get \( \ln u = x \ln(x \cos x) \). Using \( \ln(ab) = \ln a + \ln b \), \[ \ln u = x\left(\ln x + \ln \cos x\right). \]
  3. Step 3: Differentiate both sides with respect to \( x \). The left side gives \( \dfrac{1}{u}\dfrac{du}{dx} \). For the right side use the product rule on \( x \cdot (\ln x + \ln \cos x) \): \[ \frac{1}{u}\frac{du}{dx} = 1\cdot(\ln x + \ln \cos x) + x\left(\frac{1}{x} + \frac{-\sin x}{\cos x}\right). \]
  4. Step 4: Simplify the right side. Since \( x \cdot \dfrac{1}{x} = 1 \) and \( x \cdot \dfrac{-\sin x}{\cos x} = -x\tan x \), we get \[ \frac{1}{u}\frac{du}{dx} = \ln(x \cos x) + 1 - x\tan x. \] Therefore \[ \frac{du}{dx} = (x \cos x)^x\left[\ln(x \cos x) + 1 - x\tan x\right]. \]
  5. Step 5: Now take logarithm of \( v = (x \sin x)^{1/x} \). This gives \( \ln v = \dfrac{1}{x}\ln(x \sin x) \), that is \[ \ln v = \frac{1}{x}\left(\ln x + \ln \sin x\right). \]
  6. Step 6: Differentiate both sides. Use the product rule on \( \dfrac{1}{x}\cdot \ln(x \sin x) \), where \( \dfrac{d}{dx}\left(\dfrac{1}{x}\right) = -\dfrac{1}{x^2} \): \[ \frac{1}{v}\frac{dv}{dx} = -\frac{1}{x^2}\ln(x \sin x) + \frac{1}{x}\left(\frac{1}{x} + \frac{\cos x}{\sin x}\right). \]
  7. Step 7: Simplify. Note \( \dfrac{1}{x}\cdot\dfrac{1}{x} = \dfrac{1}{x^2} \) and \( \dfrac{1}{x}\cdot\dfrac{\cos x}{\sin x} = \dfrac{\cot x}{x} \). So \[ \frac{1}{v}\frac{dv}{dx} = -\frac{\ln(x \sin x)}{x^2} + \frac{1}{x^2} + \frac{\cot x}{x}. \] Hence \[ \frac{dv}{dx} = (x \sin x)^{1/x}\left[\frac{1}{x^2} + \frac{\cot x}{x} - \frac{\ln(x \sin x)}{x^2}\right]. \]
  8. Step 8: Add the two derivatives to get \( \dfrac{dy}{dx} = \dfrac{du}{dx} + \dfrac{dv}{dx} \).

Final Answer

\[ \frac{dy}{dx} = (x \cos x)^x\left[\ln(x \cos x) + 1 - x\tan x\right] + (x \sin x)^{1/x}\left[\frac{1}{x^2} + \frac{\cot x}{x} - \frac{\ln(x \sin x)}{x^2}\right]. \]

Common Mistake

A common mistake is trying to differentiate \( (x \cos x)^x \) using the power rule as \( x(x\cos x)^{x-1} \), or the exponential rule as \( (x\cos x)^x \ln(x\cos x) \). Both are wrong because the base AND the exponent contain \( x \); you must use logarithmic differentiation on each term separately.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Split the function into two manageable parts: Write the given function as \( y = u + v \) where \( u = (x\cos x)^x \) and \( v = (x\sin x)^{1/x} \). Then \( \dfrac{dy}{dx} = \dfrac{du}{dx} + \dfrac{dv}{dx} \). Reason: Each part has a variable in both base and exponent, so treating them separately avoids confusion and lets us apply logarithmic differentiation to each one independently.
  2. Step 2: Apply log differentiation to find du/dx: Take the natural log of \( u = (x\cos x)^x \) to get \( \ln u = x\ln(x\cos x) \). Using \( \ln(x\cos x) = \ln x + \ln\cos x \), write \[ \ln u = x(\ln x + \ln\cos x). \] Reason: The log rule brings the exponent \( x \) down in front, converting an awkward exponential form into a product that the product rule can handle.
  3. Step 3: Differentiate both sides for u and simplify: Differentiating \( \ln u = x(\ln x + \ln\cos x) \) with respect to \( x \) gives \[ \frac{1}{u}\frac{du}{dx} = (\ln x + \ln\cos x) + x\left(\frac{1}{x} + \frac{-\sin x}{\cos x}\right). \] Simplifying the right side: \( \ln x + \ln\cos x = \ln(x\cos x) \), and \( x\cdot\dfrac{1}{x} = 1 \), and \( x\cdot\dfrac{-\sin x}{\cos x} = -x\tan x \). So \[ \frac{1}{u}\frac{du}{dx} = \ln(x\cos x) + 1 - x\tan x. \] Multiplying both sides by \( u = (x\cos x)^x \): \[ \frac{du}{dx} = (x\cos x)^x\left[\ln(x\cos x) + 1 - x\tan x\right]. \] Reason: The left side differentiates via the chain rule on \( \ln u \); the right side uses the product rule along with standard derivatives of \( \ln x \) and \( \ln\cos x \).
  4. Step 4: Apply log differentiation to find dv/dx: Take the natural log of \( v = (x\sin x)^{1/x} \) to get \( \ln v = \dfrac{1}{x}\ln(x\sin x) \). Using \( \ln(x\sin x) = \ln x + \ln\sin x \), write \[ \ln v = \frac{\ln x + \ln\sin x}{x}. \] Reason: Bringing the exponent \( \dfrac{1}{x} \) in front converts the expression into a quotient, ready for the quotient rule.
  5. Step 5: Differentiate both sides for v and simplify: Differentiating \( \ln v = \dfrac{\ln x + \ln\sin x}{x} \) with respect to \( x \) using the quotient rule \( \left(\dfrac{p}{q}\right)' = \dfrac{p'q - pq'}{q^2} \) where \( p = \ln x + \ln\sin x \) and \( q = x \): the derivative of \( p \) is \( \dfrac{1}{x} + \dfrac{\cos x}{\sin x} = \dfrac{1}{x} + \cot x \), and \( q' = 1 \). So \[ \frac{1}{v}\frac{dv}{dx} = \frac{x\left(\dfrac{1}{x} + \cot x\right) - (\ln x + \ln\sin x)\cdot 1}{x^2}. \] Expanding the numerator: \( x \cdot \dfrac{1}{x} = 1 \) and \( x\cot x \) remains, giving \[ \frac{1}{v}\frac{dv}{dx} = \frac{1 + x\cot x - \ln(x\sin x)}{x^2}. \] This can be rewritten as \[ \frac{1}{v}\frac{dv}{dx} = \frac{1}{x^2} + \frac{\cot x}{x} - \frac{\ln(x\sin x)}{x^2}. \] Multiplying both sides by \( v = (x\sin x)^{1/x} \): \[ \frac{dv}{dx} = (x\sin x)^{1/x}\left[\frac{1}{x^2} + \frac{\cot x}{x} - \frac{\ln(x\sin x)}{x^2}\right]. \] Reason: Applying the quotient rule carefully to the right side, then regrouping using \( \ln x + \ln\sin x = \ln(x\sin x) \), keeps the expression compact and ready to combine.
  6. Step 6: Add both derivatives to obtain the final answer: Since \( \dfrac{dy}{dx} = \dfrac{du}{dx} + \dfrac{dv}{dx} \), combine the results from Steps 3 and 5: \[ \frac{dy}{dx} = (x\cos x)^x\left[\ln(x\cos x) + 1 - x\tan x\right] + (x\sin x)^{1/x}\left[\frac{1}{x^2} + \frac{\cot x}{x} - \frac{\ln(x\sin x)}{x^2}\right]. \] Reason: The original split \( y = u + v \) means the derivative is simply the sum of the two separate derivatives — no further simplification is needed.

Final Answer

\[ \frac{dy}{dx} = (x \cos x)^x\left[\ln(x \cos x) + 1 - x\tan x\right] + (x \sin x)^{1/x}\left[\frac{1}{x^2} + \frac{\cot x}{x} - \frac{\ln(x \sin x)}{x^2}\right]. \]

Common Mistake

One common mistake: Students forget to use the product rule when differentiating \( x(\ln x + \ln\cos x) \), or they apply the power rule directly to \( (x\cos x)^x \) as if the exponent were a constant — both errors lead to an incorrect derivative.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Split and set up logarithmic differentiation: Let \( u = (x\cos x)^x \) and \( v = (x\sin x)^{1/x} \), so \( \frac{dy}{dx} = \frac{du}{dx} + \frac{dv}{dx} \). Take logs: \( \ln u = x(\ln x + \ln\cos x) \) and \( \ln v = \frac{1}{x}(\ln x + \ln\sin x) \).
  2. Differentiate ln u: Differentiating \( \ln u = x\ln x + x\ln\cos x \) gives \( \frac{1}{u}\frac{du}{dx} = \ln x + 1 - x\tan x \), so \( \frac{du}{dx} = (x\cos x)^x\left[\ln(x\cos x) + 1 - x\tan x\right] \).
  3. Differentiate ln v: Differentiating \( \ln v = \frac{\ln x}{x} + \frac{\ln\sin x}{x} \) gives \( \frac{1}{v}\frac{dv}{dx} = \frac{1}{x^2} + \frac{\cot x}{x} - \frac{\ln(x\sin x)}{x^2} \), so \( \frac{dv}{dx} = (x\sin x)^{1/x}\left[\frac{1}{x^2} + \frac{\cot x}{x} - \frac{\ln(x\sin x)}{x^2}\right] \).

Answer: \[ \frac{dy}{dx} = (x \cos x)^x\left[\ln(x \cos x) + 1 - x\tan x\right] + (x \sin x)^{1/x}\left[\frac{1}{x^2} + \frac{\cot x}{x} - \frac{\ln(x \sin x)}{x^2}\right]. \]

➕ More Examples

More Examples

Example 1

Question: Differentiate \( y = (x \sin x)^x + (x \cos x)^{1/x} \) with respect to \( x \).

Solution: Let \( y = u + v \), where \( u = (x \sin x)^x \) and \( v = (x \cos x)^{1/x} \). Step 1: Differentiate \( u = (x \sin x)^x \). Taking the natural log of both sides: \[ \ln u = x \ln(x \sin x) \] Differentiating both sides with respect to \( x \): \[ \frac{1}{u}\frac{du}{dx} = \ln(x \sin x) + x \cdot \frac{\sin x + x \cos x}{x \sin x} \] Simplifying: \[ \frac{1}{u}\frac{du}{dx} = \ln(x \sin x) + \frac{\sin x + x \cos x}{\sin x} \] \[ \frac{1}{u}\frac{du}{dx} = \ln(x \sin x) + 1 + x\cot x \] Therefore: \[ \frac{du}{dx} = (x \sin x)^x \left[1 + x\cot x + \ln(x \sin x)\right] \] Step 2: Differentiate \( v = (x \cos x)^{1/x} \). Taking the natural log of both sides: \[ \ln v = \frac{1}{x}\ln(x \cos x) \] Differentiating both sides with respect to \( x \): \[ \frac{1}{v}\frac{dv}{dx} = -\frac{1}{x^2}\ln(x \cos x) + \frac{1}{x} \cdot \frac{\cos x - x\sin x}{x \cos x} \] \[ \frac{1}{v}\frac{dv}{dx} = -\frac{\ln(x \cos x)}{x^2} + \frac{\cos x - x\sin x}{x^2 \cos x} \] \[ \frac{1}{v}\frac{dv}{dx} = \frac{1}{x^2}\left[-\ln(x \cos x) + \frac{\cos x - x\sin x}{\cos x}\right] \] \[ \frac{1}{v}\frac{dv}{dx} = \frac{1}{x^2}\left[1 - x\tan x - \ln(x \cos x)\right] \] Therefore: \[ \frac{dv}{dx} = (x \cos x)^{1/x} \cdot \frac{1}{x^2}\left[1 - x\tan x - \ln(x \cos x)\right] \] Step 3: Combine the results. \[ \frac{dy}{dx} = (x \sin x)^x \left[1 + x\cot x + \ln(x \sin x)\right] + \frac{(x \cos x)^{1/x}}{x^2}\left[1 - x\tan x - \ln(x \cos x)\right] \]

Answer: \( \frac{dy}{dx} = (x \sin x)^x \left[1 + x\cot x + \ln(x \sin x)\right] + \frac{(x \cos x)^{1/x}}{x^2}\left[1 - x\tan x - \ln(x \cos x)\right] \)

Example 2

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

Solution: Let \( y = u + v \), where \( u = (\cos x)^{\sin x} \) and \( v = (\sin x)^{\cos x} \). Step 1: Differentiate \( u = (\cos x)^{\sin x} \). Taking the natural log of both sides: \[ \ln u = \sin x \cdot \ln(\cos x) \] Differentiating both sides with respect to \( x \): \[ \frac{1}{u}\frac{du}{dx} = \cos x \cdot \ln(\cos x) + \sin x \cdot \frac{-\sin x}{\cos x} \] \[ \frac{1}{u}\frac{du}{dx} = \cos x \cdot \ln(\cos x) - \tan x \cdot \sin x \] Therefore: \[ \frac{du}{dx} = (\cos x)^{\sin x}\left[\cos x \cdot \ln(\cos x) - \sin x \tan x\right] \] Step 2: Differentiate \( v = (\sin x)^{\cos x} \). Taking the natural log of both sides: \[ \ln v = \cos x \cdot \ln(\sin x) \] Differentiating both sides with respect to \( x \): \[ \frac{1}{v}\frac{dv}{dx} = -\sin x \cdot \ln(\sin x) + \cos x \cdot \frac{\cos x}{\sin x} \] \[ \frac{1}{v}\frac{dv}{dx} = -\sin x \cdot \ln(\sin x) + \cos x \cot x \] Therefore: \[ \frac{dv}{dx} = (\sin x)^{\cos x}\left[\cos x \cot x - \sin x \cdot \ln(\sin x)\right] \] Step 3: Combine the results. \[ \frac{dy}{dx} = (\cos x)^{\sin x}\left[\cos x \cdot \ln(\cos x) - \sin x \tan x\right] + (\sin x)^{\cos x}\left[\cos x \cot x - \sin x \cdot \ln(\sin x)\right] \]

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

🎯 Try a Similar Question

Try a Similar Question

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

Solution

  1. Split into two parts: Write \( y = P + Q \) where \( P = (x \sin x)^x \) and \( Q = (x \cos x)^{1/x} \). Then \(\frac{dy}{dx} = \frac{dP}{dx} + \frac{dQ}{dx}\).
  2. Differentiate P using logarithmic differentiation: Let \( P = (x \sin x)^x \). Taking natural log: \(\ln P = x \ln(x \sin x)\). Differentiating both sides with respect to \( x \): \[\frac{1}{P}\frac{dP}{dx} = \frac{d}{dx}\bigl[x \ln(x \sin x)\bigr]\] Using the product rule on the right side: \[\frac{d}{dx}\bigl[x \ln(x \sin x)\bigr] = 1 \cdot \ln(x \sin x) + x \cdot \frac{d}{dx}\ln(x \sin x)\] Now, \(\frac{d}{dx}\ln(x \sin x) = \frac{\sin x + x \cos x}{x \sin x} = \frac{1}{x} + \cot x\). Therefore: \[\frac{1}{P}\frac{dP}{dx} = \ln(x \sin x) + x\left(\frac{1}{x} + \cot x\right) = \ln(x \sin x) + 1 + x \cot x\] So: \[\frac{dP}{dx} = (x \sin x)^x \bigl[\ln(x \sin x) + 1 + x \cot x\bigr]\]
  3. Differentiate Q using logarithmic differentiation: Let \( Q = (x \cos x)^{1/x} \). Taking natural log: \(\ln Q = \frac{1}{x}\ln(x \cos x)\). Differentiating both sides with respect to \( x \): \[\frac{1}{Q}\frac{dQ}{dx} = \frac{d}{dx}\left[\frac{\ln(x \cos x)}{x}\right]\] Using the quotient rule: \[\frac{d}{dx}\left[\frac{\ln(x \cos x)}{x}\right] = \frac{x \cdot \frac{d}{dx}\ln(x \cos x) - \ln(x \cos x) \cdot 1}{x^2}\] Now, \(\frac{d}{dx}\ln(x \cos x) = \frac{\cos x - x \sin x}{x \cos x} = \frac{1}{x} - \tan x\). Substituting: \[\frac{1}{Q}\frac{dQ}{dx} = \frac{x\left(\frac{1}{x} - \tan x\right) - \ln(x \cos x)}{x^2} = \frac{1 - x\tan x - \ln(x \cos x)}{x^2}\] So: \[\frac{dQ}{dx} = (x \cos x)^{1/x}\left[\frac{1 - x\tan x - \ln(x \cos x)}{x^2}\right]\]
  4. Combine to get the final answer: Adding the two derivatives: \[\frac{dy}{dx} = (x \sin x)^x\bigl[\ln(x \sin x) + 1 + x\cot x\bigr] + (x \cos x)^{1/x}\left[\frac{1 - x\tan x - \ln(x \cos x)}{x^2}\right]\]

Answer: \[\frac{dy}{dx} = (x \sin x)^x\bigl[\ln(x \sin x) + 1 + x\cot x\bigr] + (x \cos x)^{1/x}\left[\frac{1 - x\tan x - \ln(x \cos x)}{x^2}\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