How to choose between matrix multiplication and element wise multiplication during BackPropagation in Chain Rule?

Here’s a thread which explains the notational conventions that Prof Ng uses to distinguish the two types of multiplication.

If the question is the mathematics behind the back propagation formulas, that is beyond the scope of this course. But here is a thread which links to derivations and other resources about that if you have the math background and are curious.