Answer the question
In order to leave comments, you need to log in
Simple derivative?
In the translation of the book, which was slipped to me for proofreading, I came across the phrase
"The derivative of (y - w * x) ** 2 with respect to w is -2 * (y - w * x) * x" .
"-2" is minus two, not a hyphen.
The last time I counted derivatives about thirty-five years ago, in the tenth grade of high school: develop, kind people, my suspicions about this equation. It doesn't seem right to me, but I'm not sure of myself at all.
Answer the question
In order to leave comments, you need to log in
A purely amateurish analysis of the example based on school memories:
(y - w * x) ^ 2 = y ^ 2 - 2ywx + (wx) ^ 2
We look at what will happen to each term on the right side of the expression if we apply the derivative with respect to w:
y ^ 2 = will be a constant, we will immediately forget about it.
- 2yx = coefficient first order (we look at the school rules, something happens with linear functions).
2x^2 w = coefficient second order (we look at the school rules, something happens to the parabola).
We get:
- 2yx + 2x^2 w Let
's take something out of the brackets:
2x (-y + xw)
Write a beautiful minus:
-2x(y - xw)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question