Basically, why we treat them as independent quantities. I know what a partial derivative is, It means if a function depends on multiple variables, the partial derivative with respect to a particular variable will show how the function is varying with that variable while other variables are constant.
Now, we know $x=f(t)$ and $v=f'(t). $ So we know $v=dx/dt$.
So how is $ {\partial T}/{\partial {x}} =0 ? $ ($T$=Kinetic energy)
Because this would be true only for those values of $x$ where the slope of $v - x $ curve is zero. For instance, if $x=t^3$ , so $v=3t^2$ or $v=3x/t$. Here, ${\partial T}/{\partial {x}} =0$ is clearly not zero.
Basically I want to ask why do we take x and v independent of each other in variational calculus. Because we do know that they are dependent quantities.