I don't agree with many of the arguments put forward in comments and replies. The main question is
What are the commands used to make such mathematical figures and where
can I learn more?
The TikZ suggestion is not valid and yet I love TikZ. You can do everything with TikZ and probably too much, but it's not specifically designed for making geometric figures.
Making figures with external tools is not a good solution either. Firstly, because of the differences in styles: it's difficult to have the same fonts, and secondly, if you have to modify the figure, it's hardly practical.
There are other solutions: if you've worked with Pstricks, then there's pst-eucl; if not, you can use tkz-euclide, which is based on TikZ but only does Euclidean geometry; and if you're working with lualatex, then there's tkz-elements. Not only does tkz-elements allow you to create geometrical figures, but it also offers a range of calculation options.
The advantage of the latter solutions is that the figure code is in your main code, and with a suitable package you can easily modify it.
Let's look at a few examples:
1)With tkz-euclide For example, you want what we call: the school right triangle
\documentclass{standalone}
\usepackage{tkz-euclide}
\begin{document}
\begin{tikzpicture}
\tkzDefPoints{0/0/A,4/0/B}
\tkzDefTriangleschool
\tkzGetPoint{C}
\tkzMarkRightAngles(C,B,A)
\tkzLabelAnglepos=0.8{$30^\circ$}
\tkzLabelAnglepos=0.8{$90^\circ$}
\tkzLabelAnglepos=0.8{$60^\circ$}
\tkzDrawPolygon(A,B,C)
\tkzLabelPoints(A,B)
\tkzLabelPointsabove
\end{tikzpicture}
\end{document}

\documentclass{standalone}
\usepackage{tkz-euclide}
\begin{document}
\begin{tikzpicture}
\tkzDefPoint(0,0){A}
\tkzDefPoint(5,0){B}
\tkzDefTriangletwo angles = 20 and 90
\tkzGetPoint{C}
\tkzDrawSegment(A,B)
\tkzDrawPoints(A,B)
\tkzLabelPoints(A,B)
\tkzDrawSegments(A,C B,C)
\tkzDrawPoints(C)
\tkzLabelPointsabove
\tkzLabelAnglepos=1.4{$20^\circ$}
\tkzMarkRightAnglefill=blue!10
\tkzLabelSegmentsloped,above{$b$}
\end{tikzpicture}
\end{document}

% !TEX TS-program = lualatex
\documentclass{article}
\usepackage{tkz-euclide}
\usepackage{tkz-elements}
\begin{document}
\begin{tkzelements}
z.A = point : new ( 0 , 0 )
z.B = point : new ( 4 , 0 )
z.C = point : new ( 4 , 3 )
L.AC = line : new ( z.A , z.C )
z.H = L.AC : projection (z.B)
T.ABC = triangle : new (z.A,z.B,z.C)
z.O = T.ABC.circumcenter
z.I = T.ABC.incenter
z.I_B = L.AC : projection (z.I)
\end{tkzelements}
\begin{tikzpicture}
\tkzGetNodes
\tkzDrawPolygon(A,B,C)
\tkzDrawSegments(B,H O,A)
\tkzDrawCircles(O,A I,I_B)
\tkzDrawPoints(A,B,C,H,O,I)
\tkzLabelPoints(A,B,C,H,O,I)
\end{tikzpicture}
The length of AC is \tkzUseLua{length(z.A,z.C)}
The length of BH is \tkzUseLua{length(z.B,z.H)}
\end{document}
The advantages of this solution:
- The calculations are very precise. They are carried out before the tracings
- You can trace with tkz-euclide or with Tikz
- The code is easy to modify
- In LaTex, you have access to your figure, and you can use lengths and angles related to your figure in your code.
- Finally, you have access to dozens of predefined mathematical functions. (see documentation)

abcin italics enclose the code in$ $as so ---node[midway, below]{$a$}– js bibra Mar 31 '21 at 04:53