wookie99
(D P)
1
Hi all. How do I integrate ax^2, with respect to x, where a is a constant?
I tried:
Integrate[a x^2 + b, x, Constants -> {a}]
And got this error message:
Integrate::optx: Unknown option Constants in Integrate[b+a x^2,x,Constants->{a}]. >>
Ideally, I would like to integrate -7Sin[nt], for 0 < t < Pi, where n is a constant.
Thank you.
There is no need to declare the constants. Take care to separate n from t, otherwise it is understood as one single variable:
Integrate[-7 Sin[n t], {t, 0, Pi}]
Simplify[%, Element[n, Integers]]
seanc
(Sean Clarke)
3
Please see the documentation for Integrate:
In the case you mentioned, it will just assume that a doesn’t depend on x:
Integrate[a x^2 + b, x]