Functions¶
A function
is a rule for transforming an object into another object. The object you start with is called the input
, and comes from some set called the domain
. What you get back is called the output
; it comes from some set called the codomain
, and the output's value is within a range
. A function must assign a unique output for each valid input.
We say that a function \(f\) is:
even
, if \(f(-x) = f(x)\) for all \(x\) in the domain of \(f\);odd
, if \(f(-x) = -f(x)\) for all \(x\) in the domain of \(f\).
The graph of an even function has mirror symmetry about the y-axis and the graph of an odd function has \(180^\circ\) point symmetry about the origin.
Let's look at some common functions and their graphs.
Linear Functions¶
Functions of the form \(f(x) = mx + b\) are called linear
. There's a good reason for this: the graph of these functions are lines. The slop of the line is given by \(m\), and the y-intercept is equal to \(b\). To sketch the graph of a linear function, you only need to identify two points on the graph. Set \(x = 0\), you get a point \((0, b)\), and set \(y = 0\) you get another point \((-\frac{b}{a}, 0)\). Examples are like this:
Polynomials¶
These are functions built out of nonnegative integer powers of \(x\). You start with the building blocks \(1\), \(x\), \(x^2\), \(x^3\), and so on, and you are allowed to multiply these basic functions by numbers and add a finite number of them together. The amount that you multiply the building block \(x^n\) by is called the coefficient
of \(x^n\). The highest number \(n\) such that \(x^n\) has a non zero coefficient is called the degree
of the polynomial. The mathematical way to write a general polynomial of degree \(n\) is:
where \(a_n\) is the coefficient of \(x^n\), \(a_{n - 1}\) is the coefficient of \(x^{n - 1}\), ans so on down to \(a_0\), which is the coefficient of \(1\).
Since the functions \(x^n\) are the building blocks of all polynomials, you should know what their graphs look like. The even powers mostly look similar to each other, and the same can be said for the odd powers. Here's what the graphs look like, from \(x^0\) up to \(x^7\):
Sketching the graphs of more general polynomials is more difficult. Even finding the x-intercepts is often impossible unless the polynomial is very simple. There is one aspect of the graph that is fairly straightforward, which is what happens at the far left and right sides of the graph. This is determined by the so-called leading coefficient
, which is the coefficient of the highest-degree term.In fact, it only matters whether the leading coefficient is positive or negative. It also matters whether the degree of the polynomial is odd or even; so there are four possibilities for what the edges of the graph can look like:
Rational functions¶
The functions with the form:
are called Rational functions
, where p
and q
are polynomials.
Rational functions will pop up in many different contexts, and the graphs can look really different depending on the polynomials p
and q
. The simplest examples of rational functions are polynomials themselves, which arise when q(x)
is the constant polynomial \(1\). The next simplest examples are the functions \(\frac{1}{x^n}\), where \(n\) is a positive integer. Let's look at some of the graph of these functions:
The odd powers look similar to each other, and the even powers look similar to each other too.
Exponential functions¶
Functions with the form:
are called Exponential functions
, where \(a\) is a coefficient, \(b\) is a positive real number, and \(x\) occurs as an exponent
.
The graph of \(f(x) = b^x\) for any other base \(b > 0\) looks similar to this:
and the graph of \(f(x) = b^{-x}\) is just the reflection of \(f(x) = b^{x}\) in y-axis
.
If \(a\) is negtive, the graph will be the reflection of its positive one.
Logarithm functions¶
When a functions has the form:
we called it a logarithm function
.
Logarithm functions are the inverse functions of the exponential functions. Using the line \(y = x\) as a mirror, the graph of \(y = \log_{2}(x)\) looks like this:
Trig functions¶
Definitions¶
Radians¶
The first thing we need to know is the notion of radian
. Instead of saying that there are 360 degrees in a full revolution, we'll say that there are \(2\pi\) radians. The arc length of a wedge of the circle is the angle of the wedge:
Trigonometry Functions¶
Suppose you have a right-angled triangle and one of the angles, other than the right angle, is labeled \(\theta\), like this:
the formulas are defined:
We'll also be using the reciprocal functions, which are defined as:
Value of Trigonometry¶
Now it's time to figure out the value of trig functions.
With the Domain of \(0 - \frac{\pi}{2}\)¶
It may be really difficult to calculate the value of trig functions with out a calculator, but some common angles's vlaue you must keep in mind:
With the Domain of \(0 - 2\pi\)¶
If an angle is bigger than \(2\pi\), for example, \(\frac{7\pi}{6}\), we can draw it on the coordinate plane:
So the angle \(7\pi/6\) is in the third quadrant. We've chosen the point on the ray which has distance \(r = 1\) from the origin, then dropped a perpendicular. The angle between the ray and the \(-\pi\) axis is \(\pi / 6\), and we already know that \(\sin(\theta) = \frac{y}{1}\), \(y < 0\), so we got:
The key in the previous example is that \(\sin(\frac{7\pi}{6})\) is related to \(\sin(\frac{\pi}{6})\), where \(\frac{\pi}{6}\) is the reference angle for \(\frac{7\pi}{6}\). It's not difficult to find that the trig functions of any anlge is puls or minus value of the reference angle. This can be described as the ASTC Method
:
The letters ASTC
on the diagram are all you need to remember. A
stands for All
, meaning all the functions are positive in the first quadrant; the other letters obviously stand for sin, tan, and cos, respectively.
With the Domain outside \(0 - 2\pi\)¶
If the angle is bigger than \(2\pi\) or less than \(0\), we can simple add or subtract multiples of \(2\pi\) until you get between \(0\) and \(2\pi\)
Graphs¶
It's really useful to remember what the graphs of the sin, cos, and tan functions look like. These functions are all periodic
, meaning that they repeat themselves over and over again from left to right:
It's also worthwhile learning the graph of \(y = \sec(x)\), \(y = \csc(x)\), and \(y = \cot(x)\):
From their graphs, we can get the following symmetry properties:
\(\sin(x)\), \(\tan(x)\), \(\cot(x)\), and \(csc(x)\) are odd functions of \(x\). \(\cot(x)\) and \(\sec(x)\) are even functions of \(x\).
Identities¶
There are relations between trig functions which will come in handy.
\(tan\) and \(cot\)¶
First, tan and cot may be expressed in terms of sin and cos as follows:
Pythagoras' Theorem¶
The most important of all the trig identities is Pythagoras' Theorem
:
Now divide this equation by \(\cos^2(x)\), we got:
If you dived the Pythagorean equation
above by \(\sin^2(x)\), you got:
trig functions and co-trig functions¶
There are some more relationships between trig functions. Have you noticed that some of the names begin with the syllable co
? This is short for the word complementary
. The fact is that we have the following general relationship:
So in particular, we have
It even works when the trig function is already a co
:
Sums of Angles¶
Specifically, you should remember that:
It's useful to remember that you can switch all the pluses and minuses to get some related formulas:
And if \(A = B\), we got: