Linear Functions

But first...

CoCalc tips

  • Google: git markdown cheat sheet.
  • Google: sagemath [...whatever]
  • ...or, guess and try something.
  • Mac cut and paste shortcuts: []+C, []+V
  • When lab is due (following Thursday evening), your entire 'assignment-01' folder gets copied to me: No need to 'hand in' anything.

Slope!

Image Credits

https://flickr.com/photos/gerarddonnelly/4508431509/
https://flickr.com/photos/djwave7/34984338942/
https://flickr.com/photos/willj/14867009398/
https://flickr.com/photos/69946373@N00/1214759537/
https://flickr.com/photos/jennydegroot/33954903/
https://flickr.com/photos/fraggy/11147272655/
https://flickr.com/photos/53680816@N08/17210434449/in/photostream/
https://flickr.com/photos/nuni/3816765021/in/photostream/

Slope: Rise over run

The slope, $m$, of the line that connects two points...

11% slope mean... the road goes up (or down) by 11 feet for every 100 feet forward.

...or up/down by 11 meters for every 100 meters forward

The units of slope are [rise units]/[run units] or [y units]/[x units].

  1. It costs $C$ dollars to extract $T$ tons of ore from a copper mine. If $C$ is a linear function of $T$, the units of the slope of the line are...
    1. Tons
    2. Dollars
    3. Tons/dollar
    4. Dollars/ton
    show / hide
    "Output" units of the function are dollars, and "input" units are tons. So the answer is d.) Dollars / ton

Point slope form

If you know the slope of a line and any one point on the line...

$$m=\frac{(y-y_0)}{(x-x_0)}$$ with a little algebra...

$$y-y_0=m(x-x_0).$$

Usual equation for a line

If we use the point slope form where the one known point is the vertical intercept...

$$\begineq y-b=&m(x-0)\\ \Rightarrow y=&mx+b\endeq$$

  1. Assume $y=100-2x$. If $x$ goes up by 3, the corresponding $y$-value changes by
    (a) 300  (b) -300  (c) 6  (d) -6   (e) 94  (f) -94
    show / hide
    The slope, $m=-2$ is the rate of change of the output when you change the input by 1 unit.

    We're changing the input by 3 units. So the change of the function is $3m=3*(-2)=$-6. Answer (d).
  2. Equation of this line?
    Use the $y$-intercept, (0,6), and the $x$-intercept, (2,0), as the two points to find the slope: $$m=\frac{\Delta y}{\Delta x}=\frac{0-6}{2-0}=-frac{-6}{2}=-3.$$ The $y$-intercept, 6, for the common equation of the line is "$b$". So the equation is $$y=mx+b=\color{blue}{-3x+6}.$$
  3. Which of the following lines have the same slope?
    1. $y=3x+2$
    2. $3y=9x+4$
    3. $3y=2x+6$
    4. $2y=6x+4$
    Using algebra, equations a), b), and d) can all be rearranged to $y=3x+...$. (The slope of equation c) is 2/3).

Shock

verbal When a person goes into shock, their cardiac output, in liters of blood per minute, decreases. One person's output is 12 liters per minute when she first goes into shock, and decreases by 2 liters per minute every hour she is in shock.

    table Construct a table for her cardiac output for the first 5 hours
    time (hrs)01234
    output (l/min)1210864
  1. graph Graph these points
  2. analytical What is the equation for the line through these points?
    Vertical intercept is 12, slope is -2... $$\color{blue}{o(t)=12-2t}$$
  3. Linear data?

    In table (b) the output changes by -3 each time the input changes by 1.

    None of the others are linear. For example, in table (d), the output is changing by 2 in each line of the table, but the input is changing first by 1, then by 2...

You may think this is just a review of some material you've seen in a previous class, quickly reviewed and then used infrequently. But slope is a big deal! It is the fundamental notion behind the differential in calculus. You will find yourself repeatedly calculating slopes from 2 points, and using them in previously unthinkable ways!

So, you should know this material **cold**!

Greta Rybus

[1.3] Average rate of change

The change in a function...

For functions that are not linear, we can still define an average rate of change for a particular interval.

If $y$ is a function of $t$, the average rate of change of $y$ between $t=a$ and $t=c$ is $$\frac {\Delta y}{\Delta t}=\frac{f(c)-f(a)}{c-a}$$

From a table

This table gives sales of the medicinal herb saw palmetto, in millions of dollars, for several years.

Year19971998199920002001
Sales (million $)85107116122 123
What is the average rate of change of sales for the period from 1997 to 2001?

The average rate of change between 1997 and 2001 was: $$\frac{\Delta y}{\Delta x}=\frac{123-85}{2001-1997} =\frac{38}{4}=9.5 \text{ million \$ per year}$$ (b) increased by an average of 9.5 million \$ each ("per") year

Say for each interval whether the average rate of change is positive, negative, or zero.

Between $x=1$ and $x=3$. positive (increasing)

Between $x=4$ and $x=8$.negative (decreasing)

Between $x=4$ and $x=6.$\approx 0$ (flat): $y(4)$ and $y(6)$ are approximately the same.

Motion

Which of the following graphs might represent the position of an object which is slowing down?

Speed is the instantaneous slope on a position vs time graph. Both (a) and (c) start shallow (slow) and become steep (fast). But graph (b) starts steep (fast) and becomes shallower (slower).

Concavity

(true or false) The graph of any function is always either concave up or concave down.