Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Views: 4936

Pre-Calculus and Trigonometry Review

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

f(x)=2xf(x) = 2x

f(x)f(x) is equal to 22 times xx. We can evaluate the function when xx is equal to ___ by replacing all occurrences of xx with ___, then simplifying the resulting expression:

f(4)=2(4)=8f(-4) = 2*(-4)=-8 and f(3)=23=6f(3) = 2*3 = 6

To plot this function, we sketch a set of axes:

plot(0)

Then we evaluate f(x)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:

f=2*x plot(f,(x,-10,10))+point((3,6),pointsize=40)+point((-4,-8),pointsize=40)

As you can see, the graph intersects the x- and the y-axes at x=0x=0 and y=0y=0, respectively. To find the x-intercepts (if any) of a function g(x)g(x), replace g(x)g(x) with zero and solve for xx. For example:

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

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

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

x=4,1x=4,-1

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

g(0)=02304=4g(0)=0^2-3*0-4=-4

Since a function can have at most one output for every input, a function can have at most one y-intercept. Conversely, since a function can have any number of inputs for one output, a function can have any number of x-intercepts.

Transformations

Given a function f(x)f(x), if

y=mf[n(xa)]+by=m*f[n*(x-a)]+b

then f(x)f(x) will be:

  • stretched vertically by a factor of m|m|
  • compressed horizontally by a factor of n|n|
  • displaced horizontally to the right by aa units
  • displaced vertically upward by bb units
  • If mm is negative, f(x)f(x) will be inverted over the y-axis
  • If n is negative, f(x)f(x) will be inverted over the x-axis
  • The sign of aa and bb affects the direction of the function's displacement.

To apply this, try manipulating the function f(x)=2xf(x) = 2x. If you have the SageMath notebook open, start a new worksheet and copy the following code into the first cell. Manipulate mm, nn, aa, and bb (and/or f(x)f(x) itself), then evaluate the code to see how the graph changes.

m = -2 # Define variables m, n, a, and b n = 1/10 a = 1 b = 2 def f(x): # Define a function f(x) that equals 2x return 2*x plot(m*f(n*(x-a))+b, x, -10, 10).show(ymin=-10, ymax=10) # Plot f(x) with various transformations

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 π3\dfrac{\pi}{3} is 12\dfrac{1}{2}, while the sine of π3\dfrac{\pi}{3} is 32\dfrac{\sqrt{3}}{2}, 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:

sin(x)cos(x)=tan(x)\dfrac{\sin(x)}{\cos(x)}=\tan(x)

1cos(x)=sec(x)\dfrac{1}{\cos(x)}=\sec(x)

1sin(x)=csc(x)\dfrac{1}{\sin(x)}=\csc(x)

1tan(x)=cot(x)\dfrac{1}{\tan(x)}=\cot(x)

sin2(x)+cos2(x)=1\sin^2(x)+\cos^2(x)=1

sec2(x)tan2(x)=1\sec^2(x)-\tan^2(x)=1

csc2(x)cot2(x)=1\csc^2(x)-\cot^2(x)=1

sin(2x)=2sin(x)cos(x)\sin(2x)=2\sin(x)\cos(x)

cos(2x)=cos2(x)sin2(x)=2cos2(x)x1=12sin2(x)\cos(2x)=\cos^2(x)-\sin^2(x)=2\cos^2(x)-x-1=1-2\sin^2(x)

tan(2x)=2tan(x)1tan2(x)\tan(2x)=\dfrac{2\tan(x)}{1-\tan^2(x)}

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

plot(cos(x),(x,-2*pi,2*pi))+text('f(x)=cos(x)',(2,.75), fontsize='large', fontweight='roman')
plot(sin(x),(x,-2*pi,2*pi))+text('f(x)=sin(x)',(4,.75), fontsize='large', fontweight='roman')
plot(tan(x),(x,-2*pi,2*pi),ymin=-10,ymax=10,detect_poles=true,plot_points=10001)+text('f(x)=tan(x)',(3,5), fontsize='large', fontweight='roman')
plot(csc(x),(x,-2*pi,2*pi),ymin=-10,ymax=10,detect_poles=true)+text('f(x)=csc(x)',(5,5), fontsize='large', fontweight='roman')
plot(sec(x),(x,-2*pi,2*pi),ymin=-10,ymax=10,detect_poles=true,plot_points=10001)+text('f(x)=sec(x)',(3,5), fontsize='large', fontweight='roman')
plot(cot(x),(x,-2*pi,2*pi),ymin=-10,ymax=10,detect_poles=true)+text('f(x)=cot(x)',(2,5), fontsize='large', fontweight='roman')

The period of sine, cosine, secant, and cosecant is 2π2\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 2π2\pi, the interval [0,2π][0, 2π] is identical to [2π,4π][2π, 4π]. Similarly, sine's interval [3π/8,19π/8][3π/8, 19π/8] is identical to [35π/8,51π/8][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 me know. That aside, it's time to go forth and learn some calculus!

[To Main](Introduction.sagews) | [Next:Limits](Limits.sagews)