Find a function with a log term from its derivative
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\).
- (a) Determine \(f(x)\). [2 marks]
- (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.
The answer, one mark at a time
-
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]
-
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]
-
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
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.