As BattleRife stated, F=ma
All the recoil force backwards is equal and opposite to the force required to accelerate the mass forwards.
First recoil force is from the firing pin release, "long before" (so to speak) impact and ignition on the primer. You can test this by dry firing. The rifle will move backwards.
Next recoil is the firing pin decelerating as it hits the primer, and the entire mass of the cartridge plus the rifle pushing back.
Next recoil is after ignition of the primer and powder. The mass of the primer material, the mass of the powder and the bullet are now accelerating forward. Because this is so incredibly fast, the "a" in F=ma makes F very large.
That acceleration continues until bullet and gasses leave the muzzle.
I don't think (I may be wrong) that there is any decline of force mid-way through the barrel, because the inertia of the bullet and gasses is still being overcome (accelerated), and thus the reaction force continues backwards?
There is another force of torque due to friction and spin of the bullet on the rifling, which will move and twist the firearm to the right, but I don't think you will feel this as a backwards recoil force, but it certainly is part of recoil management for precision shooting. That's one reason why we see the evolution of F-class bipods getting so wide and center of mass of the barrel being low in the bipod legs so as to resist that torque force.
Disclaimer: I am a Biologist not a Physicist, so I may have this all totally wrong!