A rod of length L and mass M is acted on by two unequal to force F1 and F2(<F1) as shown in the following figure
The tension in the rod at a distance y from the end a is given by :
Let the acceleration is a and the tension is T.
The acceleration is given as,
a=F1−F2M
The tension is given as,
F1−T=ma
F1−T=ML×y×F1−F2M
T=F1(1−yL)+F2yL
Thus, the tension is F1(1−yL)+F2yL.