Introduction

The factors affecting achievement are one of the subjects that have garnered the attention in educational research. Recent studies investigating the prominent concepts linked to academic achievement highlight cognitive flexibility, critical thinking and mathematics anxiety. It is inevitable that these variables would play important roles in both shaping mathematics instruction and teacher education as well. For instance, critical thinking is a skill about understanding the meaning of various situations and making appropriate decisions consequently (Serin et al., 2018). Hence, critical thinking disposition could be defined as the “person’s consistent internal motivations to act toward, or respond to, persons, events, or circumstances in habitual, yet potentially malleable ways” (Facione et al., 2000). There are many acquisitions related to critical thinking and critical thinking dispositions in curricula from primary school to university level that points to the importance of teachers to provide students with these skills. The related literature states that there is a positive relationship between critical thinking skills and academic achievement (Abrami et al., 2008). Teachers and pre-service teachers need to have a critical thinking disposition so that they can reflect on their students. Critical thinking disposition is an approach that teachers and students should have. In order for students to gain critical thinking skills, they should have tendencies to use skills such as analyzing, understanding the reasons for events, recognizing relationships, interpreting and evaluating events. However, these tendencies do not develop spontaneously and automatically. Besides, philosophical and psychological approaches, which view critical thinking as a goal to be accomplished via education, concentrate more on how to develop critical thinking and how to overcome obstacles than on the cognitive foundations of this skill (Scheibling-Sève et al., 2022). It is quite unlikely to fully understand critical thinking without being aware of these fundamental mechanisms, though, as critical thinking depends on several cognitive processes. In particular, focusing on cognitive approaches makes it feasible to comprehend how reasoning processes are resisted and how biases influence decisions and thus making it possible to take into account the barriers to the critical thinking disposition (Scheibling-Sève et al., 2022). It points the need of focusing on interaction between critical thinking disposition and cognitive flexibility.

In addition to critical thinking disposition, it is important for students to gain cognitive flexibility in order for the curriculum to achieve its purpose. Cognitive flexibility is the ability to choose and use the appropriate strategy as one’s tasks or goals change and defined as “flexible reassembly of preexisting knowledge to adaptively fit the needs of a new situation” (Spiro et al., 1992, p. 59). According to Stad et al. (2018), since classroom activities are based on cognitive flexibility, poor cognitive flexibility skills might cause students to fail in simple tasks and in their progressive learning. Therefore, teacher intervention is important to support cognitive flexibility. The students’ cognitive flexibility levels could be used to predict their future mathematics achievement (Stad et al., 2018). Cognitive flexibility has been found to be particularly relevant to mathematics achievement, as mathematics subjects require switching between different aspects of given tasks or solution strategies. Many studies have explored the possible effects of motivating factors, prior knowledge, and instructional interventions on cognitive flexibility. However, although emotions are one of the most significant factors have a significant impact on academic achievement, learning environments, instruction and students’ motivation and cognition, the role of emotions in the development of flexibility has received little attention (Jiang et al., 2021). Mathematics anxiety is thought to be one of the many emotions that affect cognitive flexibility and mathematics learning (Ashcraft, 2002). In order to comprehend how mathematics anxiety might influence cognitive flexibility and eventually academic achievement, the current study examined the association between mathematics anxiety and cognitive flexibility as well as the potential structure underlying this relationship.

Critical thinking disposition

Critical thinking has two different dimensions: critical thinking skills and critical thinking dispositions. Rudd (2007) defines critical thinking skills as the ability to use the logical thinking approach needed to understand concepts, make decisions, and solve problems. On the other hand, critical thinking disposition is a desire to use critical thinking skills (Zhang, 2003). Critical thinking disposition enables to predict critical thinking skills. Teacher educators first need to determine their critical thinking dispositions in order to develop their critical thinking skills. Critical thinking disposition is the motivation to solve problems and understand events, to make decisions using the necessary information and to evaluate them (Facione et al., 1998). Studies examining pre-service teachers’ critical thinking dispositions in the literature revealed that learning experiences in training programs affect critical thinking skills and tendencies (Abrami et al., 2008). In order to develop these skills, teacher training programs should provide appropriate learning experiences and teaching environments. Critical thinking skills and critical thinking dispositions are related concepts and the development of critical thinking skills in students is possible with the reflection of necessary features, activities and approaches to the education and training process through teachers. Although there are studies that reveal the relationship between critical thinking skills and academic achievement, results on the relationships between achievement and other variables are limited (Abrami et al., 2008). In this direction, it is thought that it is important to determine the level of disposition required for critical thinking in pre-service mathematics teachers and to determine the variables that are related to it in order to make the necessary interventions.

Cognitive flexibility

