# Derivative of an Integral with max in the integrand [closed]

Can anyone explain why? $$\frac{d}{dx}\int_0^{\infty}\max[R-(x+1)B;-C]dF(R,\theta) = B\int_{(1+x)B-C}^{\infty}dF(R,\theta)$$

-

## closed as off-topic by Daniel Rust, TMM, user1337, Matt Pressland, Davide GiraudoSep 17 '13 at 18:54

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question is missing context or other details: Please improve the question by providing additional context, which ideally includes your thoughts on the problem and any attempts you have made to solve it. This information helps others identify where you have difficulties and helps them write answers appropriate to your experience level." – Daniel Rust, TMM, user1337, Matt Pressland, Davide Giraudo
If this question can be reworded to fit the rules in the help center, please edit the question.

I assume $\theta$ is just a parameter here; since it is not used, I will drop it. Note that the integral on the left is $$\int_0^{(1+x)B-C}(-C)\,dF(R)+\int_{(1+x)B-C}^\infty (R-(x+1)B)\,dF(R).$$ The two integrands agree at the common endpoint, therefore the two contributions to the derivative arising from the $x$-es in the limits cancel each other out (you have to be a bit careful in case $F$ has a discontinuity there, though). Then just differentiate the second integral under the integral sign.