Calculus for the Life Sciences

Similar documents
Pre-Calculus Notes: Chapter 6 Graphs of Trigonometric Functions

Section 8.1 Radians and Arc Length

Solutions to Exercises, Section 5.6

6.4 & 6.5 Graphing Trigonometric Functions. The smallest number p with the above property is called the period of the function.

PREREQUISITE/PRE-CALCULUS REVIEW

Unit 8 Trigonometry. Math III Mrs. Valentine

Mathematics UNIT FIVE Trigonometry II. Unit. Student Workbook. Lesson 1: Trigonometric Equations Approximate Completion Time: 4 Days

Double-Angle, Half-Angle, and Reduction Formulas

Math 1205 Trigonometry Review

Section 7.6 Graphs of the Sine and Cosine Functions

Algebra and Trig. I. The graph of

Graph of the Sine Function

Pythagorean Theorem: Trigonometry Packet #1 S O H C A H T O A. Examples Evaluate the six trig functions of the angle θ. 1.) 2.)

5.1 Graphing Sine and Cosine Functions.notebook. Chapter 5: Trigonometric Functions and Graphs

7.1 INTRODUCTION TO PERIODIC FUNCTIONS

Mathematics Lecture. 3 Chapter. 1 Trigonometric Functions. By Dr. Mohammed Ramidh

Trigonometry. An Overview of Important Topics

Trigonometric Integrals Section 5.7

Math 102 Key Ideas. 1 Chapter 1: Triangle Trigonometry. 1. Consider the following right triangle: c b

2. Be able to evaluate a trig function at a particular degree measure. Example: cos. again, just use the unit circle!

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

Unit 5. Algebra 2. Name:

Chapter 7 Repetitive Change: Cyclic Functions

Chapter 6: Periodic Functions

1 Graphs of Sine and Cosine

Chapter 3, Part 1: Intro to the Trigonometric Functions

2.4 Translating Sine and Cosine Functions

7.1 INTRODUCTION TO PERIODIC FUNCTIONS

Trigonometry. David R. Wilkins

Name: A Trigonometric Review June 2012

6.1 - Introduction to Periodic Functions


Figure 1. The unit circle.

Algebra 2/Trigonometry Review Sessions 1 & 2: Trigonometry Mega-Session. The Unit Circle

of the whole circumference.

Trig/AP Calc A. Created by James Feng. Semester 1 Version fengerprints.weebly.com

WARM UP. 1. Expand the expression (x 2 + 3) Factor the expression x 2 2x Find the roots of 4x 2 x + 1 by graphing.

Mod E - Trigonometry. Wednesday, July 27, M132-Blank NotesMOM Page 1

Chapter 6: Periodic Functions

The Sine Function. Precalculus: Graphs of Sine and Cosine

Chapter 4/5 Part 2- Trig Identities and Equations