Cognitive flexibility is the capacity to switch between goals or tasks that stimulate thoughts which includes being flexible in adapting to changing goals or stimuli (Rueda et al., 2005). Cognitive flexibility begins to develop in the preschool period, becomes highly developed around the age of 10 (Blaye et al., 2006) and continues to develop throughout adulthood (Anderson, 2002). It is stated that cognitive flexibility plays an important role in academic success and learning by making it easier for students to change their perspectives and adapt to new situations (Magalhães et al., 2020). While there is growing evidence that there are important associations between cognitive flexibility and executive function, the nature of these associations remains poorly specified (Blakey et al., 2016). Therefore, cognitive flexibility would be discussed in the context of its’ common definition (i.e. the ability to adjust our thoughts and flexible behaviors in response to changes in our goals or the environment).

At this point, the scarcity of studies in the literature that consider cognitive flexibility as a predictor of academic success draws attention. Some studies show cognitive flexibility with counting and computation skills in mathematics and mathematics skills that required more conceptual or abstract knowledge (Purpura et al., 2017), while others with literacy (McClelland et al., 2014). Some studies have concluded that students with low mathematics achievement have difficulty in flexibly switching between solution strategies (McLean & Hitch, 1999). Magalhães et al. (2020) concluded that cognitive flexibility is an important determinant for school success, especially in older students. Although the limited prior studies indicate a relationship between cognitive flexibility and academic achievement (McLean & Hitch, 1999), the findings on the role of cognitive flexibility on academic achievement differ. This situation reveals that more studies are needed as it creates difficulties in interpreting the relationship between cognitive flexibility and academic achievement. Since cognitive flexibility enables students to learn from their mistakes and feedback, use alternative strategies, and construct knowledge simultaneously (Anderson, 2002; Ionescu, 2012), the use of this skill in the classroom is of great importance (Magalhães et al., 2020). Consequently, it is important to investigate the development of this skill, especially in pre-service teachers who would shape the mathematics teaching in the coming years.

Math anxiety

Mathematics anxiety corresponds to fear and negative feelings towards mathematics. The relationship between mathematics anxiety and achievement is highly effective on learning mathematics. It is stated that high mathematics anxiety leads to alienation from mathematics and negative attitude (Ashcraft, 2002). Teachers’ attitudes, teaching environment, and teaching methods could be effective in reducing or increasing students’ math anxiety (Eden et al., 2013). According to Maloney and Beilock (2012), the negative effect of mathematics anxiety on mathematics learning may be greater than the deficiencies in mathematics curriculum or teacher education programs. It is emphasized by National Council of Teachers of Mathematics (NCTM) that teachers with high mathematics anxiety cannot enjoy mathematics teaching and therefore cannot be successful in mathematics teaching (Gresham, 2018). It is an issue that needs to be highlighted, as teachers with this feeling may unintentionally convey their math anxiety to their students (Boyd et al., 2014). Mathematics anxiety might lead students to prefer teaching at earlier grade levels or in branches that do not include mathematics. Pre-service teachers with mathematics anxiety are likely to have negative attitudes towards mathematics and mathematics lessons, show poor performance in mathematics teaching, use standard mathematical rules and algorithms rather than conceptual understanding and student-centered teaching, and teach in which they are active (Brady & Bowd, 2005). Since many teachers and pre-service teachers tend to avoid mathematics due to their lack of confidence, skills and mathematical knowledge, the emphasis on working on mathematics anxiety has increased again recently (Lake & Kelly, 2014). Teacher education programs are effective in increasing the quality of mathematics teaching and reducing mathematics anxiety. Defining, identifying and reducing mathematics anxiety in pre-service teachers is important in terms of developing mathematical learning (Gresham, 2018) and improving teacher education programs.

In the literature, some studies investigate the relationship between cognitive flexibility and critical thinking disposition (e.g. Scheibling-Sève et al., 2022), critical thinking disposition and academic achievement (e.g. Abrami et al., 2008), cognitive flexibility and mathematics anxiety (e.g. Ashcraft, 2002), cognitive flexibility and academic achievement (e.g. Magalhães et al., 2020; McLean & Hitch, 1999). However, the research works concerning the inter-variable relationships and mediating effects by considering these variables altogether is very limited. Moreover, age is an important factor for cognitive flexibility (Anderson, 2002) and critical thinking disposition (Dunn et al., 2014). According to several studies, there is a significant difference in critical thinking disposition of university students based on grade level (Kawashima & Shiomi, 2007). Furthermore, pre-service mathematics teachers’ mathematics anxieties could be related to their previous experiences with mathematics as students, the influence of their teachers, or teacher training programs (Raymond, 1997). Some studies have found that grade level is a strong predictor of mathematics anxiety (Birgin et al., 2010; Ma, 1999).

