I have a small question on how to compute the derivative of an expectation when an indicator function gets in the way. Let $x$ be a random variable. We are interested in computing the derivative wrt A of
$E_x [(A-x)1_{(x \leq A)}]$
where $1_n$ is the indicator function 1 when $n$ is true. A paper I am reading mentions that this is simply
$F(A)$
but I am unsure how to get that result. Your intuitive explanations are most appreciated.