An Introduction to Artificial Intelligence
In the world of computers, artificial intelligence is the ability of an electronic device or computer program to use its brain or intelligence to perform different kind of tasks; for example, in the binary world, a computer program may use its artificial intelligence and neural networks to analyze the environment, learn from the environment, and perform a particular task.
As you can see, this is a diagram that an individual can use to understand some of the differences between artificial intelligence and its subfields:

Artificial Intelligence: As previously stated, artificial intelligence (AI) is the ability of an electronic device or computer program to use its brain and intelligence to perform some operations. For example, in software development, when an individual is interacting or chating with a computer program, a computer program can use some conditional statements to evaluate the user input and respond logically to that user, imitating the brain or intelligence of a human being. In the computers world, this imitation is known as artificial intelligence. In addition to that kind of artificial intelligence, there are other kinds of AI, such as machine learning and deep learning. In those subsets of AI, we can say that a computer application is using AI when it is using machine learning features or deep learning features.
Machine Learning: Machine learning (ML) is a subset of artificial intelligence where a computer program can improve itself with time and experience.
Deep Learning: Deep learning (DL) is a subset of machine learning where a computer program can use advanced neural networks to train and improve itself.
Author: Alvaro J. Gene.