Hello,
How is the derivative of J = (1/2)d^2 will be 2. It should be 1 since 1/2 will be multiplied by 2. Attaching an image for your reference.
Hello,
How is the derivative of J = (1/2)d^2 will be 2. It should be 1 since 1/2 will be multiplied by 2. Attaching an image for your reference.
Hi @Sai_Shodhan_Rao
Welcome to the community!
You are right that would be explain in the optional lab like image below, but I think that the prof said that to show how would be the change if we change the variable d only without the half factor
Best Regards,
Abdelrahman
Thank you for the response @AbdElRhaman_Fakhry.
So, ideally, dJ doesn’t change at all irrespective of d since it will always be divided by 2. dJ changes at the same rate as d. Then what is the use of having its derivative here since it changes exactly like the input?
Also, I would like to know how these derivatives(or backpropagation) are helping to do the entire math in n+p computations instead of n*p as in the case of forward propagation.
HI @Sai_Shodhan_Rao
We do that to be more general ovel all cost function because there are many types of cost function and every type the dj change according to the equation of each type.
Best Regards,
Abdelrahman
Got it. Thank you for the explanation.!!
I was confused by this as well and assumed that the derivative of J w.r.t d was 1, but this is not correct. The derivative of J(d) = (1/2)d^2 w.r.t d is J’(d) = d. Now here’s the part that I missed, the rate of change depends on the value of d. We need to plug the actual value of d into J’(d) = d. So in the example that you provided, when d = 2, the rate of change is 2. So that is how the prof came to the value 2.