To sum up, there exist studies examining cognitive flexibility, critical thinking disposition, and mathematics anxiety separately with mathematics performance or the relations between these variables. It is also stated in the literature that cognitive flexibility is an important concept for the execution of mathematical skills, especially counting and calculation skills (Purpura et al., 2017). In addition, it is known that critical thinking disposition provides motivation in problem solving, understanding mathematics and making mathematical decisions (Facione et al., 1998; Rudd, 2007). Mathematics anxiety appears to be a mediator variable in some studies investigating the relationships between cognitive and affective variables (Güner & Gökçe, 2021; Geary et al., 2023; Maldonado Moscoso et al., 2020; Zhang & Wang, 2020). On one hand, cognitive flexibility is one of the essential component of professional development and mathematical expertise (Baroody, 2003; Star & Newton, 2009). On the other hand, critical thinking is a high-order skill that encompasses cognitive processes such as problem-solving, logical reasoning, and decision-making (Rudd, 2007). According to Ennis (1985), individuals whom exhibit a critical thinking disposition make an effort to learn more about the setting or problem, to challenge the explanations, and to come up with alternative solutions. Studies also have shown that the tendency to think critically increases the responsibility to continue thinking, thus enabling awareness of thoughts, and thus has an effect on anxiety (Sugiura, 2013).

Purpose

The purpose of this study is to examine the mediating roles of critical thinking disposition and mathematics anxiety between cognitive flexibility and academic achievement of preservice mathematics teachers. In general, the courses in Turkish mathematics teacher education programs consist of three groups: (1) teaching profession courses, (2) mathematics courses and (3) general culture courses. In the first year, general culture courses are common. However, mathematics courses are dominating in the second year. In the third grade, mathematics teaching courses prevail, while teaching practices come to the fore in the fourth grade. Grade-based comparison of these changes and the variables addressed in this study is important in terms of evaluating the impact of the courses in teacher education program on the professional development of pre-service teachers. For this reason, we think that it is necessary to explore differences in mediating mechanisms at different grades of mathematics teacher education programs.

In our conceptual model, it is predicted that both critical thinking disposition and mathematics anxiety could be appropriate mediators. The current study is noteworthy both for determining the levels of pre-service teachers for these variables and for understanding the relationships between the concepts across grade levels as shown in Fig. 1.

Fig. 1
figure 1

The conceptual model

This study was designed to test the following research hypotheses based on the conceptual model.

H1. Cognitive flexibility has a direct effect on academic achievement.

H2. Cognitive flexibility has a direct effect on critical thinking disposition.

H3. Cognitive flexibility has a direct effect on mathematics anxiety.

H4. Critical thinking disposition has a direct effect on mathematics anxiety.

H5. Critical thinking disposition has a direct effect on academic achievement.

H6. Mathematics anxiety has a direct effect on academic achievement.

H7. Critical thinking disposition mediates the relationship between cognitive flexibility and academic achievement.

H8. Mathematics anxiety mediates the relationship between cognitive flexibility and academic achievement.

H9. Critical thinking disposition and mathematics anxiety mediate the relationship between cognitive flexibility and academic achievement.

Method

A cross-sectional study was held to observe and compare path coefficients among critical thinking disposition, cognitive flexibility, mathematics anxiety and academic achievement across freshman, sophomore, junior and senior students.

Participants

The participants were 662 university students (129 freshman, 152 sophomore, 252 junior and 129 senior) studying four year elementary mathematics education program. The gender distribution of the preservice teachers is 544 females and 118 males. The ages of the participants ranged between 18 and 22.

Measures

The following three measures were utilized to collect data: (1) Cognitive Flexibility Scale (CFS), (2) UF/EMI Critical Thinking Disposition Instrument (University of Florida Engagement, Maturity, and Innovativeness) and (3) Math Anxiety-Apprehension Survey (MASS). The first measure of the study is the Cognitive Flexibility Scale. This scale aims to measure behavioral flexibility as well as the adaptation and tolerance to ambiguity with 12 items having 6-point Likert type. We used Turkish version of this scale adapted by Çelikkaleli (2014) in which high score denotes high level of cognitive flexibility. The second measure of the study is the UF/EMI Critical Thinking Disposition Instrument. Besides, this scale has 25-items with 5-point Likert type and focused on engagement (looking for opportunities to use skills and abilities to reason, to solve problem, and to make judgments), cognitive maturity (being aware of tendencies and prejudices in decision-making process) and innovativeness (having intellectual curiosity and seeking to learn new information by researching, reading and questioning). UF/EMI Critical Thinking Disposition Instrument was adapted into Turkish by Ertaş-Kılıç and Şen (2014) and high score indicates high level of critical thinking disposition. The third measure of the study is the Mathematics Anxiety-Apprehension Survey (MAAS), developed by Ikegulu (1998). This 5-point Likert type survey consisting of 20 items was used to measure the instructional and/or classroom mathematics anxiety. The higher scores represent the existence of high math anxiety.

