Skip to main content
Tweeted twitter.com/StackMma/status/793340186658738176
edited tags
Link
Szabolcs
  • 236.5k
  • 31
  • 641
  • 1.3k
edited body
Source Link
David G. Stork
  • 42.3k
  • 3
  • 37
  • 106

I want to fill between the curves on the domain {0,1}. I only want it on that domain, does anyone know how to do that with the given curves? Sorry for a probably simple question, I'm a beginner to MathematicaMathematica.

f[x_]=x^2;
g[x_] = x;

Plot[{f[x], g[x]}, {x, 0, 1.25}, PlotLabels -> {"f", "g"}]

enter image description here

I want to fill between the curves on the domain {0,1}. I only want it on that domain, does anyone know how to do that with the given curves? Sorry for a probably simple question, I'm a beginner to Mathematica.

f[x_]=x^2;
g[x_] = x;

Plot[{f[x], g[x]}, {x, 0, 1.25}, PlotLabels -> {"f", "g"}]

enter image description here

I want to fill between the curves on the domain {0,1}. I only want it on that domain, does anyone know how to do that with the given curves? Sorry for a probably simple question, I'm a beginner to Mathematica.

f[x_]=x^2;
g[x_] = x;

Plot[{f[x], g[x]}, {x, 0, 1.25}, PlotLabels -> {"f", "g"}]

enter image description here

Source Link
jfeuerman
  • 195
  • 1
  • 9

How to Fill Between two Curves

I want to fill between the curves on the domain {0,1}. I only want it on that domain, does anyone know how to do that with the given curves? Sorry for a probably simple question, I'm a beginner to Mathematica.

f[x_]=x^2;
g[x_] = x;

Plot[{f[x], g[x]}, {x, 0, 1.25}, PlotLabels -> {"f", "g"}]

enter image description here