Step 1: Since the direction of force varies with displacement, we use the work-energy theorem:
\[
W = \int F \cos\phi \, dx
\]
But here, angle \(\theta\) is a function of \(x\): \(\theta = kx \Rightarrow x = \frac{\theta}{k}\)
Instead of resolving components, we observe that net work done is:
\[
W = \int_0^x F \cos(kx) \, dx
\]
Or, equivalently: use energy approach — from external force:
\[
\frac{1}{2}mv^2 = \int F \cos(kx) dx = \frac{F}{k} \sin\theta
\]
So,
\[
v^2 = \frac{2F \sin\theta}{mk} \Rightarrow v = \sqrt{\frac{2F \sin\theta}{mk}}
\]