# Thread: Function help

1. ## Function help

Hi there,

I have a function problem which I'm having trouble solving, and I can't wait until class for the answer.

If f(x) = x^2
and
g(x) = f(x + h) - f(x) all on h
find
g(2)

The answer is apparently 4 + h.

How would I get this answer? I keep getting just h on its own.

thanks

2. ## Re: Function help

Originally Posted by Caddym89
Hi there,

I have a function problem which I'm having trouble solving, and I can't wait until class for the answer.

If f(x) = x^2
and
g(x) = f(x + h) - f(x) all on h
find
g(2)

The answer is apparently 4 + h.

How would I get this answer? I keep getting just h on its own.

thanks
I'm confused. If $\displaystyle g(x)=f(x+h)-f(x)$ for all $\displaystyle h$, wouldn't it mean $\displaystyle g(x)=0$ especially when $\displaystyle h=0$?

EDIT: Assuming $\displaystyle g(x)=f(x+h)-f(h)$, we have

$\displaystyle g(2)=f(2+h)-f(h)=(2+h)^2-h^2=4+4h+h^2-h^2=4+4h$

3. ## Re: Function help

Sorry, when I say g(x) = f(x + h) - f(x) all on h, I mean f(x + h) - f(x) is the numerator and h the denominator

4. ## Re: Function help

Oops must have misread that.

Assuming $\displaystyle h\not=0$

$\displaystyle g(2)=\frac{f(2+h)-f(2)}{h}=\frac{(2+h)^2-4}{h}=\frac{4+4h+h^2-4}{h}=\frac{\not{h}(4+h)}{\not{h}}$

5. ## Re: Function help

Thanks a lot Gusbob. I have been looking at this for hours and can't believe it was so simple >_<