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

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

CBSE Class 11 Maths · Limits and Derivatives

Solution

👶 Simple Explanation

Simple Explanation

Imagine you are watching a car and want to know exactly how fast it is moving at one tiny moment. A derivative does exactly that for any math function. The function here is \( \sin x + \cos x \), which is like two waves added together. By zooming in really closely using a special limit trick, we find how fast this combined wave changes at any point. The answer turns out to be \( \cos x - \sin x \), meaning the cosine wave grows while the sine wave shrinks the total.

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

📖 Derivative of sin x + cos x by First Principle

Detailed Explanation

The derivative from the first principle measures the instantaneous rate of change of a function. Instead of using ready-made derivative rules, we go back to the definition of the derivative as a limit. For a function \( f(x) \), the first principle definition uses the change in the function value over a tiny change \( h \) in \( x \), and takes the limit as \( h \) approaches 0. To handle trigonometric expressions like \( \sin(x+h) \) and \( \cos(x+h) \), we use the sum formulae for sine and cosine, and then apply two standard trigonometric limits.

Formula Used

First principle: \[f'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}\] Standard limits used: \[\lim_{h \to 0} \frac{\sin h}{h} = 1\] \[\lim_{h \to 0} \frac{\cos h - 1}{h} = 0\]

Solution

  1. Step 1: Write the given function and set up the first principle formula. Here \( f(x) = \sin x + \cos x \). So \[f'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}\]
  2. Step 2: Find \( f(x+h) \) by replacing \( x \) with \( x+h \). \[f(x+h) = \sin(x+h) + \cos(x+h)\]
  3. Step 3: Expand using the sum formulae \( \sin(x+h) = \sin x \cos h + \cos x \sin h \) and \( \cos(x+h) = \cos x \cos h - \sin x \sin h \). This gives \[f(x+h) = \sin x \cos h + \cos x \sin h + \cos x \cos h - \sin x \sin h\]
  4. Step 4: Substitute into the formula and subtract \( f(x) = \sin x + \cos x \). The numerator becomes \[\sin x \cos h + \cos x \sin h + \cos x \cos h - \sin x \sin h - \sin x - \cos x\]
  5. Step 5: Group the terms to bring out \( (\cos h - 1) \) and \( \sin h \). \[= \sin x(\cos h - 1) + \cos x \sin h + \cos x(\cos h - 1) - \sin x \sin h\] This regrouping is done so we can later use the standard trigonometric limits.
  6. Step 6: Divide by \( h \) and write as a limit. \[f'(x) = \lim_{h \to 0}\left[ (\sin x + \cos x)\frac{\cos h - 1}{h} + (\cos x - \sin x)\frac{\sin h}{h} \right]\]
  7. Step 7: Apply the standard limits \( \lim_{h \to 0} \frac{\cos h - 1}{h} = 0 \) and \( \lim_{h \to 0} \frac{\sin h}{h} = 1 \). \[f'(x) = (\sin x + \cos x)(0) + (\cos x - \sin x)(1)\]
  8. Step 8: Simplify to get the final derivative. \[f'(x) = \cos x - \sin x\]

Final Answer

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

Common Mistake

A common mistake is using the wrong sign in the cosine sum formula. Remember \( \cos(x+h) = \cos x \cos h - \sin x \sin h \) (with a minus sign), not a plus. A wrong sign here leads to an incorrect final answer.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Identify the function and write the first-principle formula. Here \( f(x) = \sin x + \cos x \), so we write \[f'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}\] — Reason: Every first-principle problem starts by substituting into this definition; it is the formal meaning of a derivative.
  2. Step 2: Compute \( f(x+h) \) by replacing every \( x \) in the function with \( (x+h) \): \[f(x+h) = \sin(x+h) + \cos(x+h)\] — Reason: We need the numerator \( f(x+h) - f(x) \), so we must first know what \( f \) looks like when the argument is shifted by \( h \).
  3. Step 3: Expand using sum formulae. Apply \( \sin(x+h) = \sin x \cos h + \cos x \sin h \) and \( \cos(x+h) = \cos x \cos h - \sin x \sin h \) to get \[f(x+h) = \sin x \cos h + \cos x \sin h + \cos x \cos h - \sin x \sin h\] — Reason: The compound-angle identities convert the single expression \( f(x+h) \) into separate pieces involving \( \sin x \), \( \cos x \), \( \sin h \), and \( \cos h \), which can then be rearranged algebraically.
  4. Step 4: Form the numerator \( f(x+h) - f(x) \) by subtracting \( f(x) = \sin x + \cos x \): \[\sin x \cos h + \cos x \sin h + \cos x \cos h - \sin x \sin h - \sin x - \cos x\] — Reason: The difference quotient requires this subtraction; carrying it out before dividing by \( h \) keeps the working organised.
  5. Step 5: Regroup the numerator by collecting the \( \sin x \) terms together and the \( \cos x \) terms together: \[\sin x (\cos h - 1) - \sin x \sin h + \cos x \sin h + \cos x (\cos h - 1)\] which simplifies to \[\sin x (\cos h - 1) - \sin x \sin h + \cos x \sin h + \cos x (\cos h - 1)\] Rearranging neatly: \[(\sin x + \cos x)(\cos h - 1) + (\cos x - \sin x)\sin h\] — Reason: Grouping around \( (\cos h - 1) \) and \( \sin h \) is strategic because those are exactly the expressions that appear in the two standard trigonometric limits.
  6. Step 6: Divide the grouped numerator by \( h \) to form the difference quotient: \[f'(x) = \lim_{h \to 0} \left[ (\sin x + \cos x) \cdot \frac{\cos h - 1}{h} + (\cos x - \sin x) \cdot \frac{\sin h}{h} \right]\] — Reason: Splitting the fraction into two separate terms lets us apply the known trigonometric limits to each part individually.
  7. Step 7: Apply the standard limits as \( h \to 0 \). We know \( \lim_{h \to 0} \frac{\cos h - 1}{h} = 0 \) and \( \lim_{h \to 0} \frac{\sin h}{h} = 1 \). Substituting: \[f'(x) = (\sin x + \cos x) \cdot 0 + (\cos x - \sin x) \cdot 1\] which gives \[f'(x) = \cos x - \sin x\] — Reason: These two limits are fundamental results in calculus; using them here completes the evaluation and yields the final derivative.

Final Answer

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

Common Mistake

One common mistake: Students forget to subtract the full \( f(x) = \sin x + \cos x \) in the numerator and only subtract one of the two terms (e.g. only \( \sin x \)), which causes an incorrect grouping and a wrong final answer.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Given: \( f(x) = \sin x + \cos x \), so \( f(x+h) = \sin(x+h) + \cos(x+h) \)
  2. Step 2: Expand using sum formulae: \[f'(x) = \lim_{h \to 0} \frac{(\sin x \cos h + \cos x \sin h + \cos x \cos h - \sin x \sin h) - (\sin x + \cos x)}{h}\]
  3. Step 3: Group and factor: \[f'(x) = \lim_{h \to 0} \left[ \sin x \cdot \frac{\cos h - 1}{h} + \cos x \cdot \frac{\sin h}{h} - \cos x \cdot \frac{1 - \cos h}{h} - \sin x \cdot \frac{\sin h}{h} \right]\] Regrouped: \[f'(x) = \lim_{h \to 0} \left[ \cos x \cdot \frac{\sin h}{h} - \sin x \cdot \frac{\sin h}{h} + \sin x \cdot \frac{\cos h - 1}{h} + \cos x \cdot \frac{\cos h - 1}{h} \right]\]
  4. Step 4: Apply standard limits \( \lim_{h \to 0} \frac{\sin h}{h} = 1 \) and \( \lim_{h \to 0} \frac{\cos h - 1}{h} = 0 \): \[f'(x) = \cos x \cdot 1 - \sin x \cdot 1 + \sin x \cdot 0 + \cos x \cdot 0\]

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

➕ More Examples

More Examples

Example 1

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

Solution: We use the definition of the derivative: \[f'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}\] Now, \( f(x+h) = \sin(x+h) - \cos(x+h) \) and \( f(x) = \sin x - \cos x \). So the numerator becomes: \[f(x+h) - f(x) = \bigl[\sin(x+h) - \cos(x+h)\bigr] - \bigl[\sin x - \cos x\bigr]\] \[= \bigl[\sin(x+h) - \sin x\bigr] - \bigl[\cos(x+h) - \cos x\bigr]\] Applying the sum-to-product identity for \( \sin(x+h) - \sin x \): \[\sin(x+h) - \sin x = 2 \cos\left(x + \frac{h}{2}\right) \sin\left(\frac{h}{2}\right)\] Applying the sum-to-product identity for \( \cos(x+h) - \cos x \): \[\cos(x+h) - \cos x = -2 \sin\left(x + \frac{h}{2}\right) \sin\left(\frac{h}{2}\right)\] Substituting back: \[f(x+h) - f(x) = 2\cos\left(x + \frac{h}{2}\right)\sin\left(\frac{h}{2}\right) - \left[-2\sin\left(x + \frac{h}{2}\right)\sin\left(\frac{h}{2}\right)\right]\] \[= 2\sin\left(\frac{h}{2}\right)\left[\cos\left(x + \frac{h}{2}\right) + \sin\left(x + \frac{h}{2}\right)\right]\] Dividing by \( h \): \[\frac{f(x+h)-f(x)}{h} = \frac{2\sin\left(\frac{h}{2}\right)}{h}\left[\cos\left(x+\frac{h}{2}\right) + \sin\left(x+\frac{h}{2}\right)\right]\] \[= \frac{\sin\left(\frac{h}{2}\right)}{\frac{h}{2}} \cdot \left[\cos\left(x+\frac{h}{2}\right) + \sin\left(x+\frac{h}{2}\right)\right]\] Taking the limit as \( h \to 0 \): \[f'(x) = \lim_{h \to 0} \frac{\sin\left(\frac{h}{2}\right)}{\frac{h}{2}} \cdot \lim_{h \to 0}\left[\cos\left(x+\frac{h}{2}\right) + \sin\left(x+\frac{h}{2}\right)\right]\] \[= 1 \cdot \left[\cos x + \sin x\right]\] \[= \cos x + \sin x\]

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

Example 2

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

Solution: We use the definition of the derivative: \[f'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}\] Now, \( f(x+h) = 2\sin(x+h) + 3\cos(x+h) \) and \( f(x) = 2\sin x + 3\cos x \). The numerator is: \[f(x+h) - f(x) = 2\bigl[\sin(x+h) - \sin x\bigr] + 3\bigl[\cos(x+h) - \cos x\bigr]\] Applying the sum-to-product identity for \( \sin(x+h) - \sin x \): \[\sin(x+h) - \sin x = 2\cos\left(x + \frac{h}{2}\right)\sin\left(\frac{h}{2}\right)\] Applying the sum-to-product identity for \( \cos(x+h) - \cos x \): \[\cos(x+h) - \cos x = -2\sin\left(x + \frac{h}{2}\right)\sin\left(\frac{h}{2}\right)\] Substituting: \[f(x+h) - f(x) = 2 \cdot 2\cos\left(x+\frac{h}{2}\right)\sin\left(\frac{h}{2}\right) + 3 \cdot \left[-2\sin\left(x+\frac{h}{2}\right)\sin\left(\frac{h}{2}\right)\right]\] \[= 4\cos\left(x+\frac{h}{2}\right)\sin\left(\frac{h}{2}\right) - 6\sin\left(x+\frac{h}{2}\right)\sin\left(\frac{h}{2}\right)\] \[= 2\sin\left(\frac{h}{2}\right)\left[2\cos\left(x+\frac{h}{2}\right) - 3\sin\left(x+\frac{h}{2}\right)\right]\] Dividing by \( h \): \[\frac{f(x+h)-f(x)}{h} = \frac{\sin\left(\frac{h}{2}\right)}{\frac{h}{2}} \cdot \left[2\cos\left(x+\frac{h}{2}\right) - 3\sin\left(x+\frac{h}{2}\right)\right]\] Taking the limit as \( h \to 0 \): \[f'(x) = \lim_{h \to 0}\frac{\sin\left(\frac{h}{2}\right)}{\frac{h}{2}} \cdot \lim_{h \to 0}\left[2\cos\left(x+\frac{h}{2}\right) - 3\sin\left(x+\frac{h}{2}\right)\right]\] \[= 1 \cdot \left[2\cos x - 3\sin x\right]\] \[= 2\cos x - 3\sin x\]

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

🎯 Try a Similar Question

Try a Similar Question

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

Solution

  1. Step 1: Write the first-principle formula: By definition, the derivative is given by \[f'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}\] We have \( f(x) = 2\sin x - 3\cos x \), so \( f(x + h) = 2\sin(x + h) - 3\cos(x + h) \).
  2. Step 2: Expand using sum formulae: Using the identities \( \sin(x + h) = \sin x \cos h + \cos x \sin h \) and \( \cos(x + h) = \cos x \cos h - \sin x \sin h \), we get \[f(x + h) = 2(\sin x \cos h + \cos x \sin h) - 3(\cos x \cos h - \sin x \sin h)\] Expanding: \[f(x + h) = 2\sin x \cos h + 2\cos x \sin h - 3\cos x \cos h + 3\sin x \sin h\]
  3. Step 3: Compute f(x+h) - f(x): Now subtract \( f(x) = 2\sin x - 3\cos x \): \[f(x+h) - f(x) = 2\sin x \cos h + 2\cos x \sin h - 3\cos x \cos h + 3\sin x \sin h - 2\sin x + 3\cos x\] Grouping the \( \sin x \) and \( \cos x \) terms separately: \[= 2\sin x (\cos h - 1) + 3\sin x \sin h + 2\cos x \sin h - 3\cos x (\cos h - 1)\]
  4. Step 4: Divide by h and take the limit: Dividing by \( h \): \[\frac{f(x+h) - f(x)}{h} = 2\sin x \cdot \frac{\cos h - 1}{h} + 3\sin x \cdot \frac{\sin h}{h} + 2\cos x \cdot \frac{\sin h}{h} - 3\cos x \cdot \frac{\cos h - 1}{h}\] Now taking the limit as \( h \to 0 \), and using \( \lim_{h \to 0} \frac{\sin h}{h} = 1 \) and \( \lim_{h \to 0} \frac{\cos h - 1}{h} = 0 \): \[f'(x) = 2\sin x \cdot 0 + 3\sin x \cdot 1 + 2\cos x \cdot 1 - 3\cos x \cdot 0\]
  5. Step 5: Simplify the final result: Simplifying: \[f'(x) = 0 + 3\sin x + 2\cos x - 0\] Therefore: \[f'(x) = 3\sin x + 2\cos x\]

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

Everything you get with Solver7

More questions in Limits and Derivatives