Message Boards Message Boards

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

Unexpected result from Integrate[ ]?

Posted 3 years ago

I'm new to Mathematica and trying to pass in a function to get the definite integral. I have this:

fxy[x_, y_] := 2 (x + y);
Integrate[fxy[x, y], {x, y/2, y}, {y, 0, 1}]

And that gives me an output of

1/4 y (2 + 3 y)

I am expecting an output of 7/12. I am however getting an indefinite integral. Could I get some help on this?

POSTED BY: Luke Anglin
2 Replies

Luke,

from documentation on Integrate:

Multiple integrals use a variant of the standard iterator notation. The first variable given corresponds to the outermost integral and is done last.

consequently, try:

Integrate[fxy[x, y], {y, 0, 1}, {x, y/2, y}]
POSTED BY: Henrik Schachner
Posted 3 years ago

Ah! Thank you so much for your help. I really appreciate you taking the time to reply!

POSTED BY: Luke Anglin
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