Answer:
See picture below
Step-by-step explanation:
You are not providing the starting compound. However, I found a similar question so, I will draw the product of this compound, and then, you follow the same procedure.
As the problem states, the diazomethane is often used in reaction with carboxilic acid. This kind of reaction will do an esterification reaction, and the final product will always result in an esther.
So, with the example I give you here, all you have to do is replace the OH in the carboxilic group of your initial compound, for the OCH₃ group.
See picture below.
Hope this helps