We carried out validity and reliability analyzes of the measures. In this context, Cronbach’s alpha coefficients (measure of internal consistency) were calculated and confirmatory factor analyzes were performed by using the lavaan package of the R program (Rosseel, 2012). The reliability values obtained as a result of the analyzes performed on the obtained data were high. For cognitive flexibility scale, these values were 0.786, 0.812, 0.755, 0.839, respectively. The Cronbach’s alpha coefficients of critical thinking disposition instrument were 0.875 for freshman, 0.858 for sophomore, 0.865 for junior and 0.887 for senior students. Finally, the Cronbach’s alpha coefficients of math anxiety apprehension survey were found as 0.898, 0.862, 0.895 and 0.895 for freshman, sophomore, junior and senior students, respectively. Confirmatory factor analysis findings are used to evaluate the validity of the measures (Sireci et al., 2008). In the analyzes performed, it was observed that the χ2/df, SRMR, RMSEA, CLI and TLI values showed that the data fit the model based on the values specified in Table 1 for all grade levels.

In undergraduate level, pre-service mathematics teachers took mathematics field courses (such as analysis, abstract algebra, linear algebra, analytical geometry, statistics, and probability) as well as mathematics teaching courses (such as history of mathematics, teaching numbers, teaching geometry and measurement, teaching probability and statistics, teaching algebra, mathematical connections and problem solving). Hence, cumulative grade point averages (CGPA) were taken into account within the scope of academic achievement of pre-service teachers.

Data analysis

The structural equation modeling (SEM) analyses were carried out as part of the study utilizing the lavaan package of R. The structural relationships between the critical thinking disposition, cognitive flexibility, math anxiety and academic achievement variables in the proposed models were examined independently for each grade in the suggested models. Table 1 employs the acceptable and good fit indices of the models.

Table 1 Fit indices with acceptance levels

Results

The results would be shared under two headings as comparative and SEM analysis.

Comparative analysis

A one-way between subjects ANOVA was used to determine whether critical thinking disposition, cognitive flexibility and math anxiety differ according to the grade levels of university students. In this context, we checked the assumptions of ANOVA. The statistics for normality assumption is given in Table 2.

Table 2  Statistics for normality assumption

The skewness and kurtosis values between − 1.50 and + 1.50 are viewed as indicating a normal distribution. Moreover, Levene test was employed to determine the homogeneity of variances and non-significant p values showed that the variances of each group were about the same. The descriptive statistics of measures for overall and for each grade level separately are given in Table 3.

Table 3 Descriptive statistics and correlation coefficients

The correlation coefficients in Table 3 showed that cognitive flexibility has a significant and positive relationship with critical thinking disposition (r = .631, p < .01), has a significant and positive relationship with academic achievement (r = .312, p < .01) and has a significant and negative relationship with mathematics anxiety (r=-.488, p < .01). Moreover, critical thinking disposition has a significant and positive relationship with academic achievement (r = .323, p < .01) and has a significant and negative relationship with mathematics anxiety (r=-.563, p < .01). Finally, mathematics anxiety has a significant and negative relationship with academic achievement (r=-.366, p < .01). For each grade level, the correlation coefficients among variables from each grade are consistent with the overall participants’ statistics. From Table 3, it was also observed that the mean scores of cognitive flexibility, critical thinking disposition and mathematics anxiety across grade levels were close to each other. A one-way between subjects ANOVA was conducted to compare these mean scores across freshman, sophomore, junior and senior students. It was found that there were not a significant effect of grade level on critical thinking disposition [F(3, 658) = 1.394, p = .243], cognitive flexibility [F(3, 658) = 1.373, p = .250] and mathematics anxiety [F(3, 658) = 1.050, p = .370] at p < .05 level.

SEM analysis

For the measures used in the study, the confirmatory factor analyses (CFA) were conducted across grade levels and the obtained indices are presented in Table 4.

Table 4 Confirmatory factor analyses results across grade levels

In Table 4, the results of CFA showed that the χ2/df, RMSEA, CFI, TLI, and SRMR indices have either good or acceptable fit. Afterwards, the structural equation modeling was utilized to test the hypothesized theoretical relationships in the provided conceptual model (see Fig. 1). As indicated in Table 5, the fit indices of models in each grade level show how well the data supported hypothesized relationships.

Table 5  Fit indices of total effect and mediating models across grade levels

For each grade, the total effect and mediating models are tested whether to have acceptable or good fit indices in terms of χ2/df, SRMR, RMSEA, CFI and TLI. In mediating models, critical thinking disposition and math anxiety are the mediators. We tested mediating models to derive the direct, indirect and total effects of cognitive flexibility on academic performance through critical thinking disposition and mathematics anxiety for freshman, sophomore, junior and senior students. Hypotheses, paths, standardized regression weights, significance values and decisions of each model could be found in Table 6.

Table 6 Hypotheses, paths, standardized regression weights, significance values and decisions

