%%%%%%%%%%%%%%%%%%%%%%%% Aufgabe 3 ->function Df.m <-%%%%%%%%%%%%%%%%%%%%%%%%%%%

function erg = Df(x);

% Berechnet die Jacobimatrix der Normalengleichungen

t = [   0;   .5;    1;  1.5;    2;    3;    5;    8;   10];

Dg = feval('Dg', x);
DgTDg = Dg' * Dg;                      % Dg(x)'*Dg(x)

sum1 = sum( exp(x(3)*t) );             % summe 1 bis #t_k (9)
sum2 = sum( x(2)*t.*exp(x(3)*t) );     % summe 2 bis #t_k

erg = [ 0  0     0    ;
        0  0     sum1 ;
        0  sum1  sum2  ] + DgTDg;
