SOLVER7 Study. Nothing Else.
Exercise 5.5 Q10

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

CBSE Class 12 Maths · Continuity and Differentiability

Solution

👶 Simple Explanation

Simple Explanation

Imagine you have two different jars and you want to find how fast each jar's contents are changing. One jar has a tricky label where the power itself keeps changing, like a shape-shifting exponent. To handle that jar, we use a clever trick: take the logarithm to bring the exponent down to a normal level. The other jar is a simple fraction, handled by a straightforward division rule. Add both results together and you get the final answer.

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

📖 Differentiating x^(x cos x) + (x^2+1)/(x^2-1)

Detailed Explanation

The given function has two parts joined by a plus sign, so we differentiate each part separately and add the results. The first part \( x^{x\cos x} \) has a variable in both the base and the exponent, so ordinary power rule and exponential rule do not apply directly. We use logarithmic differentiation: take the natural logarithm of both sides, use the log property \( \log(a^b) = b\log a \), and then differentiate implicitly. The second part \( \dfrac{x^2+1}{x^2-1} \) is a quotient of two polynomials, so we apply the quotient rule.

Formula Used

Logarithmic differentiation: if \( u = f(x)^{g(x)} \), then \( \dfrac{1}{u}\dfrac{du}{dx} = \dfrac{d}{dx}\big(g(x)\log f(x)\big) \). Quotient rule: \( \dfrac{d}{dx}\left(\dfrac{p}{q}\right) = \dfrac{p'q - pq'}{q^2} \). Product rule: \( (fg)' = f'g + fg' \).

Solution

  1. Step 1: Split the function. Let \( y = u + v \) where \( u = x^{x\cos x} \) and \( v = \dfrac{x^2+1}{x^2-1} \). Then \( \dfrac{dy}{dx} = \dfrac{du}{dx} + \dfrac{dv}{dx} \).
  2. Step 2: Take logs on the first part. From \( u = x^{x\cos x} \), take natural log of both sides: \[ \log u = x\cos x \cdot \log x \] This turns the awkward power into a product, which we can differentiate.
  3. Step 3: Differentiate both sides with respect to \( x \). The left side gives \( \dfrac{1}{u}\dfrac{du}{dx} \). The right side \( x\cos x \cdot \log x \) is a product of three factors, so we apply the product rule: \[ \frac{d}{dx}\big(x\cos x\log x\big) = \cos x\log x + x(-\sin x)\log x + x\cos x\cdot\frac{1}{x} \] which simplifies to \[ \cos x\log x - x\sin x\log x + \cos x. \]
  4. Step 4: Solve for \( \dfrac{du}{dx} \) by multiplying by \( u \), and substitute back \( u = x^{x\cos x} \): \[ \frac{du}{dx} = x^{x\cos x}\left(\cos x\log x - x\sin x\log x + \cos x\right). \]
  5. Step 5: Differentiate the second part using the quotient rule. Here \( p = x^2+1 \) so \( p' = 2x \), and \( q = x^2-1 \) so \( q' = 2x \). \[ \frac{dv}{dx} = \frac{(2x)(x^2-1) - (x^2+1)(2x)}{(x^2-1)^2}. \]
  6. Step 6: Simplify the numerator: \[ 2x(x^2-1) - 2x(x^2+1) = 2x\big[(x^2-1)-(x^2+1)\big] = 2x(-2) = -4x. \] So \[ \frac{dv}{dx} = \frac{-4x}{(x^2-1)^2}. \]
  7. Step 7: Add the two derivatives to get the final result for \( \dfrac{dy}{dx} \).

Final Answer

\[ \frac{dy}{dx} = x^{x\cos x}\left(\cos x\log x - x\sin x\log x + \cos x\right) - \frac{4x}{(x^2-1)^2}. \]

Common Mistake

A common mistake is trying to use the power rule \( \frac{d}{dx}x^n = nx^{n-1} \) directly on \( x^{x\cos x} \). This is wrong because the exponent is not a constant. Whenever the exponent contains \( x \), you must use logarithmic differentiation, not the ordinary power rule.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Split into two simpler sub-problems: Write \( y = u + v \) where \( u = x^{x\cos x} \) and \( v = \dfrac{x^2+1}{x^2-1} \), so that \( \dfrac{dy}{dx} = \dfrac{du}{dx} + \dfrac{dv}{dx} \). — Reason: Differentiating each part separately keeps the work organised and lets us choose the best method for each term.
  2. Step 2: Take the natural logarithm of u: Starting from \( u = x^{x\cos x} \), take \( \log \) of both sides to get \( \log u = x\cos x \cdot \log x \). — Reason: The standard power and exponential rules cannot handle a variable in both the base and the exponent simultaneously; taking the log converts the exponent into a multiplied factor, which we can differentiate using the product rule.
  3. Step 3: Differentiate both sides of log u with respect to x: The left side differentiates as \( \dfrac{1}{u}\dfrac{du}{dx} \) by the chain rule. The right side \( x\cos x \cdot \log x \) is a product of three functions, so we apply the product rule twice. Treating \( (x\cos x) \) as one factor and \( \log x \) as the other: \[ \frac{d}{dx}\bigl(x\cos x \cdot \log x\bigr) = \frac{d}{dx}(x\cos x)\cdot\log x + x\cos x\cdot\frac{1}{x} \] For \( \dfrac{d}{dx}(x\cos x) \), apply the product rule again: \( \cos x + x(-\sin x) = \cos x - x\sin x \). Substituting back: \[ \frac{1}{u}\frac{du}{dx} = (\cos x - x\sin x)\log x + \cos x \] — Reason: Implicit differentiation on the left gives a manageable expression for \( \dfrac{du}{dx} \), and the product rule handles the three-factor product on the right.
  4. Step 4: Solve for du/dx: Multiply both sides by \( u = x^{x\cos x} \): \[ \frac{du}{dx} = x^{x\cos x}\bigl(\cos x\log x - x\sin x\log x + \cos x\bigr) \] — Reason: We replace \( u \) with its original expression to write the derivative purely in terms of \( x \).
  5. Step 5: Differentiate v using the quotient rule: Here \( v = \dfrac{x^2+1}{x^2-1} \). Let \( p = x^2+1 \) and \( q = x^2-1 \), so \( p' = 2x \) and \( q' = 2x \). Applying the quotient rule: \[ \frac{dv}{dx} = \frac{p'q - pq'}{q^2} = \frac{2x(x^2-1) - (x^2+1)(2x)}{(x^2-1)^2} \] — Reason: The quotient rule is the standard tool for differentiating a ratio of two expressions.
  6. Step 6: Simplify dv/dx: Expand the numerator: \( 2x(x^2-1) - 2x(x^2+1) = 2x^3 - 2x - 2x^3 - 2x = -4x \). Therefore: \[ \frac{dv}{dx} = \frac{-4x}{(x^2-1)^2} \] — Reason: Collecting like terms in the numerator gives a clean, simplified result.
  7. Step 7: Combine both derivatives: Adding the two results from Step 4 and Step 6: \[ \frac{dy}{dx} = \frac{du}{dx} + \frac{dv}{dx} = x^{x\cos x}\bigl(\cos x\log x - x\sin x\log x + \cos x\bigr) + \frac{-4x}{(x^2-1)^2} \] — Reason: Since \( y = u + v \), the total derivative is simply the sum of the individual derivatives.

Final Answer

\[ \frac{dy}{dx} = x^{x\cos x}\left(\cos x\log x - x\sin x\log x + \cos x\right) - \frac{4x}{(x^2-1)^2}. \]

Common Mistake

One common mistake: When differentiating \( x\cos x \cdot \log x \) in Step 3, students often forget to apply the product rule to \( x\cos x \) itself (treating it as a single block without differentiating it), leading to a missing \( -x\sin x\log x \) term in the final answer.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Let \( u = x^{x\cos x} \) and \( v = \dfrac{x^2+1}{x^2-1} \), so \( \dfrac{dy}{dx} = \dfrac{du}{dx} + \dfrac{dv}{dx} \).
  2. Step 2: For \( u \): take log, \( \log u = x\cos x \cdot \log x \), differentiate: \(\dfrac{1}{u}\dfrac{du}{dx} = \cos x \log x + x(-\sin x)\log x + x\cos x \cdot \dfrac{1}{x} \), giving \(\dfrac{du}{dx} = x^{x\cos x}\left(\cos x\log x - x\sin x\log x + \cos x\right)\).
  3. Step 3: For \( v \): by the quotient rule, \(\dfrac{dv}{dx} = \dfrac{2x(x^2-1) - (x^2+1)(2x)}{(x^2-1)^2} = \dfrac{2x^3 - 2x - 2x^3 - 2x}{(x^2-1)^2} = \dfrac{-4x}{(x^2-1)^2}\).

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

➕ More Examples

More Examples

Example 1

Question: Differentiate the function with respect to \( x \): \[ y = x^{x \sin x} + \frac{x^2 - 1}{x^2 + 4} \]

Solution: Let \( y = u + v \), where \( u = x^{x \sin x} \) and \( v = \dfrac{x^2 - 1}{x^2 + 4} \). Step 1: Differentiate \( u = x^{x \sin x} \) using logarithmic differentiation. Taking natural log on both sides: \[ \ln u = x \sin x \cdot \ln x \] Differentiating both sides with respect to \( x \): \[ \frac{1}{u} \frac{du}{dx} = \frac{d}{dx}(x \sin x) \cdot \ln x + x \sin x \cdot \frac{d}{dx}(\ln x) \] Now, \( \frac{d}{dx}(x \sin x) = \sin x + x \cos x \) and \( \frac{d}{dx}(\ln x) = \frac{1}{x} \). Substituting: \[ \frac{1}{u} \frac{du}{dx} = (\sin x + x \cos x) \ln x + x \sin x \cdot \frac{1}{x} \] \[ \frac{1}{u} \frac{du}{dx} = (\sin x + x \cos x) \ln x + \sin x \] Therefore: \[ \frac{du}{dx} = x^{x \sin x} \left[ (\sin x + x \cos x) \ln x + \sin x \right] \] Step 2: Differentiate \( v = \dfrac{x^2 - 1}{x^2 + 4} \) using the quotient rule. Let \( p = x^2 - 1 \) and \( q = x^2 + 4 \), so \( p' = 2x \) and \( q' = 2x \). \[ \frac{dv}{dx} = \frac{p'q - pq'}{q^2} = \frac{2x(x^2 + 4) - (x^2 - 1)(2x)}{(x^2 + 4)^2} \] \[ = \frac{2x\left[(x^2 + 4) - (x^2 - 1)\right]}{(x^2 + 4)^2} = \frac{2x(5)}{(x^2 + 4)^2} = \frac{10x}{(x^2 + 4)^2} \] Step 3: Combine the results. \[ \frac{dy}{dx} = x^{x \sin x} \left[ (\sin x + x \cos x) \ln x + \sin x \right] + \frac{10x}{(x^2 + 4)^2} \]

Answer: \( \dfrac{dy}{dx} = x^{x \sin x} \left[ (\sin x + x \cos x) \ln x + \sin x \right] + \dfrac{10x}{(x^2 + 4)^2} \)

Example 2

Question: Differentiate the function with respect to \( x \): \[ y = (\sin x)^{x} + \frac{3x^2 + 2}{x^2 - 5} \]

Solution: Let \( y = u + v \), where \( u = (\sin x)^{x} \) and \( v = \dfrac{3x^2 + 2}{x^2 - 5} \). Step 1: Differentiate \( u = (\sin x)^{x} \) using logarithmic differentiation. Taking natural log on both sides: \[ \ln u = x \ln(\sin x) \] Differentiating both sides with respect to \( x \): \[ \frac{1}{u} \frac{du}{dx} = \frac{d}{dx}(x) \cdot \ln(\sin x) + x \cdot \frac{d}{dx}\left(\ln(\sin x)\right) \] Now, \( \frac{d}{dx}(x) = 1 \) and \( \frac{d}{dx}(\ln(\sin x)) = \dfrac{\cos x}{\sin x} = \cot x \). Substituting: \[ \frac{1}{u} \frac{du}{dx} = \ln(\sin x) + x \cot x \] Therefore: \[ \frac{du}{dx} = (\sin x)^{x} \left[ \ln(\sin x) + x \cot x \right] \] Step 2: Differentiate \( v = \dfrac{3x^2 + 2}{x^2 - 5} \) using the quotient rule. Let \( p = 3x^2 + 2 \) and \( q = x^2 - 5 \), so \( p' = 6x \) and \( q' = 2x \). \[ \frac{dv}{dx} = \frac{p'q - pq'}{q^2} = \frac{6x(x^2 - 5) - (3x^2 + 2)(2x)}{(x^2 - 5)^2} \] Expanding the numerator: \[ = \frac{6x^3 - 30x - 6x^3 - 4x}{(x^2 - 5)^2} = \frac{-34x}{(x^2 - 5)^2} \] Step 3: Combine the results. \[ \frac{dy}{dx} = (\sin x)^{x} \left[ \ln(\sin x) + x \cot x \right] + \frac{-34x}{(x^2 - 5)^2} \] \[ \frac{dy}{dx} = (\sin x)^{x} \left[ \ln(\sin x) + x \cot x \right] - \frac{34x}{(x^2 - 5)^2} \]

Answer: \( \dfrac{dy}{dx} = (\sin x)^{x} \left[ \ln(\sin x) + x \cot x \right] - \dfrac{34x}{(x^2 - 5)^2} \)

🎯 Try a Similar Question

Try a Similar Question

Question: Differentiate the following function with respect to \( x \): \[ y = x^{x \sin x} + \frac{x^2 + 3}{x^2 - 3} \]

Solution

  1. Step 1: Split into two parts: Let \( y = u + v \) where \( u = x^{x \sin x} \) and \( v = \frac{x^2 + 3}{x^2 - 3} \). Then \( \frac{dy}{dx} = \frac{du}{dx} + \frac{dv}{dx} \).
  2. Step 2: Differentiate u = x^{x sin x} using logarithmic differentiation: Take the natural log of both sides: \[ \log u = x \sin x \cdot \log x \] Differentiate both sides with respect to \( x \): \[ \frac{1}{u} \frac{du}{dx} = \frac{d}{dx}\left( x \sin x \cdot \log x \right) \] Apply the product rule to \( x \sin x \cdot \log x \). Treating it as a product of \( x \sin x \) and \( \log x \): \[ \frac{d}{dx}\left( x \sin x \cdot \log x \right) = \frac{d}{dx}(x \sin x) \cdot \log x + x \sin x \cdot \frac{1}{x} \] Now \( \frac{d}{dx}(x \sin x) = \sin x + x \cos x \), so: \[ \frac{1}{u} \frac{du}{dx} = (\sin x + x \cos x)\log x + \sin x \]
  3. Step 3: Solve for du/dx: Multiply both sides by \( u = x^{x \sin x} \): \[ \frac{du}{dx} = x^{x \sin x}\left( \sin x \log x + x \cos x \log x + \sin x \right) \]
  4. Step 4: Differentiate v = (x^2 + 3)/(x^2 - 3) using the quotient rule: Using the quotient rule with \( f = x^2 + 3 \) and \( g = x^2 - 3 \): \[ \frac{dv}{dx} = \frac{(2x)(x^2 - 3) - (x^2 + 3)(2x)}{(x^2 - 3)^2} \] Simplify the numerator: \[ 2x(x^2 - 3) - 2x(x^2 + 3) = 2x\left[(x^2 - 3) - (x^2 + 3)\right] = 2x(-6) = -12x \] So: \[ \frac{dv}{dx} = \frac{-12x}{(x^2 - 3)^2} \]
  5. Step 5: Combine both parts: Adding the two derivatives: \[ \frac{dy}{dx} = x^{x \sin x}\left( \sin x \log x + x \cos x \log x + \sin x \right) - \frac{12x}{(x^2 - 3)^2} \]

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

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