The trp operon encodes five polypeptides (trpE, trpD, trpC, trpB, trpA) that form the enzymes building tryptophan from chorismate, among them anthranilate synthase (TrpE with TrpD) and tryptophan synthase (TrpA with TrpB). It is a repressible operon: the end product switches it off. Two layers of control act: repression and attenuation.
Repression. TrpR is made as an inactive aporepressor. When tryptophan is abundant it acts as a corepressor: it binds TrpR, which then binds the operator and blocks transcription. When tryptophan is scarce, it dissociates from TrpR, the repressor leaves the operator and transcription starts.
Attenuation. A leader region (trpL) lies between the operator and trpE. It has four stretches (1, 2, 3, 4), and region 1 encodes a short leader peptide with two adjacent tryptophan codons. The RNA can pair 1-2, 2-3 or 3-4. The 3-4 hairpin followed by a run of U's is a rho-independent terminator; the 2-3 hairpin is an anti-terminator, and it prevents 3-4 from forming. Because transcription and translation are coupled in bacteria, the ribosome's position on the leader decides which hairpin forms. The ribosome stalls at the Trp codons when charged tRNA(Trp) is scarce. If no ribosome translates the leader at all, 1-2 and 3-4 form and transcription terminates.
The ara operon controls arabinose use. araBAD encodes ribulokinase (araB), L-arabinose isomerase (araA) and L-ribulose-5-phosphate 4-epimerase (araD). The regulator AraC is both a repressor and an activator. Without arabinose, an AraC dimer binds the araO2 and araI1 sites, which are far apart, and loops the DNA, which represses. With arabinose, AraC binds arabinose, changes conformation, releases araO2 and binds the adjacent sites araI1 and araI2, which activates transcription from the araBAD promoter. Activation also needs CAP-cAMP, so the ara operon, like lac, is subject to catabolite repression. AraC also represses its own gene, araC, by binding araO1.