NonConstants
is an option for D which gives a list of objects to be taken to depend implicitly on the differentiation variables.
Details

- If c does not appear in the list of NonConstants, then D[c,x] is taken to be 0 unless c and x are identical expressions.
Examples
open allclose all
Wolfram Research (1988), NonConstants, Wolfram Language function, https://reference.wolfram.com/language/ref/NonConstants.html.
Text
Wolfram Research (1988), NonConstants, Wolfram Language function, https://reference.wolfram.com/language/ref/NonConstants.html.
CMS
Wolfram Language. 1988. "NonConstants." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/NonConstants.html.
APA
Wolfram Language. (1988). NonConstants. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NonConstants.html