function ff = findssrbc_trend(guess)

global  betac sigmac chik sigman deltac alphac rho_ab ab

k=guess(1);
n=guess(2);

ab=1;
rk=(1/betac)+deltac-1;
y=(k^alphac)*((n*ab)^(1-alphac));
i=deltac*k;
c=y-i;
lambdac=c^(-sigmac);
  
ff1=(k/(n*ab))-(alphac/rk)^(1/(1-alphac));
ff2=(chik/lambdac)*(n^sigman)-(1-alphac)*(y/n);
ff=[ff1, ff2]; 