This is is pretty straightforward. I have a function, say $X = X(q)$. And $q=q_1+q_2(q_1)$. So X is a function of q, and q is a function of $q_1,q_2$. But $q_2$ is also a function of $q_1$. Now calculate
$\frac{\partial X}{\partial q_1}$
I proceed like:
$\frac{\partial X}{\partial q_1} = \frac{\partial X}{\partial q} \cdot \frac{\partial q}{\partial q_1}= \frac{\partial X}{\partial q} \cdot (1+\frac{\partial q_2}{\partial q_1}) $
Is this correct? Any insight or any more detailed expression that i am missing will be useful.
$X(q)$, $X(q_1)$ and $X(q_1,q_2)$ are three different functions which happen to have the same name. Let me expand on that (I am going to assume that $q_1$, $q_2$ and the $X$s all take real values) ...
$X(q_1,q_2)$ is a function from $\mathbb{R}^2$ to $\mathbb{R}$. It is defined for any pair of values $(q_1, q_2)$ in $\mathbb{R}^2$ (or, possibly, in some region $U \subset \mathbb{R}^2$). As such, its has partial derivatives $\frac{\partial X}{\partial q_1}$ and $\frac{\partial X}{\partial q_2}$ at each point $P \in \mathbb{R}^2$ (provided $X$ is continuous and is defined in some open region around $P$).
If we now introduce $q$ then $X(q)$ is a function from $\mathbb{R}$ to $\mathbb{R}$. As such it has a derivative $\frac{dX}{dq}$ (subject to the usual assumptions about continuity etc.) at each point $p \in \mathbb{R}$. If we further say that $q=q_1+q_2$ then we have defined a function $q(q_1,q_2)=q_1+q_2$ from $\mathbb{R}^2$ to $\mathbb{R}$, and we can define an implicit function $Y(q_1,q_2) = (X \circ q)(q_1,q_2) = X(q_1+q_2)$. The connection between the derivative of $X$ and the partial derivatives of $Y$ is
$\frac{\partial Y}{\partial q_1} = \frac{dX}{dq}\frac{\partial q}{\partial q_1}\\ \frac{\partial Y}{\partial q_2} = \frac{dX}{dq}\frac{\partial q}{\partial q_2}\\$
If we then say that $q_2$ is a function $Q_2: \mathbb{R} \to \mathbb{R}$ of $q_1$ then we are restricting our attention to the curve $q_2=Q_2(q_1)$ in $\mathbb{R}^2$ which we are paramterising by the value $q_1$ (which now serves double duty both as a co-ordinate in $\mathbb{R}^2$ and as a parameter of the curve). We now have yet another implicit function $Z:\mathbb{R} \to \mathbb{R}$ defined by $Z(q_1) = Y(q_1, Q_2(q_1)) = X(q_1+Q_2(q_1))$ and
$\frac{dZ}{dq_1} = \frac{\partial Y}{\partial q_1} + \frac{\partial Y}{\partial Q_2}\frac{dQ_2}{dq_1} = \frac{dX}{dq}\left(\frac{\partial q}{\partial q_1}+ \frac{\partial q}{\partial Q_2}\frac{dQ_2}{dq_1} \right)$
which tells us how $X(q)$ varies along the curve $q_2=Q_2(q_1)$.
By convention we often rename $Y(q_1,q_2)$ as $X(q_1,q_2)$ and $Z(q_1)$ as $X(q_1)$ and we depend on context to tell us which $X$ is meant on each occassion that we use the name, but this can be confusing (as you have found).