I did this manipulation piece based on Boltzmann distribution but I noticed that is rather slow, any ideas how to improve this code?
kb = 1.381*10^-23;
Nav = 6.022*10^23;
m = 0.032/Nav;
Manipulate[
Show[
Plot[(E^(-((m v^2)/(2 kb T))) Sqrt[2/π] v^2)/((kb T)/m)^(3/2), {v, 0, 4000},
PlotRange -> {{0, 1300}, {0, 0.0055}},
AxesLabel -> {"m/s", "Frequency"},
Epilog ->
Inset[Framed[
Style[
Integrate[(
E^(-((m v^2)/(2 kb T))) Sqrt[2/π] v^2)/((kb T)/m)^(3/2),
{v, a, Infinity}] /
Integrate[(
E^(-((m v^2)/(2 kb T))) Sqrt[2/π] v^2)/((kb T)/m)^(3/2),
{v, 0, Infinity}]*100,
10]]]],
Plot[(E^(-((m v^2)/(2 kb T))) Sqrt[2/π] v^2)/((kb T)/m)^(3/2), {v, a, 1300},
PlotRange -> {{0, 1300}, {0, 0.0055}},
Filling -> Bottom]],
{T, 50, 500},
{a, 0, 1300}]