Sorry! T is for a pendulum. It should be changed to Normal force
for your case.
But the equation is the same.
For you case:
is the unit vector from (5,0) to (x,y) of the ball.
i.e. unit vector of (x-5,y) or