Sinusoids and Phasors (Chapter 9 - Lecture #1) Dr. Shahrel A. Suandi Room 2.20, PPKEE

THE SINUSOIDAL WAVEFORM

4-3 Trigonometric Functions on the Unit Circle

Basic Trigonometry You Should Know (Not only for this class but also for calculus)

Trigonometric Identities. Copyright 2017, 2013, 2009 Pearson Education, Inc.

Trigonometry Review Page 1 of 14

Practice Test 3 (longer than the actual test will be) 1. Solve the following inequalities. Give solutions in interval notation. (Expect 1 or 2.

SECTION 1.5: TRIGONOMETRIC FUNCTIONS

Section 5.2 Graphs of the Sine and Cosine Functions

Section 5.1 Angles and Radian Measure. Ever Feel Like You re Just Going in Circles?

P1 Chapter 10 :: Trigonometric Identities & Equations

Vocabulary. A Graph of the Cosine Function. Lesson 10-6 The Cosine and Sine Functions. Mental Math

Math 104 Final Exam Review

JUST THE MATHS SLIDES NUMBER 3.5. TRIGONOMETRY 5 (Trigonometric identities & wave-forms) A.J.Hobson

Sinusoids. Lecture #2 Chapter 2. BME 310 Biomedical Computing - J.Schesser

Pythagorean Identity. Sum and Difference Identities. Double Angle Identities. Law of Sines. Law of Cosines

θ = = 45 What is the measure of this reference angle?

2.5 Amplitude, Period and Frequency

Section 8.4: The Equations of Sinusoidal Functions

cos 2 x + sin 2 x = 1 cos(u v) = cos u cos v + sin u sin v sin(u + v) = sin u cos v + cos u sin v

Please grab the warm up off of the chair in the front of the room and begin working!

Trigonometric Identities. Copyright 2017, 2013, 2009 Pearson Education, Inc.

5.4 Multiple-Angle Identities

5.3 Trigonometric Graphs. Copyright Cengage Learning. All rights reserved.

Introduction to Trigonometry. Algebra 2

Trigonometric Equations

Name Date Class. Identify whether each function is periodic. If the function is periodic, give the period

MATH 1112 FINAL EXAM REVIEW e. None of these. d. 1 e. None of these. d. 1 e. None of these. e. None of these. e. None of these.

13.4 Chapter 13: Trigonometric Ratios and Functions. Section 13.4

Unit 5 Investigating Trigonometry Graphs

13.2 Define General Angles and Use Radian Measure. standard position:

Section 5.2 Graphs of the Sine and Cosine Functions

Chapter 6: Periodic Functions

MAC 1114 REVIEW FOR EXAM #2 Chapters 3 & 4

MHF4U. Advanced Functions Grade 12 University Mitchell District High School. Unit 4 Radian Measure 5 Video Lessons

2. (8pts) If θ is an acute angle, find the values of all the trigonometric functions of θ given

Circuit Analysis-II. Circuit Analysis-II Lecture # 2 Wednesday 28 th Mar, 18

Georgia Standards of Excellence Frameworks. Mathematics. Accelerated GSE Pre-Calculus Unit 4: Trigonometric Identities

UNIT FOUR TRIGONOMETRIC FUNCTIONS MATH 621B 25 HOURS

Graphing Sine and Cosine

Trigonometric identities

How to Graph Trigonometric Functions

3. Use your unit circle and fill in the exact values of the cosine function for each of the following angles (measured in radians).

MATH 1113 Exam 3 Review. Fall 2017

Graphs of sin x and cos x

Trig functions are examples of periodic functions because they repeat. All periodic functions have certain common characteristics.

WESI 205 Workbook. 1 Review. 2 Graphing in 3D

Triangle Definition of sin θ and cos θ

1. Measure angle in degrees and radians 2. Find coterminal angles 3. Determine the arc length of a circle

Math 122: Final Exam Review Sheet

MATH 255 Applied Honors Calculus III Winter Homework 1. Table 1: 11.1:8 t x y

What is a Sine Function Graph? U4 L2 Relate Circle to Sine Activity.pdf

Math 148 Exam III Practice Problems

Trigonometric Functions 2.1 Angles and Their Measure

Precalculus Second Semester Final Review

- go over homework #2 on applications - Finish Applications Day #3 - more applications... tide problems, start project

MAT01A1. Appendix D: Trigonometry

the input values of a function. These are the angle values for trig functions

Section 2.4 General Sinusoidal Graphs

Transcription:

Calculus for the Life Sciences Lecture Notes Joseph M. Mahaffy, jmahaffy@mail.sdsu.edu Department of Mathematics and Statistics Dynamical Systems Group Computational Sciences Research Center San Diego State University San Diego, CA 92182-7720 http://www-rohan.sdsu.edu/ jmahaffy Spring 2017 Lecture Notes (1/68)

Outline Introduction 1 Introduction Annual Temperature Cycles San Diego and Chicago 2 Basic Trig Functions Radian Measure Properties of Sine and Cosine Identities 3 Vertical Shift and Amplitude Frequency and Period Phase Shift Examples 4 Phase Shift of Half a Period Equivalent Sine and Cosine Models Return to Annual Temperature Variation Other Examples Lecture Notes (2/68)

Annual Temperature Cycles San Diego and Chicago Introduction Introduction Natural physical cycles Daily cycle of light Annual cycle of the seasons Many phenomena in biology appear in cycles Circadian rhythms Hormonal fluctuations Predator-prey cycles Oscillations are often modeled using trigonometric functions Lecture Notes (3/68)

Annual Temperature Cycles Annual Temperature Cycles San Diego and Chicago Annual Temperature Cycles Weather reports give the average temperature for a day There are seasonal differences in the average daily temperature Higher averages occur in the summer Lower averages occur in the winter Long term averages Compare background noise from annual variation Global warming if there is a clear increase in annual average over the long term This is not a simple trig function model Lecture Notes (4/68)

Annual Temperature Cycles San Diego and Chicago Modeling Annual Temperature Cycles Modeling Annual Temperature Cycles What mathematical tools can help predict the annual temperature cycles? Polynomials and exponentials do not exhibit the periodic behavior Trigonometric functions exhibit periodicity Fit any specific period Manage amplitude of variation Shift the maximum or minimum for a data set Lecture Notes (5/68)

Annual Temperature Cycles San Diego and Chicago Average Temperatures for San Diego and Chicago 1 Average Temperatures for San Diego and Chicago: Table of the monthly average high and low temperatures for San Diego and Chicago Month Jan Feb Mar Apr May Jun San Diego 66/49 67/51 66/53 68/56 69/59 72/62 Chicago 29/13 34/17 46/29 59/39 70/48 80/58 Month Jul Aug Sep Oct Nov Dec San Diego 76/66 78/68 77/66 75/61 70/54 66/49 Chicago 84/63 82/62 75/54 63/42 48/32 34/19 Lecture Notes (6/68)

Annual Temperature Cycles San Diego and Chicago Average Temperatures for San Diego and Chicago 2 Graph of Temperature for San Diego and Chicago with best fitting trigonometric functions (cosine) 90 80 Temperatures for San Diego and Chicago San Diego Chicago Average Temperature, o F 70 60 50 40 30 20 Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec Jan Month Lecture Notes (7/68)

Annual Temperature Cycles San Diego and Chicago Average Temperatures for San Diego and Chicago 3 Models of Annual Temperature Cycles for San Diego and Chicago The two graphs have similarities and differences Same seasonal period as expected Seasonal variation or amplitude of oscillation for Chicago is much greater than San Diego Overall average temperature for San Diego is greater than the average for Chicago Overlying models use cosine functions (could equally fit with sine functions) Lecture Notes (8/68)

Basic Trig Functions Radian Measure Properties of Sine and Cosine Identities 1 are often called circular functions Let (x,y) be a point on a circle of radius r centered at the origin Define the angle θ between the ray connecting the point to the origin and the x-axis Y r (x,y) θ X Lecture Notes (9/68)

Basic Trig Functions Radian Measure Properties of Sine and Cosine Identities Trig Functions 6 basic Trigonometric functions Y (x,y) r θ X sin(θ) = y r cos(θ) = x r tan(θ) = y x csc(θ) = r y sec(θ) = r x cot(θ) = x y We will concentrate almost exclusively on the sine and cosine Lecture Notes (10/68)

Radian Measure Introduction Basic Trig Functions Radian Measure Properties of Sine and Cosine Identities Radian Measure Trigonometry courses start with degrees measuring an angle This is not the appropriate unit to use in Calculus The radian measure of the angle uses the unit circle The distance around the perimeter of the unit circle is 2π The radian measure of the angle θ is simply the distance along the circumference of the unit circle A 45 angle ( 1 8 the distance around the unit circle) becomes π 4 radians 90 and 180 angles convert to π 2 and π radians, respectively Conversions 1 = π 180 180 = 0.01745 radians or 1 radian = π = 57.296 Lecture Notes (11/68)

Basic Trig Functions Radian Measure Properties of Sine and Cosine Identities Sine and Cosine 1 Sine and Cosine: The unit circle has r = 1, so the trig functions sine and cosine satisfy cos(θ) = x and sin(θ) = y The formula for cosine (cos) gives the x value of the angle, θ, (measured in radians) The formula for sine (sin) gives the y value of the angle, θ The tangent function (tan) gives the slope of the line (y/x) Lecture Notes (12/68)

Basic Trig Functions Radian Measure Properties of Sine and Cosine Identities Sine and Cosine 2 Graph of sin(θ) and cos(θ) for angles θ [ 2π,2π] Sine and Cosine in Radians 0.5 0 0.5 sin(θ) cos(θ) 2π π 0 π 2π θ (radians) Lecture Notes (13/68)

Basic Trig Functions Radian Measure Properties of Sine and Cosine Identities Sine and Cosine 3 Sine and Cosine - Periodicity and Bounded Notice the 2π periodicity: The functions repeat the same pattern every 2π radians Consider a point moving around a circle After 2π radians, the point returns to the same position (circular function) Note: Both the sine and cosine functions are bounded between 1 and 1 Lecture Notes (14/68)

Basic Trig Functions Radian Measure Properties of Sine and Cosine Identities Sine and Cosine 6 Table of Some Important Values of Trig Functions x sin(x) cos(x) 0 0 1 π 6 π 4 π 3 π 1 2 2 2 3 2 3 2 2 2 1 2 2 1 0 π 0 1 3π 2 1 0 2π 0 1 Lecture Notes (15/68)

Basic Trig Functions Radian Measure Properties of Sine and Cosine Identities Properties of Sine and Cosine 1 Properties of Cosine Periodic with period 2π and bounded by 1 and 1 Cosine is an even function Maximum at x = 0, cos(0) = 1 By periodicity, other maxima at x n = 2nπ with cos(2nπ) = 1 (n any integer) Minimum at x = π, cos(π) = 1 By periodicity, other minima at x n = (2n+1)π with cos(x n ) = 1 (n any integer) Zeroes of cosine separated by π with cos(x n ) = 0 when x n = π 2 +nπ (n any integer) Lecture Notes (16/68)

Basic Trig Functions Radian Measure Properties of Sine and Cosine Identities Properties of Sine and Cosine 2 Properties of Sine Periodic with period 2π and bounded by 1 and 1 Sine is an odd function Maximum at x = π 2, sin( π 2) = 1 By periodicity, other maxima at x n = π 2 +2nπ with sin(x n) = 1 (n any integer) Minimum at x = 3π 2, sin( ) 3π 2 = 1 By periodicity, other minima at x n = 3π 2 +2nπ with sin(x n ) = 1 (n any integer) Zeroes of sine separated by π with sin(x n ) = 0 when x n = nπ (n any integer) Lecture Notes (17/68)

Some Identities for Sine and Cosine Basic Trig Functions Radian Measure Properties of Sine and Cosine Identities Some Identities for Cosine and Sine cos 2 (x)+sin 2 (x) = 1 for all values of x (Pythagorean Theorem) Adding and Subtracting angles for cosine cos(x+y) = cos(x)cos(y) sin(x)sin(y) cos(x y) = cos(x)cos(y)+sin(x)sin(y) Adding and Subtracting angles for sine sin(x+y) = sin(x)cos(y)+cos(x)sin(y) sin(x y) = sin(x)cos(y) cos(x)sin(y) Lecture Notes (18/68)

Basic Trig Functions Radian Measure Properties of Sine and Cosine Identities Example of Shifts 1 Example of Shifts for Sine and Cosine: Use the trigonometric identities to show cos(x) = sin ( ) x+ π 2 sin(x) = cos ( ) x π 2 This first example shows the cosine is the same as the sine function shifted to the left by π 2 (a quarter period) This second example shows the sine is the same as the cosine function shifted to the right by π 2 (a quarter period) Lecture Notes (19/68)

Basic Trig Functions Radian Measure Properties of Sine and Cosine Identities Example of Shifts 2 Solution: Use the additive identity for sine ( sin x+ π ) ( π ( π = sin(x)cos +cos(x)sin 2 2) 2) Since cos ( ( π 2) = 0 and sin π ) ( 2 = 1, sin x+ π 2) = cos(x) Similarly, ( cos x π ) ( π ( π = cos(x)cos +sin(x)sin 2 2) 2) Again cos ( ( π 2) = 0 and sin π ) ( 2 = 1, so cos x π 2) = sin(x) Lecture Notes (20/68)

Vertical Shift and Amplitude Frequency and Period Phase Shift Examples Model of Predator 1 G. F. Gauss (The Struggle for Existence) studied the system of the predator Didinium nasutum and its prey Paramecium caudatum Below is a graph of his data and a trigonometric model 30 25 Didinium nasutum 20 15 10 5 0 0 2 4 6 8 10 12 14 16 18 t, days Lecture Notes (21/68)

Vertical Shift and Amplitude Frequency and Period Phase Shift Examples Model of Predator 2 Didinium Model shown is or D(t) = 14+12.5cos ( ) 2π 8.5 (t 6) ( ) 2π D(t) = 14+12.5sin 8.5 (t 3.875) 1 How do we go from the Gauss data to the models above? 2 What do the various numbers in the models represent? 3 How do we find the numbers? 4 What methods can be employed to improve the model? (Lab) Lecture Notes (22/68)

Vertical Shift and Amplitude Frequency and Period Phase Shift Examples Model of Predator 3 Observations: 1 The population fluctuates about an average 2 The population appears to have a regular periodic cycle 3 The degree of fluctuation or amplitude of variation is fairly consistent 4 The maximum population is shifted from t = 0 These observations can be converted into the 4 key parameters of the model. Lecture Notes (23/68)

Vertical Shift and Amplitude Frequency and Period Phase Shift Examples are appropriate when data follows a simple oscillatory behavior (as seen in the example above) The Cosine Model The Sine Model y(t) = A+B cos(ω(t φ)) y(t) = A+B sin(ω(t φ)) Each model has Four Parameters Lecture Notes (24/68)

Vertical Shift and Amplitude Vertical Shift and Amplitude Frequency and Period Phase Shift Examples Trigonometric Model Parameters: For the cosine model y(t) = A+B cos(ω(t φ)) The model parameter A is the vertical shift, which is associated with the average height of the model The model parameter B gives the amplitude, which measures the distance from the average, A, to the maximum (or minimum) of the model There are similar parameters for the sine model Lecture Notes (25/68)

Frequency and Period Vertical Shift and Amplitude Frequency and Period Phase Shift Examples Trigonometric Model Parameters: For the cosine model y(t) = A+B cos(ω(t φ)) The model parameter ω is the frequency, which gives the number of periods of the model that occur as t varies over 2π radians The period is given by T = 2π ω There are similar parameters for the sine model Lecture Notes (26/68)

Phase Shift Introduction Vertical Shift and Amplitude Frequency and Period Phase Shift Examples Trigonometric Model Parameters: For the cosine model y(t) = A+B cos(ω(t φ)) The model parameter φ is the phase shift, which shifts our models to the left or right This gives a right horizontal shift for positive φ If the period is denoted T = 2π ω, then the principle phase shift satisfies φ [0,T) By periodicity of the model, if φ is any phase shift φ 1 = φ+nt = φ+ 2nπ ω, is a phase shift for an equivalent model There is a similar parameter for the sine model n an integer Lecture Notes (27/68)

Model Parameters Introduction Vertical Shift and Amplitude Frequency and Period Phase Shift Examples Trigonometric Model Parameters: For the cosine and sine models y(t) = A+B cos(ω(t φ)) y(t) = A+B sin(ω(t φ)) The vertical shift parameter A is unique The amplitude parameter B is unique in magnitude but the sign can be chosen by the modeler The frequency parameter ω is unique in magnitude but the sign can be chosen by the modeler By periodicity, phase shift has infinitely many choices One often selects the unique principle phase shift satisfying 0 φ < T Lecture Notes (28/68)

Parameters for Didinium Model Vertical Shift and Amplitude Frequency and Period Phase Shift Examples Overview: Consider the cosine model for Didinium ( ) 2π D(t) = 14+12.5cos 8.5 (t 6) Best fit would use the Sum of Square Errors (SSE), but narrow peaks indicate that the best model is not quite sinusoidal, which skews the parameters 1 Observe the average between the high and low is approximated by 14, so the vertical shift, A = 14. 2 A reasonable approximation to the distance between the average and the high or low data is 12.5, so the amplitude, B = 12.5. 3 The distance between peaks (or troughs) is about 8.5, the period, T = 8.5, which gives ω = 2π 8.5 = 0.73930. 4 A first maximum of this cosine model occurs at t = 6. Since cosine is at a maximum when its argument is zero, the phase shift, φ = 6. Lecture Notes (29/68)

Improved Didinium Model Vertical Shift and Amplitude Frequency and Period Phase Shift Examples We saw that a cosine model reasonably fit the Gauss data. ( ) 2π D(t) = 14 +12.5cos 8.5 (t 6) D 2 (t) = 11.47 +12.56cos(0.7423(t 6.064))+4.013cos(1.485(t 1.686)) Below is a graph of the Didinium Model and a simple variation, which adds one additional cosine term with double the frequency (examined in Lab later) 30 25 Model 1 Model 2 Data Didinium nasutum 20 15 10 5 0 0 2 4 6 8 10 12 14 16 18 t, days Lecture Notes (30/68)

Vertical Shift and Amplitude Frequency and Period Phase Shift Examples Example: Sine Function 1 Example 1: Consider the model y(x) = 3sin(2x) 2 Skip Example Find the vertical shift, amplitude, and period Sketch a graph Determine all maxima and minima for x [0,2π] Lecture Notes (31/68)

Vertical Shift and Amplitude Frequency and Period Phase Shift Examples Example: Sine Function 2 Solution: For y(x) = 3sin(2x) 2 The vertical shift is A = 2 The amplitude is B = 3, so solution oscillates with 5 y(x) 1 The frequency is ω = 2, so the period, T, satisfies T = 2π ω = 2π 2 = π No phase shift, so divide the period into 4 even parts, π x = 0, 4, π 2, 3π 4, π Lecture Notes (32/68)

Vertical Shift and Amplitude Frequency and Period Phase Shift Examples Example: Sine Function 3 Graphing: Steps for graphing y(x) = 3sin(2x) 2. 1 With no phase shift, start at x = 0. Create a line along the average value y = 2, which extends the length of one period. 2 The amplitude of 3 means creating parallel lines above and below y = 2 at y = 1 and y = 5, then complete the rectangle for one period. 3 Finally draw parallel vertical lines along each quarter of the period, x = 0, π/4, π/2, 3π/4, π. 4 This drawing is on next slide. Lecture Notes (33/68)

y Introduction Vertical Shift and Amplitude Frequency and Period Phase Shift Examples Example: Sine Function 4 Graphing (cont): For y(x) = 3sin(2x) 2, previous slide describes image on the left, while the image on the right shows the easy 5 function evaluations, y(0), y(π/4), y(π/2), y(3π/4), y(π). 2 1 0 1 2 3 4 5 6 0 π/4 π/2 3π/4 π 5π/4 3π/2 7π/4 2π x y 2 1 0-1 -2-3 -4-5 -6 0 π/4 π/2 3π/4 π 5π/4 3π/2 7π/4 2π x Lecture Notes (34/68)

Vertical Shift and Amplitude Frequency and Period Phase Shift Examples Example: Sine Function 5 Graphing (cont): For y(x) = 3sin(2x) 2, smoothly connect the points on the previous graph. Graph on the right shows the periodic extension over another period. y 2 1 0-1 -2-3 -4-5 -6 0 π/4 π/2 3π/4 π 5π/4 3π/2 7π/4 2π x y 2 1 0-1 -2-3 -4-5 -6 0 π/4 π/2 3π/4 π 5π/4 3π/2 7π/4 2π x Lecture Notes (35/68)

Vertical Shift and Amplitude Frequency and Period Phase Shift Examples Example: Sine Function 6 From the graph of y(x) = 3sin(2x) 2, it is easy to obtain the maxima and minima. By periodicity, the maxima are separated by π, and they occur at ( π ) ( ) 5π 4,1 and 4,1 By periodicity, the minima are separated by π, and they occur at ( ) ( ) 3π 7π 4, 5 and 4, 5 Lecture Notes (36/68)

Vertical Shift and Amplitude Frequency and Period Phase Shift Examples Example: Cosine Function 1 Example 2: Consider the model ( π ) y(x) = 4 3cos 4 (x 3) Skip Example Find the vertical shift, amplitude, and period Sketch a graph Determine all maxima and minima for x [0,16] Lecture Notes (37/68)

Vertical Shift and Amplitude Frequency and Period Phase Shift Examples Example: Cosine Function 2 Solution: For ( π ) y(x) = 4 3cos 4 (x 3) The vertical shift is A = 4 The amplitude is B = 3, so solution oscillates with 1 y(x) 7 The frequency is ω = π 4, so the period, T, satisfies T = 2π ω = 8 The phase shift is φ = 3, so starting at x = 3 add the period T = 8 and divide x [3,11] into 4 even parts, x = 3,5,7,9,11 Lecture Notes (38/68)

Vertical Shift and Amplitude Frequency and Period Phase Shift Examples Example: Cosine Function 3 Graphing: Steps for graphing y(x) = 4 3cos ( π 4 (x 3)). 1 With phase shift, φ = 3, start at x = 3. Create a line along the average value y = 4, which extends the length of one period. 2 The amplitude of 3 means creating parallel lines above and below y = 4 at y = 1 and y = 7, then complete the rectangle for one period. 3 Finally draw parallel vertical lines along each quarter of the period, x = 3, 5, 7, 9, 11. 4 This drawing is on next slide. Lecture Notes (39/68)

Vertical Shift and Amplitude Frequency and Period Phase Shift Examples Example: Cosine Function 4 Graphing (cont): For y(x) = 4 3cos ( π 4 (x 3)), previous slide describes image on the left. The image on the right shows the easy 5 function evaluations, y(3), y(5), y(7), y(9), y(11). 8 8 7 7 6 6 5 5 y 4 y 4 3 3 2 2 1 1 0 0 2 4 6 8 10 12 14 16 x 0 0 2 4 6 8 10 12 14 16 x Lecture Notes (40/68)

Vertical Shift and Amplitude Frequency and Period Phase Shift Examples Example: Cosine Function 5 Graphing (cont): For y(x) = 4 3cos ( π 4 (x 3)), smoothly connect the points on the previous graph. Graph on the right shows the periodic extension over another period. 8 8 7 7 6 6 5 5 y 4 y 4 3 3 2 2 1 1 0 0 2 4 6 8 10 12 14 16 x 0 0 2 4 6 8 10 12 14 16 x Lecture Notes (41/68)

Vertical Shift and Amplitude Frequency and Period Phase Shift Examples Example: Cosine Function 6 From the graph of ( π ) y(x) = 4 3cos 4 (x 3), it is easy to obtain the maxima and minima. By periodicity, the maxima are separated by 8, and they occur at (7, 7) and (15, 7) By periodicity, the minima are separated by 8, and they occur at (3, 1) and (11, 1) Lecture Notes (42/68)

Vertical Shift and Amplitude Frequency and Period Phase Shift Examples Example: Cosine Function 7 There is a maximum at (7,7) for the function: y(x) = 4 3cos ( π 4 (x 3)). If we start at (7,7), using a cosine model: y(x) = 4+3cos ( π 4 (x φ)). y Since the cosine function 0 0 2 4 6 8 10 12 14 16 x has a maximum with its argument being zero, it follows that φ = 7, which is half a period shift, so 8 7 6 5 4 3 2 1 ( π ) y(x) = 4+3cos 4 (x 7). Lecture Notes (43/68)

Phase Shift in Models Phase Shift of Half a Period Equivalent Sine and Cosine Models Return to Annual Temperature Variation Other Examples Phase Shift of Half a Period A phase shift of half a period creates an equivalent sine or cosine model with the sign of the amplitude reversed Models Matching Data Phase shifts are important matching data in periodic models The cosine model is easiest to match, since the maximum of the cosine function occurs when the argument is zero The maximum of the sine model occurs when the argument is π 2 Lecture Notes (44/68)

Phase Shift of Half a Period Equivalent Sine and Cosine Models Return to Annual Temperature Variation Other Examples Example: Cosine Model with Phase Shift 1 Example 3: Consider the model Skip Example y(x) = 4+6cos ( 1 2 (x π)), x [0,8π] Find the vertical shift, amplitude, period, and phase shift Sketch a graph Determine all maxima and minima for x [0,4π] Find the equivalent sine model Lecture Notes (45/68)

Phase Shift of Half a Period Equivalent Sine and Cosine Models Return to Annual Temperature Variation Other Examples Example: Cosine Model with Phase Shift 2 Solution: For the model The vertical shift is A = 4 y(x) = 4+6cos ( 1 2 (x π)) The amplitude is B = 6, so y(x) oscillates between 2 and 10 The frequency is ω = 1 2 The period, T, satisfies T = 2π ω = 4π The phase shift is φ = π, which means the cosine model is shifted horizontally x = π units to the right Since cosine has a maximum with argument zero, a maximum will occur at x = π Lecture Notes (46/68)

y y Introduction Phase Shift of Half a Period Equivalent Sine and Cosine Models Return to Annual Temperature Variation Other Examples Example: Cosine Function with Phase Shift 3 Graphing (cont): For y(x) = 4+6cos ( 1 2 (x π)), we use the vertical shift (4), amplitude (6), and phase shift (π) to create the appropriate rectangular box. The image on the right shows the rectangular box with the 5 easy function evaluations, y(π), y(2π), y(3π), y(4π), y(5π). 12 12 10 10 8 8 6 6 4 4 2 2 0 0 2 2 4 0 π 2π 3π 4π 5π 6π 7π 8π x 4 0 π 2π 3π 4π 5π 6π 7π 8π x Lecture Notes (47/68)

y y Introduction Phase Shift of Half a Period Equivalent Sine and Cosine Models Return to Annual Temperature Variation Other Examples Example: Cosine Function with Phase Shift 4 Graphing (cont): For y(x) = 4+6cos ( 1 2 (x π)), smoothly connect the points on the previous graph. Graph on the right shows the periodic extension over another period. 12 12 10 10 8 8 6 6 4 4 2 2 0 0 2 2 4 0 π 2π 3π 4π 5π 6π 7π 8π x 4 0 π 2π 3π 4π 5π 6π 7π 8π x Lecture Notes (48/68)

Phase Shift of Half a Period Equivalent Sine and Cosine Models Return to Annual Temperature Variation Other Examples Example: Cosine Model with Phase Shift 5 Solution (cont): From the graph of y(x) = 4+6cos ( 1 2 (x π)), there are clearly maxima at x = π and 5π, so for x [0,4π], the maximum is (π, 10), (which agrees with the phase shift). It is easily seen that the minima occur at x = 3π and 7π, so for x [0,4π], the minimum is (3π, 2). Lecture Notes (49/68)

Phase Shift of Half a Period Equivalent Sine and Cosine Models Return to Annual Temperature Variation Other Examples Example: Cosine Model with Phase Shift 6 Solution (cont): The appropriate sine model has the same vertical shift, A, amplitude, B, and frequency, ω, y(x) = 4+6sin ( 1 2 (x ψ)) We must find the appropriate phase shift, ψ The maximum of the sine function occurs when its argument is π 2 Since the maximum occurs at x = π, it follows that 1 2 (π ψ) = π 2 or ψ = 0 The equivalent sine model is y(x) = 4+6sin ( ) ( x 2 = 4+6cos 1 2 (x π)) Lecture Notes (50/68)

Equivalent Sine and Cosine Models Phase Shift of Half a Period Equivalent Sine and Cosine Models Return to Annual Temperature Variation Other Examples Phase Shift for Equivalent Sine and Cosine Models Suppose that the sine and cosine models are equivalent, so sin(ω(x φ 1 )) = cos(ω(x φ 2 )). The relationship between the phase shifts, φ 1 and φ 2 satisfies: φ 1 = φ 2 π 2ω, which is a quarter period shift Note: Remember that the phase shift is not unique It can vary by integer multiples of the period, T = 2π ω Lecture Notes (51/68)

Phase Shift of Half a Period Equivalent Sine and Cosine Models Return to Annual Temperature Variation Other Examples Return to Annual Temperature Model 1 Annual Temperature Model: Started section with data and graphs of average monthly temperatures for Chicago and San Diego Fit data to cosine model for temperature, T, T(m) = A+Bcos(ω(m φ)) where m is in months Find best model parameters, A, B, ω, and φ The frequency, ω, is constrained by a period of 12 months It follows that 12ω = 2π or ω = π 6 = 0.5236 Lecture Notes (52/68)

Phase Shift of Half a Period Equivalent Sine and Cosine Models Return to Annual Temperature Variation Other Examples Return to Annual Temperature Model 2 Annual Temperature Model: T(m) = A+Bcos(ω(m φ)) Choose A to be the average annual temperature Average for San Diego is A = 64.29 Average for Chicago is A = 49.17 Perform least squares best fit to data for B and φ For San Diego, obtain B = 7.29 and φ = 6.74 For Chicago, obtain B = 25.51 and φ = 6.15 Lecture Notes (53/68)

Phase Shift of Half a Period Equivalent Sine and Cosine Models Return to Annual Temperature Variation Other Examples Return to Annual Temperature Model 3 Annual Temperature Model for San Diego: T(m) = 64.29+7.29cos(0.5236(m 6.74)) Annual Temperature Model for Chicago: T(m) = 49.17+25.51cos(0.5236(m 6.15)) The amplitude of models Temperature in San Diego only varies ±7.29 F, giving it a Mediterranean climate Temperature in Chicago varies ±25.51 F, indicating cold winters and hot summers Lecture Notes (54/68)

Phase Shift of Half a Period Equivalent Sine and Cosine Models Return to Annual Temperature Variation Other Examples Return to Annual Temperature Model 4 Annual Temperature Model for San Diego: T(m) = 64.29+7.29cos(0.5236(m 6.74)) Annual Temperature Model for Chicago: T(m) = 49.17+25.51cos(0.5236(m 6.15)) The phase shift for the models For San Diego, the phase shift of φ = 6.74, so the maximum temperature occurs at 6.74 months (late July) For Chicago, the phase shift of φ = 6.15, so the maximum temperature occurs at 6.15 months (early July) Lecture Notes (55/68)

Phase Shift of Half a Period Equivalent Sine and Cosine Models Return to Annual Temperature Variation Other Examples Return to Annual Temperature Model 5 Convert Cosine Model to Sine Model: T(m) = A+Bsin(ω(m φ 2 )) Formula shows φ 2 = φ π 2ω where φ is from the cosine model For San Diego, φ 2 = 3.74 For Chicago, φ 2 = 3.15 Sine Model for San Diego: T(m) = 64.29+7.29sin(0.5236(m 3.74)) Sine Model for Chicago: T(m) = 49.17+25.51sin(0.5236(m 3.15)) Lecture Notes (56/68)

Phase Shift of Half a Period Equivalent Sine and Cosine Models Return to Annual Temperature Variation Other Examples Population Model with Phase Shift 1 Population Model: Suppose population data show a 10 year periodic behavior with a maximum population of 26 (thousand) at t = 2 and a minimum population of 14 (thousand) at t = 7 Assume a model of the form y(t) = A+B sin(ω(t φ)) Skip Example Find the constants A, B, ω, and φ with B > 0, ω > 0,and φ [0,10) Since φ is not unique, find values of φ with φ [ 10,0) and φ [10,20) Sketch a graph Find the equivalent cosine model Lecture Notes (57/68)

Phase Shift of Half a Period Equivalent Sine and Cosine Models Return to Annual Temperature Variation Other Examples Population Model with Phase Shift 2 Solution: Compute the various parameters The vertical shift satisfies A = 26+14 2 = 20 The amplitude satisfies B = 26 20 = 6 Since the period is T = 10 years, the frequency, ω, satisfies ω = 2π 10 = π 5 Lecture Notes (58/68)

Phase Shift of Half a Period Equivalent Sine and Cosine Models Return to Annual Temperature Variation Other Examples Population Model with Phase Shift 3 Solution (cont): Compute the phase shift The maximum of 26 occurs at t = 2, so the model satisfies: y(2) = 26 = 20+6 sin ( π 5 (2 φ)) Clearly sin ( π 5 (2 φ)) = 1 The sine function is at its maximum when its argument is π 2, so π 5 (2 φ) = π 2 2 φ = 5 2 φ = 1 2 Lecture Notes (59/68)

Phase Shift of Half a Period Equivalent Sine and Cosine Models Return to Annual Temperature Variation Other Examples Population Model with Phase Shift 4 Solution (cont): Continuing, the phase shift was φ = 1 2 This value of φ is not in the interval [0,10) The periodicity, T = 10, of the model is also reflected in the phase shift, φ φ = 1 2 +10n, n an integer φ =... 10.5, 0.5,9.5,19.5,... The principle phase shift is φ = 9.5 Lecture Notes (60/68)

Phase Shift of Half a Period Equivalent Sine and Cosine Models Return to Annual Temperature Variation Other Examples Population Model with Phase Shift 5 Solution (cont): The sine model is 30 y(t) = 20 + 6 sin(π(t 9.5)/5) 25 y 20 15 10 10 5 0 5 10 t (years) Lecture Notes (61/68)

Phase Shift of Half a Period Equivalent Sine and Cosine Models Return to Annual Temperature Variation Other Examples Population Model with Phase Shift 6 Solution (cont): The cosine model has the form y(t) = 20+6 cos ( π 5 (t φ 2) ), The vertical shift, amplitude, and frequency match the sine model The maximum of the cosine function occurs when its argument is zero, so The cosine model satisfies π 5 (2 φ 2) = 0, φ 2 = 2. y(t) = 20+6 cos ( π 5 (t 2)) Lecture Notes (62/68)

Phase Shift of Half a Period Equivalent Sine and Cosine Models Return to Annual Temperature Variation Other Examples Body Temperature 1 Circadian Rhythms: Humans, like many organisms, undergo circadian rhythms for many of their bodily functions Circadian rhythms are the daily fluctuations that are driven by the light/dark cycle of the Earth Seems to affect the pineal gland in the head This temperature normally varies a few tenths of a degree in each individual with distinct regularity The body is usually at its hottest around 10 or 11 AM and at its coolest in the late evening, which helps encourage sleep Lecture Notes (63/68)

Phase Shift of Half a Period Equivalent Sine and Cosine Models Return to Annual Temperature Variation Other Examples Body Temperature 2 Body Temperature Model: Suppose that measurements on a particular individual show A high body temperature of 37.1 C at 10 am A low body temperature of 36.7 C at 10 pm Assume body temperature T and a model of the form T(t) = A+B cos(ω(t φ)) Find the constants A, B, ω, and φ with B > 0, ω > 0,and φ [0,24) Graph the model Find the equivalent sine model Lecture Notes (64/68)

Phase Shift of Half a Period Equivalent Sine and Cosine Models Return to Annual Temperature Variation Other Examples Body Temperature 3 Solution: Compute the various parameters The vertical shift satisfies A = 37.1+36.7 2 = 36.9 The amplitude satisfies B = 37.1 36.9 = 0.2 Since the period is P = 24 hours, the frequency, ω, satisfies ω = 2π 24 = π 12 Lecture Notes (65/68)

Phase Shift of Half a Period Equivalent Sine and Cosine Models Return to Annual Temperature Variation Other Examples Body Temperature 4 Solution (cont): Compute the phase shift The maximum of 37.1 C occur at t = 10 am The cosine function has its maximum when its argument is 0 (or any integer multiple of 2π) The appropriate phase shift solves ω(10 φ) = 0 or φ = 10 Lecture Notes (66/68)

Phase Shift of Half a Period Equivalent Sine and Cosine Models Return to Annual Temperature Variation Other Examples Body Temperature 5 Solution (cont): The cosine model is T(t) = 36.9+0.2 cos ( π 12 (t 10)) Body Temperature Temperature ( o C) 37.05 37 36.95 36.9 36.85 36.8 36.75 0 5 10 15 20 t (hours) Lecture Notes (67/68)

Phase Shift of Half a Period Equivalent Sine and Cosine Models Return to Annual Temperature Variation Other Examples Body Temperature 6 Solution (cont): The sine model for body temperature is T(t) = 36.9+0.2 sin ( π 12 (t φ 2) ) The vertical shift, amplitude, and frequency match the cosine model From our formula above The sine model satisfies φ 2 = 10 π 2ω = 10 6 = 4 T(t) = 36.9+0.2 sin ( π 12 (t 4)) Lecture Notes (68/68)