Constants
Examples
open all close allBasic Examples (3)
Here both a and b are assumed to depend on x:
Dt[a x ^ 2 + b, x]Specify that a does not depend on x using the Constants option:
Dt[a x ^ 2 + b, x, Constants -> {a}]Specify that both a and b are independent of x:
Dt[a x ^ 2 + b, x, Constants -> {a, b}]Scope (3)
Use TagSet to prescribe a constant:
y/:Dt[y, x] = 0Dt[x ^ 2 y, x]Use SetAttributes to prescribe a constant:
SetAttributes[a, Constant]Dt[a x ^ 2, x]For a constant f any expression f[expr] is also assumed to be constant:
Dt[x ^ 2 f[x], x, Constants -> {f}]See Also
Tech Notes
History
Introduced in 1988 (1.0)
Text
Wolfram Research (1988), Constants, Wolfram Language function, https://reference.wolfram.com/language/ref/Constants.html.
CMS
Wolfram Language. 1988. "Constants." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Constants.html.
APA
Wolfram Language. (1988). Constants. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Constants.html
BibTeX
@misc{reference.wolfram_2026_constants, author="Wolfram Research", title="{Constants}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/Constants.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_constants, organization={Wolfram Research}, title={Constants}, year={1988}, url={https://reference.wolfram.com/language/ref/Constants.html}, note=[Accessed: 12-June-2026]}