Using the Fourier Series Library (fourierlib.tns)

Similar documents
First Derivative Test TEACHER NOTES

Examples of the Fourier Theorem (Sect. 10.3). The Fourier Theorem: Continuous case.

TEACHER NOTES SCIENCE NSPIRED

Sum of an Infinite Geometric Series

Crossing the Asymptote

Introduction to Limits

TEACHER NOTES MATH NSPIRED

TEACHER NOTES MATH NSPIRED

TImath.com Algebra 1. Trigonometric Ratios

Vectors in Component Form

Influencing Regression

End Behavior of Polynomial Functions TEACHER NOTES MATH NSPIRED

Rose Curve / G. TEACHER NOTES MATH NSPIRED: PRECALCULUS. Math Objectives. Vocabulary. About the Lesson. TI-Nspire Navigator TM

Function Notation TEACHER NOTES MATH NSPIRED. Math Objectives. Vocabulary. About the Lesson. TI-Nspire Navigator System. Activity Materials

AP * Calculus Review. Limits, Continuity, and the Definition of the Derivative

Vectors in Component Form

Math Computer Lab 4 : Fourier Series

More on Fourier Series

TIphysics.com. Physics. Resolving Vectors ID: 9899

3 rd class Mech. Eng. Dept. hamdiahmed.weebly.com Fourier Series

MATH 251 Final Examination August 10, 2011 FORM A. Name: Student Number: Section:

What Is a Solution to a System?

It s Just a Lunar Phase

Mathematical methods and its applications Dr. S. K. Gupta Department of Mathematics Indian Institute of Technology, Roorkee

Section 6: Summary Section 7

Electric Field Hockey

Polynomials Factors, Roots, and Zeros TEACHER NOTES MATH NSPIRED

Fourier and Partial Differential Equations

TEACHER NOTES MIDDLE GRADES SCIENCE NSPIRED

TEACHER NOTES SCIENCE NSPIRED

Math Review for AP Calculus

TIphysics.com. Physics. Pendulum Explorations ID: By Irina Lyublinskaya

Special Right Triangles

Overview of Fourier Series (Sect. 6.2). Origins of the Fourier Series.

Practice Test - Chapter 2

Calculus Summer Assignment

MATH 251 Final Examination December 16, 2015 FORM A. Name: Student Number: Section:

TEACHER NOTES MATH NSPIRED

A Library of Functions

Avon High School Name AP Calculus AB Summer Review Packet Score Period

MATH 251 Final Examination August 14, 2015 FORM A. Name: Student Number: Section:

AP Calculus. Limits, Continuity, and Differentiability

Red Hot Half-Life Modeling Nuclear Decay

Project IV Fourier Series

TIphysics.com. Physics. Bell Ringer: Determining the Relationship Between Displacement, Velocity, and Acceleration ID: 13308

Pearson Georgia High School Mathematics Advanced Algebra

MATH 251 Final Examination May 3, 2017 FORM A. Name: Student Number: Section:

Inverse Functions and Trigonometric Equations - Solution Key

Math Prep for Statics

A. Incorrect! This equality is true for all values of x. Therefore, this is an identity and not a conditional equation.

Fourier Series for Functions Defined on Arbitrary Limited Intervals with Polynomial Expansion

Computer Algebra Systems Activity: Developing the Quadratic Formula

Fourier Series and the Discrete Fourier Expansion

CK- 12 Algebra II with Trigonometry Concepts 1

Chapter 5 The Next Wave: MORE MODELING AND TRIGONOMETRY

Algebra 2. Curriculum (384 topics additional topics)

Fourier Integral. Dr Mansoor Alshehri. King Saud University. MATH204-Differential Equations Center of Excellence in Learning and Teaching 1 / 22

MATH 251 Final Examination December 16, 2014 FORM A. Name: Student Number: Section:

Solving Stoichiometry Problems

