The problem was posed as follows. Given a pendulum of length $L$ with a mass $m$ attached to it, which forms an angle $\theta$ from the y-axis to the direction of swinging.
First we had to find the potential energy as a function of the angle, which was trivial enough.
$$U = mgL(1 - cos(\theta))$$
But the next question was to develop the gradient for this potential energy function via the arc length $s = L\cdot\theta$, where $s$ is the arc length.
I calculated the gradient by using the trigonometric definition of $\cos(\theta)$, but I developed the gradient by changing the variable of my function $U(\theta)$ to $U(x,y)$ after which I calculated it further, and found that $F_{tan} = -mg\sin(\theta)$, as desired.
But is there an alternative way to calculate it, by using the gradient, and by utilizing the arc length formula above? The question explicitly asks to develop the gradient via the arc length rather than $x$ and $y$ components.