Step 1: Understanding the Concept:
The integral of \( \sec x \) is a standard result. It can be found by multiplying and dividing by \( \sec x + \tan x \), which makes the numerator the derivative of the denominator.
Step 2: Key Formula or Approach:
1. \( \frac{d}{dx}\sec x = \sec x\tan x \).
2. \( \frac{d}{dx}\tan x = \sec^2 x \).
3. \( \int \frac{f'(x)}{f(x)}\,dx = \log|f(x)| + c \).
Step 3: Detailed Explanation:
Multiply and divide the integrand by \( \sec x + \tan x \).
\[ \int \sec x\,dx = \int \frac{\sec x(\sec x + \tan x)}{\sec x + \tan x}\,dx = \int \frac{\sec^2 x + \sec x\tan x}{\sec x + \tan x}\,dx \]
Let \( t = \sec x + \tan x \). Then
\[ dt = (\sec x\tan x + \sec^2 x)\,dx \]
This is exactly the numerator, so the integral becomes
\[ \int \frac{dt}{t} = \log|t| + c = \log|\sec x + \tan x| + c \]
Why the other options are wrong: Option (2), \( \log|\sec x - \tan x| \), differentiates to \( -\sec x \), so it has the wrong sign (it equals \( -\log|\sec x + \tan x| \) because \( (\sec x + \tan x)(\sec x - \tan x) = 1 \)). Option (3), \( \log\sec x \), differentiates to \( \tan x \), not \( \sec x \). Option (4), \( \tan^5 x \), differentiates to \( 5\tan^4 x\sec^2 x \), which is not \( \sec x \).
Step 4: Final Answer:
The integral is \( \log|\sec x + \tan x| + c \), option (1).
\[ \boxed{\log|\sec x + \tan x| + c} \]