Calculus S. Awad, Ph.D. M. Corless, M.S.E.E. D. Cinpinski E.C.E. Department University of Michigan-Dearborn Math Review with Matlab: Taylor’s Series.

Slides:



Advertisements
Similar presentations
Math Review with Matlab:
Advertisements

Math Review with Matlab:
Math Review with Matlab:
Beginning Programming for Engineers
Complex Numbers S. Awad, Ph.D. M. Corless, M.S.E.E. E.C.E. Department University of Michigan-Dearborn Math Review with Matlab: Complex Math.
CSE 123 Plots in MATLAB. Easiest way to plot Syntax: ezplot(fun) ezplot(fun,[min,max]) ezplot(fun2) ezplot(fun2,[xmin,xmax,ymin,ymax]) ezplot(fun) plots.
Solving Systems of ODE’s Dr. Mohammed Alsayed. Again we need the dsolve function. Example: For the system y 1 ' = y 2, y 2 ' = -y 1 + sin(5 t) with the.
Matlab Graphics S. Awad, Ph.D. M. Corless, M.S.E.E. E.C.E. Department University of Michigan-Dearborn Introduction to Matlab: 2D Graphics.
Solving Algebraic Equations
Calculus S. Awad, Ph.D. M. Corless, M.S.E.E. E.C.E. Department University of Michigan-Dearborn Math Review with Matlab: Differentiation.
Brook Taylor : Taylor Series Brook Taylor was an accomplished musician and painter. He did research in a variety of areas, but is most famous.
Differential Equations Math Review with Matlab: Finding Solutions to Differential Equations S. Awad, Ph.D. M. Corless, M.S.E.E. D. Cinpinski E.C.E. Department.
Lab5 (Signal & System) Instructor: Anan Osothsilp Date: 20 Feb 07 Due Date 09 March 07.
1.3 ARRAYS, FILES, AND PLOTS + FOURIER SERIES BY MR. Q.
CSE 123 Symbolic Processing. Declaring Symbolic Variables and Constants To enable symbolic processing, the variables and constants involved must first.
Calculus S. Awad, Ph.D. M. Corless, M.S.E.E. D. Cinpinski E.C.E. Department University of Michigan-Dearborn Math Review with Matlab: Limits.
9.7 Taylor Series. Brook Taylor Taylor Series Brook Taylor was an accomplished musician and painter. He did research in a variety of areas,
Lecture 16 Symbolic Mathematics Symbolic mathematics: algebraezplotcalculus © 2007 Daniel Valentine. All rights reserved. Published by Elsevier.
1 CALCULUS Even more graphing problems
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Prentice Hall Slide 9- 1.
Solving Algebraic Equations S. Awad, Ph.D. M. Corless, M.S.E.E. D. Cinpinski E.C.E. Department University of Michigan-Dearborn Math Review with Matlab:
S. Awad, Ph.D. M. Corless, M.S.E.E. E.C.E. Department University of Michigan-Dearborn Laplace Transform Math Review with Matlab: Calculating the Laplace.
Full Year Review MTH 251/252/253 – Calculus. MTH251 – Differential Calculus Limits Continuity Derivatives Applications.
Calculus and Analytic Geometry II Cloud County Community College Spring, 2011 Instructor: Timothy L. Warkentin.
9.2 Taylor Series Quick Review Find a formula for the nth derivative of the function.
259 Lecture 18 The Symbolic Toolbox. 2  MATLAB has a set of built-in commands that allow us to work with functions in a fashion similar to Mathematica.
Brook Taylor : Taylor Series Brook Taylor was an accomplished musician and painter. He did research in a variety of areas, but is most famous.
Chapter 1 Infinite Series. Definition of the Limit of a Sequence.
Chapter 1 Infinite Series, Power Series
Find the local linear approximation of f(x) = e x at x = 0. Find the local quadratic approximation of f(x) = e x at x = 0.
8.8 Improper Integrals Math 6B Calculus II. Type 1: Infinite Integrals  Definition of an Improper Integral of Type 1 provided this limit exists (as a.
MAT 1221 Survey of Calculus Maple
Do Now: Find both the local linear and the local quadratic approximations of f(x) = e x at x = 0 Aim: How do we make polynomial approximations for a given.
Now that you’ve found a polynomial to approximate your function, how good is your polynomial? Find the 6 th degree Maclaurin polynomial for For what values.
Calculus, 9/E by Howard Anton, Irl Bivens, and Stephen Davis Copyright © 2009 by John Wiley & Sons, Inc. All rights reserved. Major theorems, figures,
Warm up Construct the Taylor polynomial of degree 5 about x = 0 for the function f(x)=ex. Graph f and your approximation function for a graphical comparison.
13.2Series. Sequence 2, 4, 6, …, 2n, … A sequence is a list. Related finite series Related infinite series … + 2n + … Series.
MATH 6B CALCULUS II 11.3 Taylor Series. Determining the Coefficients of the Power Series Let We will determine the coefficient c k by taking derivatives.
Monday, Nov 2, 2015MAT 146 Next Test: Thurs 11/19 & Fri 11/20.
Advance Calculus Diyako Ghaderyan 1 Contents:  Applications of Definite Integrals  Transcendental Functions  Techniques of Integration.
9.3 Taylor’s Theorem Quick Review Tell whether the function has derivatives of all orders at the given values of a.
Chapter 9 Infinite Series.
Remainder Theorem. The n-th Talor polynomial The polynomial is called the n-th Taylor polynomial for f about c.
Chapter 10 Power Series Approximating Functions with Polynomials.
Programming For Nuclear Engineers Lecture 11 MATLAB (2) 1.
Brook Taylor : Taylor Series Brook Taylor was an accomplished musician and painter. He did research in a variety of areas, but is most.
9.1 Power Series AP Calculus BC. This is an example of an infinite series. 1 1 Start with a square one unit by one unit: This series converges (approaches.
Advance Calculus Diyako Ghaderyan 1 Contents:  Applications of Definite Integrals  Transcendental Functions  Techniques of Integration.
1 Chapter 9. 2 Does converge or diverge and why?
Wednesday, April 6MAT 146. Wednesday, April 6MAT 146.
Infinite Sequences and Series
Symbolic mathematics: algebra ezplot calculus
Taylor Series Brook Taylor was an accomplished musician and painter. He did research in a variety of areas, but is most famous for his development of.
Test the series for convergence or divergence. {image}
FP2 (MEI) Maclaurin Series
Test the series for convergence or divergence. {image}
Plotting Multiple Graphs In The Same Plot
Find the Taylor series for f (x) centered at a = 8. {image} .
Taylor Series and Maclaurin Series
Warm Up Chapter 8.10 Taylor and Maclaurin Series
11.1 – Polynomial Approximations of Functions
Section 2: Intro to Taylor Polynomials
Let A = {image} and B = {image} . Compare A and B.
Which of the given series is(are) convergent?
MACLAURIN SERIES how to represent certain types of functions as sums of power series You might wonder why we would ever want to express a known function.
Which of the given series is(are) convergent?
Sequence and Series Dr. Geetha Sivaraman Department of Mathematics
9.2 Taylor Series.
Comparison of Series (9.4)
Section 8.9: Applications of Taylor Polynomials
Presentation transcript:

Calculus S. Awad, Ph.D. M. Corless, M.S.E.E. D. Cinpinski E.C.E. Department University of Michigan-Dearborn Math Review with Matlab: Taylor’s Series

Calculus:Taylor Series 2 Series Operations n Symbolic Summation Symbolic Summation n Taylor Series Taylor Series n Taylor Command Taylor Command n Taylor Series Example Taylor Series Example n Approximation and Comparison Example Approximation and Comparison Example

Calculus:Taylor Series 3 Symbolic Summation » s1=symsum(1/x^2,1,inf) s1 = 1/6*pi^2 » num = 4*x*x-x-3 » den = x^3+2*x » s2=symsum(num/den,1,inf) s2 = inf Diverges! n Example 1: n Example 2 Converges n Find the sum of the following series s1 and s2 if they converges

Calculus:Taylor Series 4 Summation Examples » s3=symsum(1/(x-1.5)^2,1,inf) s3 = 4+1/2*pi^2 » eval(s3) ans = n Example 3: » s4=symsum((1/x)*(-1)^(x+1),1,inf) s4 = log(2) » eval(s4) ans = n Example 4:

Calculus:Taylor Series 5 Finite Summation Example » syms x N; » s5=symsum((x+3)*(x+1),1,N) s5 = 7/6*N-11/6+3/2*(N+1)^2+1/3*(N+1)^3 » s5=simple(s5) s5 = 1/6*N*(31+15*N+2*N^2) n Example 5:

Calculus:Taylor Series 6 n MacLaurin Series is the Taylor series approximation with a=0: n Taylor Series approximation is defined as:

Calculus:Taylor Series 7 Taylor Command taylor(f) is the fifth order MacLaurin polynomial approximation to f taylor(f,n) is the ( n -1) -st order MacLaurin polynomial taylor(f,n,a) is the Taylor polynomial approximation about point a with order ( n -1).

Calculus:Taylor Series 8 Taylor Series Example n Given the function: » sym x; » f=log(1+x) % Matlab's Natural Log f = log(1+x) 1)Find the first 6 Taylor Series Terms (a=0) 2)Find the first 4 terms about the point a=2

Calculus:Taylor Series 9 Taylor Series Terms n Find the first 6 Taylor Series Terms (a=0) » taylor(f) %Default is 5th order ans = x-1/2*x^2+1/3*x^3-1/4*x^4+1/5*x^5 » taylor(f,4,2) ans = log(3)+1/3*x-2/3-1/18*(x-2)^2+1/81*(x-2)^3 n Find the first 4 terms about the point a=2 n Note that this is 3rd order

Calculus:Taylor Series 10 Taylor Series Approximation and Comparison Example n Given the function: 1)Plot f(x) from -2  to 2  2)Find the first 8 Taylor Series Terms (a=0) 3)Plot the approximation and compare against the original function f(x)

Calculus:Taylor Series 11 Plot f(x) The easiest way to generate a graph is to use ezplot ezplot leaves the axes unlabeled » syms x » f=1/(5+4*cos(x)); » ezplot(f,-2*pi,2*pi); » grid on » xlabel('x');ylabel('f(x)')

Calculus:Taylor Series 12 Plot of f(x)

Calculus:Taylor Series 13 Taylor Approximation n To find the first 8 terms of the Taylor series approximation: » ft_8=taylor(f,8) ft_8 = 1/9+2/81*x^2+5/1458*x^4+49/131220*x^6

Calculus:Taylor Series 14 n Approximation is only good for small x Comparison » hold on » ezplot(ft_8) » axis([-2*pi 2*pi 0 5]) n Plot approximation: Taylor approximation Original f(x)

Calculus:Taylor Series 15 Summary n The symbolic toolbox can be used to analyze definite and indefinite series summations n Taylor series can be used to approximate functions n MacLaurin series is a special case of the Taylor series approximated around x=0 n Increase the number of terms to increase approximation accuracy