Message Boards Message Boards

0
|
4933 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

constants in expressions

Posted 9 years ago

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.

POSTED BY: D P
2 Replies

Please see the documentation for Integrate:

http://reference.wolfram.com/language/ref/Integrate.html

In the case you mentioned, it will just assume that a doesn't depend on x:

Integrate[a x^2 + b, x]
POSTED BY: Sean Clarke

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]]
POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract