I was going through some of my calc notes and I found this:
f = {(x+h)^3 + x^3} + 3{(x+h) - x}
= h{(x +h)^2 + (x+h)x + x^2} + 3h
= h{(x+h)^2 + (x+h)x + x^2 + 3}
Can someone explain to me how the h and 3h were factored out?
Edit: Damn I typed it out wrong it was actually {(x+h)^3 - x^3} + 3{(x+h) - x} anyway I figured it out.
He was using this rule: x^n - y^n = (x-y){x^(n-1) + x^(n-2)y + x^(n-3)y^2 + ... + y^(n-1)} for n = 1, 2, 3,...
so: f = {(x+h)^3 - x^3}
= {(x+h) - x}{(x+h)^2 + (x+h)x + x^2}
= h{(x +h)^2 + (x+h)x + x^2}
f = {(x+h)^3 + x^3} + 3{(x+h) - x}
= h{(x +h)^2 + (x+h)x + x^2} + 3h
= h{(x+h)^2 + (x+h)x + x^2 + 3}
Can someone explain to me how the h and 3h were factored out?
Edit: Damn I typed it out wrong it was actually {(x+h)^3 - x^3} + 3{(x+h) - x} anyway I figured it out.
He was using this rule: x^n - y^n = (x-y){x^(n-1) + x^(n-2)y + x^(n-3)y^2 + ... + y^(n-1)} for n = 1, 2, 3,...
so: f = {(x+h)^3 - x^3}
= {(x+h) - x}{(x+h)^2 + (x+h)x + x^2}
= h{(x +h)^2 + (x+h)x + x^2}
