Find a function with a log term from its derivative

Question MM3-032 Simple familiar 3 marks Technology-free

Unit 3 Topic 4: Introduction to integration

The question

A function has \(f'(x)=2x-\frac{3}{x}\), for \(x>0\), and \(f(1)=5\).

  1. (a) Determine \(f(x)\). [2 marks]
  2. (b) Determine the exact value of \(f(e)\). [1 mark]

The idea. Antidifferentiate term by term: \(\frac{1}{x}\) gives \(\ln(x)\) for \(x > 0\). Then \(f(1) = 5\) fixes \(c\), and \(\ln(1) = 0\) makes that quick.

Figure for question MM3-032The curve y equals x squared minus 3 ln x plus 4, for x greater than 0, comes down steeply from near the y-axis, reaches a low point near x equals 1.2 and rises again. It passes through the point 1, 5, and at x equals e its height is e squared plus 1, about 8.39.4681012xy

The answer, one mark at a time

  1. Part (a)

    Antidifferentiate each term. \(2x\) gives \(x^{2}\), and \(-\frac{3}{x}\) gives \(-3\ln(x)\). The question says \(x > 0\), so no absolute value is needed.

    \[f(x) = \int \left(2x - \frac{3}{x}\right) dx\]
    \[f(x) = x^{2} - 3\ln(x) + c\]

    integrates \(f'(x)\) [1 mark]

  2. Use \(f(1) = 5\) to find \(c\). Since \(\ln(1) = 0\), the log term drops out.

    \[f(1) = 1^{2} - 3\ln(1) + c = 5\]
    \[1 - 0 + c = 5\]
    \[c = 4\]
    \[f(x) = x^{2} - 3\ln(x) + 4\]

    determines \(c\) [1 mark]

  3. Part (b)

    Put \(x = e\) into \(f(x)\). Since \(\ln(e) = 1\), the log term becomes \(-3\).

    \[f(e) = e^{2} - 3\ln(e) + 4\]
    \[f(e) = e^{2} - 3 + 4\]
    \[f(e) = e^{2} + 1\]

    determines the exact value [1 mark]

Answer

(a)\(\displaystyle f(x) = x^{2} - 3\ln(x) + 4\)
(b)\(\displaystyle f(e) = e^{2} + 1\)

Watch for. The antiderivative of \(\frac{3}{x}\) is \(3\ln(x)\), not \(\frac{3}{x^{2}}\) or \(-\frac{3}{x^{2}}\). The power rule doesn't work for \(x^{-1}\), because it would divide by zero.