In completely standardized solutions (std. all), both latent and observed variables are standardized. Based on Std. all values in Table 6, both cognitive flexibility and critical thinking disposition demonstrated a direct, positive, and statistically significant effect on academic achievement in all models (H1 and H3, p < .05). On the other hand, mathematics anxiety had a direct, negative and statistically significant effect on academic achievement in all models (H5, p < .05). When the effect of cognitive flexibility on critical thinking disposition was concerned, a direct, positive, and statistically significant effect was found in all models (H2, p < .05). Moreover, cognitive flexibility and critical thinking disposition showed a direct, negative, and statistically significant effect on mathematics anxiety in all models (H4 and H6, p < .05). When we focused on indirect effects, we observed that the mediating effects of critical thinking disposition between cognitive flexibility and academic achievement were positive and statistically significant except the model for sophomore students (H7, p < .05 for freshman, junior and senior but p ≥ .05 for sophomore). Besides, the mediating effects of mathematics anxiety between cognitive flexibility and academic achievement were not statistically significant for all models (H8, p ≥ .05). Finally, the mediating effects of critical thinking disposition together with mathematics anxiety between cognitive flexibility and academic achievement were positive and statistically significant only within the model for junior students (H9, p < .05 for junior but p ≥ .05 for others). Path coefficients of the models for freshman, sophomore, junior and senior students are shown in Fig. 2.

Fig. 2
figure 2

Path coefficients of total effect and mediation analysis

In total effect models, there was a decrease in the effect of cognitive flexibility on academic achievement from freshman to sophomore while there was an increasing trend after sophomore (0.580* → 0.328* → 0.410* → 0.443*). In mediating models, there was a similar tendency between cognitive flexibility and academic achievement (0.246* → 0.192* → 0.215* → 0.239*). On the other hand, the critical thinking disposition had decreasing effects on academic achievement from freshman to junior but increasing effect from junior to senior (0.259* → 0.209* → 0.200* → 0.308*). Moreover, the effect of mathematics anxiety on academic achievement differed from cognitive flexibility and critical thinking disposition. In other words, while the negative effect of mathematics anxiety on academic achievement decreased from freshman to sophomore, increased from sophomore to junior and then decreased from junior to senior (− 0.224* → − 0.182* → − 0.206* → − 0.181*).

There were three indirect effects (IEs) from cognitive flexibility to academic achievement. In IE1, the mediator was the critical thinking disposition. In IE2, the mediator was the mathematics anxiety. Finally, both the critical thinking disposition and the mathematics anxiety were the mediators in IE3. The further analysis was conducted to determine the degree of the mediating effect in conceptual models. Accordingly, a ratio of 0.80 and above indicates that it is a full mediating effect, a ratio between 0.20 and 0.80 indicates that there is a partial mediating effect, and that a ratio below 0.20 does not create a mediating effect (Hair et al., 2014). For freshman, IE1 was statistically significant and positive but IE2 and IE3 were not statistically significant. We obtained the ratio as 0.25 and found that critical thinking disposition had partial mediating effect between cognitive flexibility and academic achievement. For sophomore, none of the indirect effects (IE1, IE2 and IE3) was statistically significant so critical thinking disposition and mathematics anxiety did not create a mediating effect. For junior, IE1 and IE3 were statistically significant and positive but IE2 was not statistically significant. The ratio of the sum of indirect effects to total effect was calculated as 0.28. The mediating role of critical thinking disposition alone and the mediating role of critical thinking disposition and mathematics anxiety together created partial mediating effect. For senior, similar to freshman, IE1 was statistically significant and positive but IE2 and IE3 were not statistically significant. We found the ratio as 0.27 and reached that critical thinking disposition had partial mediating effect between cognitive flexibility and academic achievement.

Discussion and conclusion

The purpose of this study was to examine the mediating role of critical thinking disposition and mathematics anxiety in the relationship between pre-service teachers’ cognitive flexibility and academic achievement. This study extended critical thinking disposition and math anxiety to the body of research on cognitive flexibility and academic achievement and enriched the knowledge of how these constructs interact to affect academic achievement. In structural equation model analyzes carried out for this purpose, the five-step structure specified by Hoyle (1995) was used accordingly: (1) model specification, (2) estimation, (3) evaluation of fit, (4) model modification and (5) interpretation. For freshman, sophomore, junior and senior students, each model was observed to have acceptable or good fit indices in terms of χ2/df, SRMR, RMSEA, CFI and TLI (see Table 5).

