# Why is this incorrect (regarding differentiating the natural log)?

We must differentiate the following:

$$[f(x) = \ln (3x^2 +3)]\space '$$

Why is this incorrect? I am just using the product rule:

$[f(x) = \ln (3x^2 +3)]\space ' = \dfrac{1}{x} \times (3x^2 + 3) + \ln(6x) = \dfrac{3x^2 +3}{x} + \ln(6x)$

My book gives the following answer:

$$\dfrac{6x}{3x^2 +3}$$

-
You need to use the chain rule, not the product rule. – Henry T. Horton Jan 21 at 23:06

2
It's logarithm of $3x^2+3$, not logarithm times $3x^2+3$. – Gerry Myerson Jan 21 at 23:07
@GerryMyerson But even if we remove the $\ln(6x)$ we still have a totally different answer. – Yoshi Jan 21 at 23:09
Yoshi, you miss my point, but I think you have got it now from the answers that have been posted. – Gerry Myerson Jan 21 at 23:49

## 2 Answers

There is no product here; you should be using the chain rule.

The start of your answer makes it look like you were differentiating $\log(x) \cdot (3x^2 + 3)$ instead of the given function, but the latter part of your attempt clarifies that you are just getting tangled up.

(Also, it's a bit strange that your book didn't reduce its final answer, but it's still correct.)

More precisely:

$[f(g(x))]' = f'(g(x)) \cdot g'(x)$.

In this case, $$[\log(3x^2 + 3)]' = \frac{1}{3x^2 +3} \cdot (3x^2 + 3)' = \frac{6x}{3x^2 + 3}$$ as your book suggests. Of course, we could divide top and bottom by $3$ to simplify our answer to:

$$\frac{2x}{x^2 + 1}$$

Going back to the original function, note that $\log(3x^2 + 3x) = \log(3) + \log(x^2 + x)$. If you now differentiate the function in this form, the derivative of the constant term $\log(3)$ will be $0$, and you will end up with the same answer as above (already in simplified form).

-

This is not a product, it is a composition. This is a common misconception for students when reading functional notation. The expression in parenthesis in functional notation is not multiplying its function-name, it's being evaluated inside the function.

You are interpreting it as if it were $\ln (x)\times (3x^2+3)$, but it is $3x^2+3$ composed with $\ln (x)$.

$\ln$ can never be written alone, it always has to be read with its input inside the parentheses. Likewise, $\sin(3x)$ is not $(\sin)$ times $3x$, it is $\sin$ evaluated at $3x$.

If original function were $\ln(x) \times (3x^2+3)$, then you would be correctly applying the product rule, but you would have had to have written this:

$$=\frac{1}{x} \times (3x^2+3)+\ln(x)\times 6x$$

You can see the difference between what you wrote and this is, again, that the $\ln$ had been written without something to be evaluated at.

-
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 21, "mathjax_display_tex": 5, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9695996642112732, "perplexity_flag": "head"}