Mathematical Description of Differential Hebbian Plasticity: and its Relation to Reinforcement Learning