#set document(title: "12.3 Graphing an Equation", author: "OpenStax / XYZ Homework") #set page(width: 8.5in, height: auto, margin: 1in) #import "@preview/cetz:0.5.2" #set text(font: ("STIX Two Text", "Libertinus Serif", "New Computer Modern"), size: 10.5pt, lang: "en") #show math.equation: set text(font: ("STIX Two Math", "New Computer Modern Math")) #set par(justify: true, leading: 0.62em, spacing: 0.9em) #set enum(spacing: 1.1em) // room between list items so tall inline fractions don't collide #set list(spacing: 1.1em) #set table(stroke: 0.5pt + rgb("#c7ccd3")) #let BLUE = rgb("#183B6F") // brand navy — section bars + example/solution labels (white on navy 11.09:1) #let ORANGE = rgb("#A94509") // brand primary-700 — AA-safe deep orange for TEXT (5.93:1 on white; raw brand #F37021 is 2.94:1 and must never carry text) #let RED = rgb("#DC2626") // brand error-600 #let GREEN = rgb("#059669") // brand success-600 (decoration only; small green text uses green-text #007942) #show heading.where(level: 1): it => block(width: 100%, above: 0pt, below: 16pt, fill: gradient.linear(BLUE, rgb("#2C5AA0")), inset: (x: 14pt, y: 12pt), radius: 3pt, text(fill: white, weight: "bold", size: 19pt, it.body)) #show heading.where(level: 2): it => block(width: 100%, above: 18pt, below: 10pt, fill: BLUE, inset: (x: 10pt, y: 6pt), radius: 2pt, text(fill: white, weight: "bold", size: 12pt, it.body)) #show heading.where(level: 3): it => text(fill: ORANGE, weight: "bold", size: 12.5pt, it.body) #show heading.where(level: 4): it => text(fill: BLUE, weight: "bold", size: 10.5pt, it.body) #let examplebox(label, title, body) = block(width: 100%, breakable: true, fill: rgb("#EFF1F5"), stroke: 0.5pt + rgb("#CFDDF0"), radius: 4pt, inset: 10pt, above: 12pt, below: 12pt)[ #block(below: 6pt)[#box(fill: BLUE, inset: (x: 6pt, y: 2pt), radius: 2pt, text(fill: white, weight: "bold", size: 8.5pt, label)) #h(0.4em) #strong[#title]] #body] // rail = decorative left rule (raw brand token); labelcolor = AA-safe label text shade #let notebox(label, rail, labelcolor, tint, body) = block(width: 100%, breakable: true, fill: tint, stroke: (left: 3pt + rail), inset: (left: 10pt, rest: 8pt), radius: (right: 4pt), above: 11pt, below: 11pt)[ #text(fill: labelcolor, weight: "bold", size: 7.5pt, tracking: 0.5pt)[#upper(label)] #linebreak() #body] #let solutionbox(body) = block(above: 4pt, below: 8pt)[ #text(fill: BLUE, weight: "bold", size: 8.5pt)[Solution] #linebreak() #body] #let figph(msg) = block(width: 100%, height: 60pt, fill: rgb("#f6f7f9"), stroke: (paint: rgb("#c7ccd3"), dash: "dashed"), radius: 4pt, inset: 10pt)[ #align(center + horizon, text(fill: rgb("#889"), style: "italic", size: 9pt, msg))] // Standardize inlined figure sizes: measure the natural CeTZ canvas, then scale to a // consistent envelope (aspect-aware; see build_typst.py FIG_* constants). Unlike the // print preamble, dimensions are FLOORED: in an editor a user can trim a figure to a // degenerate 1-D shape (a bare line), and w/h or tw/w would then divide by zero. #let _STD_W = 3.5 #let _WIDE_W = 5.6 #let _MAX_H = 3.4 #let _ASPECT_WIDE = 2.2 #let _UPSCALE_MAX = 1.15 #let stdfig(body) = context { let m = measure(body) let w = calc.max(m.width / 1in, 0.01) let h = calc.max(m.height / 1in, 0.01) let tw = if w / h > _ASPECT_WIDE { _WIDE_W } else { _STD_W } let s = calc.min(tw / w, _MAX_H / h, _UPSCALE_MAX) align(center, box(scale(x: s * 100%, y: s * 100%, reflow: true, body))) } #show figure: set block(breakable: false) #set figure(gap: 8pt) #show figure.caption: set text(size: 8.5pt, fill: rgb("#555")) == 12.3#h(0.6em)Graphing an Equation We can graph equations in the variables #math.equation(block: false, alt: "x")[$x$] and #math.equation(block: false, alt: "y")[$y$]. The variable keys are located on the top row of the app 123 keyboard. There are two steps to graphing an equation: + Entering the equation + Setting the graphing window === A Basic Graph with intercepts #examplebox("Example 1")[][ Graph the equation #math.equation(block: false, alt: "x plus y equals 2")[$x + y = 2$]. In the Algebra View, Press #math.equation(block: false, alt: "x")[$x$] #math.equation(block: false, alt: "y")[$y$] = #math.equation(block: false, alt: "2")[$2$] . The output history shows #math.equation(block: true, alt: "eq1 : x plus y equals 2")[$"eq1" : x + y = 2$] and the Graphics View shows the line passing through the points #math.equation(block: false, alt: "open parenthesis 0 , 2 close parenthesis")[$( 0 , 2 )$] and #math.equation(block: false, alt: "open parenthesis 2 , 0 close parenthesis")[$( 2 , 0 )$]. If we click on either of these two points, GeoGebra will show a label and the coordinates. #figure(figph[x+y=2 on Geogebra calculator], alt: "x+y=2 on Geogebra calculator", caption: none) ] #notebox("Note", rgb("#8a94a6"), rgb("#556666"), rgb("#f7f8fa"))[ #emph[Special Points on a Graph] GeoGebra automatically highlights "Special Points" with heavy dots on the graph of an equation. GeoGebra will show a label and the coordinates of any Special Point when we clicking on it. In particular, any intercepts of a graph are Special Points. ] The size and appearance of the displayed graph will vary with the display size and orientation of device we use. We can hide the Algebra View to increase the size of the Graphics View by clicking on the arrow key at the right edge of the border between the Algebra View and the Graphics View. Clicking again on the arrow key brings back the Algebra View. === Translate and Zoom We can adjust "graphing window", called the "Graphics View" in GeoGebra, without entering numerical values. #examplebox("Example 2")[][ Continuing from Example, drag within the Graphics View so that you can see the point on the graph where #math.equation(block: false, alt: "y equals 15")[$y = 15$]. Then zoom out until you can see both that point and the origin. Solution: If we click on the arrow key at the right edge of the border between the Algebra View and the Graphics View, the Algebra View disappears to enlarge the Graphing View. But the point on the line where #math.equation(block: false, alt: "y equals 15")[$y = 15$] is still not visible. We can tap or click on the Graphics View and drag down and to the right until we can see the point #math.equation(block: false, alt: "open parenthesis minus 13 , 15 close parenthesis")[$( − 13 , 15 )$]. But the origin is no longer visible. We need to zoom out. - To Zoom out on a touch screen or touch pad, we "pinch in". - To Zoom using a mouse, click on the Graphics View, then hold the Shift key and rotate the mouse wheel forward. #figure(figph[x+y=2 translated], alt: "x+y=2 translated", caption: none) ] #notebox("Note", rgb("#8a94a6"), rgb("#556666"), rgb("#f7f8fa"))[ #emph[Retrieving the Algebra View] To access the Algebra View again, click again on the arrow at the right edge of what had previously been the border between the Graphics View and Algebra View. ] === Graphing a Function, Making a Table, and Zooming One Axis To graph an equation of the form #math.equation(block: false, alt: "y equals open parenthesis expression in x close parenthesis")[$y = ( "expression in " x )$], we only need enter the expression in #math.equation(block: false, alt: "x")[$x$]. #examplebox("Example 3")[][ Graph the equation #math.equation(block: false, alt: "y equals x squared minus 5")[$y = x^(2) − 5$] for #math.equation(block: false, alt: "x")[$x$]-values between #math.equation(block: false, alt: "minus 5")[$− 5$] and #math.equation(block: false, alt: "5")[$5$]. Clear the output history: In the Algebra View (see the Note above if the Algebra View is closed), tap the kebab menu icon (three vertical dots) in any existing history line, and select Delete. (If the menu does not apppear, you may wish to review the Note from the previous section.) In the input box, enter #math.equation(block: false, alt: "x")[$x$], then tap the squaring key, #math.equation(block: false, alt: "5")[$5$] . The output history shows #math.equation(block: true, alt: "f open parenthesis x close parenthesis equals x squared minus 5")[$f ( x ) = x^(2) − 5$] and the Graphics View shows the parabola. Tap the kebab menu icon (three vertical dots) in the output history line, and select Table of values. #figure(figph[Function options on Geogebra calculator], alt: "Function options on Geogebra calculator", caption: none) Set the Start value for #math.equation(block: false, alt: "x")[$x$] to #math.equation(block: false, alt: "minus 5")[$− 5$]. Set the End value for #math.equation(block: false, alt: "x")[$x$] to #math.equation(block: false, alt: "5")[$5$]. Set the Step value to #math.equation(block: false, alt: "1")[$1$], then click OK Click on the arrow key at the right edge of the border between the Algebra View and the Graphics View to hide the Algebra View and enlarge the Graphing View. Tap on any of the dark dots on the graph to see its coordinates. We zoom out just enough so that both #math.equation(block: false, alt: "x equals minus 6")[$x = − 6$] and #math.equation(block: false, alt: "x equals 6")[$x = 6$] are both visible on the #math.equation(block: false, alt: "x")[$x$]-axis. Now we zoom out just the #math.equation(block: false, alt: "y")[$y$]-axis (until #math.equation(block: false, alt: "y equals 20")[$y = 20$] is visible) as follows. - On a touch screen, we pinch vertically on the #math.equation(block: false, alt: "y")[$y$]-axis. - On a computer, we move the cursor above the #math.equation(block: false, alt: "y")[$y$]-axis until the cursor looks like a hand. Then holding down the Shift key, we click (the cursor changes again to an arrow pointing up to a horizontal segment), and drag down. The points #math.equation(block: false, alt: "open parenthesis minus 5 , 0 close parenthesis")[$( − 5 , 0 )$] and #math.equation(block: false, alt: "open parenthesis 5 , 0 close parenthesis")[$( 5 , 0 )$] are now visible in the Graphics View. #figure(figph[y-axis zoomed on Geogebra calculator], alt: "y-axis zoomed on Geogebra calculator", caption: none) ] We can also zoom on just the #math.equation(block: false, alt: "x")[$x$]-axis. - On a touch screen, we pinch horizontally on the #math.equation(block: false, alt: "x")[$x$]-axis. - On a computer, we move the cursor above the #math.equation(block: false, alt: "x")[$x$]-axis until the cursor looks like a hand. Then holding down the Shift key, we click (the cursor changes again to an arrow pointing right to a vertical segment), and drag left or right.