Algebra · real student question

Let f(x) = −x² + 7x + 2. When (f(x + h) − f(x))/h is evaluated and simplified it has the form Ax + Bh + C. Find A, B and C.

Question

Let f(x)=x2+7x+2f(x)=-x^{2}+7x+2. When

f(x+h)f(x)h\frac{f(x+h)-f(x)}{h}

is evaluated and simplified it takes the form Ax+Bh+CAx+Bh+C. Find AA, BB and CC.

Step-by-step solution

  1. Substitute x+hx+h everywhere xx appears.

    f(x+h)=(x+h)2+7(x+h)+2.f(x+h)=-(x+h)^{2}+7(x+h)+2.

    Expanding (x+h)2=x2+2xh+h2(x+h)^{2}=x^{2}+2xh+h^{2} and distributing the leading minus sign carefully:

    f(x+h)=x22xhh2+7x+7h+2.f(x+h)=-x^{2}-2xh-h^{2}+7x+7h+2.

    That minus sign in front of the square is the single most common place to slip.

  2. Subtract f(x)f(x) and watch the hh-free terms disappear.

    f(x+h)f(x)=(x22xhh2+7x+7h+2)(x2+7x+2).f(x+h)-f(x)=\bigl(-x^{2}-2xh-h^{2}+7x+7h+2\bigr)-\bigl(-x^{2}+7x+2\bigr).

    The x2-x^{2}, 7x7x and 22 terms cancel in pairs, leaving

    2xhh2+7h.-2xh-h^{2}+7h.

    Every surviving term contains an hh — that has to happen, otherwise dividing by hh would blow up as h0h\to0.

  3. Factor out hh and cancel.

    h(2xh+7)h=2xh+7,h0.\frac{h(-2x-h+7)}{h}=-2x-h+7,\qquad h\ne 0.

  4. Match the required form. Writing the result as (2)x+(1)h+7(-2)x+(-1)h+7 and comparing with Ax+Bh+CAx+Bh+C:

    A=2,B=1,C=7.A=-2,\qquad B=-1,\qquad C=7.

  5. Check against the derivative and a numeric case. Letting h0h\to0 gives 2x+7-2x+7, which is exactly f(x)f'(x) for f(x)=x2+7x+2f(x)=-x^{2}+7x+2 — the difference quotient must collapse to the derivative. Numerically at x=3x=3, h=0.1h=0.1: f(3.1)=9.61+21.7+2=14.09f(3.1)=-9.61+21.7+2=14.09 and f(3)=9+21+2=14f(3)=-9+21+2=14, so the quotient is 0.09/0.1=0.90.09/0.1=0.9, while 2(3)0.1+7=0.9-2(3)-0.1+7=0.9 ✓.

Answer

A=2,B=1,C=7A=-2,\quad B=-1,\quad C=7

Need to solve a different problem like this? Open the solver →