(b) If \(y = (\tan x)^x\), then find \(\frac{dy}{dx}\).
Show Hint
For functions of the form \(y = [f(x)]^{g(x)}\), take the natural logarithm on both sides to handle the variable exponent, and then differentiate using the product rule and chain rule.