The article examines problems in teaching mathematics at Riga Technical University, related to changes in secondary education. From 2020, the form and content of secondary education in Latvia has changed, moving to 3 levels of education: education of general, optimal and advanced curriculum levels. The article discusses the difference in the content of mathematics programs at these levels and the results achieved by students. The statistical data of the students enrolled in two faculties has been analysed on the level of elementary mathematics knowledge of these students, as well as the obtained results in higher mathematics in both semesters of the 1st year. The abstract highlights the problem related to the fact that students with different levels of knowledge in mathematics acquired in secondary school are taught together: in a lecture, students who studied mathematics at an advanced level in secondary school and have already mastered the basics of Higher Mathematics and students who learned mathematics at school at the optimal or even general level are in the same level audience and have not learned anything from the subject of Higher Mathematics. The article offers a possible solution to this problem by dividing students into groups according to their mathematical knowledge.