Finding the Linear Equation Relating Price and Number of Widgets Sold

In summary, to find the linear equation relating price and number of widgets sold per day, you can use the slope formula and two given points on the graph. Alternatively, you can use the point-slope formula or write the equation in the form y = ax + b and solve for the coefficients a and b using the given points on the graph.
  • #1
woof123
9
0
Okay here's the question:

If you sell widgets for 2 dollars, you sell 300 per day. If you sell them for 4 dollars, you sell 200 per day. assume linear relat., between price (x) and # widgets sold per day (y), write linear equation relating x and y

I'm thinking I plot the x,y pairs, then calculate slope and the y intercept in order to put it into y=mx+b form...does that make sense?
 
Mathematics news on Phys.org
  • #2
You have two points on the graph, so you can compute the slope as follows:

\(\displaystyle m=\frac{\Delta y}{\Delta x}=\frac{y_2-y_1}{x_2-x_1}\)

Then, you can use either point (I'll use the first), and the slope you computed, in the point-slope formula:

\(\displaystyle y=m(x-x_1)+y_1\) :D
 
  • #3
Equivalently, any linear function can be written y= ax+ b for numbers a and b. The fact that y(2)= 300 means that 2a+ b= 300. The fact that y(4)= 200 means that 4a+ b= 200. Solve those two equations for a and b.

(An obvious point is that there is "b" with coefficient 1 in both equations. Subtracting one equation from the other eliminates b leaving a single equation for a. Do you see that this is the same as your formula for slope? And then using that value of a in one of the two equations to find b is the same as MarkFL suggests.)
 

FAQ: Finding the Linear Equation Relating Price and Number of Widgets Sold

What is a linear relationship?

A linear relationship is a mathematical relationship between two variables that can be represented by a straight line on a graph. This means that as one variable increases or decreases, the other variable changes at a constant rate.

How do you determine if a relationship is linear?

To determine if a relationship is linear, you can plot the data points on a graph and see if they form a straight line. You can also perform a linear regression analysis, which calculates the correlation coefficient (r) between the two variables. If the correlation coefficient is close to 1 or -1, then the relationship is considered to be linear.

What is the difference between a linear and a non-linear relationship?

A linear relationship is a straight line on a graph, while a non-linear relationship is a curved line or a pattern that does not follow a straight line. In a linear relationship, the change in one variable is directly proportional to the change in the other variable, while in a non-linear relationship, this is not the case.

How do you calculate the slope of a linear relationship?

The slope of a linear relationship is calculated by dividing the change in the y-values (vertical) by the change in the x-values (horizontal). This can be represented by the formula: slope = (y2 - y1) / (x2 - x1), where (x1, y1) and (x2, y2) are any two points on the line.

What is the significance of a linear relationship in science?

A linear relationship is significant in science because it allows us to make predictions and draw conclusions about how one variable affects the other. It also helps us to identify patterns and trends in data, which can be used to make informed decisions and further our understanding of the natural world.

Similar threads

Back
Top