Let's consider a following equation: $$x''+x'+x=5$$ My question is: how should I differentiate it with respect to x'? I've read somewhere that you only differentiate x' and take both x and x'' as constants, but why? Intuition tells me that they somehow depend on x'.
EDIT: I need this to compute a lagrange equation, where you take the derivative of L with respect to q'.