Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am confused on finding the derivative when constants are involved: with $3\ln(x^4 + \sec x)$ the derivative is $(3(4x^3 + \sec x \tan x))/(x^4+\sec x)$ notice the three stayed, but with

$x^2+2x+7$ the derivative of seven turns to zero in the answer $2(x+1)$

my question is what is the difference.

share|cite|improve this question
up vote 1 down vote accepted

We have that, for any differentiable $f$


however, $$(c\cdot f)'=c\cdot f'$$

for any constant $c$. That should probably be in your notes.

share|cite|improve this answer
Thanks Peter!!! I should have caught that!!! – codenamejupiterx Mar 13 '13 at 2:14
What is you have d/dx of (1-cx)^2 – Conrad C Oct 21 '14 at 18:16

The difference is that there is no constant term in the first expression. $3$ there is coefficient, not a constant term!

share|cite|improve this answer
OK! Thanks Shu Xiao Li! – codenamejupiterx Mar 13 '13 at 2:11

Remember that $$\frac d {dx} (f(x) +g(x)) = \frac d {dx} (f(x)) + \frac d {dx} (g(x))$$ but $$\frac d {dx} (cf(x)) = c \frac d {dx} (f(x)),$$

if $c$ is a constant.

share|cite|improve this answer

As 3 is constant with in multiplication with function therefore 3 can taken outside of differentiation by the rule d/dx(kf(x)) = kd/dx(f(x)) while in second example 7 is constant therefore its differentiation is zero due to rule d/dx(C) = 0 where c = constant

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.