Derivative of log_2 x
The derivative of log_2 x is 1/(x ln 2), by the logarithm rule with the change of base. The second derivative is โ1/(x^2 ln 2). Defined for x > 0.
๐ The logarithm rule with the change of base
d/dx log_b x = 1/(x ln b).
d/dx log_2 x = 1/(x ln 2), and dยฒ/dxยฒ log_2 x = โ1/(x2 ln 2).
โ๏ธ Differentiating log_2 x
- Change of base: log_2 x = ln x / ln 2, and ln 2 โ 0.6931 is a constant.
- Differentiate: (1/ln 2) ร (1/x) = 1/(x ln 2) โ 1.4427/x.
๐ Where the rule comes from
Every logarithm is a constant multiple of the natural logarithm, so its derivative is the same constant multiple of 1/x. The constant 1/ln 2 is why calculus works in base e: it is the only base where the constant is 1.
๐ The slope of log_2 x at a point, and the tangent line
fโฒ(a) is the slope of the graph at x = a, and the tangent line there is y = fโฒ(a)(x โ a) + f(a). Values to four decimal places; the calculator below gives any other point.
| Point | log_2 x | 1/(x ln 2) | Tangent line |
|---|---|---|---|
| x = 0.5 | โ1 | 2.8854 | y = 2.8854x โ 2.4427 |
| x = 1 | 0 | 1.4427 | y = 1.4427x โ 1.4427 |
| x = 2 | 1 | 0.7213 | y = 0.7213x โ 0.4427 |
| x = 3 | 1.585 | 0.4809 | y = 0.4809x + 0.1423 |
๐ช Logarithms: the derivatives side by side
The same rule, or the same trap, runs through the whole family; each row has its own worked page.
โ ๏ธ The mistakes that lose the marks
- Writing 1/x: that is the derivative of ln x; log base 2 needs the factor 1/ln 2.
- Confusing log x (base 10 in school books, base e in many calculus books and in programming): check which the question means.
๐งฎ Calculator
The answer appears here, with the working in words.
โ๏ธ Five questions, answers hidden
1. Differentiate log_2 x.
Answer: 1/(x ln 2)
2. Differentiate 3 log_2 x.
Answer: 3/(x ln 2)
3. Differentiate log_2(x^2).
Answer: 2/(x ln 2)
4. What is the slope of y = log_2 x at x = 1?
Answer: 1/ln 2 โ 1.4427
5. Find the second derivative of log_2 x.
Answer: โ1/(x^2 ln 2)
๐ The class this belongs to
Derivatives are taught in AP Calculus AB and BC and in Calculus 1 in the US (the power, product, quotient and chain rules, trigonometric, exponential and logarithmic derivatives, implicit differentiation), in A-level Maths (Year 12 and 13, Pure) in the UK, in IB Mathematics Analysis and Approaches (Topic 5), in Class 11 and 12 in CBSE (NCERT Limits and Derivatives, Continuity and Differentiability) and in Mathematical Methods (Units 3 and 4) and Specialist Mathematics in Australia.
If this page is the homework and the method is not sticking, that is what a 1-on-1 class fixes: one tutor with a master's degree, one child, on a shared whiteboard, in your time zone, about US$10 to $13 an hour. How 1-on-1 online tutoring works.
