Apply forecast weighted moving average formula

1) Define the different between linear and nonlinear optimization with example each?

2-A- How to calculate forecast error?

B- Calculate forecast error for December