1) If a function is differentiable, then by definition of differentiability the limit defined by, exists. Therefore (1) is required by definition of differentiability. 2) If a function is differentiable at a point then it must also be continuous at that point. (This is not conversely true). For a function to be continuous at a point we. Notes on Calculus and Optimization 1 Basic Calculus 1.1 Definition of a Derivative Let f(x) be some function of x, then the derivative of f, if it exists, is given by the following limit df(x) dx = lim h→0 f(x+h)−f(x) h (Definition of Derivative) although often this definition is hard to apply directly. It is common to write f0 (x),ordf dx.

The derivative of a function is one of the basic concepts of mathematics. Together with the integral, derivative occupies a central place in calculus. The process of finding the derivative is called differentiation. The inverse operation for differentiation is called integration.

The derivative of a function at some point characterizes the rate of change of the function at this point. We can estimate the rate of change by calculating the ratio of change of the function (Delta y) to the change of the independent variable (Delta x). In the definition of derivative, this ratio is considered in the limit as (Delta x to 0.) Let us turn to a more rigorous formulation.

Formal Definition of the Derivative

Let (fleft( x right)) be a function whose domain contains an open interval about some point ({x_0}). Then the function (fleft( x right)) is said to be differentiable at ({x_0}), and the derivative of (fleft( x right)) at ({x_0}) is given by

[
{f’left( {{x_0}} right) = limlimits_{Delta x to 0} frac{{Delta y}}{{Delta x}} }
= {limlimits_{Delta x to 0} frac{{fleft( {{x_0} + Delta x} right) – fleft( {{x_0}} right)}}{{Delta x}}.}
]

Lagrange’s notation is to write the derivative of the function (y = fleft( x right)) as (f^primeleft( x right)) or (y^primeleft( x right).)

Leibniz’s notation is to write the derivative of the function (y = fleft( x right)) as (large{frac{{df}}{{dx}}}normalsize) or (large{frac{{dy}}{{dx}}}normalsize.)

The steps to find the derivative of a function (fleft( x right)) at the point ({x_0}) are as follows:

  • Form the difference quotient ({largefrac{{Delta y}}{{Delta x}}normalsize} = {largefrac{{fleft( {{x_0} + Delta x} right) – fleft( {{x_0}} right)}}{{Delta x}}normalsize});
  • Simplify the quotient, canceling (Delta x) if possible;
  • Find the derivative (f’left( {{x_0}} right)), applying the limit to the quotient. If this limit exists, then we say that the function (fleft( x right)) is differentiable at ({x_0}).

In the examples below, we derive the derivatives of the basic elementary functions using the formal definition of derivative. These functions comprise the backbone in the sense that the derivatives of other functions can be derived from them using the basic differentiation rules.

Solved Problems

Click or tap a problem to see the solution.

Example 1

Using the definition of derivative, prove that the derivative of a constant is (0.)
2.2 definition of derivativeap calculus calculator

Example 2

Calculate the derivative of the function (y = x.)

Example 3

Using the limit definition find the derivative of the function (fleft( x right) = 3x + 2.)

2.2 Definition Of Derivativeap Calculus Solver

Example 4

Find the derivative of a linear function (y = ax + b) using the definition of derivative.

Example 5

Using the definition, find the derivative of the simplest quadratic function (y = {x^2}.)

Example 6

Using the definition of the derivative, differentiate the function (fleft( x right) = {x^2} + 2x – 2.)

Example 7

Determine the derivative of a quadratic function of general form (y = a{x^2} + bx +c.)

Example 8

Using the definition of the derivative, find the derivative of the function (y = largefrac{1}{x}normalsize.)

Example 9

Using the limit definition find the derivative of the function (fleft( x right) = frac{1}{{x – 1}}.)

Example 10

Find the derivative of the function (fleft( x right) = large{frac{2}{{{x^2}}}}normalsize) using the limit definition.

Example 11

Find the derivative of the function (y = sqrt x .)

Example 12

Determine the derivative of the cube root function (fleft( x right) = sqrt[3]{x}) using the limit definition.

Example 13

Calculate the derivative of the cubic function (y = {x^3}.)

Example 14

Differentiate the power function (fleft( x right) = {x^4}) using the limit definition.

Example 15

