For the following problem we want to find a linear equation that passes through the following two points: (-5,8), (7,-9). The general equation for a line is: y = mx + b a Create two symbolic variables, m and b. Looking at the general equation above, we can subtract y from both sides to get the following expression: 0 = mx + b-y. Now that our equation is in this format, we can create two equations, eqn1 and eqn2 using the two (x,y) coordinates given above. Use the solve function to solve the system of equations. Call these solutions sol m and sol b. Plot the solution of the line that passes through the two points (create the line using sol m and sol b and define a new symbolic variable, x). Label the axes and give the plot a title. Change the line to a magenta dash-dotted line and limit both x and y axes from - 10 to 10

Elementary Geometry For College Students, 7e
7th Edition
ISBN:9781337614085
Author:Alexander, Daniel C.; Koeberlein, Geralyn M.
Publisher:Alexander, Daniel C.; Koeberlein, Geralyn M.
ChapterP: Preliminary Concepts
SectionP.CT: Test
Problem 1CT
icon
Related questions
Question
For the following problem we want to find a linear equation that passes through the following
two points:
(-5,8), (7,-9). The general equation for a line is: y = mx + b
a Create two symbolic variables, m and b. Looking at the general equation above, we can
subtract
y from both sides to get the following expression: 0 = mx + b-y. Now that our equation is in this
format, we can create two equations, eqn1 and eqn2 using the two (x,y) coordinates given above.
Use the solve function to solve the system of equations. Call these solutions sol m and sol b.
Plot the solution of the line that passes through the two points (create the line using sol m and sol
b and define a new symbolic variable, x). Label the axes and give the plot a title.
Change the line to a magenta dash-dotted line and limit both x and y axes from - 10 to 10
Transcribed Image Text:For the following problem we want to find a linear equation that passes through the following two points: (-5,8), (7,-9). The general equation for a line is: y = mx + b a Create two symbolic variables, m and b. Looking at the general equation above, we can subtract y from both sides to get the following expression: 0 = mx + b-y. Now that our equation is in this format, we can create two equations, eqn1 and eqn2 using the two (x,y) coordinates given above. Use the solve function to solve the system of equations. Call these solutions sol m and sol b. Plot the solution of the line that passes through the two points (create the line using sol m and sol b and define a new symbolic variable, x). Label the axes and give the plot a title. Change the line to a magenta dash-dotted line and limit both x and y axes from - 10 to 10
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer