Sinusoids. Amplitude and Magnitude. Phase and Period. CMPT 889: Lecture 2 Sinusoids, Complex Exponentials, Spectrum Representation

Similar documents
CMPT 889: Lecture 2 Sinusoids, Complex Exponentials, Spectrum Representation

CMPT 318: Lecture 5 Complex Exponentials, Spectrum Representation

Music 270a: Complex Exponentials and Spectrum Representation

2.3 Oscillation. The harmonic oscillator equation is the differential equation. d 2 y dt 2 r y (r > 0). Its solutions have the form

Mass on a Horizontal Spring

Chapter 10: Sinusoidal Steady-State Analysis

Circuit Analysis-III. Circuit Analysis-II Lecture # 3 Friday 06 th April, 18

Lecture XXVI. Morris Swartz Dept. of Physics and Astronomy Johns Hopkins University November 5, 2003

Oscillatory Motion SHM

Oscillations. Simple Harmonic Motion of a Mass on a Spring The equation of motion for a mass m is attached to a spring of constant k is

Date: 1 April (1) The only reference material you may use is one 8½x11 crib sheet and a calculator.

Springs: Part I Modeling the Action The Mass/Spring System

Chapter 15. Oscillations

Mechanics Oscillations Simple Harmonic Motion

Date: 31 March (1) The only reference material you may use is one 8½x11 crib sheet and a calculator.

General Physics I Spring Oscillations

Chapter 14 Oscillations. Copyright 2009 Pearson Education, Inc.

Chapter 4. Oscillatory Motion. 4.1 The Important Stuff Simple Harmonic Motion

3 + 4i 2 + 3i. 3 4i Fig 1b

4.5. Applications of Trigonometry to Waves. Introduction. Prerequisites. Learning Outcomes

EE292: Fundamentals of ECE

Chapter 14 Oscillations

Electric Circuit Theory

Thursday, August 4, 2011

Chapter 11 Vibrations and Waves

Section 3.7: Mechanical and Electrical Vibrations

Physics 8 Monday, December 4, 2017

Chapter 15 Periodic Motion

PHYSICS. Chapter 15 Lecture FOR SCIENTISTS AND ENGINEERS A STRATEGIC APPROACH 4/E RANDALL D. KNIGHT Pearson Education, Inc.

EDEXCEL NATIONAL CERTIFICATE UNIT 28 FURTHER MATHEMATICS FOR TECHNICIANS OUTCOME 3 TUTORIAL 1 - TRIGONOMETRICAL GRAPHS

Chapter 14 Periodic Motion

Oscillations. Oscillations and Simple Harmonic Motion

Chapter 7 Hooke s Force law and Simple Harmonic Oscillations

Chapter 12. Recall that when a spring is stretched a distance x, it will pull back with a force given by: F = -kx

Periodic Motion. Periodic motion is motion of an object that. regularly repeats

Lectures Chapter 10 (Cutnell & Johnson, Physics 7 th edition)

MATH 135: COMPLEX NUMBERS

Fourier Series and Fourier Transforms

PREMED COURSE, 14/08/2015 OSCILLATIONS

AP Physics C Mechanics

Name (print): Lab (circle): W8 Th8 Th11 Th2 F8. θ (radians) θ (degrees) cos θ sin θ π/ /2 1/2 π/4 45 2/2 2/2 π/3 60 1/2 3/2 π/

Oscillatory Motion and Wave Motion

Chapter 14 Oscillations

The Harmonic Oscillator

Scattering. N-port Parallel Scattering Junctions. Physical Variables at the Junction. CMPT 889: Lecture 9 Wind Instrument Modelling

Revision of Basic A.C. Theory

AP Physics 1. April 11, Simple Harmonic Motion. Table of Contents. Period. SHM and Circular Motion

Double Spring Harmonic Oscillator Lab

Chapter 13 Oscillations about Equilibrium. Copyright 2010 Pearson Education, Inc.

Physical Acoustics. Hearing is the result of a complex interaction of physics, physiology, perception and cognition.

CMPT 889: Lecture 9 Wind Instrument Modelling

Chap. 15: Simple Harmonic Motion

Chapter 13. Hooke s Law: F = - kx Periodic & Simple Harmonic Motion Springs & Pendula Waves Superposition. Next Week!

Chapter 1. Harmonic Oscillator. 1.1 Energy Analysis

Chapter 14 Oscillations. Copyright 2009 Pearson Education, Inc.

Oscillations Simple Harmonic Motion

Notes on the Periodically Forced Harmonic Oscillator

ECE 241L Fundamentals of Electrical Engineering. Experiment 6 AC Circuits

Chapter 9 Objectives

Chapter 15 - Oscillations

Chapter 14. Oscillations. Oscillations Introductory Terminology Simple Harmonic Motion:

CMPT 889: Lecture 8 Digital Waveguides

Chapter 14 (Oscillations) Key concept: Downloaded from

1 (2n)! (-1)n (θ) 2n

MATHEMATICS FOR ENGINEERING TRIGONOMETRY TUTORIAL 3 PERIODIC FUNCTIONS

Lecture 1 Notes: 06 / 27. The first part of this class will primarily cover oscillating systems (harmonic oscillators and waves).

4. Sinusoidal solutions

11/17/10. Chapter 14. Oscillations. Chapter 14. Oscillations Topics: Simple Harmonic Motion. Simple Harmonic Motion

Chapter 13 Lecture. Essential University Physics Richard Wolfson 2 nd Edition. Oscillatory Motion Pearson Education, Inc.

Core A-level mathematics reproduced from the QCA s Subject criteria for Mathematics document

Chapter 16: Oscillations

Vibrations and Waves MP205, Assignment 4 Solutions

CM2202: Scientific Computing and Multimedia Applications General Maths: 3. Complex Numbers

Differential Equations

Slide 1 / 70. Simple Harmonic Motion

The choice of origin, axes, and length is completely arbitrary.

I. Signals & Sinusoids

T 2. Key take-aways: k m. Tuesday March 28

Honors Algebra 2 Chapter 14 Page 1

Oscillations. Simple Harmonic Motion (SHM) Position, Velocity, Acceleration SHM Forces SHM Energy Period of oscillation Damping and Resonance

15 OSCILLATIONS. Introduction. Chapter Outline Simple Harmonic Motion 15.2 Energy in Simple Harmonic Motion

Chapter 13. Simple Harmonic Motion

CMPT 889: Lecture 3 Fundamentals of Digital Audio, Discrete-Time Signals

C. points X and Y only. D. points O, X and Y only. (Total 1 mark)

Circuits and Systems I

Mechanics IV: Oscillations

Trigonometry.notebook. March 16, Trigonometry. hypotenuse opposite. Recall: adjacent

Lecture 27 Frequency Response 2

F = ma, F R + F S = mx.

Physics 161 Lecture 17 Simple Harmonic Motion. October 30, 2018

OSCILLATIONS.

Damped Oscillation Solution

Physics 2101 S c e t c i cti n o 3 n 3 March 31st Announcements: Quiz today about Ch. 14 Class Website:

Raymond A. Serway Chris Vuille. Chapter Thirteen. Vibrations and Waves

Exercises Lecture 15

4. Complex Oscillations

Chapter 10: Sinusoids and Phasors

Section 4.9; Section 5.6. June 30, Free Mechanical Vibrations/Couple Mass-Spring System

Chapter 7 PHASORS ALGEBRA

Quiz No. 1: Tuesday Jan. 31. Assignment No. 2, due Thursday Feb 2: Problems 8.4, 8.13, 3.10, 3.28 Conceptual questions: 8.1, 3.6, 3.12, 3.

Transcription:

Sinusoids CMPT 889: Lecture Sinusoids, Complex Exponentials, Spectrum Representation Tamara Smyth, tamaras@cs.sfu.ca School of Computing Science, Simon Fraser University September 6, 005 Sinusoids are fundamental in physics/acoustics and simple harmonic motion. A sinusoid is a function of time having the following form: x(t) = A sin(ωt + φ), where x is the quantity which varies over time and A peak amplitude ω radian frequency (rad/sec) = πf f frequency (Hz) t time (seconds) φ initial phase (radians) ωt + φ instantaneous phase (radians) Sinusoidal Signal Amplitude 0 0 0. 0. 0.3 0.4 0.5 0.6 0.7 0.8 0.9 Time (s) Figure : Sinusoid where A =, ω = π5, and φ = π/4. CMPT 889: Computational Modelling for Sound Synthesis: Lecture Amplitude and Magnitude. Phase and Period. The term peak amplitude, often shortened to amplitude, is the nonnegative value of the waveform s peak (either positive or negative). The instantaneous amplitude of x is the value of x(t) (either positive or negative) at time t. The instantaneous magnitude, or simply magnitude, of x is nonnegative and is given by x(t). The initial phase φ, given in radians, tells us the position of the waveform cycle at t = 0. Also sometimes called: phase offset phase shift phase factor One cycle of a sinusoid is π radians. The period T of a sinusoid is the time (in seconds) it takes to complete one cycle. Since sinusoids are periodic with period π, an initial phase of φ is indistinguishable from an initial phase of φ ± π. We may therefore restrict the range of φ so that it does not exceed π. CMPT 889: Computational Modelling for Sound Synthesis: Lecture 3 CMPT 889: Computational Modelling for Sound Synthesis: Lecture 4

