What is happening mathematically when a character is launched by an attack?

I'm not really here much but I'm having a hard time finding this information. I can look up the knockback formula pretty easily but idk. I think it's just a function of the knockback value and the character's weight, fall speed or both? How does it actually work? If someone does decide to answer this ty in advance.