Use integrate with anonymous functions