ENGR-25_Lec-28_Excel-1.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical & Mechanical Engineer Engr/MATH/Physics 25 Sketch Fcn Graphs by MuPAD
ENGR-25_Lec-28_Excel-1.ppt 2 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods ReCall from MTH1 Graph Sketching Determine horizontal and vertical asymptotes of a graph Use Algebra to find Axes InterCepts on a Function Graph Use Derivatives to find Significant Points on the graph Discuss and apply a general procedure for sketching graphs
ENGR-25_Lec-28_Excel-1.ppt 3 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods T-Table Can Miss Features Consider the Function Make T-Table, Connect-Dots xY
ENGR-25_Lec-28_Excel-1.ppt 4 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods MATLAB Code MATLAB Code % Bruce Mayer, PE % MTH-15 13Jul13 % XYfcnGraph6x6BlueGreenBkGndTemplate1306.m % ref: % % The Limits xmin = -35; xmax = 25; ymin = -15; ymax = 40; % The FUNCTION x = linspace(xmin,xmax,500); y = 10*x.*(x+8)./(x+10).^2; % % The ZERO Lines zxh = [xmin xmax]; zyh = [0 0]; zxv = [0 0]; zyv = [ymin ymax]; % % the 6x6 Plot axes; set(gca,'FontSize',12); whitebg([ ]); % Chg Plot BackGround to Blue-Green plot(x,y, 'LineWidth', 4),axis([xmin xmax ymin ymax]),... grid, xlabel('\fontsize{14}x'), ylabel('\fontsize{14}y = f(x) = = 10x(x+8)/(x+10)^2'),... title(['\fontsize{16}MTH15 GraphSketching',]),... annotation('textbox',[ ], 'FitBoxToText', 'on', 'EdgeColor', 'none', 'String', 'XYfcnGraph6x6BlueGreenBkGndTemplate1306.m','FontSize',7) hold on plot(zxv,zyv, 'k', zxh,zyh, 'k', 'LineWidth', 2) plot([ ], [ymin, ymax], '-- m', [xmin xmax],[10 10], '-- m', 'LineWidth', 2) set(gca,'XTick',[xmin:5:xmax]); set(gca,'YTick',[ymin:5:ymax])
ENGR-25_Lec-28_Excel-1.ppt 5 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods T-Table Can Miss Features But Using Methods to be Discussed, Find
ENGR-25_Lec-28_Excel-1.ppt 6 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods MATLAB Code MATLAB Code % Bruce Mayer, PE % MTH-15 23Jun13 % XYfcnGraph6x6BlueGreenBkGndTemplate1306.m % ref: % % The Limits xmin = -5; xmax = 5; ymin = -6; ymax = 3; % The FUNCTION x = [ ]; y = [ ] % % The ZERO Lines zxh = [xmin xmax]; zyh = [0 0]; zxv = [0 0]; zyv = [ymin ymax]; % % the 6x6 Plot axes; set(gca,'FontSize',12); whitebg([ ]); % Chg Plot BackGround to Blue-Green plot(x,y, 'LineWidth', 4),axis([xmin xmax ymin ymax]),... grid, xlabel('\fontsize{14}x'), ylabel('\fontsize{14}y = f(x) = 10x(x+8)/(x+10)^2'),... title(['\fontsize{16}MTH15 GraphSketching',]),... annotation('textbox',[ ], 'FitBoxToText', 'on', 'EdgeColor', 'none', 'String', 'XYfcnGraph6x6BlueGreenBkGndTemplate1306.m','FontSize',7) hold on plot(x,y, 'x m', 'MarkerSize', 15, 'LineWidth', 3) plot(zxv,zyv, 'k', zxh,zyh, 'k', 'LineWidth', 2) set(gca,'XTick',[xmin:1:xmax]); set(gca,'YTick',[ymin:1:ymax] hold off
ENGR-25_Lec-28_Excel-1.ppt 7 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods T-Table Can Miss Features In Order for T-Tables & ConnectDots to properly Characterize the Fcn Graph, the Domain (x) Column must Cover sufficiently Wide values Have sufficiently small increments Unfortunately the Grapher does NOT know a-priori the x Span ∆x Increment Size x-Span InSufficent
ENGR-25_Lec-28_Excel-1.ppt 8 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Better Graphing GamePlan 1.Find THE y-Intercept, if Any a.Set x = 0, find y b.Only TWO Functions do NOT have a y-intercepts –Of the form 1/x –x = const; x ≠ 0 2.Find x-Intercept(s), if Any a.Set y = 0, find x b.Many functions do NOT have x-intercepts
ENGR-25_Lec-28_Excel-1.ppt 9 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Better Graphing GamePlan 3.Find VERTICAL (↨) Asymptotes, If Any a.Exist ONLY when fcn has a denom b.Set Denom = 0, solve for x –These Values of x are the Vertical Asymptote (VA) Locations 4.Find HORIZONTAL (↔) Asymptotes (HA), If Any a.HA’s Exist ONLY if the fcn has a finite limit-value when x→+∞, or when x→−∞
ENGR-25_Lec-28_Excel-1.ppt 10 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Better Graphing GamePlan b.Find y-value for: –These Values of y are the HA Locations 5.Find the Extrema (Max/Min) Locations a.Set dy/dx = 0, solve for x E b.Find the corresponding y E = f(x E ) c.Determine by 2 nd Derivative, or ConCavity, test whether (x E, y E ) is a Max or a Min –See Table on Next Slide
ENGR-25_Lec-28_Excel-1.ppt 11 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Better Graphing GamePlan –Determine Max/Min By Concavity 6.Find the Inflection Pt Locations a.Set d 2 y/dx 2 = 0, solve for x i b.Find the corresponding y i = f(x i ) c.Determine by 3 rd Derivative test The Inflection form: ↑-↓ or ↓-↑
ENGR-25_Lec-28_Excel-1.ppt 12 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Better Graphing GamePlan 7.Find the Inflection Pt Locations a.Set d 2 y/dx 2 = 0, solve for x i b.Find the corresponding y i = f(x i ) c.Determine by 3 rd Derivative test The Inflection form: ↑-↓ or ↓- ↑ –Determine Inflection form by 3 rd Derivative
ENGR-25_Lec-28_Excel-1.ppt 13 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Better Graphing GamePlan 8.Sign Charts for Max/Min and ↑-↓/↓-↑ a.To Find the “Flat Spot” behavior for dy/dx = 0, when d 2 y/dx 2 exists, but [d 2 y/dx 2 ] xE = 0 use the Direction-Diagram abc −−−−−−++++++−−−−−− x Slope df/dx Sign Critical (Break) Points MaxNO Max/Min Min
ENGR-25_Lec-28_Excel-1.ppt 14 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Better Graphing GamePlan 9.Sign Charts for Max/Min and ↑-↓/↓-↑ a.To Find the ↑-↑ or ↓-↓ behavior for d 2 y/dx 2 = 0, when d 3 y/dx 3 exists, but [d 3 y/dx 3 ] xi = 0 use the Dome-Diagram abc −−−−−−++++++−−−−−− x ConCavity Form d 2 f/dx 2 Sign Critical (Break) Points InflectionNO Inflection Inflection
ENGR-25_Lec-28_Excel-1.ppt 15 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Example Sketch Rational Fcn Sketch Set x = 0 to Find y-intercept Thus y-intercept → (0, 4/3) Set y = 0 to Find x-intercept(s), if any
ENGR-25_Lec-28_Excel-1.ppt 16 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Example Sketch Rational Fcn y=0: Solving for x: Finding y(x):
ENGR-25_Lec-28_Excel-1.ppt 17 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Example Sketch Rational Fcn The x-Intercepts (½,0); Multiplicity = 1 (LINE-Like) (−2,0); Multiplicity = 2 (PARABOLA Like) The Horizontal Intercept(s)
ENGR-25_Lec-28_Excel-1.ppt 18 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Example Sketch Rational Fcn Continuing with the Limit Thus have a HORIZONTAL asymptote at y = 0
ENGR-25_Lec-28_Excel-1.ppt 19 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Example Sketch Rational Fcn To Find VERTICAL asymptote(s) set the DeNom/Divisor = 0 Using Zero Products Thus have VERTICAL Asymptotes at –x = −1 –x = 3
ENGR-25_Lec-28_Excel-1.ppt 20 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Example Sketch Rational Fcn Use Computer Algebra System, MuPAD to find and Solve Derivatives From the Derivatives Find Min at (−2,0) → ConCave UP Inflection Points –↓-to-↑ at (− , ) –↑-to-↓ at ( , − )
ENGR-25_Lec-28_Excel-1.ppt 21 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods The Graph
ENGR-25_Lec-28_Excel-1.ppt 22 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods
ENGR-25_Lec-28_Excel-1.ppt 23 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods
ENGR-25_Lec-28_Excel-1.ppt 24 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods
ENGR-25_Lec-28_Excel-1.ppt 25 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods
ENGR-25_Lec-28_Excel-1.ppt 26 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods
ENGR-25_Lec-28_Excel-1.ppt 27 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods All Done for Today A Graphic Scaling Machine