Least squares solution
N
2

(
f
)
(
,
f
dx
i
i
1