Authors: Harald Schilly, William A. Stein

# Pre-Calculus and Trigonometry Review

This tutorial requires a working knowledge of functions and graphs. When we refer to f(x), we are referring to a function f whose values may change as x changes. For example, in this function:

$f(x) = 2x$

f(x) is equal to 2 times x. We can evaluate the function when x is equal to some number by replacing all occurrences of x with that number, then simplifying the resulting expression:

$f(-4) = 2 \cdot (-4) = -8$

$f(3) = 2 \cdot (3) = 6$

To plot this function, we sketch a set of axes: Then we evaluate f(x) for a couple values of x (also known as a table of values) and plot the results according to their x-value -- moving along the horizontal x-axis -- and their y-value -- moving along the vertical y-axis -- and draw a line between them, like so: As you can see, the graph intersects the x- and the y-axes at x=0 and y=0, respectively. To find the x-intercepts (if any) of a function g(x), replace g(x) with zero and solve for x. For example:

$g(x)=x^2-3x-4$

$0=x^2-3x-4$

$0=(x-4)(x+1)$

$x=4,1$

Thus, g(x) has x-intercepts at x=-1 and x=4. Finding the function's y-intercept is easy; simply replace x with 0:

$g(0)=0^2-3 \cdot 0 -4 = -4$

## Transformations

Given a function f(x), if

$y=m\cdot f[n \cdot (x-a)]+b,$

then f(x) will be:

• stretched vertically by a factor of |m|

• compressed horizontally by a factor of |n|

• displaced horizontally to the right by a units

• displaced vertically upward by b units

• If m is negative, f(x) will be inverted over the y-axis

• If n is negative, f(x) will be inverted over the x-axis

• The sign of a and b affects the direction of the function's displacement.

To apply this, try manipulating the function f(x) = 2*x in the cell below. Modify m, n, a, and b (and/or f(x) itself), then evaluate the code by clicking the 'Play' button or typing SHIFT-ENTER to see how the graph changes.

m = -2
n = 1/10
a = 1
b = 2

def f(x):
return 2*x

plot(m*f(n*(x-a))+b, x, -10, 10).show(ymin=-10, ymax=10) %md

## Trigonometry

