Hi,
I noticed that there is a small error in the course, please take a look at the following enclosure.
It’s about the gradient of f(θ).
Let me know if I’m right or I misunderstood something there.
Otherwise, the term in the middle becomes 0.
Kindest regards