SOLVER7 Study. Nothing Else.
Chapter 12 Miscellaneous Examples Q20(ii)

Find the derivative of \(f(x)\) from the first principle, where \(f(x)\) is \(x\ sin\ x\)

CBSE Class 11 Maths · Limits and Derivatives

Solution

👶 Simple Explanation

Simple Explanation

Imagine you are watching a car speed up on a road. The derivative tells you exactly how fast something is changing at any single moment. Here, our function \( f(x) = x \sin x \) is like two things working together — a stretching part and a wavy part. We carefully zoom in super close to see how the whole thing changes. After all the careful zooming, the answer turns out to be \( \sin x + x \cos x \).

Answer: \[f'(x) = \sin x + x \cos x\]

📖 Derivative of x sin x from First Principles

Detailed Explanation

The derivative of a function measures its instantaneous rate of change. From first principles, we compute it directly using the definition \[f'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}\] Here \( f(x) = x \sin x \), a product of two functions. To solve this we form the difference quotient, expand it, and simplify using algebra and trigonometry. We rely on two standard limits taught in Class 11: \[\lim_{h \to 0} \frac{\sin h}{h} = 1\] and \[\lim_{h \to 0} \frac{\cos h - 1}{h} = 0\] These are the tools that let us evaluate the limit without calculus shortcuts like the product rule.

Formula Used

First principle: \[f'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}\] with the standard limits \( \lim_{h \to 0} \frac{\sin h}{h} = 1 \) and \( \lim_{h \to 0} \frac{\cos h - 1}{h} = 0 \).

Solution

  1. Step 1: Write the function and set up the definition. We have \( f(x) = x \sin x \), so \( f(x + h) = (x + h)\sin(x + h) \). The derivative is \[f'(x) = \lim_{h \to 0} \frac{(x + h)\sin(x + h) - x \sin x}{h}\]
  2. Step 2: Expand \( \sin(x + h) \) using the sum formula \[\sin(x + h) = \sin x \cos h + \cos x \sin h\] This breaks the awkward \( \sin(x+h) \) into terms of \( \sin x \), \( \cos x \), \( \sin h \), \( \cos h \), which we can handle with known limits.
  3. Step 3: Substitute the expansion into the numerator: \[(x + h)(\sin x \cos h + \cos x \sin h) - x \sin x\] Expand the product: \[x \sin x \cos h + x \cos x \sin h + h \sin x \cos h + h \cos x \sin h - x \sin x\]
  4. Step 4: Group the terms carefully so each piece matches a standard limit. Combine \( x \sin x \cos h - x \sin x = x \sin x (\cos h - 1) \). The numerator becomes \[x \sin x (\cos h - 1) + x \cos x \sin h + h \sin x \cos h + h \cos x \sin h\]
  5. Step 5: Divide each term by \( h \) and write the limit as a sum: \[f'(x) = \lim_{h \to 0} \left[ x \sin x \cdot \frac{\cos h - 1}{h} + x \cos x \cdot \frac{\sin h}{h} + \sin x \cos h + \cos x \sin h \right]\]
  6. Step 6: Apply the standard limits as \( h \to 0 \). We use \( \frac{\cos h - 1}{h} \to 0 \), \( \frac{\sin h}{h} \to 1 \), \( \cos h \to 1 \), and \( \sin h \to 0 \). Substituting: \[f'(x) = x \sin x \cdot 0 + x \cos x \cdot 1 + \sin x \cdot 1 + \cos x \cdot 0\]
  7. Step 7: Simplify to get the result. The first and last terms vanish, leaving \[f'(x) = x \cos x + \sin x\]

Final Answer

\[f'(x) = \sin x + x \cos x\]

Common Mistake

A common mistake is forgetting to expand \( \sin(x + h) \) with the sum formula and instead writing \( \sin(x + h) = \sin x + \sin h \), which is wrong. Another frequent error is using \( \frac{\cos h - 1}{h} \to 1 \); its correct limit is \( 0 \).

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Identify the function and write \( f(x+h) \). Since \( f(x) = x \sin x \), replacing \( x \) with \( x+h \) gives \( f(x+h) = (x+h)\sin(x+h) \). Now set up the limit: \[f'(x) = \lim_{h \to 0} \frac{(x+h)\sin(x+h) - x\sin x}{h}\] — Reason: This is the direct application of the first-principles definition; writing \( f(x+h) \) explicitly is the essential first move.
  2. Step 2: Expand \( \sin(x+h) \) using the angle-addition identity: \[\sin(x+h) = \sin x \cos h + \cos x \sin h\] — Reason: The compound angle \( \sin(x+h) \) cannot be split directly; this identity breaks it into separate \( x \)-parts and \( h \)-parts so that the standard limits can be applied later.
  3. Step 3: Substitute the expanded form into the numerator and distribute \( (x+h) \): \[(x+h)(\sin x \cos h + \cos x \sin h) - x\sin x\] which expands to \[x\sin x \cos h + x\cos x \sin h + h\sin x \cos h + h\cos x \sin h - x\sin x\] — Reason: Distributing fully separates every term so that like pieces can be grouped in the next step.
  4. Step 4: Rearrange by grouping the terms that contain \( x\sin x \): \[x\sin x(\cos h - 1) + x\cos x \sin h + h\sin x \cos h + h\cos x \sin h\] — Reason: Pulling out \( x\sin x \) from the first and last terms of the expansion creates the combination \( (\cos h - 1) \), which matches one of the two standard limits we need.
  5. Step 5: Divide every grouped term by \( h \) to form the difference quotient: \[\frac{x\sin x(\cos h - 1)}{h} + \frac{x\cos x \sin h}{h} + \sin x \cos h + \cos x \sin h\] — Reason: Dividing by \( h \) prepares each piece for the limit; terms with \( h \) in the numerator cancel cleanly, and the remaining fractions match the standard limit forms.
  6. Step 6: Apply the limits as \( h \to 0 \), using \( \lim_{h \to 0} \frac{\cos h - 1}{h} = 0 \) and \( \lim_{h \to 0} \frac{\sin h}{h} = 1 \), and noting that \( \cos h \to 1 \) and \( \sin h \to 0 \): the expression becomes \[x\sin x \cdot 0 + x\cos x \cdot 1 + \sin x \cdot 1 + \cos x \cdot 0\] which simplifies to \[x\cos x + \sin x\] — Reason: Substituting the known standard limits evaluates the expression exactly; each piece has a definite finite value, so the overall limit exists.

Final Answer

\[f'(x) = \sin x + x \cos x\]

Common Mistake

One common mistake: forgetting to expand \( (x+h)\sin(x+h) \) fully before grouping — students sometimes drop the cross-term \( h\sin x \cos h \) or \( h\cos x \sin h \), which leads to a wrong or incomplete answer.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Set up: \[f'(x) = \lim_{h \to 0} \frac{(x+h)\sin(x+h) - x\sin x}{h}\]
  2. Step 2: Expand using \( \sin(x+h) = \sin x \cos h + \cos x \sin h \): \[f'(x) = \lim_{h \to 0} \frac{x\sin x \cos h + x\cos x \sin h + h\sin x \cos h + h\cos x \sin h - x\sin x}{h}\]
  3. Step 3: Regroup terms: \[f'(x) = \lim_{h \to 0} \left[ x\sin x \cdot \frac{\cos h - 1}{h} + x\cos x \cdot \frac{\sin h}{h} + \sin x \cos h + \cos x \sin h \right]\]
  4. Step 4: Apply \( \lim_{h \to 0} \frac{\cos h - 1}{h} = 0 \) and \( \lim_{h \to 0} \frac{\sin h}{h} = 1 \): \[f'(x) = x\sin x \cdot 0 + x\cos x \cdot 1 + \sin x \cdot 1 + \cos x \cdot 0 = \sin x + x\cos x\]

Answer: \[f'(x) = \sin x + x \cos x\]

➕ More Examples

More Examples

Example 1

Question: Find the derivative of \( f(x) = x \cos x \) from first principles.

Solution: We use the first-principles definition: \[f'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}\] Here \( f(x) = x \cos x \), so \( f(x + h) = (x + h)\cos(x + h) \). Thus: \[f'(x) = \lim_{h \to 0} \frac{(x + h)\cos(x + h) - x\cos x}{h}\] Expand the numerator by writing \( (x+h)\cos(x+h) = x\cos(x+h) + h\cos(x+h) \): \[f'(x) = \lim_{h \to 0} \frac{x\cos(x+h) + h\cos(x+h) - x\cos x}{h}\] Separate into two fractions: \[f'(x) = \lim_{h \to 0} \frac{x\left[\cos(x+h) - \cos x\right]}{h} + \lim_{h \to 0} \cos(x+h)\] For the second limit, as \( h \to 0 \), \( \cos(x+h) \to \cos x \). For the first limit, apply the cosine difference formula: \[\cos(x+h) - \cos x = -2\sin\left(x + \frac{h}{2}\right)\sin\left(\frac{h}{2}\right)\] So the first part becomes: \[x \cdot \lim_{h \to 0} \frac{-2\sin\left(x + \frac{h}{2}\right)\sin\left(\frac{h}{2}\right)}{h}\] Write \( \frac{\sin(h/2)}{h} = \frac{1}{2} \cdot \frac{\sin(h/2)}{h/2} \). As \( h \to 0 \), \( \frac{\sin(h/2)}{h/2} \to 1 \) and \( \sin\left(x + \frac{h}{2}\right) \to \sin x \): \[x \cdot (-2) \cdot \sin x \cdot \frac{1}{2} \cdot 1 = -x\sin x\] Combining both parts: \[f'(x) = -x\sin x + \cos x\]

Answer: \( f'(x) = \cos x - x\sin x \)

Example 2

Question: Find the derivative of \( f(x) = x^2 \sin x \) from first principles.

Solution: We use the first-principles definition: \[f'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}\] Here \( f(x) = x^2 \sin x \), so \( f(x+h) = (x+h)^2 \sin(x+h) \). Thus: \[f'(x) = \lim_{h \to 0} \frac{(x+h)^2 \sin(x+h) - x^2 \sin x}{h}\] Add and subtract \( x^2 \sin(x+h) \) in the numerator: \[f'(x) = \lim_{h \to 0} \frac{(x+h)^2 \sin(x+h) - x^2 \sin(x+h) + x^2 \sin(x+h) - x^2 \sin x}{h}\] Group terms: \[f'(x) = \lim_{h \to 0} \frac{\left[(x+h)^2 - x^2\right]\sin(x+h)}{h} + \lim_{h \to 0} \frac{x^2\left[\sin(x+h) - \sin x\right]}{h}\] For the first limit, expand \( (x+h)^2 - x^2 = 2xh + h^2 \): \[\lim_{h \to 0} \frac{(2xh + h^2)\sin(x+h)}{h} = \lim_{h \to 0} (2x + h)\sin(x+h) = 2x\sin x\] For the second limit, apply the sine difference formula: \[\sin(x+h) - \sin x = 2\cos\left(x + \frac{h}{2}\right)\sin\left(\frac{h}{2}\right)\] So the second part becomes: \[x^2 \cdot \lim_{h \to 0} \frac{2\cos\left(x + \frac{h}{2}\right)\sin\left(\frac{h}{2}\right)}{h}\] Write \( \frac{\sin(h/2)}{h} = \frac{1}{2} \cdot \frac{\sin(h/2)}{h/2} \). As \( h \to 0 \), \( \frac{\sin(h/2)}{h/2} \to 1 \) and \( \cos\left(x + \frac{h}{2}\right) \to \cos x \): \[x^2 \cdot 2 \cdot \cos x \cdot \frac{1}{2} \cdot 1 = x^2 \cos x\] Combining both parts: \[f'(x) = 2x\sin x + x^2 \cos x\]

Answer: \( f'(x) = 2x\sin x + x^2 \cos x \)

🎯 Try a Similar Question

Try a Similar Question

Question: Find the derivative of \( f(x) = x \cos x \) from first principles.

Solution

  1. Step 1: Write the first principles definition: By definition, the derivative from first principles is: \[f'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}\] Here, \( f(x) = x \cos x \), so \( f(x + h) = (x + h)\cos(x + h) \).
  2. Step 2: Substitute into the definition: Substituting, we get: \[f'(x) = \lim_{h \to 0} \frac{(x + h)\cos(x + h) - x\cos x}{h}\]
  3. Step 3: Expand the numerator: Rewrite the numerator by adding and subtracting \( x\cos(x+h) \): \[(x + h)\cos(x + h) - x\cos x\] \[= x\cos(x + h) + h\cos(x + h) - x\cos x\] \[= x\left[\cos(x + h) - \cos x\right] + h\cos(x + h)\]
  4. Step 4: Split the limit: Dividing by \( h \) and splitting into two limits: \[f'(x) = \lim_{h \to 0} \frac{x\left[\cos(x + h) - \cos x\right]}{h} + \lim_{h \to 0} \cos(x + h)\]
  5. Step 5: Apply the cosine difference formula: Use the identity \( \cos(x + h) - \cos x = -2\sin\left(x + \frac{h}{2}\right)\sin\left(\frac{h}{2}\right) \): \[\lim_{h \to 0} \frac{x\left[\cos(x + h) - \cos x\right]}{h} = \lim_{h \to 0} \frac{-2x\sin\left(x + \frac{h}{2}\right)\sin\left(\frac{h}{2}\right)}{h}\] Rewrite using \( \frac{\sin(h/2)}{h} = \frac{1}{2} \cdot \frac{\sin(h/2)}{h/2} \): \[= \lim_{h \to 0} \left(-x\sin\left(x + \frac{h}{2}\right) \cdot \frac{\sin(h/2)}{h/2}\right)\]
  6. Step 6: Evaluate the limit using standard result: Using \( \lim_{h \to 0} \frac{\sin(h/2)}{h/2} = 1 \) and \( \lim_{h \to 0} \sin\left(x + \frac{h}{2}\right) = \sin x \): \[\lim_{h \to 0} \frac{x\left[\cos(x + h) - \cos x\right]}{h} = -x \sin x\] For the second part, \( \lim_{h \to 0} \cos(x + h) = \cos x \).
  7. Step 7: Combine both parts: Adding both parts: \[f'(x) = -x\sin x + \cos x\] This can also be written as: \[f'(x) = \cos x - x\sin x\]

Answer: \[f'(x) = \cos x - x\sin x\]

Everything you get with Solver7

More questions in Limits and Derivatives