# Week 3: Why dZ^\[1\] = W^\[2\]T dZ^\[2\] \* g^\[1\]'(Z^\[1\])

**URL:** <https://community.deeplearning.ai/t/week-3-why-dz-1-w-2-t-dz-2-g-1-z-1/272747>\
**Category:** Neural Networks and Deep Learning\
**Tags:** coursera-platform\
**Created:** [February 12, 2023, 8:28am UTC](https://community.deeplearning.ai/t/week-3-why-dz-1-w-2-t-dz-2-g-1-z-1/272747 "2023-02-12T08:28:58Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![paulinpaloalto](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/paulinpaloalto/32/187_2.png) [@paulinpaloalto](https://community.deeplearning.ai/u/paulinpaloalto)\
**Post date:** [February 12, 2023, 5:11pm UTC](https://community.deeplearning.ai/t/week-3-why-dz-1-w-2-t-dz-2-g-1-z-1/272747/3 "2023-02-12T17:11:44Z")

</div>

Well, notice the dimensions on dZ^{[2]} and W^{[2]T}: they are n^{[2]} x m and n^{[1]} x n^{[2]} respectively, right? So that matrix multiply (dot product style) in the formula you show is not going to work. But it does work if the formula is as Prof Ng and AbdElRhaman show it.

Taking derivatives is a bit more complicated when you’re working with matrices than scalars. This is beyond the scope of this course (by design), but you can find links to background information on matrix calculus and on these specific derivations on [this thread.](https://community.deeplearning.ai/t/course-1-week-3-backpropagation-intuition/7979)

---

_[View the full topic](https://community.deeplearning.ai/t/week-3-why-dz-1-w-2-t-dz-2-g-1-z-1/272747)._