As pointed out in Table 6, both cognitive flexibility and critical thinking disposition exhibited a direct, positive, and statistically significant effect on academic achievement (H1 and H3, respectively). Moreover, a direct, positive, and statistically significant effect of cognitive flexibility on critical thinking disposition was reported (H2). Cognitive flexibility is one of the cognitive processes that gets in when one starts to think critically (Scheibling-Sève et al., 2022). Critical thinking displays a structure associated with cognitive flexibility, which is seen as the ability to adapt to new ones in terms of testing the strengths and weaknesses of different perspectives (Paul, 1990). The ability to think critically requires cognitive flexibility since it involves not just focusing on already existing information but also considering other alternatives that are worthwhile exploring, acquiring viewpoints that differ from the initial one, and reconceptualizing a situation (Scheibling-Sève et al., 2022). In short, critical thinking necessitates having a wide range of alternatives available for evaluation in our minds. This interactive structure involves selecting and switching between various alternatives of a concept or situation (Jacques & Zelazo, 2005). As a result, having low cognitive flexibility can make it more difficult for us to find a solution to a problem or make a decision. Cognitive flexibility opens the door for exhibiting different perspectives in the same situation and avoiding the negative effects of constancy, thus serving as an important tool for critical thinking (Scheibling-Sève et al., 2022). When we consider that the disposition for critical thinking is the drive to solve problems, make decisions using the relevant knowledge, and evaluate them (Facione et al., 1998), it might be argued that lack of critical thinking skills puts us at risk for making poor decisions and defending beliefs with little substantive evidence (Scheibling-Sève et al., 2022). Critical thinking and the disposition to use it, in the view of educational philosophers, should not be one of the alternatives that can be used in the teaching process but rather a fundamental component of education (Norris, 1985). Teachers that encourage critical thinking in the classroom have a considerable positive impact on students’ cognitive development and critical thinking dispositions.

Critical thinking is a skill that is desired to be acquired by students with our education system. Despite the importance put on the development of critical thinking skills by the educational system, little is being done to put these skills into practice and to promote their training. Halpern (1988) asserts that many members of society, particularly teachers, lack sufficient levels of critical thinking. Therefore, critical thinking training for teachers is important so that students could think critically in the classroom and apply what they have learned in new and varied contexts. The critical thinking disposition is linked to cognitive productivity and is thus a component of academic achievement. Similar to the results of our study, Stupnisky et al. (2008) observed that college students’ critical thinking dispositions predicted their academic achievement. Besides, many studies put forward academic achievement and critical thinking are positively correlated (Abrami et al., 2008). In our study, being a relationship between critical thinking disposition and academic achievement is expected situation given the link between critical thinking and disposition toward this skill.

When research works on cognitive flexibility are examined, the outcomes of these studies indicated that cognitive flexibility impacts learning (Jacques & Zelazo, 2005) and has a relationship with academic achievement (Kercood et al., 2017) because cognitive flexibility allows students to extend their ideas, transfer them to new environments and adjust to contextual changes (Magalhães et al., 2020). Increased cognitive flexibility has been linked to lower level of anxiety and higher level of achievement for university students (Timarová & Salaets, 2011). The results of the study conducted by Kercood et al. (2017) showed that academic skills such as reading, math, and writing were significantly predicted by cognitive flexibility. The researchers emphasized a substantial relationship between cognitive flexibility and academic achievement, indicating that cognitive flexibility has extensive effects on academic achievement. Students with high cognitive flexibility may have higher academic achievement as they tend to adapt appropriately alternative approaches to other contexts.

Mathematics anxiety, on the other hand, showed a direct, negative, and statistically significant effect on academic achievement (H5). Furthermore, cognitive flexibility and critical thinking disposition had a direct, negative, and statistically significant effect on mathematics anxiety (H4 and H6, respectively). Cognitive flexibility involves being aware of alternative solutions for adapting different situations and being willing to change. Individuals with higher levels of cognitive flexibility achieve higher performance in decision-making and problem solving (Passolunghi et al., 2016). Critical thinking is one of the high-level skills based on mental processes such as logical reasoning, decision-making, and problem-solving and cognitive flexibility affects the development of these skills (Ionescu, 2012). This interplay demonstrates the link between cognitive flexibility and critical thinking. Park and Moghaddam (2017) emphasize the negative effects of anxiety on cognitive flexibility and decision-making process, namely critical thinking. The literature have addressed that flexibility in the use of strategy may be impacted by mathematics anxiety. Students with high math anxiety tend to use inefficient strategies and avoid implementing sophisticated procedures, which makes it difficult to see other strategies, solution procedures and discourage one from trying new approaches (Imbo & Vandierendonck, 2007). Thus, this emotion affects academic achievement negatively. It is thought that a negative attitude towards mathematics is related to mathematics anxiety (Lake & Kelly, 2014). Since a negative attitude would reduce the effort towards doing mathematics, it affects mathematics achievement in a negative way. Besides, students’ mathematics anxiety, achievement, flexibility were significantly affected by teachers’ mathematics anxiety through negative class experiences created their teachers (Jiang et al., 2021). This study highlights the crucial role of teachers and educators should play in assisting students in decreasing their math anxiety and the negative effects of this feeling.

