The detailed study of the special and general theory of relativity typically occurs in the field of physics at the university level. Specifically, you would typically encounter these topics in advanced undergraduate or graduate-level courses in theoretical physics or general relativity.
At the undergraduate level, you may find introductory courses in modern physics or classical mechanics that touch upon the basic concepts of special relativity. However, for a more in-depth study of both special and general relativity, it is common to pursue specialized courses at the graduate level.
These graduate-level courses might be offered as part of a physics curriculum, particularly in programs with a focus on theoretical physics or astrophysics. The specific course titles may vary between institutions, but you might look for courses such as "Special Theory of Relativity," "General Theory of Relativity," "Introduction to General Relativity," or "Gravitational Physics."
It's worth noting that the level at which the special and general theories of relativity are taught can vary between universities and even within different departments. Therefore, it is advisable to consult the course catalogs or speak with professors and advisors at your specific institution to determine the exact classes that cover these topics in detail.