Irrational Thoughts. Aim. Equipment. Irrational Investigation: Teacher Notes

Trigonometric Functions. Section 1.6

NAME: DATE: CLASS: AP CALCULUS AB SUMMER MATH 2018

TEACHER NOTES MIDDLE GRADES SCIENCE NSPIRED

Columbus State Community College Mathematics Department. CREDITS: 5 CLASS HOURS PER WEEK: 5 PREREQUISITES: MATH 2173 with a C or higher

SD: How Far is Typical? TEACHER NOTES

Green s Functions with Reflection

Standard Error & Sample Means

Student Exploration: Inclined Plane Sliding Objects

Homework 7 Solutions

AP Calculus AB Summer Assignment School Year

Fourier Transform in Image Processing. CS/BIOEN 6640 U of Utah Guido Gerig (slides modified from Marcel Prastawa 2012)

Math Prep for College Physics

Copyright 2018 UC Regents and ALEKS Corporation. ALEKS is a registered trademark of ALEKS Corporation. 2/10

M&M Exponentials Exponential Function

Finite Differences TEACHER NOTES MATH NSPIRED

BIORHYTHMS ON THE TI-NSPIRE

MATH PRIZE FOR GIRLS. Test Version A

Pre-Calculus Exam 2009 University of Houston Math Contest. Name: School: There is no penalty for guessing.

Advanced Calculus of a Single Variable

Maple in Differential Equations

Math 12 Final Exam Review 1

Precalc Crash Course

Assessment Vocabulary Instructional Strategies. Last Edit Page 1

5.5. Data Collecting and Modelling. Investigate

PHYS 301 HOMEWORK #5

Computer Algebra Systems Activity: Developing the Quadratic Formula

Chapter 10: Partial Differential Equations

SET 1. (1) Solve for x: (a) e 2x = 5 3x

Epsilon-Delta Window Challenge TEACHER NOTES MATH NSPIRED


SESSION 6 Trig. Equations and Identities. Math 30-1 R 3. (Revisit, Review and Revive)

AP* Physics B: Newton s Laws YOU MAY USE YOUR CALCULATOR

General Information Math Credits Instructor B. Whitford o o (403) o Room 205

(c) Find the equation of the degree 3 polynomial that has the same y-value, slope, curvature, and third derivative as ln(x + 1) at x = 0.

TImath.com. Calculus. Integration by Parts

Graphing Equations in Slope-Intercept Form 4.1. Positive Slope Negative Slope 0 slope No Slope

College Algebra with Trigonometry

TEACHER NOTES SCIENCE NSPIRED

AP Calculus AB Summer Assignment

Science Friction! TEACHER NOTES. Science Objectives. Vocabulary. About the Lesson. TI-Nspire Navigator. Activity Materials

Transcription:

Using the Fourier Series Library (fourierlib.tns) Forest W. Arnold October 2018 1

Typeset in LATEX. Copyright 2018 Forest W. Arnold Attribution Most of the examples are from the non-copyrighted book Fourier Series by Georgi P. Tolstov, translated from the Russian by Richard A. Silverman, and published by Dover Publications, Inc. Trademarks TI-Nspire is a registered trademark of Texas Instruments, Inc. 2

1 Purpose The functions in fourierlib generate fourier series, fourier sine series, and fourier cosine series. The library can be installed and used with TI-Nspire CX CAS, TI-Nspire CAS Student Software, TI-Nspire CAS Teacher Software, and TI-Nspire CAS App for the ipad. fourierlib is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. Visit https://www.gnu.org/ licenses/gpl.htm to view the License. 2 Restrictions/Limitations Complex fourier series are not supported. 3 Library History Library Version: 1.00 Date Created: 30August2018 Last Modified: 18October2018 4 Functions The functions in the library and examples of using them are described in the following paragraphs. The examples shown below are screen-captures of commands and their results from TI-Nspire CAS Student Software. 4.1 help() Displays usage information for the functions in the library. 4.1.1 Example Select the help function in the library pane to add it to a calculator page, then execute the function: 3

