How to draw area below a function at certain interval?

Have a look at the fill keyword argument: Overview · Plots

For example:

plot(f,0,1, legend=false)
plot!(f,0.5,0.75, fill=(0, 0.25, :blue))

image