The findings also revealed that critical thinking disposition, cognitive flexibility and mathematical anxiety scores did not significantly differ across grade levels. On one hand, there are studies showing that pre-service teachers’ critical thinking dispositions did not differ depending on grade level in line with this study (Serin et al., 2018). On the other hand, some studies have concluded that there is a significant difference in critical thinking dispositions of university students according to the grade level (Kawashima & Shiomi, 2007). Moreover, age is a significant predictor of critical thinking disposition for some studies (Dunn et al., 2014) but not a significant predictor for some other studies (Thompson et al., 2003). In our study, we obtained that there was no significant difference between pre-service teachers’ critical thinking dispositions according to grade level. One could argue that pre-service teachers’ university education did not sufficiently shape their critical thinking dispositions.

The research works show that a large proportion of pre-service teachers have higher mathematics anxiety (Sloan et al., 2002). These anxieties experienced by pre-service teachers in mathematics may be due to their previous experiences with mathematics as students, the influence of their teachers or teacher training programs (Raymond, 1997). In line with our findings, some studies reveal that grade level is not a significant predictor of mathematics anxiety (Dede & Dursun, 2008), despite research showing that students’ anxiety levels increase as grade level increases (Ma, 1999) or decreases (Birgin et al., 2010). The reason why mathematics anxiety did not significantly change depending on the grade level in our study may be that pre-service teachers do not taking a large-scale exam during their university education and having confidence in their knowledge at this stage.

Finally, when the change in cognitive flexibility is considered in terms of grade level, we attained studies that have outcomes similar to our results (Camcı Erdoğan, 2018; Esen-Aygün, 2018). In such studies, the cognitive flexibility skills of pre-service teachers did not differ significantly according to the grade level. This could imply that many undergraduate theoretical and applied courses, especially those that foster critical and creative thinking and help students understand alternate possibilities and make decisions, are insufficient (Camcı Erdoğan, 2018). According to Esen-Aygün (2018), it is possible that the skills of cognitive flexibility would not change significantly over the period of the subsequent years of learning experiences as a result of pre-service teachers’ adjustment to the profession of teaching and automatic thinking because cognitive flexibility necessitates a willingness to adapt to new circumstances. However, teachers need to develop a variety of skills to advance their professional capabilities including cognitive flexibility and use them more effectively. Cognitive flexibility is crucial in learning environments since it enables students to simultaneously evaluate knowledge, choose alternate approaches or determine appropriate responses and make use of feedbacks and errors to correct them (Anderson, 2002; Ionescu, 2012; Magalhães et al., 2020). According to some studies, cognitive flexibility begins to evolve quickly in preschool, reaches maturity by age 10 (Blaye et al., 2006) and persists in improving throughout adolescence and adulthood (Anderson, 2002). Unlike our study results, some studies pointed to increased cognitive flexibility from 5 to 9 years of age (Blaye et al., 2006). Magalhães et al. (2020) found that cognitive flexibility affected students’ scores in grade 4 and grade 6 but not in grade 2. According to the researchers, it points to the growing significance of cognitive flexibility during development. These studies’ findings may differ from those of our study because they mostly focus on younger age groups.

The findings of the current study indicated that the cognitive flexibility has a greater impact on first-year students’ academic achievement than it does on second-year students. Furthermore, the mediating effects of the critical thinking disposition between cognitive flexibility and academic achievement were statistically significant, with the exception of the model for sophomore students. Additionally, none of the model estimations of how mathematics anxiety would mediate between cognitive flexibility and academic achievement was statistically significant. Last but not least, for junior students only positive and statistically significant mediating effects of critical thinking disposition and mathematics anxiety between cognitive flexibility and academic achievement were found.

