What is the fundamental difference in control law between P controller and you controller?
the output of P controller depends only on the present state of
the input, whereas the output of I controller depends on the whole
history of the input. that is the fundamental difference between
the control law of two controllers.