Suppose we have a function $$C(P, S(P))$$ that depends on $P$ and $S(P)$, where $S$ is another function.
I understand that from chain rule, we have \begin{align*} \frac{dC}{dP} &= \frac{\partial C}{\partial P} + \frac{\partial C}{\partial S}\frac{\partial S}{\partial P}. \end{align*}
However, what is the right way to interpret the difference between $\frac{dC}{dP}$ and $\frac{\partial C}{\partial P}$?
The difference here is that in $\dfrac{dC}{dP}$, $S$ is treated as a function of $P$, while in $\dfrac{\partial C}{\partial P}$, $S$ is treated as a constant.
Let us take an example to illustrate that these two ways really do give the same answer. Consider: $$C(P,S(P))=P\cdot S(P).$$ The single-variable product- and chain rules then give: $$\frac{dC}{dP}=S(P)+P\cdot S'(P).$$ But if we take partial derivatives as in the multivariable chain rule, we treat $S$ as a constant when differentiating with respect to $P$ and $P$ as a constant when differentiating with respect to $S$. We may write the function as just $C=PS$ to aid our thinking. We then get: $$\frac{dC}{dP}=\dfrac{\partial C}{\partial P}+\frac{\partial C}{\partial S}\frac{\partial S}{\partial P}=S+S\frac{dS}{dP}=S+P\cdot S'(P),$$ the same answer we got with the regular chain rule and product rule.