I'm studying about Newtons Method and my notes say that if
$f(x) = (x − y)^2 g(x)$ then $$f'(x) = 2(x-y)g(x) + (x − y)^2 g'(x)$$
Is this true? I thought it would be $$f'(x) = 2(x − y) g(x)$$
because $g(x)$ is just part of the multiplication.
I'm studying about Newtons Method and my notes say that if
$f(x) = (x − y)^2 g(x)$ then $$f'(x) = 2(x-y)g(x) + (x − y)^2 g'(x)$$
Is this true? I thought it would be $$f'(x) = 2(x − y) g(x)$$
because $g(x)$ is just part of the multiplication.
If $$f(x)=(x-y)^2g(x)$$then $$f'(x)=2(x-y)g(x)+(x-y)^2g'(x)$$
This happens because derivative of the product of two functions is the derivative of the first one multiplied by the second one plus the first one multiplied by the derivative of the second one.
i.e., $$(f\cdot g)'=f'\cdot g + f\cdot g'$$ and in your case $~y~$ is a constant.