Frequency Sine and cosine functions. The frequency f of the waveform is given in cycles per second or Hertz (Hz). Frequency is equivalent to the inverse of the period T of the waveform, f = /T Hz. The radian frequency ω, given in radians per second, is equivalent to the frequency in Hertz scaled by π, ω = πf (rad/sec). The sine and cosine function are very closely related and can be made equivalent simply by adjusting their initial phase: Amplitude sin θ = cos(θ π ) or cos θ = sin(θ + π ). 0.5 0 0.5 0 0. 0.4 0.6 0.8..4.6.8 Time (s) Figure : Phase relationship between cosine and sine functions. In calculus, the sine and cosine functions are derivatives of one other. That is, d sin θ = cos θ and d cos θ = sin θ. CMPT 889: Computational Modelling for Sound Synthesis: Lecture 5 CMPT 889: Computational Modelling for Sound Synthesis: Lecture 6 Time-shifting a signal. Sinusoids and physical motion If a signal can be expressed in the form x(t) = s(t t ), we say x(t) is a time-shifted version of s(t). s(t) x(t) = s(t ) 0 0 3 0 Figure 3: Time-shifting a signal. y(t) = s(t+) s(t) = t 0 t x(t) = s(t ) = t 0 t = t t 3 x(t) is simply the s(t) function with its origin shifted to the right, or delayed, by seconds. Similarly, y(t) is equivalent to s(t) with its origin shifted to the left, or advanced in time by second. A positive phase indicates a shift to the left whereas a negative phase indicates a shift to the right. CMPT 889: Computational Modelling for Sound Synthesis: Lecture 7 Stricking a tuning fork causes its tines to vibrate, moving back and forth through an equilibrium position, producing a tone that is almost sinusoidal. The relationship of sinusoids to physical acoustic vibration can be shown using several important law s of physics: Newton s second law, given by F = ma: The tine overshoots the equilibrium position due to the force caused by the tine s mass m and acceleration a. Hooke s law, given by F = kx: When the tine overshoots the equilibrium position, there is a restoring force, proportional to the tine s displacement x and the tine s stiffness k, that brings it back toward equilibrium. That is, Newton s third law: for every action there is an equal and opposite reaction. For undamped (lossless) vibration, the two forces described above are equal, but opposite. ma = kx. CMPT 889: Computational Modelling for Sound Synthesis: Lecture 8

Displacement, Velocity and Acceleration Simple Harmonic Motion Velocity, v, is the rate at which the displacement, x, changes. It is given by the derivative of displacement with respect to time: v = dx. Acceleration, a, is the rate at which velocity changes. It is given by the derivative of velocity with respect to time, or alternatively, the second derivative of displacement with respect to time. That is, a = dv = d x. Dispacement x is, therefore, a function proportional to it s first and second derivative. Recall that a sinusoid is a function proportional to it s derivative: d sin(ωt) = ω cos(ωt) d cos(ωt) = ω sin(ωt), where ω is the radian frequency of the sine and cosine functions. Sinusoids are also proportional to their second derivatives: d sin(ωt) = ω sin(ωt) d cos(ωt) = ω cos(ωt). CMPT 889: Computational Modelling for Sound Synthesis: Lecture 9 CMPT 889: Computational Modelling for Sound Synthesis: Lecture 0 Simple Harmonic Motion cont. Sinusoidal and Circular Motion The sinusoidal motion of the tuning fork is called simple harmonic motion, which is the simplest form of motion in vibrating systems. If the displacement of a vibrating system is sinusoidal, i.e. x = cos(ωt), we may use Newton s third law to determine the frequency of the system. That is: Consider a vector of length one (), rotating at a steady speed in a plane, the vector tracing a circle with a radius equal to its length. π π/ π/4 π ma = kx ω cos(ωt) = k m cos(ωt) k ω = m That is, the frequency is proportional to the square root of the ratio of the stiffness (or spring constant), k (given in Newtons per meter), to the mass, m. CMPT 889: Computational Modelling for Sound Synthesis: Lecture 3π/ Figure 4: A vector rotating along the unit circle. Each time the vector completes one rotation of the circle, it has completed a cycle of π. The rate at which the vector completes one cycle is given by its frequency. The length of the vector is given by its amplitude (which for simplicity, in this case, is one ()). CMPT 889: Computational Modelling for Sound Synthesis: Lecture