We also found that the mediating effects of critical thinking disposition between cognitive flexibility and academic achievement were positive and statistically significant, with the exception of the model for sophomore students (H7). Furthermore, the effects of mathematics anxiety between cognitive flexibility and academic achievement were not statistically significant in any of the models (H8). Finally, the mediating effects of critical thinking disposition together with mathematics anxiety between cognitive flexibility and academic achievement were only positive and statistically significant for junior students (H9). There is a standard teaching program in education faculties of the universities in Turkey. The courses in teacher education programs consist of three groups: (1) teaching profession courses, (2) mathematics courses and (3) general culture courses. In the first year of the elementary mathematics education program, there are basic courses such as History, Foreign Language and Information Technologies, as well as mathematics courses such as Fundamentals of Mathematics, Analysis I, Analysis II and Abstract Mathematics, which support the development of pre-service teachers’ basic mathematical skills. In the second year, there are courses such as Linear Algebra, Analysis III, Analytical Geometry and Probability that would support the development of pre-service teachers’ content knowledge. When pre-service teachers reach the third grade level, they take courses such as Teaching Numbers, Teaching Geometry and Measurement, Teaching Algebra and Teaching Probability and Statistics, which aim to improve their knowledge of teaching mathematics. At the fourth grade level, where internship courses such as Teaching Practice I and Teaching Practice II and teaching courses like Problem Solving in Mathematics, Mathematical Modeling and Logical Reasoning come to the fore. For freshman, junior and senior students, critical thinking disposition plays a significant mediating role in the effect of cognitive flexibility on academic achievement. This situation is thought to be due to the fact that the general culture courses taken from different disciplines in the first grade support the different thinking of the students. In the third and fourth grades, pre-service teachers are taught to support different teaching approaches within their mathematics teaching courses. Although a similar conclusion is valid for third and fourth grade levels, the reason why a critical perspective does not have a significant mediating effect on flexible thinking skills on academic achievement for the so-called abstract courses at the second grade level, which is difficult to make sense of, could be related to the content and learning outcomes of these courses. Students who have developed cognitive flexibility in mathematics outperform others in understanding mathematical ideas, using their mathematical expertise, and coming up with creative solutions to problems (Blöte et al., 2001; Rittle-Johnson et al., 2012). The fact that sophomore students took many courses regarding abstract concepts could be explained by the effect mediated by critical thinking disposition (H7) is not statistically significant only for this grade level. As mentioned before, there is a negative relationship between mathematics anxiety and cognitive flexibility, critical thinking disposition and academic achievement. In this study, it was seen that mathematics anxiety did not have a significant mediating role between cognitive flexibility and academic achievement (H8) across different grades of prospective teachers. A similar situation exists in almost all models in which the mediating role of both mathematics anxiety and critical thinking disposition at the same time is examined (H9). As a result, it can be stated that only the mathematics anxiety variable and both mathematics anxiety and critical thinking disposition do not have a significant mediating role between cognitive flexibility and academic achievement in the context of different grade levels in higher education.

Within the scope of this study, the total and mediating effects between the variables were compared in terms of grade levels. The trend was tried to be determined and accordingly, when the results obtained from the total effect models shared in Fig. 2 are examined, it is seen that the total effect of cognitive flexibility on academic achievement varies over the years, but it reaches the highest effect value for freshman and the lowest effect value for sophomore. There is also an increasing trend in the effect values from sophomore students to senior students (0.580* → 0.328* → 0.410* → 0.443*). When the effects between the variables in the mediating models are examined, it is seen that the direct effect of cognitive flexibility on academic achievement is similar to the tendency in the total effect model over the years (0.246* → 0.192* → 0.215* → 0.239*). The same tendency is also involved in the direct effect of cognitive flexibility on critical thinking disposition (0.442* → 0.279* → 0.353* → 0.400*). However, results that do not show similarity to this trend were also obtained. For example, critical thinking disposition on academic achievement (0.259* → 0.209* → 0.200* → 0.275*), cognitive flexibility on math anxiety (− 0.304* → − 0.210* → − 0.205* → − 0.198*), mathematics anxiety on academic achievement (− 0.224* → − 0.182* → − 0.206* → − 0.181*) and critical thinking disposition on mathematics anxiety (− 0.270* → − 0.225* → − 0.397* → − 0.388*) have different tendencies when the direct effects are concerned. When the trends in mediating models are examined, it is observed that the effect of cognitive flexibility on academic achievement through critical thinking disposition has the highest value for freshman, the lowest value for sophomore, and keep increasing for further grades (0.115* → 0.058 →  0.070* → 0.110*). The effect of cognitive flexibility on academic achievement through math anxiety was not significant at all grade levels (0.068 → 0.038 → 0.042 → 0.036). In the model in which critical thinking disposition and mathematics anxiety are mediated together, the effect of cognitive flexibility on academic achievement was found to be very low (0.027 → 0.011 → 0.029* → 0.028). When the trend was examined, it was seen that the coefficients in many models had the lowest value at second grade. The reason why cognitive flexibility, critical thinking disposition and mathematics anxiety have little effect on academic achievement could be related to the content of the mathematics courses at this grade level.

When we consider the mediating roles of the variables (either full mediating, partial mediating or no mediating) over the years, the critical thinking disposition had a partial mediating effect on the effect of cognitive flexibility on academic achievement, except for sophomore students. Mathematics anxiety has no mediating effect at any grade level. Finally, in the model mediated by both critical thinking disposition and mathematics anxiety, it was seen that there was only a partial mediating effect between cognitive flexibility and academic achievement for junior students.

Limitations and implications

The current research makes a significant contribution to understanding of the relationship among cognitive flexibility, critical thinking disposition, mathematics anxiety and academic achievement as well as the potential mechanism behind this structure. However, it also has some limitations. Since the participants in this study were pre-service teachers, we should tread cautiously when extending the outcomes to younger students. In this study, the data were collected in a single time interval and focused on the correlational structure between the variables. Therefore, inferences for causality could not be made. It is recommended to carry out longitudinal and experimental studies in future research works.