The concept of slope, and hence the derivatives, is used to find the maximum or minimum value of a function. There are two tests that use derivatives and are used to find the maxima/minima of a function. They are
First Derivative Test
We can just use the first derivative to determine the maximum or minimum by observing the following points:
Second Derivative Test
The second derivative test uses the critical points and the second derivative to find the maxima/minima. To perform this test:
Example 38: Find the maxima and minima for \(y=5 x^3+2 x^2-3 x\)
Solution:
The derivative (slope) is:
\(
\frac{d}{d x} y=15 x^2+4 x-3
\)
Which is quadratic with zeros at:
\(x=-3 / 5\)
\(x=+1 / 3\)
Could they be maxima or minima? (Don’t look at the graph yet!)
The second derivative is \({y}^{\prime \prime}={3 0 x}+{4}\)
At \(x=-3 / 5\) :
\(
y^{\prime \prime}=30(-3 / 5)+4=-14
\)
it is less than 0 , so \(-3 / 5\) is a local maximum
At \(x=+1 / 3\)
\(
y^{\prime \prime}=30(+1 / 3)+4=+14
\)
it is greater than 0 , so \(+1 / 3\) is a local minimum
Let’s look at the graph below.
Example 39: Find the local maxima and local minima of the function \(f(x)=2 x^3+3 x^2-12 x+5\), using the first derivative test.
Solution:
The given function is \(f(x)=2 x^3+3 x^2-12 x+5\)
\(
f^{\prime}(x)=6 x^2+6 x-12
\)
\(
f^{\prime}(x)=0 ; 6 x^2-6 x-12=0,6\left(x^2+x-2\right)=0,6(x-1)(x+2)=0
\)
Hence the limiting points are \(x=1\), and \(x=-2\).
Let us take the points in the immediate neighborhood of \(x=1\).
The points are \(\{0,2\}\).
\(f^{\prime}(0)=6\left(0^2+0-2\right)=6(-2)=-12\), and \(f^{\prime}(2)=6\left(2^2+2-2\right)=6(4)=\) \(+24\)
The derivative of the function is negative towards the left of \(x=1\), and is positive towards the right. Hence \(x=1\) is the local minima.
Let us now take the points in the immediate neighborhood of \(x=\) -2. The points are \(\{-3,-1\}\).
\(f^{\prime}(-3)=6\left((-3)^2+(-3)-2\right)=6(4)=+24\), and \(f^{\prime}(-1)=6\left((-1)^2+(-1)\right.\) \(-2)=6(-2)=-12\)
The derivative of the function is positive towards the left of \(x=\) \(-2\) and is negative towards the right. Hence \(x=-2\) is the local maxima.
Therefore, the local maxima is \(-2\), and the local minima is \(-1\).
Example 40: Find the local maxima and local minima of the function \(f(x)=x^3-6 x^2+9 x+15\), using second derivative test.
Solution:
The given function is \(f(x)=x^3-6 x^2+9 x+15\). \(f^{\prime}(x)=3 x^2-12 x+9\). Let us find the zeros of the expression. \(f^{\prime}(x)=\) 0 .
\(
f^{\prime}(x)=3\left(x^2-4 x+3\right)
\)
\(x^2-4 x+3=0\) or \((x-1)(x-3)=0\)
Here \(x=1\), and \(x=3\)
\(
f^{\prime \prime}(x)=6 x-12
\)
\(f^{\prime \prime}(1)=6(1)-12=6-12=-6 ., f^{\prime \prime}(1)<0\), and \(x=1\) is the maxima. \(f^{\prime \prime}(3)=6(3)-12=18-12=6, f^{\prime \prime}(3)>0\), and \(x=3\) is the minima.
Therefore by using the second derivative test, the local maxima is 1, with a maximum value of \(f(1)=19\), and the local minima is 3, with a minimum value of \(f(3)=15\)
Example 41: \(\text { Find the local maxima and minima of the function } f(x)=3 x^4+4 x^3-12 x^2+12\)
Solution:
For stationary points \(f^{\prime}(x)=0\).
\(
\begin{aligned}
&f^{\prime}(x)=12 x^3+12 x^2-24 x=0 \\
&\Rightarrow 12 x\left(x^2+x-2\right)=0 \\
&\Rightarrow 12 x(x-1)(x+2)=0 \\
&=>\text { Hence, } x=0, x=1 \text { and } x=-2
\end{aligned}
\)
Second derivative test:
\(
\begin{aligned}
&f^{\prime \prime}(x)=36 x^2+24 x-24 \\
&f^{\prime \prime}(x)=12\left(3 x^2+2 x-2\right)
\end{aligned}
\)
At \(x=-2\)
\(
f^{\prime \prime}(-2)=12\left(3(-2)^2+2(-2)-2\right)=12(12-4-2)=12(6)=72>0
\)
At \(x=0\)
\(
f^{\prime \prime}(0)=12\left(3(0)^2+2(0)-2\right)=12(-2)=-24<0
\)
At \(x=1\)
\(
f^{\prime \prime}(1)=12\left(3(1)^2+2(1)-2\right)=12(3+2-2)=12(3)=36>0
\)
Therefore, by the second derivative test \(x=0\) is the point of local maxima while \(x=-2\) and \(x=1\) are the points of local minima.
Example 42: \(\text { Find the maxima and minima for } f(x)=2 x^3-21 x^2+36 x-15\)
Solution:
We have \(f(x)=2 x^3-21 x^2+36 x-15\)
\(
f^{\prime}(x)=6 x^2-42 x+36
\)
Now find the points where \(f^{\prime}(x)=0\)
\(
\begin{aligned}
&f^{\prime}(x)=0 \Rightarrow 6 x^2-42 x+36=0 \\
&\Rightarrow x^2-7 x+6=0 \\
&\Rightarrow(x-6)(x-1)=0
\end{aligned}
\)
\(\Rightarrow x=6\) or \(x=1\) are the possible points of minima or maxima.
Let us test the function at each of these points.
\(
f^{\prime \prime}(x)=12 x-42
\)
At \(x=1, f^{\prime \prime}(1)=12-42=-30<0\)
Therefore \(x=1\) is a point of local maximum.
The maximum value is \(f(1)=2-21+36-15=2\)
At \(x=6, f^{\prime \prime}(x)=12 \times 6-42=30>0\)
Therefore \(x=6\) is a point of local minimum.
The local minimum value is \(f(6)=2(6)^3-21(6)^2+36(6)-15\)
\(=2 \times 216-21 \times 36+216-15\)
\(
=432-756+216-15=-123
\)
If the sequence of partial sums is a convergent sequence (i.e. its limit exists and is finite) then the series is also called convergent and in this case if \(\lim _{n \rightarrow \infty} s_n=s\) then, \(\sum_{i=1}^{\infty} a_i=s\). If the sequence of partial sums is a divergent sequence (i.e. its limit doesn’t exist or is plus or minus infinity) then the series is also called divergent.
Example 43: Determine if the following series is convergent or divergent. If it converges determine its value.
\(
\sum_{n=1}^{\infty} n
\)
Solution: To determine if the series is convergent we first need to get our hands on a formula for the general term in the sequence of partial sums.
\(
s_n=\sum_{i=1}^n i
\)
This is a known series and its value can be shown to be,
\(
s_n=\sum_{i=1}^n i=\frac{n(n+1)}{2}
\)
Don’t worry if you didn’t know this formula (we’d be surprised if anyone knew it…) as you won’t be required to know it in my course.
So, to determine if the series is convergent we will first need to see if the sequence of partial sums,
\(
\left\{\frac{n(n+1)}{2}\right\}_{n=1}^{\infty}
\)
is convergent or divergent. That’s not terribly difficult in this case. The limit of the sequence terms is,
\(
\lim _{n \rightarrow \infty} \frac{n(n+1)}{2}=\infty
\)
Therefore, the sequence of partial sums diverges to \(\infty\) and so the series also diverges.
Example 44: Determine if the following series converges or diverges. If it converges determine its sum.
\(
\sum_{n=2}^{\infty} \frac{1}{n^2-1}
\)
Solution: This is actually one of the few series in which we are able to determine a formula for the general term in the sequence of partial fractions. However, in this section we are more interested in the general idea of convergence and divergence and so we’ll put off discussing the process for finding the formula until the next section.
The general formula for the partial sums is,
\(
s_n=\sum_{i=2}^n \frac{1}{i^2-1}=\frac{3}{4}-\frac{1}{2 n}-\frac{1}{2(n+1)}
\)
and in this case we have,
\(
\lim _{n \rightarrow \infty} s_n=\lim _{n \rightarrow \infty}\left(\frac{3}{4}-\frac{1}{2 n}-\frac{1}{2(n+1)}\right)=\frac{3}{4}
\)
The sequence of partial sums converges and so the series converges also and its value is,
\(
\sum_{n=2}^{\infty} \frac{1}{n^2-1}=\frac{3}{4}
\)
Relations and Functions
What Is a Relation?
A relation is any set of ordered pairs. An ordered-pair is a pair of values that go together. For example, \((4,7)\) is an ordered-pair number; the order is designated by the first element 4 and the second element 7 . In other words a relation shows a relationship between two values or we can define a relation as a bunch of ordered pairs.
What Is A Function?
In mathematics, a function can be defined as a rule that relates every element in one set, called the domain, to exactly one element in another set, called the range. For example, \(y=x+3\) and \(y=x^2-1\) are functions because every \(x\)-value produces a different \(y\)-value.
A function is a relation in which each element in the domain matches exactly one element in the range. Alternatively, a function is a relation where each input has only one output.
Function & Relation Difference
Note: All functions are relations, but not all relations are functions.
Table of Values
One way to represent the relationship between the input and output variables in a relation or function is by means of a table of values.
\(
\begin{array}{|c|c|}
\hline x & y \\
\hline 2 & -1 \\
\hline 1 & -2 \\
\hline 1 & 3 \\
\hline 0 & 2 \\
\hline
\end{array}
\)
What is a Set?
A set is a collection of distinct or well-defined members or elements. In mathematics, members of a set are written within curly braces or brackets { }. Members of assets can be anything such as; numbers, people, or alphabetical letters, etc.
For example, \(\{a, b, c, \ldots, x, y, z\}\) is a set of alphabet letters.
Ordered Pairs
Relations and functions can also be represented as a set of points or ordered pairs. These are numbers that go hand in hand. Ordered pair numbers are represented within parentheses and separated by a comma. For example, (6,8) (input, output) is an ordered-pair number whereby the numbers 6 and 8 are the first (input) and second (output) elements, respectively.
\(
\{(1,-3),(-2,0),(4,5),(1,2)\}
\)
Ways to Represent Relation
What is Domain and Range?
The domain and range of a relation are the sets of all the \(x\) -coordinates and all the \(y\)-coordinates of ordered pairs respectively. For example, if the relation is, \(R=\{(1,2),(2,2),(3,3),(4,3)\}\), then:
Domain and Range of a Function
The domain and range of a function are the components of a function. The domain is the set of all the input values of a function and the range is the possible output given by the function. Domain \(\rightarrow\) Function \(\rightarrow\) Range. If there exists a function \(f: A \rightarrow B\) such that every element of \(\operatorname{set} A\) is mapped to elements in set \(B\), then \(A\) is the domain and \(B\) is the codomain. The image of an element ‘a’ under a relation \(R\) is given by ‘ \(b\) ‘, where \((a, b) \in R\). The range of the function is the set of images. The domain and range of a function are denoted in general as follows: Domain \((f)=\{x \in R\) : Condition \(\}\) and range \((f)=\{f(x): x \in\) domain \((f)\}\)
The domain and range of this function \(f(x)=2 x\) is given as domain \(D=\{x\) \(\in N\}\), range \(R=\{y \in N: y=2 x\}\)
Domain of a Function
The domain in math is the set of all possible inputs for the function. Consider the above box as a function \(f(x)=2 x\). Inputting the values \(x=\{1,2,3,4, \ldots\}\), the domain is simply the set of natural numbers. But in general (if the domain is not specified as natural numbers), \(f(x)=2 x\) is defined for all real values of \(x\) and hence its domain is the set of all real numbers which is denoted by (\(\infty, \infty)\). Here are the general formulas used to find the domain of different types of functions. Here, R is the set of all real numbers.
How to Find the Domain of a function
Example 45: Find the domain of a function \(f(x)=\sqrt{ }(x+2)\)
Solution: we apply the rule mentioned above (\(\sqrt{x}\) is \(x \geq 0\)). Then we get: \(x+2 \geq 0\). Solving this inequality, we get \(x \geq-2\). Thus, the domain of \(f(x)\) is \([-2, \infty)\).
Example 46: calculate the domain of a function \(g(x)=(2 x+1) /(x-2)\)
Solution: we apply the rule mentioned above. Then we get \(x-2 \neq 0\). Solving this, we get \(x \neq 2\). Thus, its domain is the set of all real numbers except 2 which in interval notation can be written as \((-\infty, 2) \cup(2, \infty)\).
Range of a Function
The range of a function is the set of all its outputs. Example: Let us consider the function \(f: A \rightarrow B\), where \(f(x)=2 x\) and each of \(A\) and \(B=\{\) set of natural numbers}. Here we say \(A\) is the domain and \(B\) is the co-domain. Then the output of this function becomes the range. The range \(=\) {set of even natural numbers}. The elements of the domain are called preimages and the elements of the co-domain which are mapped are called the images. Here, the range of the function \(f\) is the set of all images of the elements of the domain (or) the set of all the outputs of the function.
How to Find the Range of a Function
Consider a function \(y=f(x)\).
Example 47: Calculate the range of the function \(f(x)=2(x-3)^2-5\),
Solution: Apply rule (Range of a quadratic function) mentioned above. Then its range is \(y \geq-5\) (or) \([-5, \infty)\).
Example 48: Find the range of a function \(g(x)=\ln (2 x-3)+4\)
Solution: We apply the rule above (Range of logarithmic function is \(R\).) . Then we get its range to be the set of all real numbers \(( R )\).
Codomain
In relations and functions, the codomain is the set of all possible outcomes of the given relation or function. Sometimes, the codomain is also equal to the range of the function. However, the range is the subset of the codomain.
As we said, the codomain of a real function is considered as the set of real numbers, unless explicitly stated otherwise. Thus, algebraic functions (polynomial, constant, linear, quadratic, rational, irrational, etc.) and transcendental functions (exponential, logarithmic, trigonometric, and hyperbolic) have the set of real numbers as their codomain. The following table shows examples of real functions and their domains, codomains, and ranges.
\(Domain and Range of Trigonometric Functions
Look at the graph of the sine function and cosine function. Notice that the value of the functions oscillates between -1 and 1 and it is defined for all real numbers. Thus, for each of the sine and cosine functions:
Review the conventions of interval notation:
Summary:
Example 48: Determine whether the following are functions
(a) \(A=\{(1,2),(2,3),(3,4),(4,5)\}\)
(b) \(B=\{(1,3),(0,3),(2,1),(4,2)\}\)
(c) \(C=\{(1,6),(2,5),(1,9),(4,3)\}\)
Solution: (a) \(A=\{(1,2),(2,3),(3,4),(4,5)\}\) is a function because all the first elements are different.
(b) \(B=\{(1,3),(0,3),(2,1),(4,2)\}\) is a function because all the first elements are different. (The second element does not need to be unique)
(c) \(C=\{(1,6),(2,5),(1,9),(4,3)\}\) is not a function because the first element, 1 , is repeated.
You cannot copy content of this page