Exercise 2.2.15

Answers

E = |Ax b|2 = (C 0)2 + (C + D 8)2 + (C + 3D 8)2 + (C + 4D 20)2, take derivatives w.r.t. C and D and let the derivatives equal to 0, we have

∂E ∂C = 2C + 2(C + D 8) + 2(C + 3D 8) + 2(C + 4D 20) = 0 ∂E ∂D = 0 + 2(C + D 8) + 6(C + 3D 8) + 8(C + 4D 20) = 0

Divide both equations by 2, we have

∂E ∂C = C + (C + D 8) + (C + 3D 8) + (C + 4D 20) = 4C + 8D 36 ∂E ∂D = 0 + (C + D 8) + 3(C + 3D 8) + 4(C + 4D 20) = 8C + 26D 112

Combin into matrix form, we have [4 8 8 26 ] [C D ] = [ 36 112 ], which recovers ATAx^ = ATb.

User profile picture
2020-03-20 00:00
Comments