Trigonometry is the math of triangles -- or as you have probably experienced, the math of triangles inscribed in circles. The following images from [Wikipedia](http://en.wikipedia.org/wiki/Unit_circle) are visual representations of the trigonometric functions and the unit circle, respectively.

<img src="../IMAGES/review11.png">

This calculus tutorial requires no knowledge of versin or exsec, but you should be familiar with cosine, sine, and tangent, and have passing knowledge of cosecant, secant, and cotangent. Remember SOHCAHTOA (pronounced 'soak-uh-toe-uh'): Sine is Opposite over Hypotenuse, Cosine is Adjacent over Hypotenuse, and Tangent is Opposite over Adjacent.

<img src="../IMAGES/review12.png">

In the pictured unit circle, the coordinate pairs describe the cosine of the angle (comma) the sine of the angle. It shows that the cosine of pi over 3 is one-half, while the sine of pi over three is root three over two, and so forth. The units involving pi are known as radians: one would say, 'an angle of three pi over two radians', which is also equivalent to two hundred seventy degrees.

For this or any exploration of calculus, there are some basic trigonometric identities with which you should be familiar. In approximate order of importance, they are:

\begin{align}\frac{\sin{x}}{\cos{x}}=\tan{x}\end{align}

\begin{align}\frac{1}{\cos{x}}=\sec{x}\end{align}

\begin{align}\frac{1}{\sin{x}}=\csc{x}\end{align}

\begin{align}\frac{1}{\tan{x}}=\cot{x}\end{align}

\begin{align}\sin^2{x} + \cos^2{x} = 1\end{align}

\begin{align}\sec^2{x} - \tan^2{x} = 1\end{align}

\begin{align}\csc^2{x} - \cot^2{x} = 1\end{align}

\begin{align}\sin{2x} = 2 \sin{x} \cos{x}\end{align}

\begin{align}\cos{2x} = \cos^2{x} - \sin^2{x} = 2 \cos^2{x} - 1=1 - 2 \sin^2{x}\end{align}

\begin{align}\tan{2x}=\frac{2 \tan{x}}{1 - \tan^2{x}}\end{align}

To refresh your memory, here are some graphs of trigonometric functions:


## Trigonometry

Trigonometry is the math of triangles -- or as you have probably experienced, the math of triangles inscribed in circles. The following images from Wikipedia are visual representations of the trigonometric functions and the unit circle, respectively. This calculus tutorial requires no knowledge of versin or exsec, but you should be familiar with cosine, sine, and tangent, and have passing knowledge of cosecant, secant, and cotangent. Remember SOHCAHTOA (pronounced 'soak-uh-toe-uh'): Sine is Opposite over Hypotenuse, Cosine is Adjacent over Hypotenuse, and Tangent is Opposite over Adjacent. In the pictured unit circle, the coordinate pairs describe the cosine of the angle (comma) the sine of the angle. It shows that the cosine of pi over 3 is one-half, while the sine of pi over three is root three over two, and so forth. The units involving pi are known as radians: one would say, 'an angle of three pi over two radians', which is also equivalent to two hundred seventy degrees.

For this or any exploration of calculus, there are some basic trigonometric identities with which you should be familiar. In approximate order of importance, they are:

\begin{align}\frac{\sin{x}}{\cos{x}}=\tan{x}\end{align}

\begin{align}\frac{1}{\cos{x}}=\sec{x}\end{align}

\begin{align}\frac{1}{\sin{x}}=\csc{x}\end{align}

\begin{align}\frac{1}{\tan{x}}=\cot{x}\end{align}

\begin{align}\sin^2{x} + \cos^2{x} = 1\end{align}

\begin{align}\sec^2{x} - \tan^2{x} = 1\end{align}

\begin{align}\csc^2{x} - \cot^2{x} = 1\end{align}

\begin{align}\sin{2x} = 2 \sin{x} \cos{x}\end{align}

\begin{align}\cos{2x} = \cos^2{x} - \sin^2{x} = 2 \cos^2{x} - 1=1 - 2 \sin^2{x}\end{align}

\begin{align}\tan{2x}=\frac{2 \tan{x}}{1 - \tan^2{x}}\end{align}

To refresh your memory, here are some graphs of trigonometric functions:

plot(cos(x),-2*pi,2*pi) + text('$f(x)=\cos{x}$', (pi,.6), fontsize=14, color='black') plot(sin(x),-2*pi,2*pi) + text('$f(x)=\sin{x}$', (1.5*pi,.6), fontsize=14, color='black') plot(tan(x),(x,-2*pi,2*pi),ymin=-10,ymax=10) + text(r'$f(x)=\tan{x}$', (pi,5), fontsize=14, color='black') plot(csc(x),(x,-2*pi,2*pi),ymin=-10,ymax=10) + text(r'$f(x)=\csc{x}$', (1.6*pi,5), fontsize=14, color='black') plot(sec(x),(x,-2*pi,2*pi),ymin=-10,ymax=10) + text(r'$f(x)=\sec{x}$', (pi,5), fontsize=14, color='black') plot(cot(x),(x,-2*pi,2*pi),ymin=-10,ymax=10) + text(r'$f(x)=\cot{x}$', (pi/2,5), fontsize=14, color='black') %md

The period of sine, cosine, secant, and cosecant is two pi, while the period of tangent and cotangent is pi. A function's period is the horizontal width of its repeating section. Since the sine function has a period of two pi, the interval [0, 2π] is identical to [2π, 4π]. Similarly, sine's interval [3π/8, 19π/8] is identical to [35π/8, 51π/8].

Well, that's it for the review. I tried to keep it fairly straightforward, but if there is something you would like added/clarified, please let us know at <a href="mailto:[email protected]" target="_blank">info+calctut@sagemath.com</a>. That aside, it's time to go forth and learn some calculus!

[Next](02-limits.sagews)


The period of sine, cosine, secant, and cosecant is two pi, while the period of tangent and cotangent is pi. A function's period is the horizontal width of its repeating section. Since the sine function has a period of two pi, the interval [0, 2π] is identical to [2π, 4π]. Similarly, sine's interval [3π/8, 19π/8] is identical to [35π/8, 51π/8].

Well, that's it for the review. I tried to keep it fairly straightforward, but if there is something you would like added/clarified, please let us know at [email protected]. That aside, it's time to go forth and learn some calculus!

Next