lta9vw
(Luke Anglin)
1
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?
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}]
lta9vw
(Luke Anglin)
3
Ah! Thank you so much for your help. I really appreciate you taking the time to reply!