When a cocamidopropyl constituent is attached to a coconut fatty acid, cocamidopropyl betaine results, as shown in Figure 2.