1 / 58

Part 1 Set 2: Straight Lines

Part 1 Set 2: Straight Lines. We saw earlier that ax + cy = d was the equation for a straight line. What effect do the constants a, c, and d have on the line?. Straight Lines: standard form. ax + cy = d

ugo
Download Presentation

Part 1 Set 2: Straight Lines

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Part 1 Set 2: Straight Lines We saw earlier that ax + cy = d was the equation for a straight line. What effect do the constants a, c, and d have on the line?

  2. Straight Lines: standard form ax + cy = d First of all, we can reduce the three constants, a, c, and d, down to two by dividing every term by c: (a/c)x + y = d/c . It is more convenient (as we’ll see) if we express the line as: y = (-a/c)x + (d/c), and replace the constant (-a/c) with m and the constant (d/c) with b to get: y = mx + b.

  3. Straight Lines: standard form y = mx + b To see what the constant, b, tells us, consider the point where x = 0. In this case, y = b. Thus b is the value of y when x = 0. This is called the y intercept.

  4. Straight Lines: standard form y = mx + b To see what the constant, m, tells us, consider how y changes when x changes: (y2 – y1) = ([mx2+b] – [mx1+b]) = m(x2 – x1) or, m = (y2 – y1) / (x2 – x1)= Δy/Δx. We call m the slope of the line.

  5. Straight Lines: standard form What is the difference between the four colored straight lines below?

  6. Straight Lines: standard form What is the difference between the four colored straight lines below? They all have the same slope, but their y intercepts are different! The green line has thebiggest positive b,and the red line hasthe most negative b.

  7. Straight Lines: standard form What is the difference between the four colored straight lines below?

  8. Straight Lines: standard form What is the difference between the four colored straight lines below? They all have the same y intercepts, but their slopes are different! The blue line has thebiggest positive m,and the green line hasthe most negative m.

  9. Straight Lines: parallel lines How can we recognize parallel lines?

  10. Straight Lines: parallel lines How can we recognize parallel lines? Parallel lines have the same slopebut different y intercepts. Example: these two lines are parallel: y = 2x + 6 y = 2x - 2

  11. Straight Lines: perpendicular lines 1. How can we recognize perpendicular lines? 2. If the blue line is perpendicularto the green line, is it alsoperpendicular to the red linethat is parallel to the greenline?

  12. Straight Lines: perpendicular lines The answer to the second question is YES. If the blue line is perpendicular to the green line, it is also perpendicular to the red line. This means that the y interceptis not important when it comesto lines being perpendicular.

  13. Straight Lines: perpendicular lines To answer the first question, we note that the green (and red) lines have a positive slope, while the perpendicularblue line has a negativeslope. It should be easyto see that perpendicular lineswill always have slopesthat have opposite signs.

  14. Straight Lines: perpendicular lines But not all lines with negative slopes will be perpendicular to a line with a positive slope. The purple line added belowhas a negative slope, but it isnot perpendicular to thegreen and red lines.

  15. Straight Lines: perpendicular lines We can see that as the slope of one line becomes steeper (such as the red linecompared to the green line)the slope of a line perpendicularto it must become flatter(such as the purple linecompared to theblue line).

  16. Straight Lines: perpendicular lines It turns out that the condition for two lines to be perpendicular is that the product of the slopes must equal –1. The slope of the red line is +2,while the slope of the perpendicular purpleline is –1/2. The slope of the greenline is +1/3, whilethe slope of theperpendicular blueline is –3.

  17. Straight Lines: scaling effects Scaling on the axes can affect the appearance of straight lines. Below the perpendicular lines with equations y = (1/5)x + 1 and y = -5x +1 are plotted on two graphs with different scales on the x axes. 2 2 -2 2 4 -10 10 20 -2 -2

  18. Straight Lines: scaling effects Try this yourself on your calculator. Choose two lines that are perpendicular. Graph them. Then change the scale for x and re-graph them. Then change the scale for y and re-graph them.

  19. Straight Lines: info needed If we know the slope (m) and the y-intercept (b), we can write the equation for the line: y = mx + b . Are there other pieces of information that we can use to determine the equation for the line? What information would be sufficient to determine the equation?

  20. Straight Lines: info needed If we are given two points, such as A at (-2,1) and B at (4,2), can we determine the equation of the straight line that connects them? In other words, how can we determine the slope,m, and the y intercept, b, so wecan determine theequation for this linein the form: y = mx + b? B A

  21. Straight Lines: info needed A at (-2,1) and B at (4,2). From the definition of slope as Δ(y)/Δ(x), we have: m = (2 – 1) / (4 – (-2)) = 1/6. Now if we use either point for x and yin the basic equation y = mx+b, we can determine b.Using point A: y = mx + b becomes1 = (1/6)*-2) + b, so b = 1 + 1/3 = 4/3.Therefore we have: y = (1/6)x + 4/3 B A

  22. Straight Lines: info needed As you can see from the previous case, if we know one point and the slope, we can also determine the equation for the straight line in standard form: y = mx+b . Review: what we need to know to determine the equation for a straight line is:1. slope and y intercept; or2. any two points; or3. slope and any one point.

  23. Straight lines: symmetry Do straight lines have any kind of symmetry? (through the origin, reflection through the vertical or reflection through the horizontal axes)?

  24. Straight lines – symmetry There is a sameness since straight lines are straight – the slope of the line doesn’t change. However, there are no reflection symmetries and, unless b=0 there is no symmetry through the origin. If b=0, we have the special case of our linear relation being a proportional relation and that does have symmetry through the origin.

  25. Inverses Whenever we do an operation or express a relation, is there an operation or a relation that will “undo” the initial operation or relation to get us back to where we started? How about the operation of addition? Does it have an “inverse operation”? How about the operation of multiplication? Does it have an “inverse operation”? How about the operation of squaring? Does it have an “inverse operation”?

  26. Inverses For addition: y = x + c. To get x back, we use subtraction: x = y – c. Example: let c = 5. If x = 3, then y = 3 + 5 = 8. To get x back, x = y – c = 8 – 5 = 3. For multiplication: y = c*x. To get x back, we use division: x = y/c.Example: let c = 5. If x = 3, then y = 3 * 5 = 15. To get x back, x = y/c = 15/5 = 3. For squaring: y = x2. To get x back,we use the square root operation: x = √y.Example: If x=3, then y = 32 = 9.To get x back, x = ±√9 = ±3.

  27. Inverses Do inverses exist for relations, like our linear one: y = mx + b ? If so, what would it look like?

  28. Inverses y = mx + b Example: suppose m = 4 and b = -8.If x = 3, then y = (4)*(3) + -8 = 4.How do we take y=4 and get back to x=3? Let’s solve the above equation for x: x = (1/m)y – (b/m). If we now substitute m = 4, b = -8, and y = 4, do we get back to x = 3?x = (1/4)(4) – (-8/4) = 1 + 2 = 3.

  29. Inverses Regular linear relation: y = mx + b Inverse relation: x = (1/m)y – (b/m) In general, note that y = mx + b = m[(1/m)y – (b/m)] + b = y.

  30. Inverses If we look at the graphs of y vs. x, and its inverse relation of x vs. y, we see (for our case of m=4 and b=-8):y = 4x + -8 x = (1/4)y – (-8/4) x y 8 8 -16 -8 8 16 x -16 -8 8 16 y -8 -8

  31. Inverses To get the x vs. y graph, you take the y vs. x graph, rotate it 90 degrees (to bring the vertical y to become horizontal), and then flip it (about the horizontal axis to bring the +x from the bottom to the top) y = 4x + -8 x = (1/4)y – (-8/4) y x 8 8 -16 -8 8 16 x -16 -8 8 16 y -8 -8

  32. Inverses Another way is to recognize that the point (x,y) on the first graph is plotted (y,x) on the second graph. If we draw a line y=x, the inverse will graph as the reflection through this line y = 4x + -8 x = (1/4)y – (-8/4) y x 8 8 -16 -8 8 16 x -16 -8 8 16 y -8 -8

  33. Computer Homework You should be able to do the third computer homework assignment on Linear Equations, Vol. 0, #2.

  34. Straight Lines: from data Sometimes we have a bunch of data points, and if we plot the data points, we see that the points seem to fit (more or less) a straight line.

  35. Straight Lines: from data We could try to draw a straight line through the data points and then use the two points method (with both points as close to our line as possible, or better yet, choose two points on the line) for determining that line. But is there a way to determine how well the data fit the line, and a way to get the line with the “best” fit? Note: not all data will fit a linear model all that well. We’ll develop other possible models as we go through the course.

  36. Straight Lines: from data One way to determine how well the line fits the data is to measure how far (in the y direction) each data point is removed from our line. This “distance” for each point is called the residual. For points above the line the residual will be positive, and for those below the line the residual will be negative. It would seem a good idea to adjust our line so that the sum of the residuals will be zero.

  37. Straight Lines: from data However, there may be lots of lines we can draw that will have the sum of the residuals be zero. How can we choose among these lines?

  38. Straight Lines: from data One of the “best fit” lines is called the least squares regression line. In this method we minimize the sum of the squares of the residuals. Your calculator and some spreadsheets can perform this process which is called linear regression. A measure of how well this “best” line fits the data is the correlation coefficient, r. The value of r will always be between –1 and 1, and a perfect fit will have |r| = 1, so the closer r is to zero the worse the fit. Note: This method assumes each data point is equally as good as any other. In MATH 201 and MATH 309 we discuss this topic in much greater detail.

  39. Straight Lines: from data Instructions for calculator: (type from Home screen){1,2,3,4,5}→L1 (enter) (where 1,2,3,4,5 are the x values; → is found near top of catalog menu, use alpha key to type letter L){2,4,6,8,10.3 }→L2 (enter) (where 2,4,6,8,10.3 are the y values)LinReg L1,L2 (enter) (use alpha key to type letters)ShowStat (enter) (use alpha key to type letters)Regeq(x) →y1(x) NewPlot 1,1,L1,L2 (enter) (use alpha key to type letters)(press the diamond then graph key)

  40. Regular Homework Set #3(continued on next page) 1. Plot the data on the right (I suggest xythat you use an excel spreadsheet 1 20 to create and print out the graph, 2 32 and use your eye and a ruler to 3 39 draw the best line and then 4 49 determine the equation of your line. 5 61 2. Use your calculator to perform the 6 68 the linear regression, and compare its 7 77 equation with yours by calculating each of its residuals, each of the squares of its residuals, the sum of its residuals, and the sum of the squares of its residuals.

  41. Regular Collected Homework(continued from previous page) • Put the equation 6x + 4y = 11 in the standard linear form: y = mx + b • What is the equation of the line (in standard form) that is perpendicular to the line of problem 3? • What is the equation (in standard form) for the line that goes through the points (-2,7) and (8,-3)?

  42. Straight Lines: systems If we have a linear equation, for each value of x there is a value of y. Example:y = 5x – 7. The following points satisfy this equation: (0, -7); (2, 3); (10, 43); as well as an infinite number of other points. Any point “on the line” satisfies this equation. Suppose, though, that we need to find a point or points that satisfy two linear equations at the same time. Can we do this? How many points can we expect to find that do satisfy both conditions (equations) at the same time (simultaneously)?

  43. Straight Lines: systems We can “see” this question if we use graphs. Let’s start out with an example. Is there a point or points that will satisfy bothy = 3x – 7 and y = -2x +4 ? As we can see, there is onepoint of intersection whichis on both lines, and so is asolution of both equations.

  44. Straight Lines: systems y = 3x – 7 and y = -2x +4 You can use your graphing calculator to locate (reasonably closely) the point of intersection. Do this now. By looking at the graph,can you see any casesin which there is nosolution, or any caseswhere there would bemore than one solution?

  45. Straight Lines: systems If the lines are parallel, we know that parallel lines never meet, so there would be zero points of intersection and hence zero solutions. The condition forparallel lines is that theslopes of the two linesare the same, but theyhave different y intercepts.

  46. Straight Lines: systems However, if the two lines are really the same line (same slope, same y intercept), then we don’t really have two separate equations, we only have one. So in this case, there would be an infinite number of solutions (just like one equation).

  47. Straight Lines: systems As long as we have two equations that are not parallel and not just different forms of the same equation, we can expect that there will be one answer. We can graphically get an approximate answer. Can we calculate the answer? We’ll now look at two methods.

  48. Straight Lines: systems Simultaneous Equations Method of Substitution In this method, we use one equation to express one of the unknowns, say y, in terms of the other unknown, x. We then substitute this expression for y in the other equation. On the next slide we show an example.

  49. Straight Lines: systems Example: 3x + 4y = 14 and 2x – 7y = -5 First we solve one equation for one of thevariables. Let’s choose the first equation and solve for y: y = (-3/4)x + 14/4 . Now we substitute this expression for y into the second equation: 2x – 7((-3/4)x + 14/4)= -5 Multiplying it out gives: 2x + (21/4)x – 98/4 = -5 Combining terms gives: (29/4)x = 78/4 , or x = 78/29 ≈ 2.690. We now substitute this into the y equation above to get y = (-3/4)(78/29) + 14/4 ≈ 1.483 . Our solution: x ≈ 2.690, y ≈ 1.483 . Check: 3(2.690) + 4(1.483) ≈ 14 and 2(2.690) – 7(1.483) ≈ -5 .

  50. Straight Lines: systems Simultaneous Equations Method of Elimination In this method, we multiply through each equation by a factor that will make the coefficient of one of the variables to be 1. We then subtract the two equations which results in one of the variables being eliminated. We demonstrate this method next through an example.

More Related