Find the derivative of the sine function (y = sin x.)

Example 16

Find the derivative of the cosine function (y = cos x.)

Example 17

Find the derivative of the trigonometric function (fleft( x right) = sin 2x) using the limit definition.

Example 18

Find an expression for the derivative of the exponential function (y = {e^x}) using the definition of derivative.

Example 19

Find the derivative of the power function (y = {x^n}.)

Example 20

Find the derivative of the natural logarithm (y = ln x.)

Example 1.

Using the definition of derivative, prove that the derivative of a constant is (0.)

Solution.

In this case, the function (yleft( x right)) is always equal to to a constant (C.) Therefore, we can write

[{yleft( x right) = C,;;;}kern-0.3pt {yleft( {x + Delta x} right) = C.}]

It is clear that the increment of the function is identically equal to zero:

[
{Delta y = yleft( {x + Delta x} right) – yleft( x right) }
= {C – C equiv 0.}
]

Substituting this in the limit definition of derivative, we obtain:

[
{y’left( x right) = limlimits_{Delta x to 0} frac{{Delta y}}{{Delta x}} }
= {limlimits_{Delta x to 0} frac{{yleft( {x + Delta x} right) – yleft( {x} right)}}{{Delta x}} }
= {limlimits_{Delta x to 0} frac{0}{{Delta x}} }
= {limlimits_{Delta x to 0} 0 = 0.}
]

Example 2.

Calculate the derivative of the function (y = x.)

Solution.

Following the above procedure, we form the ratio (largefrac{{Delta y}}{{Delta x}}normalsize) and find the limit as (Delta x to 0:)

[require{cancel}
{y’left( x right) = limlimits_{Delta x to 0} frac{{Delta y}}{{Delta x}} }
= {limlimits_{Delta x to 0} frac{{left( {x + Delta x} right) – x}}{{Delta x}} }
= {limlimits_{Delta x to 0} frac{{cancel{x} + Delta x – cancel{x}}}{{Delta x}} }
= {limlimits_{Delta x to 0} frac{{cancel{Delta x}}}{{cancel{Delta x}}} }
= {limlimits_{Delta x to 0} 1 = 1.}
]

Example 3.

Using the limit definition find the derivative of the function (fleft( x right) = 3x + 2.)

Solution.

Write the increment of the function:

[require{cancel}{Delta y }={ yleft( {x + Delta x} right) – yleft( x right) }={ left[ {3left( {x + Delta x} right) + 2} right] – left[ {3x + 2} right] }={ cancel{color{blue}{3x}} + 3Delta x + cancel{color{red}{2}} – cancel{color{blue}{3x}} – cancel{color{red}{2}} }={ 3Delta x.}]

The difference ratio is equal to

[frac{{Delta y}}{{Delta x}} = frac{{3cancel{Delta x}}}{{cancel{Delta x}}} = 3.]

Then the derivative is given by

[{f^primeleft( x right) = mathop {lim }limits_{Delta x to 0} frac{{Delta y}}{{Delta x}} }={ mathop {lim }limits_{Delta x to 0} 3 }={ 3.}]

Example 4.

Find the derivative of a linear function (y = ax + b) using the definition of derivative.

Solution.

We write the increment of the function corresponding to a small change in the argument (Delta x:)

[
{Delta y = yleft( {x + Delta x} right) – yleft( x right) }
= {left( {aleft( {x + Delta x} right) + b} right) – left( {ax + b} right) }
= {cancel{color{blue}{ax}} + aDelta x + cancel{color{red}{b}} – cancel{color{blue}{ax}} – cancel{color{red}{b}} = aDelta x.}
]

Then the derivative is given by

[
{y’left( x right) = limlimits_{Delta x to 0} frac{{Delta y}}{{Delta x}} }
= {limlimits_{Delta x to 0} frac{{acancel{Delta x}}}{{cancel{Delta x}}} }
= {limlimits_{Delta x to 0} a = a.}
]

As it can be seen, the derivative of a linear function (y = ax + b) is always constant and equal to the coefficient (a.)

Example 5.

Using the definition, find the derivative of the simplest quadratic function (y = {x^2}.)

Solution.

If we change the independent variable (x) by an amount (Delta x), the function receives the following increment:

