Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

A function is a rule that assigns a unique value f(x)f(x) to an input xx.

Unique Value

We call x the independent variable and y=f(x)y = f(x) the dependent variable. The domain of f is all possible values of x, while the range of f is all possible values of y.

A function can be represented by:

Not all curves are functions! f must uniquely map x. For example, the circle x2+y2=4x^2 + y^2 = 4, or equivalently, y=±4x2y = \pm\sqrt{4-x^2} is not a function because one value of x can map to multiple values of y. Graphically, this fails the “vertical line test”:

Common functions

Manipulating functions

Horizontal shift
  • f(x+a)f(x+a) shifts f left by a.

  • f(xa)f(x-a) shifts f right by a.

Shifting in X direction
Vertical shift
  • f(x)+bf(x)+b shifts f up by b.

  • f(x)bf(x)-b shifts f down by b.

Shifting in Y direction
Horizontal scaling
  • Scaling f(cx)f(cx) compresses f horizontally by c.

  • Scaling f(x/c)f(x/c) stretches f horizontally by c.

Horizontal Compression
Vertical scaling
  • Scaling f(x)/cf(x)/c compresses f vertically by c.

  • Scaling cf(x)cf(x) streches f vertically by c.

Vertical Stretch

Trigonometric functions

The given unit circle has a triangle drawn within which represents how trigonometric functions are related to lengths and heights of the sides of right triangles.

Unit Circle

The circle has a radius and is centered at (0,0). A point on the circle is defined by angle θ\theta measured counterclockwise from the positive x-axis. Angles can be measured in degrees or radians:

θ(rad.)=θ(deg.)(π180)\theta({\rm rad.}) = \theta({\rm deg.}) \left( \frac{\pi}{180^{\circ}} \right)

The trigonometric functions describe how the coordinates of a point on the unit circle relate to the angle θ\theta:

sin(θ)=yrcos(θ)=xrtan(θ)=yxcsc(θ)=rysec(θ)=rxcot(θ)=xy\begin{align} \sin(\theta)& = \frac{y}{r}& \cos(\theta)& = \frac{x}{r}& \tan(\theta)& = \frac{y}{x}\\ \csc(\theta)& = \frac{r}{y}& \sec(\theta)& = \frac{r}{x}& \cot(\theta)& = \frac{x}{y}\\ \end{align}

Each quadrant of the unit circle corresponds to a positive trigonometric function: All, Sine, Tangent, and Cosine.

Special angles

30-60-90 triangle

A right triangle with 3030^\circ (π/6\pi/6) and 6060^\circ (π/3\pi/3) angles has the following side lengths:

30 60 90 triangle
45-45-90 triangle

A right triangle with 4545^\circ (π/4\pi/4) angles has the following side lengths:

45 45 90 triangle

and so

θ\thetasinθ\sin \thetacosθ\cos \theta
3030^\circπ/6\pi/61/21/23/2\sqrt{3}/2
4545^\circπ/4\pi/41/21/\sqrt{2}1/21/\sqrt{2}
6060^\circπ/3\pi/33/2\sqrt{3}/21/21/2

What about angles greater than 9090^\circ? Take the angle of θ\theta relative to the x-axis, then apply the sign based on which quadrant the angle falls in.

For example, if θ=135=3π/4\theta = 135^\circ = 3\pi/4, then the angle relative to the x-axis is θ=45=π/4\theta' = 45^\circ = \pi/4. Hence,

sinθ=12cosθ=12sinθ=12cosθ=12\begin{align} \sin \theta' &= \frac{1}{\sqrt{2}} & \cos \theta' &= \frac{1}{\sqrt{2}} \\ \sin \theta &= \frac{1}{\sqrt{2}} & \cos \theta &= -\frac{1}{\sqrt{2}} \end{align}

Physical meaning

In addition to their geometric significance, trigonometric functions typically represent physical waves.

Trigonometric Function

The properties of the wave can be encoded by manipulating the function.

y=Asin[2πL(x+x0)]+y0y = A\sin\left[ \frac{2\pi}{L}(x + x_0) \right] + y_0

where A is the amplitude of the wave, L is the period of the wave, x0x_0 is a horizontal (phase) shift, and y0y_0 is a vertical shift.