I was presented with the following excersice: Calculate the derivative of the following function and evaluate it at $x=\pi/4$
$\sec\left(\frac{3\pi}{2} - x\right)$
I used two different approaches and I was hoping for both to obtain the same results. Nevertheless this was not the case. Please find below my approaches
Approach 1: Using directly the quotient rule and substitute for x, meaning the following:
Step 1): Since we know that sec(x) = $\frac{1}{cos(x)}$, then we can apply the quotient rule directly and obtain the following: $\frac{\sin(x)}{\cos^2(x)}$
Step 2) Substitute for x --> $\left(\frac{3\pi}{2} - x\right) \rightarrow \left(\frac{3\pi}{2} - \frac{\pi}{4}\right)$ = $\frac{5\pi}{4}$
Step 3) Solve --> $\frac{\sin\left(\frac{5\pi}{4}\right)}{\cos^2\left(\frac{5\pi}{4}\right)}$ = $-\sqrt{2}$
Approach 2: Using the chain rule: When using the chain rule the result is the following:
$\sqrt{2}$
From what I have heard the right approach should be using the chain rule (approach 2)
Now since I do this more for the sake of learning instead of passing an exam or similar I would like to understand:
1-Why in this case the approach 1 is not suitable? (Otherwise I would have got the same results, right? Unless there is another kind of error, e.g.: alegebraic error or similar)
My assumption is that I am overseeing something when it comes to my conceptual understanding.
The approach No. 1 was false from the very beginnning since the composite function was ignored and thus both approaches are not equivalent.
Let $f(x)=\frac{3\pi}2-x.$ $$\begin{align}(\sec\circ f)'&=(\sec'\circ f)~f'\\&=-\sec'\circ f\\&\ne\sec'\circ f.\end{align}$$