Question
Question: How do you find the maximum or minimum of \[f(x)={{x}^{2}}-8x+2\]?...
How do you find the maximum or minimum of f(x)=x2−8x+2?
Solution
This type of question is based on the concept of maxima and minima. We have to first consider the given function and differentiate f(x) with respect to x. Equate f′(x) to 0 and find the value of x, where f′(x) is the derivative of f(x). Here, x=4. Now differentiate f′(x)with respect to x. if the value of f′′(x) is less than 0, then the function have local maximum at x=4 and if f′′(x) is more than 0, then the function have local minimum at x=4. Here, f′′(x)>0 and thus the function has a local minimum. To find the minimum of f(x)=x2−8x+2, we have to substitute x=4 in the function which is the required answer.
Complete step-by-step solution:
According to the question, we are asked to find the maximum or minimum of f(x)=x2−8x+2.
We have been given the function f(x)=x2−8x+2. ----------(1)
First, differentiate f(x) with respect to x.
dxd(f(x))=dxd(x2−8x+2)
We have to use addition rule of differentiation, that is, dxd(u+v+w)=dxdu+dxdv+dxdw.
⇒dxd(f(x))=dxd(x2)+dxd(−8x)+dxd(2)
Since the differentiation of a constant is zero, dxd(2)=0.
⇒dxd(f(x))=dxd(x2)+dxd(−8x)
On taking the constants out from dxd(−8x), we get
⇒dxd(f(x))=dxd(x2)−8dxdx
We know that dxdx=1, we get
⇒dxd(f(x))=dxd(x2)−8
Using the power rule of differentiation, that is, dxd(xn)=nxn−1, we get
dxd(f(x))=2x2−1−8
⇒dxd(f(x))=2x−8
∴f′(x)=2x−8
Now, equate f′(x) to 0.
⇒2x−8=0
Add 8 on both the sides of the equation. We get
2x−8+8=0+8
On further simplification, we get
⇒2x=8
Divide the whole equation by 2.
⇒22x=28
Cancelling out the common terms, we get
x=4
Now, we have to find the second derivative of f(x), that is, dxd(f′(x)).
Therefore, dxd(f′(x))=dxd(2x+8)
We have to use addition rule of differentiation, that is, dxd(u+v)=dxdu+dxdv.
⇒dxd(f′(x))=dxd(2x)+dxd(8)
Since differentiation of a constant is 0, we get
dxd(f′(x))=dxd(2x)
Taking the constants out of the differentiation, we get
⇒dxd(f′(x))=2dxdx
We know that dxdx=1, we get
dxd(f′(x))=2
∴f′′(x)=2
Here, f′′(x)>0. Since f′′(x)>0, the function is minimum at x=4.
We now found that the function has minimum value.
To find the minimum value of f(x), we have to substitute x=4 in f(x).
f(x=4)=42−8×4+2
On further simplification, we get
f(x=4)=16−8×4+2
⇒f(x=4)=16−32+2
⇒f(x=4)=16−30
⇒f(x=4)=−14
Therefore, the value of f(x) at x=4 is -14.
Hence, the minimum value of f(x)=x2−8x+2 is -14.
Note: We should not get confused in the second derivative of f(x). If f′′(x)>0, then the function has local minimum value and if f′′(x)<0, then the function has local maximum value and not vice-versa. Differentiation of a constant is not x but is 0. Avoid calculation mistakes based on sign conventions.