Suppose you have a set of data $\{x_i\}$ and $\{y_i\}$ with $i=0,\dots,N$. In order to find two parameters $a,b$ such that the line $$ y=ax+b, $$ give the best linear fit, one proceed minimizing the quantity $$ \sum_i^N[y_i-ax_i-b]^2 $$ with respect to $a,b$ obtaining well know results.
Imagine now to desire a fit with a function like $$ y=ax^p+b. $$ After some manipulation one obtain the following relations $$ a=\frac{N\sum_i(y_ix_i^p)-\sum_iy_i\cdot\sum_ix_i^p}{(\sum_ix_i^p)^2+N\sum_i(x_i^p)^2}, $$ $$ b=\frac{1}{N}[\sum_iy_i-a\sum_ix_i^p] $$ and $$ \frac{1}{N}[N\sum_i(y_ix_i^p\ln x_i)-\sum_iy_i\cdot\sum_ix_i^p\ln x_i]=\frac{a}{N}[N\sum_i(x_i^p)^2\ln x_i-\sum_ix_i^p\cdot\sum_ix_i^p\ln x_i. $$ To me it seems that from this it is nearly impossible to extract the exponent $p$. Am I correct?