Looks like there is a typo regarding the formula of logistic regression derivatives on the lecture note of community link
https://community.deeplearning.ai/uploads/short-url/wHATD2nLQWRI0BudLpZc3msoHmW.pdf
Noticed the video version corrected seems this one didn’t be updated.