Question 24·Hard·Nonlinear Functions
The function is defined for by
For what value of in its domain does attain its maximum value?
(Express the answer as an integer)
When you see a sum of logarithms with the same base, first combine them using . Then, instead of doing calculus, use the fact that is increasing: maximizing is the same as maximizing (as long as ). Expand the product inside the log to get a quadratic, recognize whether it opens up or down, and use the vertex formula or symmetry between the roots to quickly find the that gives the maximum, checking it lies within the domain given.
Hints
Combine the logarithms
Try using the log rule to rewrite as a single logarithm.
Focus on the inside of the logarithm
Once you have written as a single of some expression, think about how changes in that inside expression affect the value of .
Turn it into a quadratic maximization
After combining the logs, you should get of a product like . Expand this product to get a quadratic, and then use what you know about parabolas and their vertices to find where this quadratic is largest.
Use the vertex formula or symmetry
For a downward-opening parabola , the maximum occurs at . Apply this to your quadratic, and make sure the -value you find is between and .
Desmos Guide
Enter the function
Type g(x) = ln(x+2) + ln(6-x) into Desmos. Make sure the ln function is used and that the expression is exactly as given.
View the graph and domain
Look at the graph; you should see it only between and (the graph will not appear outside this domain because the logs are undefined there).
Find the maximum point
Click or tap on the highest point of the graph, or use Desmos’s maximum feature (click the graph, then choose maximum if available). Read off the -coordinate of that highest point; that -value is where attains its maximum.
Step-by-step Explanation
Combine the logarithms
Use the log rule to rewrite the function:
So is the natural log of the product .
Use the fact that is increasing
The natural log function is increasing on its domain: if , then .
That means is largest exactly when the inside of the log, , is largest (for ).
So we only need to maximize the function
Write and analyze the quadratic
First expand :
This is a quadratic with , , and . Because , its graph is a downward-opening parabola, so it has a maximum at its vertex.
The -coordinate of the vertex of a quadratic is given by
We will now apply this formula to .
Find the vertex and answer the question
For , we have and . Plug into the vertex formula:
So is maximized at , which means also attains its maximum value at
.