9

Consider the shaded region bounded by $\sin x$, $\cos x$, and $\tan x$:

enter image description here

We can define this as an ImplicitRegion by:

\[ScriptCapitalR] = 
 ImplicitRegion[(0 < x < 1) \[And] (y < Cos[x]) \[And] 
     (y < Tan[x]) \[And] (y > Sin[x]),
  {x, y}]

However, RegionPlot[\[ScriptCapitalR]] fails to yield a figure after 15 minutes (v 11.3, MacOS).

However if I'm "smart" and put the bounds as $0<x< \pi/4$ I do get a plot.

Moreover, its area,

RegionMeasure[\[ScriptCapitalR]]

does not give an analytic solution (even after RootReduce, Simplify, etc.) even though an analytic form exists.

(One can get a numerical value through N@RegionMeasure[\[ScriptCapitalR]], but I seek the analytic solution.)

I've tried various forms based on RegionIntersection[] and such, without success.

Of course I can use traditional calculus through Integrate and finding intersection points, but I'd like to compute the area more directly.

How can I 1) plot the region and (more importantly) 2) compute the analytic area?

David G. Stork
  • 41,180
  • 3
  • 34
  • 96

1 Answers1

11

1. Process with DiscretizeRegion before feeding it to RegionPlot:

ℛ = ImplicitRegion[(0 < x < 1) ∧ (y < Cos[x]) ∧ (y < Tan[x]) ∧ (y > Sin[x]), {x, y}]

RegionPlot[DiscretizeRegion @ ℛ]

enter image description here

2. A composition of FullSimplify and RegionMeasure gives an exact result:

FullSimplify @ RegionMeasure @ ℛ
  1/2 (-1 + 2 Sqrt[2] - Sqrt[5] + ArcCsch[2])
kglr
  • 394,356
  • 18
  • 477
  • 896