{ "hash": "d5d534de81fd79a9e974fa5a26ebdfbf", "result": { "markdown": "# Trigonometric functions\n\n\n\nThis section uses the following add-on packages:\n\n``` {.julia .cell-code}\nusing CalculusWithJulia\nusing Plots\nusing SymPy\n```\n\n\n\n\n---\n\n\nWe have informally used some of the trigonometric functions in examples so far. In this section we quickly review their definitions and some basic properties.\n\n\nThe trigonometric functions are used to describe relationships between triangles and circles as well as oscillatory motions. With such a wide range of utility it is no wonder that they pop up in many places and their [origins](https://en.wikipedia.org/wiki/Trigonometric_functions#History) date to Hipparcus and Ptolemy over $2000$ years ago.\n\n\n## The 6 basic trigonometric functions\n\n\nWe measure angles in radians, where $360$ degrees is $2\\pi$ radians. By proportions, $180$ degrees is $\\pi$ radian, $90$ degrees is $\\pi/2$ radians, $60$ degrees is $\\pi/3$ radians, etc. In general, $x$ degrees is $2\\pi \\cdot x / 360$ radians (or, with cancellation, $x \\cdot \\frac{\\pi}{180}$).\n\n\nFor a right triangle with angles $\\theta$, $\\pi/2 - \\theta$, and $\\pi/2$ ($0 < \\theta < \\pi/2$) we call the side opposite $\\theta$ the \"opposite\" side, the shorter adjacent side the \"adjacent\" side and the longer adjacent side the hypotenuse.\n\n::: {.cell hide='true' execution_count=4}\n\n::: {.cell-output .cell-output-display execution_count=5}\n{}\n:::\n:::\n\n\nWith these, the basic definitions for the primary trigonometric functions are\n\n\n\n$$\n\\begin{align*}\n\\sin(\\theta) &= \\frac{\\text{opposite}}{\\text{hypotenuse}} &\\quad(\\text{the sine function})\\\\\n\\cos(\\theta) &= \\frac{\\text{adjacent}}{\\text{hypotenuse}} &\\quad(\\text{the cosine function})\\\\\n\\tan(\\theta) &= \\frac{\\text{opposite}}{\\text{adjacent}}. &\\quad(\\text{the tangent function})\n\\end{align*}\n$$\n\n\n:::{.callout-note}\n## Note\nMany students remember these through [SOH-CAH-TOA](http://mathworld.wolfram.com/SOHCAHTOA.html).\n\n:::\n\nSome algebra shows that $\\tan(\\theta) = \\sin(\\theta)/\\cos(\\theta)$. There are also $3$ reciprocal functions, the cosecant, secant and cotangent.\n\n\nThese definitions in terms of sides only apply for $0 \\leq \\theta \\leq \\pi/2$. More generally, if we relate any angle taken in the counter clockwise direction for the $x$-axis with a point $(x,y)$ on the *unit* circle, then we can extend these definitions - the point $(x,y)$ is also $(\\cos(\\theta), \\sin(\\theta))$.\n\n::: {.cell cache='true' hold='true' execution_count=5}\n\n::: {.cell-output .cell-output-display execution_count=6}\n```{=html}\n
An angle in radian measure corresponds to a point on the unit circle, whose coordinates define the sine and cosine of the angle. That is \\((x,y) = (\\cos(\\theta), \\sin(\\theta))\\).
\nSuperposition of sines and cosines represented by an epicycle
\n