Solveeit Logo

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)=x28x+2f(x)={{x}^{2}}-8x+2?

Explanation

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){f}'(x) to 0 and find the value of x, where f(x){f}'(x) is the derivative of f(x). Here, x=4. Now differentiate f(x){f}'(x)with respect to x. if the value of f(x){f}''(x) is less than 0, then the function have local maximum at x=4 and if f(x){f}''(x) is more than 0, then the function have local minimum at x=4. Here, f(x)>0{f}''(x)>0 and thus the function has a local minimum. To find the minimum of f(x)=x28x+2f(x)={{x}^{2}}-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)=x28x+2f(x)={{x}^{2}}-8x+2.
We have been given the function f(x)=x28x+2f(x)={{x}^{2}}-8x+2. ----------(1)
First, differentiate f(x) with respect to x.
ddx(f(x))=ddx(x28x+2)\dfrac{d}{dx}\left( f(x) \right)=\dfrac{d}{dx}\left( {{x}^{2}}-8x+2 \right)
We have to use addition rule of differentiation, that is, ddx(u+v+w)=dudx+dvdx+dwdx\dfrac{d}{dx}\left( u+v+w \right)=\dfrac{du}{dx}+\dfrac{dv}{dx}+\dfrac{dw}{dx}.
ddx(f(x))=ddx(x2)+ddx(8x)+ddx(2)\Rightarrow \dfrac{d}{dx}\left( f(x) \right)=\dfrac{d}{dx}\left( {{x}^{2}} \right)+\dfrac{d}{dx}\left( -8x \right)+\dfrac{d}{dx}\left( 2 \right)
Since the differentiation of a constant is zero, ddx(2)=0\dfrac{d}{dx}\left( 2 \right)=0.
ddx(f(x))=ddx(x2)+ddx(8x)\Rightarrow \dfrac{d}{dx}\left( f(x) \right)=\dfrac{d}{dx}\left( {{x}^{2}} \right)+\dfrac{d}{dx}\left( -8x \right)
On taking the constants out from ddx(8x)\dfrac{d}{dx}\left( -8x \right), we get
ddx(f(x))=ddx(x2)8dxdx\Rightarrow \dfrac{d}{dx}\left( f(x) \right)=\dfrac{d}{dx}\left( {{x}^{2}} \right)-8\dfrac{dx}{dx}
We know that dxdx=1\dfrac{dx}{dx}=1, we get
ddx(f(x))=ddx(x2)8\Rightarrow \dfrac{d}{dx}\left( f(x) \right)=\dfrac{d}{dx}\left( {{x}^{2}} \right)-8
Using the power rule of differentiation, that is, ddx(xn)=nxn1\dfrac{d}{dx}\left( {{x}^{n}} \right)=n{{x}^{n-1}}, we get
ddx(f(x))=2x218\dfrac{d}{dx}\left( f(x) \right)=2{{x}^{2-1}}-8
ddx(f(x))=2x8\Rightarrow \dfrac{d}{dx}\left( f(x) \right)=2x-8
f(x)=2x8\therefore {f}'\left( x \right)=2x-8
Now, equate f(x){f}'\left( x \right) to 0.
2x8=0\Rightarrow 2x-8=0
Add 8 on both the sides of the equation. We get
2x8+8=0+82x-8+8=0+8
On further simplification, we get
2x=8\Rightarrow 2x=8
Divide the whole equation by 2.
2x2=82\Rightarrow \dfrac{2x}{2}=\dfrac{8}{2}
Cancelling out the common terms, we get
x=4x=4
Now, we have to find the second derivative of f(x), that is, ddx(f(x))\dfrac{d}{dx}\left( {f}'\left( x \right) \right).
Therefore, ddx(f(x))=ddx(2x+8)\dfrac{d}{dx}\left( {f}'\left( x \right) \right)=\dfrac{d}{dx}\left( 2x+8 \right)
We have to use addition rule of differentiation, that is, ddx(u+v)=dudx+dvdx\dfrac{d}{dx}\left( u+v \right)=\dfrac{du}{dx}+\dfrac{dv}{dx}.
ddx(f(x))=ddx(2x)+ddx(8)\Rightarrow \dfrac{d}{dx}\left( {f}'\left( x \right) \right)=\dfrac{d}{dx}\left( 2x \right)+\dfrac{d}{dx}\left( 8 \right)
Since differentiation of a constant is 0, we get
ddx(f(x))=ddx(2x)\dfrac{d}{dx}\left( {f}'\left( x \right) \right)=\dfrac{d}{dx}\left( 2x \right)
Taking the constants out of the differentiation, we get
ddx(f(x))=2dxdx\Rightarrow \dfrac{d}{dx}\left( {f}'\left( x \right) \right)=2\dfrac{dx}{dx}
We know that dxdx=1\dfrac{dx}{dx}=1, we get
ddx(f(x))=2\dfrac{d}{dx}\left( {f}'\left( x \right) \right)=2
f(x)=2\therefore {f}''\left( x \right)=2
Here, f(x)>0{f}''\left( x \right)>0. Since f(x)>0{f}''\left( x \right)>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)=428×4+2f(x=4)={{4}^{2}}-8\times 4+2
On further simplification, we get
f(x=4)=168×4+2f(x=4)=16-8\times 4+2
f(x=4)=1632+2\Rightarrow f(x=4)=16-32+2
f(x=4)=1630\Rightarrow f(x=4)=16-30
f(x=4)=14\Rightarrow f(x=4)=-14
Therefore, the value of f(x) at x=4 is -14.
Hence, the minimum value of f(x)=x28x+2f(x)={{x}^{2}}-8x+2 is -14.

Note: We should not get confused in the second derivative of f(x). If f(x)>0{f}''(x)>0, then the function has local minimum value and if f(x)<0{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.