Edit: Possible error in the book? See bottom
I'm reading "Functional Data Analysis" by Ramsay & Silverman. The text contains the following (p. 87), regarding how smoothing spline coefficients are calculated:
Original Statement.
I can't seem to follow the logic.
What I have so far:
$$\frac{d}{dc} PENSSE = \frac{d}{dc} [(y-\Phi c)'W(y-\Phi c)+\lambda c′Rc]$$
Definitions are given elsewhere in the book as:
$y,c$ are column vectors size k
$\Phi$ is a an matrix size [n,k]
$W$ is, to my understanding a matrix size [k,k] by definition, and is said elsewhere to be symmetric positive definite
$\lambda$ is a scalar, and finally
$R$ is a matrix size [k,k] and is said elsewhere to be positive semidefinite.
To my understanding: $$\frac{d}{dc} PENSSE = \frac{d}{dc} [(y-\Phi c)'W(y-\Phi c)+\lambda c'Rc]$$ $$\frac{d}{dc} PENSSE = \frac{d}{dc}[(y'W-c'\Phi'W)(y-\Phi c) \lambda c'Rc]$$ $$\frac{d}{dc} PENSSE = \frac{d}{dc}[y'Wy-c'\Phi'Wy- y'W\Phi c+c'\Phi'W\Phi c+λc′Rc]$$ Remove expression without $c$: $$\frac{d}{dc} PENSSE = \frac{d}{dc}[-c'\Phi'Wy- y'W\Phi c+c'\Phi'W\Phi c + \lambda c'Rc]$$ Inverting the inner product that is the second term on the right does not change its result, but helps collect terms: $$\frac{d}{dc} PENSSE = \frac{d}{dc}[-2c'\Phi'Wy+c'\Phi'W\Phi c +\lambda c'Rc]$$ $$\frac{d}{dc} PENSSE = \frac{d}{dc}[-2c'\Phi'Wy]+\frac{d}{dc}[c'\Phi'W\Phi c]+\frac{d}{dc}[\lambda c'Rc]$$ Which should, according to the text, result in: $$-2\Phi'Wy+\Phi'W\Phi c +\lambda Rc$$
So my question, finally is as follows: Why do the second and third term work out the way they do? The first term is easy - derivating by a vector means removing the vector. When derivating an expression with multiple occurrences of the vector, shouldn't there be a '2' in the derivative?
Edit: from proposition 9 in this Link, it seems my intuition was right, and all terms should eventually have a coefficient of 2, which can be divided out. This is in line with the book's resultant statement: $$c = (\Phi'W\Phi+\lambda R)^{-1}\Phi'Wy$$