Find the derivative of the following functions (it is to be understood that \(a, b, c, d, p, q, r\) and \(s\) are fixed non-zero constants and \(m\) and \(n\) are integers):
\(\frac{\sin(x + a)}{\cos x}\)
Show solutionHide solution
We want the derivative of
\[ y=\frac{\sin(x+a)}{\cos x}. \]Here \(a\) is a fixed constant, so \(a\) is treated as a constant when differentiating with respect to \(x\).
Step 1: Use the quotient rule.
Recall that for \(y=\dfrac{u}{v}\),
\[ y'=\frac{u'v-uv'}{v^2}. \]Take
\[ u=\sin(x+a),\qquad v=\cos x. \]Then
\[ u'=\cos(x+a),\qquad v'=-\sin x. \]Therefore
\[ y'=\frac{\cos(x+a)\cos x-\sin(x+a)(-\sin x)}{\cos^2 x}. \]So
\[ y'=\frac{\cos(x+a)\cos x+\sin(x+a)\sin x}{\cos^2 x}. \]Step 2: Simplify the numerator.
Use the identity
\[ \cos A\cos B+\sin A\sin B=\cos(A-B). \]With \(A=x+a\) and \(B=x\),
\[ \cos(x+a)\cos x+\sin(x+a)\sin x=\cos\big((x+a)-x\big)=\cos a. \]Hence
\[ y'=\frac{\cos a}{\cos^2 x}. \]Step 3: State the answer and its domain.
\[ \boxed{\frac{d}{dx}\left(\frac{\sin(x+a)}{\cos x}\right)=\frac{\cos a}{\cos^2 x}} \]This is valid wherever the original function is defined, that is, where \(\cos x\neq 0\). Equivalently,
\[ x\neq \frac{\pi}{2}+k\pi,\qquad k\in\mathbb Z. \]At those excluded points the function has vertical asymptotes and is not differentiable.