We now know what is a maximal margin classifier and a support vector classifier which are used for linearly separable data. Now we will get into non-linear separable data. SVM is used to classify non-linear separable data. For example, In the plot, there are two classes, the blue square, and…