Doubt by Aarush Kashyap

Sir , how can we know that, when to use integration or differentiation in a given question?