An action potential in the nerve fibre is produced when positive and negative changes on the outside and the inside of the axon membrane are reversed because
more sodium ions enter the axon as compared to potassium ions leaving it.
When a nerve fibre is stimulated its membrane become more permeable to sodium ions.