What is DirectX? How to download and update DirectX on your computer

In the course of using computers, we must have heard at least once about DirectX. But what is DirectX? How does it work? And how do I download DirectX or install DirectX on my computer? Surely many people still do not understand?