2*randRange(0,1)-1 2*randRange(0,1)-1 2*randRange(0,1)-1 2*randRange(0,1)-1 sgna*randRange(3,9)*10 sgnb*randRange(1,9) sgnp*randRange(1,9) sgnq*randRange(4,9) sgnb>0?(b===1?"+x":"+"+b+"x"):(b===-1?"-x":"-"+(-b)+"x") sgnq>0?(q===1?"+x":"+"+q+"x"):(q===-1?"-x":"-"+(-q)+"x") sgnb>0?(b===1?"+h":"+"+b+"h"):(b===-1?"-h":"-"+(-b)+"h") sgnq>0?(q===1?"+h":"+"+q+"h"):(q===-1?"-h":"-"+(-q)+"h") p*b-a*q sgnb>0?(b===1?"h":b+"h"):(b===-1?"-h":"-"+(-b)+"h") sgnq>0?(q===1?"h":q+"h"):(q===-1?"-h":"-"+(-q)+"h") sgnb>0?(b===1?"x":b+"x"):(b===-1?"-x":"-"+(-b)+"x") sgnq>0?(q===1?"x":q+"x"):(q===-1?"-x":"-"+(-q)+"x") p*b>0?(p*b===1?"h":p*b+"h"):(p*b===-1?"-h":"-"+(-p*b)+"h") -a*q>0?(-a*q===1?"+h":"+"+(-a*q)+"h"):(-a*q===-1?"-h":"-"+(a*q)+"h") p*b-a*q>0?(p*b-a*q===1?"h":(p*b-a*q)+"h"):(p*b===-1?"-h":(p*b-a*q)+"h")
This is difference quotient problem for rational functions.
It is based on OLD Homework 0280-7 at
      http://www.math.umn.edu/~adams/MATH1271/hmwrkMATH1271.html.


Let \displaystyle f(x)=\frac{aplusbx}{pplusqx}. Compute [f(x+h)]-[f(x)].

Express your answer in the form \displaystyle \frac{Nh}{(pplusqxplusqh)(pplusqx)} ,

          where N is an integer. (You only enter N into the Answer box.)

NOT FOR CREDIT, BUT FOR EXTRA LEARNING:
          Divide your answer by h, and then take \displaystyle\lim_{h\to0}. This gives f'(x).

\quad\quadpbminusaqh
\displaystyle\frac{\phantom{X}} {\phantom{(pplusqxplusqh)(pplusqx)}}
\,(pplusqxplusqh)(pplusqx)

Let X=[f(x+h)]-[f(x)].

Then \displaystyle X= \left[\frac{aplusbxplusbh} {pplusqxplusqh}\right] -\left[\frac{aplusbx}{pplusqx}\right]

\displaystyle= \frac{(aplusbxplusbh)(pplusqx) -(aplusbx)(pplusqxplusqh)} {(pplusqxplusqh)(pplusqx)}.

Need help? Get a hint.

Let A=(aplusbxplusbh)(pplusqx)
and B=(aplusbx)(pplusqxplusqh)
and C=(pplusqxplusqh)(pplusqx).

Then \displaystyle X=\frac{A-B}{C}.

A=(aplusbx)(pplusqx)+ (bh)(pplusqx)      and
B=(aplusbx)(pplusqx)+ (aplusbx)(qh).

Next, we compute A-B.

The terms (aplusbx)(pplusqx) in A and B cancel,
    and we get
                    A-B= (bh)(pplusqx)- (aplusbx)(qh).

Expanding,
   A-B= (bh)(p)+(bh)(qx)- (a)(qh)-(bx)(qh).

The terms (bh)(qx) and -(bx)(qh) cancel, and we get
        A-B=(bh)(p)-(a)(qh).

Then A-B=pbhminusaqh=pbminusaqh.

Then \displaystyle X=\frac{A-B}{C}= \frac{pbminusaqh} {(pplusqxplusqh)(pplusqx)}.

Now enter pbminusaq into the Answer box, to indicate that the answer is

                   \displaystyle\frac{pbminusaqh} {(pplusqxplusqh)(pplusqx)}.


NOT FOR CREDIT, BUT FOR EXTRA LEARNING:
       Recall that X=[f(x+h)]-[f(x)]. In the next hint,
       we compute \displaystyle\frac{X}{h} (on h\ne0),    and then \displaystyle f'(x)=\lim_{h\to0}\frac{X}{h}.


For all h\ne0,             \displaystyle\frac{X}{h}=\frac{pbminusaq} {(pplusqxplusqh)(pplusqx)}.


             \displaystyle f'(x)=\lim_{h\to0}\frac{X}{h}= \frac{pbminusaq}{(pplusqx)^2}.