You could instead use in D10,

=TREND(D8:D9, A8:A9, A10)

Note that just references to last two y values, the last two x values, and the new x.