Sinusoidal and Circular Motion cont. Sinusoids and Circular Motion cont. The x- and y-axis are the horizontal and vertical lines intersecting at the circle s centre. y-axis (0, ) (, ) (-, 0) θ (, 0) x-axis Projecting onto the x- and y-axis gives a sequence of points that resenble a cosine and sine function respectively. amplitude > time > (0, -) Figure 5: The vector coordinates are determined by projecting onto the x and y-axis. Projecting the vector onto the x- and y-axes allows us to determine its coordinates in the xy-plane. If the vector is rotated in a counterclockwise direction, at angle θ from the positive x-axis, projecting onto both the x- and y-axes creates right angle triangles. Trigonometric identities, with knowledge of θ and the vector length, will help us determine the coordinates. CMPT 889: Computational Modelling for Sound Synthesis: Lecture 3 amplitude > time > Figure 6: Projecting onto the x and y axis. CMPT 889: Computational Modelling for Sound Synthesis: Lecture 4 Adding two sinusoids of the same frequency Adding two sinusoids of the same frequency but with possibly different amplitudes and phases, produces another sinusoid with that frequency. where the amplitude A is given by A = B + C, and the phase φ is given by φ = tan ( C B ). Amplitude 3 0 sin(4πt) sin(4πt + π/4) sum 3 0 0. 0. 0.3 0.4 0.5 0.6 0.7 0.8 0.9 Time (s) Figure 7: Adding two sinusoids of the same frequency. Recalling the expression for sinusoidal motion and trigonometric identities, we may see that x = A cos(ω 0 t + φ) = A cos(φ + ω 0 t) = [A cos φ] cos ω 0 t + [ A sin φ] sin ω 0 t = B cos ω 0 t + C sin ω 0 t CMPT 889: Computational Modelling for Sound Synthesis: Lecture 5 CMPT 889: Computational Modelling for Sound Synthesis: Lecture 6

Vector Addition Exponentials Since one vector represents one sinusoid, to add two sinusoids of the same frequency, we need only perform vector addition. y axis U V V U x axis Figure 8: Adding sinusoids using vector addition. The exponential is typically used to describe the natural growth or decay of a system s state. An exponential is defined as x(t) = e t/τ () where e =.78... and τ is the characteristic time constant of the exponential where at time t = τ, the function will equal /e. Though this function may, at first, seem very different from a sinusoid, both functions are aspects of a slightly more complicated function. Since the vectors have the same frequency, they will rotate as a unit and their sum will have the same frequency. The sum vector u + v in Figure 8 also has its own x and y component (from projecting onto the x- and y-axes) and therefore may have a different amplitude and phase. CMPT 889: Computational Modelling for Sound Synthesis: Lecture 7 CMPT 889: Computational Modelling for Sound Synthesis: Lecture 8 Complex numbers Complex Numbers cont. Complex numbers provides a system for manipulating rotating vectors, and allows us to represent the geometric effects of common digital signal processing operations, like filtering, in algebraic form. In rectangular (or Cartesian) form, the complex number z is defined by the notation z = x + jy. The part without the j is called the real part, and the part with the j is called the imaginary part. A complex number can be drawn as a vector, where the tip of the vector is at the point (x, y), where x is the horizontal coordinate, or the real part, and y is the vertical coordinate, or the imaginary part. Im{z} θ r z = x + jy = re jθ Re{z} Figure 9: Cartesian and polar representations of complex numbers in the complex plane. We may now refer to the x and y axes as the realand imaginary-axes, respectively. A multiplication by j may be seen as an operation meaning rotate counterclockwise 90 or π/. Two successive rotations by π/ bring us to the negative real axis, that is, j =. From this we see j =. CMPT 889: Computational Modelling for Sound Synthesis: Lecture 9 CMPT 889: Computational Modelling for Sound Synthesis: Lecture 0

Polar Form Euler s Formula A complex number may also be represented in textbfpolar form z = re jθ. where the vector is defined by its. length r. direction θ The length of the vector is also called the magnitude of z (denoted z ) and the angle with the real axis is called the argument of z (denoted arg z). Using trigonometric identities and the Pythagorean theorem, we can compute:. The Cartesian coordinates(x, y) from the polar variables r θ: x = r cos θ and y = r sin θ. The polar coordinates from the Cartesian: r = ( y (x + y ) and θ = arctan x) Recall from our previous section on sinusoids that the projection of a rotating sinusoid on the x and y axes, traces out a cosine and a sine function respectively. From this we can see how Euler s famous formula for the complex exponential was obtained by substituting for x and y as follows: e jθ = cos θ + j sin θ () Equation is valid for any point (cos θ, sin θ) on a circle of radius. This can be further generalized to be valid for any complex number z z = re jθ = r cos θ + jr sin θ. (3) Though called complex, these number usually simplify calculations considerably particularly in the case of multiplication and division. CMPT 889: Computational Modelling for Sound Synthesis: Lecture CMPT 889: Computational Modelling for Sound Synthesis: Lecture