Skip to content
Miscellaneous Examples · Example 20

Q.Find the derivative of f(x)f(x) from the first principle, where f(x)f(x) is

(i) sin⁡x+cos⁡x\sin x + \cos x
(ii) xsin⁡xx\sin x
Telangana TsbieTextbookSubjective· 3mImportance★★★★★est
36% · 63/175 Questions
✓ Free question

Using the first-principle definition f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x)=\lim_{h\to 0}\dfrac{f(x+h)-f(x)}{h}: (i) ddx(sin⁡x+cos⁡x)=cos⁡x−sin⁡x\dfrac{d}{dx}(\sin x+\cos x)=\cos x-\sin x; (ii) ddx(xsin⁡x)=sin⁡x+xcos⁡x\dfrac{d}{dx}(x\sin x)=\sin x+x\cos x.

The first-principle (ab initio) method is the definition of the derivative — the limiting slope of the secant as h→0h\to 0:

f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}

Both parts use the standard trigonometric limits:

lim⁡h→0sin⁡hh=1andlim⁡h→0cos⁡h−1h=0.\lim_{h \to 0} \frac{\sin h}{h} = 1 \quad\text{and}\quad \lim_{h \to 0} \frac{\cos h - 1}{h} = 0.


(i) f(x)=sin⁡x+cos⁡xf(x) = \sin x + \cos x

Step 1 — Difference quotient.

f(x+h)−f(x)h=[sin⁡(x+h)+cos⁡(x+h)]−[sin⁡x+cos⁡x]h\frac{f(x+h)-f(x)}{h} = \frac{[\sin(x+h)+\cos(x+h)] - [\sin x+\cos x]}{h}

Step 2 — Expand with the addition formulas. Using sin⁡(x+h)=sin⁡xcos⁡h+cos⁡xsin⁡h\sin(x+h)=\sin x\cos h+\cos x\sin h and cos⁡(x+h)=cos⁡xcos⁡h−sin⁡xsin⁡h\cos(x+h)=\cos x\cos h-\sin x\sin h, the numerator becomes

sin⁡x(cos⁡h−1)+cos⁡xsin⁡h+cos⁡x(cos⁡h−1)−sin⁡xsin⁡h.\sin x(\cos h-1)+\cos x\sin h+\cos x(\cos h-1)-\sin x\sin h.

Step 3 — Group by the standard limit forms.

sin⁡x⋅cos⁡h−1h−sin⁡x⋅sin⁡hh+cos⁡x⋅sin⁡hh+cos⁡x⋅cos⁡h−1h\sin x\cdot\frac{\cos h-1}{h}-\sin x\cdot\frac{\sin h}{h}+\cos x\cdot\frac{\sin h}{h}+\cos x\cdot\frac{\cos h-1}{h}

Step 4 — Let h→0h\to 0. With sin⁡hh→1\dfrac{\sin h}{h}\to 1 and cos⁡h−1h→0\dfrac{\cos h-1}{h}\to 0:

sin⁡x⋅0−sin⁡x⋅1+cos⁡x⋅1+cos⁡x⋅0=cos⁡x−sin⁡x.\sin x\cdot 0-\sin x\cdot 1+\cos x\cdot 1+\cos x\cdot 0 = \cos x-\sin x.

f′(x)=cos⁡x−sin⁡x\boxed{f'(x)=\cos x-\sin x}


(ii) f(x)=xsin⁡xf(x) = x\sin x

Step 1 — Difference quotient.

f(x+h)−f(x)h=(x+h)sin⁡(x+h)−xsin⁡xh\frac{f(x+h)-f(x)}{h} = \frac{(x+h)\sin(x+h)-x\sin x}{h}

Step 2 — Expand sin⁡(x+h)=sin⁡xcos⁡h+cos⁡xsin⁡h\sin(x+h)=\sin x\cos h+\cos x\sin h.

xsin⁡xcos⁡h+xcos⁡xsin⁡h+hsin⁡xcos⁡h+hcos⁡xsin⁡h−xsin⁡xh\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}

Step 3 — Separate into limit-ready pieces.

xsin⁡x(cos⁡h−1)h+xcos⁡xsin⁡hh+sin⁡xcos⁡h+cos⁡xsin⁡h\frac{x\sin x(\cos h-1)}{h} + \frac{x\cos x\sin h}{h} + \sin x\cos h + \cos x\sin h

Step 4 — Let h→0h\to 0.

  • cos⁡h−1h→0\dfrac{\cos h-1}{h}\to 0, so the first term →xsin⁡x⋅0=0\to x\sin x\cdot 0 = 0.
  • sin⁡hh→1\dfrac{\sin h}{h}\to 1, so the second term →xcos⁡x\to x\cos x.
  • cos⁡h→1\cos h\to 1, so the third term →sin⁡x\to \sin x.
  • sin⁡h→0\sin h\to 0, so the fourth term →0\to 0.

Adding: 0+xcos⁡x+sin⁡x+0=sin⁡x+xcos⁡x0 + x\cos x + \sin x + 0 = \sin x + x\cos x.

f′(x)=sin⁡x+xcos⁡x\boxed{f'(x)=\sin x+x\cos x}

Tip

This confirms the product rule ddx(xsin⁡x)=sin⁡x+xcos⁡x\dfrac{d}{dx}(x\sin x)=\sin x + x\cos x, here derived directly from the definition.


✓Final answer

  1. ddx(sin⁡x+cos⁡x)=cos⁡x−sin⁡x\dfrac{d}{dx}(\sin x+\cos x)=\cos x-\sin x.
  2. ddx(xsin⁡x)=sin⁡x+xcos⁡x\dfrac{d}{dx}(x\sin x)=\sin x+x\cos x.

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.