The Tur records that on Mondays and Thursdays additional tachanunim are said after the chazzan completes the repetition of the Amidah, noting that some communities (per Rav Amram) add vidui and va'yaavor, while others say only Vehu Rachum, and he explains that these days were chosen because they commemorate Moshe ascending on Thursday and descending on Monday with the second tablets, days of divine favor (Tur, Orach Chayim 134).
The Mishnah Berurah confirms that in some places the custom is to precede Vehu Rachum with the recitation of the thirteen attributes of mercy along with vidui, and he stresses that Vehu Rachum itself must be said with concentration and deliberation, not rushed, since its text was established through a recorded miracle (Mishnah Berurah 134:1-2).
The Arukh HaShulchan likewise identifies El Erech Apayim as the text recited specifically on Monday and Thursday, cross-referencing the fuller treatment in siman 134 (Arukh HaShulchan, Orach Chaim 131:9).
The actual wording of El Erech Apayim, invoking God's quality of being slow to anger and the attribute of mercy, is preserved in the Siddur Sefard text, which draws on the language of divine mercy and forgiveness and situates the prayer amid the supplications of Tachanun before the Torah reading (Siddur Sefard, Weekday Shacharit, Tachanun 6-8, Weekday Siddur Sefard Linear, The Morning Prayers, Tachanun 42, Weekday Siddur Sefard Linear, The Morning Prayers, Vehu Rachum 139, Weekday Siddur Sefard Linear, The Morning Prayers, Reading of the Torah 5).
Rav Eliezer Melamed describes a difference in practice regarding what follows this: Ashkenazim recite El Erech Apayim (omitting it on festive days when Tachanun is not said) and then Berich Shemei, whereas Sephardim reserve Berich Shemei for Shabbat and Yom Tov, with some also saying it on Rosh Chodesh (Peninei Halakhah, Prayer 22:3).
HaAgur addresses a related question of scope, ruling that when Tisha B'Av falls on a Monday or Thursday that is itself pushed off to Sunday, one nonetheless says El Erech Apayim and Vehu Rachum, reflecting that the determining factor is the day of the week rather than the fast itself (HaAgur, Laws of Tisha Be'Av 853:1).
The wording's scriptural roots lie in the attributes of mercy revealed to Moshe, where God is described as slow to anger and abundant in kindness (Shemot 34:6-7), a formulation echoed again in Moshe's plea after the sin of the spies (Bamidbar 14:17-19); the Gemara in Rosh Hashanah explains that God showed Moshe the order of this prayer of thirteen attributes so that whenever Israel sins they may invoke it and be forgiven (Rosh Hashanah 17b:5-7).
The broader setting of Monday-Thursday Torah reading is addressed by the Shulchan Arukh HaRav, who records the custom of reciting the verse of 'Va'ani tefillati' before the Torah reading on behalf of those who sit at the gates (Shulchan Arukh HaRav, Orach Chayim 292:3), by the Likutei Halakhot, which traces the origin of Monday-Thursday Torah reading to the prophets' response to Israel going three days without Torah in the wilderness (Likutei Halakhot, Orach Chaim, Laws of Reading the Torah 3:5:1), and by the Arukh HaShulchan, who describes the practice of showing the Torah to the congregation and reciting 'Ve'zot HaTorah' before the reading (Arukh HaShulchan, Orach Chaim 134:3).
Rav Ephraim Greenblatt takes up a question specifically about the practice of the Monday/Thursday/Shabbat-Minchah Torah reading in light of Parashat Ki Tavo, addressing why that specific practice was instituted (Revavos Ephraim 6:168).