So I started with 3-methoxybenzaldehyde and ended with 2-(3-methoxybenzylidene)succinic acid. This was done as a Stobe Condensation so diethyl succinate was used. The firststep was to treat the diethyl succinate with NaOMe and what happens is that a carbanion forms which acts as a nucleophile and attacks the carbonyl of 3-methoxybenzaldehyde. Subsequent steps involved diluting with water, washing with ether and then acidifying the aqueous layer with conc. HCl... I checked some mechanisms online but I'm mainly confused with how both carboxylic forms are formed in
2-(3-methoxybenzylidene) succinic acid. Thank you in advance