Scroll to display information about a library function: 4.2 fourier(function name,maxival,numterms) Calculate a fourier series consisting of numterms non-zero terms to approximate the function named function name over the interval [minival,maxival] where minival equals -maxival. Input arguments: function name - the (string) name of the function to approximate with a fourier series. maxival - the maximum value of the interval from -maxival to maxival for the approximation. These are the lower and upper limits of the integral for the ap- 4

Returns: proximation. The lower and upper values of the domain of the function to approximate must include or span these limits. numterms - the desired number of non-zero terms in the approximating series. A Fourier series approximation for the function named function name. Note: If the interval [-maxival,maxival] is larger than the domain of the function (for example, the domain of a piecewise-defined function), this function displays an error message and returns an empty string. 4.2.1 Example 1 Expand the even function f (x) = x 2, pi x pi in Fourier series. The definition of the function and the command to expand the function in a calculator application is The graph of the function and its Fourier series: Figure 1: Periodic Extension of f (x) = x 2 5

4.2.2 Example 2 Expand the even function f (x) = x, pi x pi in Fourier series: The graph of the function and its Fourier series: Figure 2: Periodic Extension of f (x) = x 4.2.3 Example 3 Expand the odd function f (x) = x, pi < x < pi in Fourier series. The graph of the function and its Fourier series: Figure 3: Periodic Extension of f (x) = x 6

