First, I think we can comfortably assume that $y = x \sec (kx)$, not $y = x (\sec k) x$, because if the latter were the case, then presumably one would instead have written $y = x^2 \sec k$.
Next, we have to know whether $y$ is being regarded as a function of $k$, or of $x$, or of both. If we are interested in the instantaneous rate of change of $y$ with respect to $x$ (and treating $k$ as constant), then that is $$\frac{\partial y}{\partial x} = \sec (kx) \left(1 + kx \tan (kx)\right).$$ If we want the derivative of $y$ with respect to $k$ (and treating $x$ as constant), then that is $$\frac{\partial y}{\partial k} = x^2 \sec (kx) \tan (kx).$$ If $k$ is itself a function of $x$ but is unspecified, then $$\frac{dy}{dx} = \sec (kx)\left(1 + x {\textstyle \left(k + x \frac{dk}{dx}\right)} \tan (kx) \right),$$ where $k = k(x)$. This last expression is called the total derivative of $y$ with respect to $x$.
However, if it was $\sec(k) x$, the derivative would be $2x\sec k$, not what you wrote.
– 5xum Feb 21 '14 at 07:25