Integrating over a min() function gives different result than the function inside

Shouldn’t these two results be the same? Why are they not? integrate(\(x) {x * min(-x+10, 10)},lower = 0, upper = 10)$value > [1] 1.085709 integrate(\(x) {x * (-x+10)},lower = 0, upper = 10)$value > [1] 166.6667 Keep in mind that from x values 0 to 10 we should never expect to get a value of… Read More Integrating over a min() function gives different result than the function inside