4.2.4 Example 4 Expand the function f (x) = e x, 2 x 2 in Fourier series: The graph of the function and its Fourier series: Figure 4: Periodic Extension of f (x) = e x 4.2.5 Example 5 Expand the odd function f (x) = { 1, 1 x < 0 in Fourier series. 1, 0 < x 1 The graph of the function and its Fourier series: Figure 5: Periodic Extension of f (x) 7

4.3 fouriercos(function name,maxival,numterms) Calculate a fourier cosine series consisting of numterms non-zero terms to approximate the function named function name over the interval [0,maxival]. Input arguments: Returns: function name - the (string) name of the function to approximate with a fourier cosine series. maxival - the maximum value of the interval from 0 to maxival for the approximation. These are the lower and upper limits of the integral for the approximation. The lower and upper values of the domain of the function to approximate must include or span these limits. numterms - the desired number of non-zero terms in the approximating series. A Fourier cosine series with even extension approximation for the function named function name. Note: If the interval [0,maxival] is larger than the domain of the function (for example, the domain of a piecewise-defined function), this function displays an error message and returns an empty string. 4.3.1 Example 1 { cos( πx Expand f (x) = 2 ), 0 x 1 in Fourier cosine series. 0, 1 < x < 2 The graph of the function and its Fourier cosine series: 8

Figure 6: Even Periodic Extension of f (x) 4.3.2 Example 2 Expand f (x) = { x, 3 x, 0 x 3 2 3 in Fourier cosine series. 2 < x 3 The graph of the function and its Fourier cosine series: Figure 7: Even Periodic Extension of f (x) 4.4 fouriersin(function name,maxival,numterms) Calculate a fourier sine series consisting of numterms non-zero terms to approximate the function named function name over the interval [0,maxival]. Input arguments: function name - the (string) name of the function to approximate with a fourier sine series. maxival - the maximum value of the interval from 0 to maxival for the approximation. These are the lower and upper limits of the integral for the approxima- 9

Returns: tion. The lower and upper values of the domain of the function to approximate must include or span these limits. numterms - the desired number of non-zero terms in the approximating series. A Fourier sine series with odd extension approximation for the function named function name. Note: If the interval [0,maxival] is larger than the domain of the function (for example, the domain of a piecewise-defined function), this function displays an error message and returns an empty string. 4.4.1 Example 1 Expand f (x) = { x, 3 x, 0 x 3 2 3 in Fourier sine series. 2 < x 3 The graph of the function and its Fourier sine series: Figure 8: Odd Periodic Extension of f (x) 10

4.4.2 Example 2 { cos( πx Expand f (x) = 2 ), 0 x 1 in Fourier sine series. 0, 1 < x < 2 The graph of the function and its Fourier sine series: Figure 9: Odd Periodic Extension of f (x) 4.5 fouriercoscoef(function name,maxival,index) Calculate a specified coefficient of a cosine term of a fourier series for the function named function name over the interval [-maxival,maxival]. Input arguments: Returns: function name - the (string) name of the function. maxival - the maximum value of the interval from -maxival to maxival for the approximation. These are the lower and upper limits of the integral for the approximation. The lower and upper values of the domain of the function to approximate must include or span these limits. index - the index of the desired coefficient. Indices for cosine terms begin with 0. The coefficient of a cosine term of the Fourier series for the function named function name. The returned first term is divided by 2: the first cosine coefficient = a 0 2. 11

Note: If the interval [-maxival,maxival] is larger than the domain of the function (for example, the domain of a piecewise-defined function), this function displays an error message and returns an empty string. 4.5.1 Example 1 Find the first five cosine coefficients for the Fourier series approximation for the even function x 2, π x π: 4.5.2 Example 2 Find the first five cosine coefficients for the Fourier series approximation for the odd function x, π x π: Note: all the cosine coefficients for an odd function equal 0. 4.6 fouriersincoef(function name,maxival,index) Calculate a specified coefficient of a sine term of a fourier series for the function named function name over the interval [-maxival,maxival]. Input arguments: Returns: function name - the (string) name of the function. maxival - the maximum value of the interval from -maxival to maxival for the approximation. These are the lower and upper limits of the integral for the approximation. The lower and upper values of the domain of the function to approximate must include or span these limits. index - the index of the desired coefficient. Indices for sine terms begin with 1. The coefficient of a sine term of the Fourier series for the function named function name. 12

Note: If the interval [-maxival,maxival] is larger than the domain of the function (for example, the domain of a piecewise-defined function), this function displays an error message and returns an empty string. 4.6.1 Example 1 Find the first five sine coefficients for the Fourier series approximation for the even function x 2, π x π: Note: all the sine coefficients for an even function equal 0. 4.6.2 Example 2 Find the first five sine coefficients for the Fourier series approximation for the odd function x, π x π: 4.6.3 Example 3 Use the first four Fourier { cosine and sine coefficients to construct a Fourier series for 1, 1 x < 0 the function f (x) = x, 0 < x 1. Define the piecewise function: Calculate the cosine coefficients: Calculate the sine coefficients: 13

Use the formula f (x) a ( ( 0 πnx ) ( πnx )) 2 + a n cos + b n sin n=1 l l where a 0 2 = a[1] and l = upper interval value to construct the series (note that the a 0 term returned by fouriercoscoef() has already been divided by 2): The series returned by the fourier() function is: 4.7 isevenfunc(function name) Determine if the function named function name is an even function. Input arguments: Returns: function name - the (string) name of the function. true if the named function is an even function and false if the function is not an even function. An even function is a function such that f (x) = f ( x). The graph of an even function is symmetric with respect to the y axis. 4.7.1 Example 1 14

4.7.2 Example 2 4.7.3 Example 3 Note that ex3(x) = e x cos(x) is neither even nor odd. 4.8 isoddfunc(function name) Determine if the function named function name is an odd function. Input arguments: Returns: function name - the (string) name of the function. true if the named function is an odd function and false if the function is not an odd function. An odd function is a function such that f ( x) = f (x). The graph of an odd function is symmetric with respect to the origin. 4.8.1 Example 1 4.8.2 Example 2 4.8.3 Example 3 Note that ex3(x) = e x cos(x) is neither even nor odd. 15