0
$\begingroup$

How to fill the area between two curves and two x values? I want
to fill between x =1 and x = 2 only. But I am getting a larger fill.

Plot[{3*E^(2*x), 3*E^x}, {x, 0, 2.5}, Filling -> {1 -> {2}}, 
    Epilog -> { InfiniteLine[{1, 0}, {0, 1}],
                InfiniteLine[{2, 0}, {0, 1}]}]

enter image description here

$\endgroup$

marked as duplicate by J. M. will be back soon plotting Oct 20 '18 at 15:29

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • $\begingroup$ I would just use two ConditionalExpression[]s with the functions whose domain you want to limit. $\endgroup$ – J. M. will be back soon Oct 20 '18 at 15:15

Browse other questions tagged or ask your own question.