[
{Delta y = yleft( {x + Delta x} right) – yleft( x right) }
= {{left( {x + Delta x} right)^2} – {x^2}.}
]

This expression can be converted to the form

[
{Delta y = {left( {x + Delta x} right)^2} – {x^2} }
= {cancel{x^2} + 2xDelta x + {left( {Delta x} right)^2} – cancel{x^2} }
= {left( {2x + Delta x} right)Delta x.}
]

By calculating the limit, we find the derivative:

[
{y’left( x right) }
= {limlimits_{Delta x to 0} frac{{Delta y}}{{Delta x}} }
= {limlimits_{Delta x to 0} frac{{left( {2x + Delta x} right)cancel{Delta x}}}{{cancel{Delta x}}} }
= {limlimits_{Delta x to 0} left( {2x + Delta x} right) = 2x.}
]

Example 6.

Using the definition of the derivative, differentiate the function (fleft( x right) = {x^2} + 2x – 2.)

Solution.

Calculate the increment of the function:

[require{cancel}{Delta y }={ fleft( {x + Delta x} right) – fleft( x right) }={ left[ {{{left( {x + Delta x} right)}^2} + 2left( {x + Delta x} right) – 2} right] }-{ left[ {{x^2} + 2x – 2} right] }={ cancel{color{darkgreen}{x^2}} + 2xDelta x + {left( {Delta x} right)^2} + cancel{color{blue}{2x}} + 2Delta x – cancel{color{red}{2}}} – {cancel{color{darkgreen}{x^2}} – cancel{color{blue}{2x}} + cancel{color{red}{2}} }={ left( {2x + 2} right)Delta x + {left( {Delta x} right)^2}.}]

Write the difference ratio:

[{frac{{Delta y}}{{Delta x}} }={ frac{{left( {2x + 2} right)Delta x + {{left( {Delta x} right)}^2}}}{{Delta x}} }={ frac{{left( {2x + 2 + Delta x} right)cancel{Delta x}}}{{cancel{Delta x}}} }={ 2x + 2 + Delta x.}]

Hence, the derivative is

[{f^primeleft( x right) }={ mathop {lim }limits_{Delta x to 0} frac{{Delta y}}{{Delta x}} }={ mathop {lim }limits_{Delta x to 0} left( {2x + 2 + Delta x} right) }={ 2x + 2.}]

Example 7.

Determine the derivative of a quadratic function of general form (y = a{x^2} + bx +c.)

Solution.

We find the derivative of the given function using the definition of derivative. Write the increment of the function (Delta y) when the argument changes by (Delta x:)

[require{cancel}
{Delta y = yleft( {x + Delta x} right) – yleft( x right) }
= {left[ {a{{left( {x + Delta x} right)}^2} + bleft( {x + Delta x} right) + c} right] }-{ left[ {a{x^2} + bx + c} right] }
= {cancel{color{blue}{a{x^2}}} + 2axDelta x + a{left( {Delta x} right)^2} }+{ cancel{color{red}{bx}} + bDelta x + cancel{color{maroon}{c}} }-{ cancel{color{blue}{a{x^2}}} – cancel{color{red}{bx}} – cancel{color{maroon}{c}} }
= {2axDelta x + a{left( {Delta x} right)^2} + bDelta x }
= {left( {2ax + b + aDelta x} right)Delta x.}
]

Now we form the ratio of the increments and calculate the limit:

[
{y’left( x right) }
= {limlimits_{Delta x to 0} frac{{Delta y}}{{Delta x}} }
= {limlimits_{Delta x to 0} frac{{left( {2ax + b + aDelta x} right)cancel{Delta x}}}{{cancel{Delta x}}} }
= {limlimits_{Delta x to 0} left( {2ax + b + aDelta x} right) }
= {2ax + b.}
]

Thus, the derivative of a quadratic function in general form is a linear function.

Problems 1-7
Problems 8-20
Show Mobile NoticeShow All NotesHide All Notes
You appear to be on a device with a 'narrow' screen width (i.e. you are probably on a mobile phone). Due to the nature of the mathematics on this site it is best views in landscape mode. If your device is not in landscape mode many of the equations will run off the side of your device (should be able to scroll to see them) and some of the menu items will be cut off due to the narrow screen width.

