Solveeit Logo

Question

Question: How do you find the first and second derivative of \({x^2} - 2x - 3\)?...

How do you find the first and second derivative of x22x3{x^2} - 2x - 3?

Explanation

Solution

Let f(x)=x22x3f(x) = {x^2} - 2x - 3. Then f(x)f'(x) and f(x)f''(x) are the first and second derivatives respectively. The derivative of a function is the change in the value of the function with respect to the small change in the value of xx, i.e. df(x)dx\dfrac{{df(x)}}{{dx}}. In this question we will find the derivatives using standard forms.

Complete step by step solution:
The given function is x22x3{x^2} - 2x - 3.
Let f(x)=x22x3f(x) = {x^2} - 2x - 3
Then we have to find the first derivative, i.e. df(x)dx\dfrac{{df(x)}}{{dx}}, and the second derivative, i.e. d2f(x)dx2\dfrac{{{d^2}f(x)}}{{d{x^2}}}.
The first derivative is f(x)=df(x)dx=d(x22x3)dxf'(x) = \dfrac{{df(x)}}{{dx}} = \dfrac{{d({x^2} - 2x - 3)}}{{dx}}
We have, if f(x)=g(x)+h(x)f(x) = g(x) + h(x), then df(x)dx=dg(x)dx+dh(x)dx\dfrac{{df(x)}}{{dx}} = \dfrac{{dg(x)}}{{dx}} + \dfrac{{dh(x)}}{{dx}}, i.e. we can find the derivative of each term separately.
Thus,
f(x)=d(x22x3)dx=d(x2)dx+d(2x)dx+d(3)dxf'(x) = \dfrac{{d({x^2} - 2x - 3)}}{{dx}} = \dfrac{{d({x^2})}}{{dx}} + \dfrac{{d( - 2x)}}{{dx}} + \dfrac{{d( - 3)}}{{dx}}
Also we know,
d(xn)dx=nxn1\dfrac{{d({x^n})}}{{dx}} = n{x^{n - 1}}
dcf(x)dx=cdf(x)dx\dfrac{{dcf(x)}}{{dx}} = c\dfrac{{df(x)}}{{dx}} , where cc is any constant number
dcdx=0\dfrac{{dc}}{{dx}} = 0, where cc is any constant number
Thus, we can write the first derivative as,

df(x)dx=d(x2)dx+d(2x)dx+d(3)dx df(x)dx=2x2dxdx+0=2x2  \dfrac{{df(x)}}{{dx}} = \dfrac{{d({x^2})}}{{dx}} + \dfrac{{d( - 2x)}}{{dx}} + \dfrac{{d( - 3)}}{{dx}} \\\ \Rightarrow \dfrac{{df(x)}}{{dx}} = 2x - 2\dfrac{{dx}}{{dx}} + 0 = 2x - 2 \\\

Thus, the first derivative of the given function is f(x)=2x2f'(x) = 2x - 2
Now we have to further differentiate the function that we got as the first derivative to find the second derivative.
f(x)=df(x)dx=d2f(x)dx2 f(x)=d(2x2)dx f(x)=d(2x)dx+d(2)dx f(x)=2dxdx+0=2  f''(x) = \dfrac{{df'(x)}}{{dx}} = \dfrac{{{d^2}f(x)}}{{d{x^2}}} \\\ \Rightarrow f''(x) = \dfrac{{d(2x - 2)}}{{dx}} \\\ \Rightarrow f''(x) = \dfrac{{d(2x)}}{{dx}} + \dfrac{{d( - 2)}}{{dx}} \\\ \Rightarrow f''(x) = 2\dfrac{{dx}}{{dx}} + 0 = 2 \\\
Thus, the second derivative of the given function is f(x)=2f''(x) = 2
Hence, we got the first derivative of the given function as f(x)=2x2f'(x) = 2x - 2 and the second derivative as f(x)=2f''(x) = 2.

Note:
The derivative of a function is the change in the value of the function for a very small change in the value of the variable. The derivative of a function can itself be a function which can be further differentiated. The second derivative is the derivative of the first derivative. We used standard forms of differentiation to find the derivatives. One other way is to find the derivative using first principles.