Trigonometric functions

A bungee jumper hangs upside down from a stretched cord, silhouetted against a golden sunset sky.
Photo by David Rama on Pexels.

Many quantities increase and decrease in a repeating cycle, from the motion of a pendulum and the vibration of a spring to a shop’s seasonal sales and fluctuations in national employment. To describe this behavior, we need to know how much the quantity varies and how long each cycle takes. We can also study how its rate of change varies throughout the cycle: when the quantity is changing most quickly, when it begins to slow, and when it changes direction.

Sine and cosine give us a way to model this behavior. By studying the derivatives and antiderivatives of trigonometric functions, we can connect the values of a quantity to its changing rate throughout a cycle.

By the end of this lesson, you should be able to:

  • Model undamped oscillation and use the signs of velocity and acceleration to describe its motion.
  • Characterize sine and cosine by their differential equation and starting conditions, and interpret amplitude and period.
  • Differentiate and antidifferentiate trigonometric expressions and interpret oscillatory solutions.

After the first fall, a bungee jumper rebounds and bobs up and down. The stretched cord pulls upward while gravity pulls downward. At the equilibrium position, these forces balance.

We’ll model a bounce during which the cord stays stretched, treating it as an ideal spring and ignoring air resistance and energy loss. At the bottom and top of the bounce, the jumper turns around. At each of these instants, the jumper’s velocity is .

At the bottom, the cord is stretched farther than at equilibrium, so its upward pull is stronger than gravity. The net force points , making the jumper rise again. At the top, the cord is stretched less than at equilibrium, so gravity is stronger than the cord’s pull. The net force points , making the jumper fall again.

The jumper keeps passing through equilibrium between these turning points. To describe this motion, let \( y(t) \) be upward displacement from equilibrium in meters. We’ll start the clock as the jumper passes upward through equilibrium, so \( y(0)=0 \).