Section 3-1 : The Definition of the Derivative

In the first section of the Limits chapter we saw that the computation of the slope of a tangent line, the instantaneous rate of change of a function, and the instantaneous velocity of an object at (x = a) all required us to compute the following limit.

[mathop {lim }limits_{x to a} frac{{fleft( x right) - fleft( a right)}}{{x - a}}]

We also saw that with a small change of notation this limit could also be written as,

[begin{equation}mathop {lim }limits_{h to 0} frac{{fleft( {a + h} right) - fleft( a right)}}{h} label{eq:eq1}end{equation}]

This is such an important limit and it arises in so many places that we give it a name. We call it a derivative. Here is the official definition of the derivative.

Defintion of the Derivative

The derivative of (fleft( x right)) with respect to x is the function (f'left( x right)) and is defined as, [begin{equation}f'left( x right) = mathop {lim }limits_{h to 0} frac{{fleft( {x + h} right) - fleft( x right)}}{h} label{eq:eq2}end{equation}]

Note that we replaced all the a’s in (eqref{eq:eq1}) with x’s to acknowledge the fact that the derivative is really a function as well. We often “read” (f'left( x right)) as “f prime of x”.

Let’s compute a couple of derivatives using the definition.

Example 1 Find the derivative of the following function using the definition of the derivative. [fleft( x right) = 2{x^2} - 16x + 35] Show Solution

So, all we really need to do is to plug this function into the definition of the derivative, (eqref{eq:eq2}), and do some algebra. While, admittedly, the algebra will get somewhat unpleasant at times, but it’s just algebra so don’t get excited about the fact that we’re now computing derivatives.

First plug the function into the definition of the derivative.

[begin{align*}f'left( x right) & = mathop {lim }limits_{h to 0} frac{{fleft( {x + h} right) - fleft( x right)}}{h} & = mathop {lim }limits_{h to 0} frac{{2{{left( {x + h} right)}^2} - 16left( {x + h} right) + 35 - left( {2{x^2} - 16x + 35} right)}}{h}end{align*}]

Be careful and make sure that you properly deal with parenthesis when doing the subtracting.

Now, we know from the previous chapter that we can’t just plug in (h = 0) since this will give us a division by zero error. So, we are going to have to do some work. In this case that means multiplying everything out and distributing the minus sign through on the second term. Doing this gives,

[begin{align*}f'left( x right) & = mathop {lim }limits_{h to 0} frac{{2{x^2} + 4xh + 2{h^2} - 16x - 16h + 35 - 2{x^2} + 16x - 35}}{h} & = mathop {lim }limits_{h to 0} frac{{4xh + 2{h^2} - 16h}}{h}end{align*}]

Notice that every term in the numerator that didn’t have an h in it canceled out and we can now factor an h out of the numerator which will cancel against the h in the denominator. After that we can compute the limit.

[begin{align*}f'left( x right) & = mathop {lim }limits_{h to 0} frac{{hleft( {4x + 2h - 16} right)}}{h} & = mathop {lim }limits_{h to 0} 4x + 2h - 16 & = 4x - 16end{align*}]

So, the derivative is,

[f'left( x right) = 4x - 16] Example 2 Find the derivative of the following function using the definition of the derivative. [gleft( t right) = frac{t}{{t + 1}}] Show Solution

This one is going to be a little messier as far as the algebra goes. However, outside of that it will work in exactly the same manner as the previous examples. First, we plug the function into the definition of the derivative,

[begin{align*}g'left( t right) & = mathop {lim }limits_{h to 0} frac{{gleft( {t + h} right) - gleft( t right)}}{h} & = mathop {lim }limits_{h to 0} frac{1}{h}left( {frac{{t + h}}{{t + h + 1}} - frac{t}{{t + 1}}} right)end{align*}]

Note that we changed all the letters in the definition to match up with the given function. Also note that we wrote the fraction a much more compact manner to help us with the work.

As with the first problem we can’t just plug in (h = 0). So, we will need to simplify things a little. In this case we will need to combine the two terms in the numerator into a single rational expression as follows.

[begin{align*}g'left( t right) & = mathop {lim }limits_{h to 0} frac{1}{h}left( {frac{{left( {t + h} right)left( {t + 1} right) - tleft( {t + h + 1} right)}}{{left( {t + h + 1} right)left( {t + 1} right)}}} right) & = mathop {lim }limits_{h to 0} frac{1}{h}left( {frac{{{t^2} + t + th + h - left( {{t^2} + th + t} right)}}{{left( {t + h + 1} right)left( {t + 1} right)}}} right) & = mathop {lim }limits_{h to 0} frac{1}{h}left( {frac{h}{{left( {t + h + 1} right)left( {t + 1} right)}}} right)end{align*}]

Before finishing this let’s note a couple of things. First, we didn’t multiply out the denominator. Multiplying out the denominator will just overly complicate things so let’s keep it simple. Next, as with the first example, after the simplification we only have terms with h’s in them left in the numerator and so we can now cancel an h out.

So, upon canceling the h we can evaluate the limit and get the derivative.

[begin{align*}g'left( t right) & = mathop {lim }limits_{h to 0} frac{1}{{left( {t + h + 1} right)left( {t + 1} right)}} & = frac{1}{{left( {t + 1} right)left( {t + 1} right)}} & = frac{1}{{{{left( {t + 1} right)}^2}}}end{align*}]

The derivative is then,

[g'left( t right) = frac{1}{{{{left( {t + 1} right)}^2}}}] Example 3 Find the derivative of the following function using the definition of the derivative. [Rleft( z right) = sqrt {5z - 8} ]

2.2 Definition Of Derivativeap Calculus Calculator

Show Solution

First plug into the definition of the derivative as we’ve done with the previous two examples.

[begin{align*}R'left( z right) & = mathop {lim }limits_{h to 0} frac{{Rleft( {z + h} right) - Rleft( z right)}}{h} & = mathop {lim }limits_{h to 0} frac{{sqrt {5left( {z + h} right) - 8} - sqrt {5z - 8} }}{h}end{align*}]

In this problem we’re going to have to rationalize the numerator. You do remember rationalization from an Algebra class right? In an Algebra class you probably only rationalized the denominator, but you can also rationalize numerators. Remember that in rationalizing the numerator (in this case) we multiply both the numerator and denominator by the numerator except we change the sign between the two terms. Here’s the rationalizing work for this problem,

[begin{align*}R'left( z right) & = mathop {lim }limits_{h to 0} frac{{left( {sqrt {5left( {z + h} right) - 8} - sqrt {5z - 8} } right)}}{h}frac{{left( {sqrt {5left( {z + h} right) - 8} + sqrt {5z - 8} } right)}}{{left( {sqrt {5left( {z + h} right) - 8} + sqrt {5z - 8} } right)}} & = mathop {lim }limits_{h to 0} frac{{5z + 5h - 8 - left( {5z - 8} right)}}{{hleft( {sqrt {5left( {z + h} right) - 8} + sqrt {5z - 8} } right)}} & = mathop {lim }limits_{h to 0} frac{{5h}}{{hleft( {sqrt {5left( {z + h} right) - 8} + sqrt {5z - 8} } right)}}end{align*}]

Again, after the simplification we have only h’s left in the numerator. So, cancel the h and evaluate the limit.

[begin{align*}R'left( z right) & = mathop {lim }limits_{h to 0} frac{5}{{sqrt {5left( {z + h} right) - 8} + sqrt {5z - 8} }} & = frac{5}{{sqrt {5z - 8} + sqrt {5z - 8} }} & = frac{5}{{2sqrt {5z - 8} }}end{align*}]

And so we get a derivative of,

[R'left( z right) = frac{5}{{2sqrt {5z - 8} }}]

Let’s work one more example. This one will be a little different, but it’s got a point that needs to be made.

Example 4 Determine (f'left( 0 right)) for (fleft( x right) = left| x right|). Show Solution

Since this problem is asking for the derivative at a specific point we’ll go ahead and use that in our work. It will make our life easier and that’s always a good thing.

So, plug into the definition and simplify.

[begin{align*}f'left( 0 right) & = mathop {lim }limits_{h to 0} frac{{fleft( {0 + h} right) - fleft( 0 right)}}{h} & = mathop {lim }limits_{h to 0} frac{{left| {0 + h} right| - left| 0 right|}}{h} & = mathop {lim }limits_{h to 0} frac{{left| h right|}}{h}end{align*}]

We saw a situation like this back when we were looking at limits at infinity. As in that section we can’t just cancel the h’s. We will have to look at the two one sided limits and recall that

[left| h right| = left{ {begin{array}{lr}h&{{mbox{if }}h ge 0}{ - h}&{{mbox{if }}h < 0}end{array}} right.] [begin{align*}mathop {lim }limits_{h to {0^ - }} frac{{left| h right|}}{h} & = mathop {lim }limits_{h to {0^ - }} frac{{ - h}}{h}hspace{0.25in}{mbox{because (h < 0) in a left-hand limit.}} & = mathop {lim }limits_{h to {0^ - }} left( { - 1} right) & = - 1end{align*}] [begin{align*}mathop {lim }limits_{h to {0^ + }} frac{{left| h right|}}{h} & = mathop {lim }limits_{h to {0^ + }} frac{h}{h}hspace{0.25in}{mbox{because (h > 0) in a right-hand limit.}} & = mathop {lim }limits_{h to {0^ + }} 1 & = 1end{align*}]

The two one-sided limits are different and so

[mathop {lim }limits_{h to 0} frac{{left| h right|}}{h}]

doesn’t exist. However, this is the limit that gives us the derivative that we’re after.

If the limit doesn’t exist then the derivative doesn’t exist either.

In this example we have finally seen a function for which the derivative doesn’t exist at a point. This is a fact of life that we’ve got to be aware of. Derivatives will not always exist. Note as well that this doesn’t say anything about whether or not the derivative exists anywhere else. In fact, the derivative of the absolute value function exists at every point except the one we just looked at, (x = 0).

The preceding discussion leads to the following definition.

Definition

A function (fleft( x right)) is called differentiable at (x = a) if (f'left( a right)) exists and (fleft( x right)) is called differentiable on an interval if the derivative exists for each point in that interval.

The next theorem shows us a very nice relationship between functions that are continuous and those that are differentiable.

Theorem

If (fleft( x right)) is differentiable at (x = a) then (fleft( x right)) is continuous at (x = a).

See the Proof of Various Derivative Formulas section of the Extras chapter to see the proof of this theorem.

2.2 Definition Of Derivativeap Calculus 14th Edition

Note that this theorem does not work in reverse. Consider (fleft( x right) = left| x right|) and take a look at,

[mathop {lim }limits_{x to 0} fleft( x right) = mathop {lim }limits_{x to 0} left| x right| = 0 = fleft( 0 right)]

So, (fleft( x right) = left| x right|) is continuous at (x = 0) but we’ve just shown above in Example 4 that (fleft( x right) = left| x right|) is not differentiable at (x = 0).

Alternate Notation

Next, we need to discuss some alternate notation for the derivative. The typical derivative notation is the “prime” notation. However, there is another notation that is used on occasion so let’s cover that.

Given a function (y = fleft( x right)) all of the following are equivalent and represent the derivative of (fleft( x right)) with respect to x.

[f'left( x right) = y' = frac{{df}}{{dx}} = frac{{dy}}{{dx}} = frac{d}{{dx}}left( {fleft( x right)} right) = frac{d}{{dx}}left( y right)]

Because we also need to evaluate derivatives on occasion we also need a notation for evaluating derivatives when using the fractional notation. So, if we want to evaluate the derivative at (x = a) all of the following are equivalent.

[f'left( a right) = {left. {y'} right|_{x = a}} = {left. {frac{{df}}{{dx}}} right|_{x = a}} = {left. {frac{{dy}}{{dx}}} right|_{x = a}}]

2.2 Definition Of Derivativeap Calculus Algebra

Note as well that on occasion we will drop the (left( x right)) part on the function to simplify the notation somewhat. In these cases the following are equivalent.

[f'left( x right) = f']

As a final note in this section we’ll acknowledge that computing most derivatives directly from the definition is a fairly complex (and sometimes painful) process filled with opportunities to make mistakes. In a couple of sections we’ll start developing formulas and/or properties that will help us to take the derivative of many of the common functions so we won’t need to resort to the definition of the derivative too often.

This does not mean however that it isn’t important to know the definition of the derivative! It is an important definition that we should always know and keep in the back of our minds. It is just something that we’re not going to be working with all that much.