This appears to be the defintion of a derivative. What is also called 'first principles'.
I am going to use h instead of delta x and f instead of g. They are more common than the notation you presented.
Same thing though.
\(\displaystyle f'(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}\)
Find the derivative of \(\displaystyle f(x)=x^{2}+3x-1\) using first principles or the definition of a derivative. If done correctly, we should end up with the derivative of \(\displaystyle x^{2}+3x-1\). Which is 2x+3.
The algebra is mostly the booger in these.
\(\displaystyle \lim_{h\to 0}\frac{\overbrace{(x+h)^{2}+3(x+h)-1}^{\text{f(x+h)}}-\overbrace{(x^{2}+3x-1)}^{\text{f(x)}}}{h}\)
See?. For the f(x+h), sub in x+h in for x in the given expression.
Expand out the numerator:
\(\displaystyle \lim_{x\to h}\frac{2xh+h^{2}+3h}{h}\)
Now, this is the same as \(\displaystyle \lim_{h\to 0}\frac{2x\not{h}}{\not{h}}+\lim_{h\to 0}\frac{h^{\not{2}^{1}}}{\not{h}}+\lim_{h\to 0}\frac{3\not{h}}{\not{h}}\)
Note how the h's cancel and we are left with \(\displaystyle 2x+h+3\).
Per the limit, as h goes to 0, the center term h=0 and we have 2x+3 as required.
The algebra here was not that bad, but some can be a dilly.