To keep things as simple as possible, we'll take the upward speed at \( t=0 \) to be \( 1 \) meter per second. We'll also assume that each meter of displacement produces \( 1 `\text{ m}/\text{s}^2 \) (meter per second, per second) of acceleration toward equilibrium. With \( t \) in seconds, the motion satisfies

\[\begin{aligned}y''&=-y,\\y(0)&=0,\\y'(0)&=1.\end{aligned}\]

The minus sign makes acceleration point toward equilibrium. The two starting conditions describe the upward crossing where we started the clock. The ideal model predicts the familiar sine function, \( y(t)=\sin t \), shown below.

Upward displacement from equilibrium is positive. A and E mark successive upward crossings of equilibrium. The horizontal axis shows time; we’ll find the times later.

What does the derivative of this sine curve look like? At each marked time, the height on the graph tells us position, and its slope tells us velocity. The net force points toward equilibrium; acceleration has the same direction as that net force.

Position, velocity, and net force at five instants.
Point \( y \) (m) Velocity Net force
A \( 0 \)
B \( 1 \)
C \( 0 \)
D \( -1 \)
E \( 0 \)

At A, C, and E, the forces balance, but the jumper keeps moving through equilibrium. At B and D, the jumper is momentarily at rest, but the unbalanced force makes the motion reverse.

Above equilibrium, \( y'' \) is negative, so velocity . Below equilibrium, \( y'' \) is positive, so velocity . At A, velocity has its . At C, it reaches its .

The model’s velocity graph has the features we predicted: positive at A, zero at B, negative at C, zero at D, and positive again at E. Compare its values with the slopes of the position curve at those times.

Velocity gives the slope of the position graph. The letters refer to the same five instants in both graphs.

The velocity graph is the familiar cosine function. By following the slopes of the sine curve \( y(t)=\sin t \), we’ve found its derivative: \( y'(t)=\cos t \). At the start, sine is zero while cosine is positive, agreeing with our choice to start the clock at the upward crossing.

Now follow the slopes of the cosine velocity curve. At A, C, and E, its tangent is horizontal, so acceleration is \( \text{m}/\text{s}^2 \). From A to C, velocity decreases, so its slopes are . From C to E, velocity increases, so its slopes are .

We can also use \( y''=-y \) to find the acceleration at the steepest points of the velocity curve. At B, the position is 1 meter, giving an acceleration of \( \text{m}/\text{s}^2 \). At D, the position is −1 meter, giving an acceleration of \( \text{m}/\text{s}^2 \).

The slopes are zero at A, C, and E, most negative at B, and most positive at D. Plotting them gives the acceleration graph below.

Acceleration gives the slope of the cosine velocity curve at each time. The letters mark the same five instants in all three graphs.

This is the sine curve reflected across the horizontal axis: \( y''(t)=-\sin t \). Since the position is \( y(t)=\sin t \), the acceleration is its negative, exactly as \( y''=-y \) requires.

Sine is zero at \( t=0 \), and cosine is \( 1 \) there, so our motion also has \( y(0)=0 \) and \( y'(0)=1 \). We’ve therefore solved the initial-value problem: \( y(t)=\sin t \) satisfies both the acceleration rule and the starting conditions, describing the jumper’s motion in our ideal model.

Sine and cosine

To describe an oscillation, we need to keep track of both position and velocity. The differential equation \( y''=-y \) tells us how velocity changes, but two objects at the same position can move in different directions. To tell which motion we mean, we need to give both its starting position and its starting velocity.

In Explore, we investigated this equation for a bungee jumper, starting at equilibrium with an upward velocity. That motion had \( y(0)=0 \) and \( y'(0)=1 \). We can use the same equation to define functions of a general input \( x \), just as we defined the exponential function using \( y'=y \).

Once we give a starting value and a starting derivative, this equation has exactly one solution, defined for every real input. As with the exponential function, we accept this existence and uniqueness result without proving it here. The difference is that we now need two starting conditions: one for the function and one for its derivative.

These definitions give the familiar sine and cosine functions from trigonometry. On the unit circle, cosine and sine are the horizontal and vertical coordinates. Their inputs are measured in radians. The calculus rules below use this convention.

The table recalls a few familiar values, and the unit circle below shows where they come from. We’ll use these values to find exact positions and times from a motion’s formula.

Useful first-quadrant values, including the endpoints.
\( x \) \( 0 \) \( \displaystyle \frac{\pi}{6} \) \( \displaystyle \frac{\pi}{4} \) \( \displaystyle \frac{\pi}{3} \) \( \displaystyle \frac{\pi}{2} \)
\( \cos x \) \( 1 \) \( \displaystyle \frac{\sqrt3}{2} \) \( \displaystyle \frac{\sqrt2}{2} \) \( \displaystyle \frac12 \) \( 0 \)
\( \sin x \) \( 0 \) \( \displaystyle \frac12 \) \( \displaystyle \frac{\sqrt2}{2} \) \( \displaystyle \frac{\sqrt3}{2} \) \( 1 \)
The labels give the angle measured counterclockwise from the positive horizontal axis. Each point has coordinates \( (\cos x,\sin x) \): the dashed guides show the horizontal and vertical values listed in the table.

Both functions repeat after an input increase of \( 2\pi \). To find how quickly their values change along a cycle, we need their derivatives. We already know their second derivatives from the equation that defines them. To find their first derivatives, we’ll use the fact that the equation and starting conditions determine just one function.

As with the exponential function, we can multiply each derivative by the input differential to describe the corresponding infinitesimal change:

\[\begin{aligned}\dd{(\sin x)}&=\cos x\dd{x},\\\dd{(\cos x)}&=-\sin x\dd{x}.\end{aligned}\]

Differentiating sine gives cosine; differentiating cosine brings us back to sine with a minus sign. Differentiating either function a second time gives the negative of the original function, as required by \( y''=-y \). For the sine motion in Explore, the cosine velocity starts positive and decreases to zero as the jumper reaches the highest point. A cosine position curve instead starts at its highest point with zero velocity, then begins to fall. The graph below puts the jumper’s position and velocity on the same time axis.

Blue shows sine displacement in meters; red shows cosine velocity in meters per second. The first maximum of position occurs when velocity first reaches zero.

For example, at \( \displaystyle t=\frac{\pi}{2} \) seconds, the sine position is \( 1 \) meter and its cosine velocity is zero. Its acceleration is \( -1 \) meter per second squared, so the jumper reverses toward equilibrium. Half a cycle later, at \( \displaystyle t=\frac{3\pi}{2} \) seconds, it’s at \( -1 \) meter with zero velocity and positive acceleration.

Trigonometric derivatives

We can combine the sine and cosine rules with the differentiation techniques from Chapter 1. Recall the familiar quotient and reciprocal descriptions of the other four trigonometric functions:

\[\begin{aligned}\tan x&=\frac{\sin x}{\cos x},\\\sec x&=\frac1{\cos x},\\\cot x&=\frac{\cos x}{\sin x},\\\csc x&=\frac1{\sin x},\end{aligned}\]

We can use each expression wherever its denominator is nonzero. Starting with the sine and cosine derivatives, we can apply the Quotient Rule to find the other four derivatives. We’ll use the familiar identity \( \sin^2x+\cos^2x=1 \) to simplify the results.

The other four rules have differential forms too. On the same domains,

\[\begin{aligned}\dd{(\tan x)}&=\sec^2x\dd{x},\\\dd{(\cot x)}&=-\csc^2x\dd{x},\\\dd{(\sec x)}&=\sec x\tan x\dd{x},\\\dd{(\csc x)}&=-\csc x\cot x\dd{x}.\end{aligned}\]

When a trigonometric function has another expression as its input, we use the Chain Rule: differentiate the trigonometric function, then multiply by the derivative of its input. Any constant multiplying the original function stays as a factor.

Amplitude and period

A mass hanging from a spring can move farther from equilibrium or complete each cycle more quickly. To see how a formula describes these changes, compare \( y(t)=\cos t \) with \( y(t)=2\cos(3t) \), measuring displacement from equilibrium in centimeters and time in seconds.

In \( y(t)=\cos t \), the mass reaches \( 1 \) centimeter on either side of equilibrium. This greatest distance from equilibrium is its amplitude. In \( y(t)=2\cos(3t) \), the outside factor of \( 2 \) doubles that distance, giving an amplitude of \( 2 \) centimeters.

The period is the time for one complete cycle. Cosine repeats when its input increases by \( 2\pi \), so \( y(t)=\cos t \) has period \( 2\pi \) seconds. In \( y(t)=2\cos(3t) \), the input advances three times as quickly. A cycle takes only \( \displaystyle \frac{2\pi}{3} \) seconds, since \( 3t=2\pi \) at that time. The outside factor changes how far the mass moves; the input factor changes how long each cycle takes.

Blue shows \( \cos t \) and red shows \( 2\cos(3t) \). The red curve reaches twice as far from equilibrium and completes three cycles in the time the blue curve completes one.

The shorter period also changes the acceleration the motion requires. We can see this by using the Chain Rule to find velocity and acceleration. Differentiating \( 2\cos(3t) \) twice gives

\[\begin{aligned}y'(t)&=-6\sin(3t),\\y''(t)&=-18\cos(3t),\\y''(t)&=-9y(t).\end{aligned}\]

We multiply by 3 at each differentiation. At the same displacement from equilibrium, the acceleration toward equilibrium is therefore nine times as large as in \( y''=-y \). A stiffer spring or a smaller hanging mass can produce this faster oscillation. Motion governed by acceleration proportional to displacement and opposite in direction is called simple harmonic motion.

Amplitude and period also describe quantities that change direction without an object moving back and forth.

Starting position and velocity

Changing the input lets us match the acceleration rule. We still need to match where the mass starts and how fast it’s moving then. Sine and cosine help us do those two jobs.

At input zero, cosine has value \( 1 \) and derivative zero; sine has value zero and derivative \( 1 \). We can therefore use a cosine term to match the starting displacement and a sine term to match the starting velocity. The Chain Rule accounts for how the input factor changes the velocity. We’ll add the two terms and use the starting conditions to find their coefficients.

Damped motion

A real bungee jumper loses energy with each bounce, so the jumper travels a shorter distance above and below equilibrium. We can model this damped motion by adding a term that opposes velocity. In the equation

\[y''=-my'-ky,\]

the positive coefficients \( m \) and \( k \) describe the damping and restoring acceleration. The term \( -my' \) points downward when the jumper rises and upward when the jumper falls. As before, \( -ky \) points toward equilibrium.

Trigonometric integrals

We can also work backward from the derivative rules to find antiderivatives. For example, since the derivative of secant is \( \sec x\tan x \), secant is an antiderivative of that whole product. For sine, we need to keep track of the minus sign: \( \displaystyle \int\sin x\dd{x}=-\cos x+C \) because differentiating \( -\cos x \) cancels the minus sign. Likewise, \( \displaystyle \int\sec^2x\dd{x}=\tan x+C \).

Reversing each of the six derivative rules gives

\[\begin{aligned}\int\cos x\dd{x}&=\sin x+C,\\\int\sin x\dd{x}&=-\cos x+C,\\ \int\sec^2x\dd{x}&=\tan x+C,\\\int\csc^2x\dd{x}&=-\cot x+C,\\ \int\sec x\tan x\dd{x}&=\sec x+C,\\\int\csc x\cot x\dd{x}&=-\csc x+C.\end{aligned}\]

Each formula applies on an interval where its functions are defined. When the input is multiplied by a constant, we’ll need to undo the extra factor that the Chain Rule would introduce. For example, differentiating \( \sin(2x) \) gives \( 2\cos(2x) \), so an antiderivative of \( \cos(2x) \) is \( \displaystyle \frac12\sin(2x) \).

We can use these antiderivatives to find total sales when the sales rate changes with the season.

As with exponential functions, integrating reverses the constant multiplier introduced by the Chain Rule. Dividing by that input factor lets us turn a seasonal rate into a total and an average rate.

  1. Find each derivative on intervals where the function is defined.

    1. \( \displaystyle \dv{x}\bigl(\sin(${k}x)\bigr)= \)

      Solution

      The Chain Rule multiplies cosine by the input derivative. The result is \( \displaystyle ${k}\cos(${k}x) \).

    2. \( \displaystyle \dv{x}\bigl(-${a}\cos(${k}x)\bigr)= \)

      Solution

      The negative coefficient and the minus sign from differentiating cosine cancel. The result is \( \displaystyle ${a*k}\sin(${k}x) \).

    3. \( \displaystyle \dv{x}\bigl(\tan(${k}x^2)\bigr)= \)

      Solution

      The input has derivative \( \displaystyle ${2*k}x \). The result is \( \displaystyle ${2*k}x\sec^2(${k}x^2) \).

    4. \( \displaystyle \dv{x}\bigl(\cot(${k}x)\bigr)= \)

      Solution

      Differentiating cotangent gives a minus sign, and the Chain Rule multiplies by the input derivative, \( \displaystyle ${k} \). The result is \( \displaystyle -${k}\csc^2(${k}x) \).

    5. \( \displaystyle \dv{x}\bigl(\sec(${k}x)\bigr)= \)

      Solution

      Use the secant rule, then multiply by the input derivative. The result is \( \displaystyle ${k}\sec(${k}x)\tan(${k}x) \).

    6. \( \displaystyle \dv{x}\bigl(\csc(${k}x)\bigr)= \)

      Solution

      Differentiating cosecant gives a minus sign, and the Chain Rule multiplies by the input derivative, \( \displaystyle ${k} \). The result is \( \displaystyle -${k}\csc(${k}x)\cot(${k}x) \).

    7. \( \displaystyle \dv{x}\bigl(x^2\cos(${k}x)\bigr)= \)

      Solution

      Differentiate both factors with the Product Rule; the cosine term also needs the Chain Rule. The result is \( \displaystyle 2x\cos(${k}x)-${k}x^2\sin(${k}x) \).

  2. Consider \( y=${curve} \) for \( -\pi<x<\pi \). Use its derivatives to describe the graph before sketching it.

    1. The first and second derivatives are \( \dv{y}{x}= \) and \( \dv[2]{y}{x}= \) .

      Solution

      Differentiating gives \( \displaystyle \dv{y}{x}=${first} \) and \( \displaystyle \dv[2]{y}{x}=${second} \).

    2. On which intervals is the graph increasing or decreasing? Find any maximum and minimum points in the given interval.

      Solution

      The sign of \( \displaystyle \dv{y}{x} \) tells us whether the graph rises or falls:

      Interval \( \displaystyle (-\pi,-\frac{\pi}{2}) \) \( \displaystyle (-\frac{\pi}{2},0) \) \( \displaystyle (0,\frac{\pi}{2}) \) \( \displaystyle (\frac{\pi}{2},\pi) \)
      \( \dv{y}{x} \) ${d0} ${d1} ${d2} ${d3}

      The graph is increasing on \( \displaystyle ${inc} \) and decreasing on \( \displaystyle ${dec} \).

      ${max_text} \( \displaystyle ${max_math} \). ${min_text} \( \displaystyle ${min_math} \).

      At a maximum, the first derivative changes from positive to negative; at a minimum, it changes from negative to positive. The endpoints of the given interval are excluded; any extremal value approached only there is not attained.

    3. On which intervals is the graph concave up or concave down? Find its inflection points and explain how the second derivative identifies them.

      Solution

      Now follow the sign of \( \displaystyle \dv[2]{y}{x} \):

      Interval \( \displaystyle (-\pi,-\frac{\pi}{2}) \) \( \displaystyle (-\frac{\pi}{2},0) \) \( \displaystyle (0,\frac{\pi}{2}) \) \( \displaystyle (\frac{\pi}{2},\pi) \)
      \( \dv[2]{y}{x} \) ${dd0} ${dd1} ${dd2} ${dd3}

      The graph is concave up on \( \displaystyle ${up} \) and concave down on \( \displaystyle ${down} \). Its inflection points are \( \displaystyle ${infl} \). At each of these points, the second derivative changes sign, so the graph changes concavity.

    4. Sketch the curve, marking its turning points and inflection points. Make the sketch agree with both derivative sign charts.

      Solution

      The blue curve below follows the increasing, decreasing, and concavity intervals we found. Red marks its turning points, and purple marks its inflection points.

      The graph is restricted to the given open interval. Turning points and inflection points are marked inside it.
  3. A mass hangs from a spring. Its upward displacement from equilibrium is measured in centimeters, and time is measured in seconds. It satisfies \( y''=-y \) and starts at equilibrium with positive velocity: \( y(0)=0 \), \( y'(0)=1 \).

    1. Describe its motion from the starting instant to its first turning point, using the signs of velocity and acceleration.

      Solution

      The mass starts moving upward. Once displacement is positive, acceleration is negative, so the mass slows while still moving up. At the turning point its velocity is zero but its acceleration points downward, causing it to reverse direction.

    2. Which function describes this motion? Use it to find the first turning time and greatest displacement.

      Solution

      The motion is \( \displaystyle y(t)=\sin t \), with velocity \( \displaystyle \cos t \), as in the definition of sine. After the clock starts, its velocity first reaches zero at \( \displaystyle t=\frac{\pi}{2} \), where \( \displaystyle y=1 \). The first turning time is \( \displaystyle \frac{\pi}{2}\,\text{s} \) and the greatest displacement is \( \displaystyle 1\,\text{cm} \). Using the exact solution, we can find when the mass turns and how far it moves; from signs alone, we could only describe its direction and changes in speed.

  4. An alternating current is modeled by \( I(t)=${peak}\sin(${2*f}\pi t) \) amps, where time \( t \) is in seconds. Positive and negative current mean flow in opposite directions through the wire.

    1. The amplitude is amps, and the period is seconds. State the frequency in cycles per second as well.

      Solution

      The peak current in either direction is \( \displaystyle ${peak} \) amps. The sine argument advances by \( \displaystyle 2\pi \) in one cycle, so

      \[\begin{aligned}${2*f}\pi T&=2\pi,\\T&=\frac{1}{${f}}.\end{aligned}\]

      The period is \( \displaystyle \frac{1}{${f}} \) second and the frequency is \( \displaystyle ${f} \) cycles per second, or \( \displaystyle ${f} \) Hz.

    2. The current’s rate of change is \( I'(t)= \) amps per second. What is this rate when the current first reaches its positive peak?

      Solution

      The Chain Rule gives \( \displaystyle I'(t)=${2*f*peak}\pi\cos(${2*f}\pi t) \) amps per second. At the first positive peak, the sine input is \( \displaystyle \frac{\pi}{2} \), where cosine is zero. The current is momentarily not changing, even though it is flowing at its greatest positive value.

    3. If the input coefficient doubles while the outside coefficient stays the same, what happens to the amplitude, period, and frequency?

      Solution

      The peak current is still \( \displaystyle ${peak} \) amps, so the amplitude is unchanged. The input advances twice as quickly: the period halves to \( \displaystyle \frac{1}{${2*f}} \) second and the frequency doubles to \( \displaystyle ${2*f} \) Hz.

  5. Solve \( y''=-${k*k}y \) with \( y(0)=${a} \) and \( y'(0)=0 \). State its amplitude and period, and verify both the equation and the starting conditions.

    Solution

    Cosine starts with derivative zero. To match the starting value, we try \( \displaystyle y(t)=${a}\cos(${k}t) \). Each differentiation multiplies by the input factor \( \displaystyle ${k} \):

    \[\begin{aligned}y'(t)&=-${a*k}\sin(${k}t),\\y''(t)&=-${a*k*k}\cos(${k}t),\\&=-${k*k}y(t).\end{aligned}\]

    At zero, cosine is 1 and sine is zero, so the starting values are correct. The amplitude is \( \displaystyle ${a} \) in the units of \( \displaystyle y \). The cosine argument advances by \( \displaystyle 2\pi \) in one cycle, so the period is \( \displaystyle ${period} \) in the time units.

  6. A mass hanging from a spring satisfies \( y''=-4y \). Upward displacement from equilibrium is in centimeters and time is in seconds. It starts at \( 1 \) centimeter with velocity \( -2\,\text{cm/s} \).

    1. Fit the constants in \( y(t)=a\cos(2t)+b\sin(2t) \) to these starting conditions.

      Solution

      At zero, \( \displaystyle y(0)=a \), so \( \displaystyle a=1 \). Differentiation gives \( \displaystyle y'(t)=-2a\sin(2t)+2b\cos(2t) \). Thus \( \displaystyle y'(0)=2b \); to match the starting velocity, we need \( \displaystyle b=-1 \). The motion is \( \displaystyle y(t)=\cos(2t)-\sin(2t) \).

    2. Find its velocity and acceleration at zero. Is the mass initially speeding up or slowing down?

      Solution

      Its velocity is \( \displaystyle -2\,\text{cm/s} \) and its acceleration is \( \displaystyle -4\,\text{cm}/\text{s}^2 \). Both point downward, so it is speeding up toward equilibrium.

  7. A bungee jumper’s proposed damped motion is \( y(t)=${A}\ee^{${damped_exponent}}\sin(${b}t) \), for \( t\ge0 \). Displacement is measured upward from equilibrium in meters, and time in seconds.

    1. The jumper’s velocity is

      \(\displaystyle y'(t)=\)\(\displaystyle .\)

      Solution

      The Product and Chain Rules give

      \[y'(t)=${A}\ee^{${damped_exponent}}\bigl(${velocity_factor}\bigr).\]

    2. The jumper’s acceleration is

      \(\displaystyle y''(t)=\)\(\displaystyle .\)

      Solution

      Differentiate once more, applying the Product Rule to the exponential factor and the trigonometric expression:

      \[y''(t)=${A}\ee^{${damped_exponent}}\bigl(${acceleration_factor}\bigr).\]

    3. The proposed motion satisfies the differential equation \(\displaystyle y''(t)+${2*a}y'(t)+${a*a+b*b}y(t)= \)\(\displaystyle .\)

      Solution

      Collect the sine and cosine terms after substitution:

      \[\begin{aligned}y''+${2*a}y'+${a*a+b*b}y&=${A}\ee^{${damped_exponent}}\bigl((${a*a-b*b}-${2*a*a}+${a*a+b*b})\sin(${b}t)\\&\qquad\qquad+(-${2*a*b}+${2*a*b})\cos(${b}t)\bigr)\\&=0.\end{aligned}\]

      This cancellation works more generally. For constants \( C \), \( a>0 \), and \( b>0 \), both

      \[y(t)=C\ee^{-at}\cos(bt)\qquad\text{and}\qquad y(t)=C\ee^{-at}\sin(bt)\]

      satisfy \( y''+2ay'+(a^2+b^2)y=0 \). For example, the cosine form has derivatives

      \[\begin{aligned}y'(t)&=C\ee^{-at}\bigl(-a\cos(bt)-b\sin(bt)\bigr),\\y''(t)&=C\ee^{-at}\bigl((a^2-b^2)\cos(bt)+2ab\sin(bt)\bigr).\end{aligned}\]

      Substituting these expressions makes both the cosine and sine coefficients zero, just as in the numerical case above.

  8. Use the derivative rules and defining initial conditions to justify two familiar trigonometric identities.

    1. Differentiate \( \sin^2x+\cos^2x \) and use its value at zero to prove the Pythagorean identity.

      Solution

      The derivative is zero:

      \[\begin{aligned}\dv{x}(\sin^2x+\cos^2x)&=2\sin x\cos x-2\cos x\sin x,\\&=0.\end{aligned}\]

      The expression is therefore constant. At zero its value is 1, giving \( \displaystyle \sin^2x+\cos^2x=1 \).

    2. For a fixed number \( a \), show that \( \sin(x+a) \) and \( \sin x\cos a+\cos x\sin a \) satisfy the same differential equation and initial conditions. Deduce the sine addition formula and then the cosine addition formula.

      Solution

      Write \( \displaystyle u(x)=\sin(x+a) \) and \( \displaystyle v(x)=\sin x\cos a+\cos x\sin a \). Since \( \displaystyle a \) is fixed, differentiating gives

      \[\begin{aligned}u'(x)&=\cos(x+a),\\u''(x)&=-\sin(x+a)=-u(x),\\v'(x)&=\cos x\cos a-\sin x\sin a,\\v''(x)&=-\sin x\cos a-\cos x\sin a=-v(x).\end{aligned}\]

      Thus both satisfy \( \displaystyle y''=-y \). At zero, \( \displaystyle u(0)=v(0)=\sin a \) and \( \displaystyle u'(0)=v'(0)=\cos a \). These matching starting values determine the same solution, so

      \[\sin(x+a)=\sin x\cos a+\cos x\sin a.\]

      Differentiating with respect to \( \displaystyle x \) gives

      \[\cos(x+a)=\cos x\cos a-\sin x\sin a.\]

      By multiplying sine and cosine by these fixed coefficients and adding, we match the value and derivative of sine at the shifted input.

  9. Find these antiderivatives on intervals where the functions are defined. Adding \( C \) gives the full family on each interval. Check the sign and multiplier by differentiating your answer.

    1. \( \displaystyle \int ${a*k}\cos(${k}x)\dd{x}= \) \( +C \)

      Solution

      One antiderivative is \( \displaystyle ${a}\sin(${k}x) \). Differentiating introduces a factor of \( \displaystyle ${k} \), giving the required coefficient \( \displaystyle ${a*k} \).

    2. \( \displaystyle \int ${a*k}\sin(${k}x)\dd{x}= \) \( +C \)

      Solution

      One antiderivative is \( \displaystyle -${a}\cos(${k}x) \). Its minus sign cancels the minus sign in the derivative rule. Differentiating also introduces a factor of \( \displaystyle ${k} \), giving the required coefficient \( \displaystyle ${a*k} \).

    3. \( \displaystyle \int ${a*k}\sec^2(${k}x)\dd{x}= \) \( +C \)

      Solution

      One antiderivative is \( \displaystyle ${a}\tan(${k}x) \). Differentiating introduces a factor of \( \displaystyle ${k} \), giving the required coefficient \( \displaystyle ${a*k} \).

    4. \( \displaystyle \int ${a*k}\csc^2(${k}x)\dd{x}= \) \( +C \)

      Solution

      One antiderivative is \( \displaystyle -${a}\cot(${k}x) \). Its minus sign cancels the minus sign in the derivative rule. Differentiating also introduces a factor of \( \displaystyle ${k} \), giving the required coefficient \( \displaystyle ${a*k} \).

    5. \( \displaystyle \int ${a*k}\sec(${k}x)\tan(${k}x)\dd{x}= \) \( +C \)

      Solution

      One antiderivative is \( \displaystyle ${a}\sec(${k}x) \). Differentiating introduces a factor of \( \displaystyle ${k} \), giving the required coefficient \( \displaystyle ${a*k} \).

    6. \( \displaystyle \int ${a*k}\csc(${k}x)\cot(${k}x)\dd{x}= \) \( +C \)

      Solution

      One antiderivative is \( \displaystyle -${a}\csc(${k}x) \). Its minus sign cancels the minus sign in the derivative rule. Differentiating also introduces a factor of \( \displaystyle ${k} \), giving the required coefficient \( \displaystyle ${a*k} \).

  10. Evaluate the integrals. Check that the functions are defined throughout each interval.

    1. \( \displaystyle \int_0^{\frac{\pi}{2}}\sin x\dd{x}= \)

      Solution

      \[\begin{aligned}\int_0^{\frac{\pi}{2}}\sin x\dd{x}&=\eval{-\cos x}_0^{\frac{\pi}{2}},\\&=1.\end{aligned}\]

    2. \( \displaystyle \int_0^{\frac{\pi}{4}}\sec^2x\dd{x}= \)

      Solution

      \[\begin{aligned}\int_0^{\frac{\pi}{4}}\sec^2x\dd{x}&=\eval{\tan x}_0^{\frac{\pi}{4}},\\&=1.\end{aligned}\]

      Cosine is nonzero throughout the interval, so secant squared and the antiderivative are defined there.

  11. A mass hanging from a spring has motion \( y(t)=\cos(2t)-\sin(2t) \), where upward displacement from equilibrium is in centimeters and time is in seconds. Find its accumulated displacement over \( \displaystyle 0\le t\le\frac{\pi}{2} \). Explain why this is not the distance traveled.

    Solution

    Integrating velocity gives the change in position:

    \[\begin{aligned}\int_0^{\frac{\pi}{2}}y'(t)\dd{t}&=y\left(\frac{\pi}{2}\right)-y(0),\\&=-1-1,\\&=-2.\end{aligned}\]

    The displacement is \( \displaystyle -2\,\text{cm} \). Its velocity is \( \displaystyle y'(t)=-2(\sin(2t)+\cos(2t)) \). The first zero occurs when \( \displaystyle 2t=\frac{3\pi}{4} \). The mass moves down past \( \displaystyle -1\,\text{cm} \), turns at \( \displaystyle t=\frac{3\pi}{8}\,\text{s} \), and moves up before the interval ends. The integral counts that return motion positively, so its net displacement does not measure total distance.

    Green points mark the initial and final positions; the red point marks the reversal at \( \displaystyle \frac{3\pi}{8}\,\text{s} \). The return from the lowest point adds traveled distance while reducing the magnitude of net displacement.
  12. A shop’s seasonal sales rate is \( r(t)=${base}+${season}\sin\left(\frac{\pi}{6}t\right) \) cones per month, where \( t \) is months after the beginning of April and \( 0\le t\le12 \).

    1. The total sales over the full year are \( \displaystyle \int_0^{12}r(t)\dd{t}= \) cones.

      Solution

      An antiderivative is \( \displaystyle ${base}t-\frac{${6*season}}{\pi}\cos\left(\frac{\pi}{6}t\right) \). Over twelve months, the cosine returns to its starting value:

      \[\begin{aligned}\int_0^{12}r(t)\dd{t}&=\eval{${base}t-\frac{${6*season}}{\pi}\cos\left(\frac{\pi}{6}t\right)}_0^{12}\\&=${12*base}.\end{aligned}\]

      The model predicts \( \displaystyle ${12*base} \) cones over the year.

    2. Why does the seasonal term contribute zero to this full-year total? Does that mean no cones are sold during the slower season?

      Solution

      The first six months have a positive seasonal contribution above the baseline, and the next six have an equal negative contribution below it. Those deviations cancel over the full cycle. The sales rate itself stays positive: even at its minimum, it is \( \displaystyle ${base-season} \) cones per month. Sales continue, and the accumulated total keeps increasing.