How does the speed of a spacecraft change when entering the dense layers of the atmosphere?

How does the speed of a spacecraft change when entering the dense layers of the atmosphere? Are there any contradictions with the formula?

When entering the dense layers of the atmosphere, the speed of the spacecraft decreases due to the resistance of the atmosphere, while the formula is fulfilled.

Remember: The process of learning a person lasts a lifetime. The value of the same knowledge for different people may be different, it is determined by their individual characteristics and needs. Therefore, knowledge is always needed at any age and position.