Detailed Explanation
When a function is written as a ratio of two functions, we use the quotient rule to find its derivative. If \( y = \frac{u}{v} \), then the derivative is found by differentiating the numerator and denominator separately and combining them in a fixed pattern. Here the numerator is \( u = \sin x + \cos x \) and the denominator is \( v = \sin x - \cos x \). We use the standard derivatives \( \frac{d}{dx}(\sin x) = \cos x \) and \( \frac{d}{dx}(\cos x) = -\sin x \). After applying the rule, we simplify the numerator using the identity \( \sin^2 x + \cos^2 x = 1 \).
Formula Used
Quotient rule: \[\frac{d}{dx}\left(\frac{u}{v}\right) = \frac{u' v - u v'}{v^2}\] with \( \frac{d}{dx}(\sin x) = \cos x \) and \( \frac{d}{dx}(\cos x) = -\sin x \).
Solution
- Step 1: Identify the numerator and denominator. Let \( u = \sin x + \cos x \) and \( v = \sin x - \cos x \), so that \( y = \frac{u}{v} \).
- Step 2: Differentiate each part. For the numerator: \[u' = \cos x - \sin x\] For the denominator: \[v' = \cos x + \sin x\]
- Step 3: Apply the quotient rule: \[\frac{dy}{dx} = \frac{u' v - u v'}{v^2}\] Substitute the expressions: \[\frac{dy}{dx} = \frac{(\cos x - \sin x)(\sin x - \cos x) - (\sin x + \cos x)(\cos x + \sin x)}{(\sin x - \cos x)^2}\]
- Step 4: Simplify the first product. Notice \( \cos x - \sin x = -(\sin x - \cos x) \), so \[(\cos x - \sin x)(\sin x - \cos x) = -(\sin x - \cos x)^2\] Expanding gives \[-(\sin^2 x - 2\sin x \cos x + \cos^2 x) = -(1 - 2\sin x \cos x)\]
- Step 5: Simplify the second product. Here \( \sin x + \cos x \) and \( \cos x + \sin x \) are the same, so \[(\sin x + \cos x)(\cos x + \sin x) = (\sin x + \cos x)^2 = 1 + 2\sin x \cos x\]
- Step 6: Combine the numerator terms: \[-(1 - 2\sin x \cos x) - (1 + 2\sin x \cos x) = -1 + 2\sin x \cos x - 1 - 2\sin x \cos x = -2\]
- Step 7: Write the final derivative: \[\frac{dy}{dx} = \frac{-2}{(\sin x - \cos x)^2}\]
Final Answer
\[\frac{dy}{dx} = \frac{-2}{(\sin x - \cos x)^2}\]
Common Mistake
A common mistake is applying the quotient rule with the wrong sign order in the numerator, writing \( u v' - u' v \) instead of \( u' v - u v' \). This flips the sign of the whole answer, giving \( \frac{2}{(\sin x - \cos x)^2} \), which is incorrect.