##Lab #5 Linear Functions and Equations
Now it's time for you to start using SAGE to really learn math!! We begin with linear or first degree functions since the x-variable is raised only to the first power. Please first follow these steps:
Define the variables
Define the linear function, slope_int(x) as . Note that the variable of the function is x.
Define a second type of linear function, point_slope(x) as Note that the variable of the function is again x.
Create a formula(function of and ) that calculates the slope, , when given two points, and
You have completed the basic setup at this point. Now it's time to put SAGE to work!!
Work with the slope-intercept form of a linear equation
Create and plot using the slope-intercept form the line that has slope and y-intercept. Make sure you adjust the axis settings so that you can see both the x- and y- intercept locations.
Determine to verify that the y-intercept is actually zero.
Find the x-intercept by setting your function equal to zero and solving it.
Add the two points that are the x- and y-intercepts to your line graph.
Calculate the value produced by the function for . Add this point to the graph.
Determine the x-value that produces the value 2700 and add it to the graph, making axis scale adjustments as necessary.
Work with the point-slope form of a linear equation
Create and graph the point-slope linear function that passes through the point and has slope.
Determine the y-intercept of the function by substituting 0 for x. This is called the initial value of the function.
Determine the x-intercept of the function by setting the function equal to zero and solving the equation. This is called finding the root.
Plot the point, (3,10), then find the vertical distance from this point to the line. To do this, you will have to determine the value of the function at x=3.
Create a new function with the name of your choice that models this situation: When the clock starts the position is 300 and every 15 seconds the position decreases 14 units. Graph this function and determine the position after 2 seconds. Also determine the time at which the position is zero.
Use SAGE to determine a linear function(name is your choice) that passes through the points (3,5) and (-7,-15). Plot this function, determine its slope and x- and y- intercepts.
SAGE is designed to do all the dirty work with you as a guide. Your assignment for the remainder of this lab is to create the command blocks to handle examples 1, 3, and 5 from section 1.6 on applications of linear functions. Duplicate what the authors have done using SAGE.