Mixing units with functions or derivatives?

Click For Summary
Correct usage of units in mathematical functions and derivatives is essential for clarity. In the example of a car that travels 17 miles per gallon, the function m(g) = 17g accurately describes the distance based on gallons of fuel. The derivative dm/dg = 17 miles/gallon is also correct, as it reflects the rate of distance per gallon. It is acceptable to express the equation as m(g) = 17(miles/gallon)*g, as this maintains unit consistency. Properly defining variables with their units ensures that equations are meaningful and clear.
christian0710
Messages
407
Reaction score
8
Hi,
How do you correctly use units when writing derivatives and functions in math?

Example

A car goes 17miles per gallon, so a function m with the equation m(g)=17g describes the distance it can go with g gallons.

And the derivative dm/dg = 17 miles/gallon. Question: could you write the equation as m(g)=17(miles/gallon)*g or is that incorrect?
 
Physics news on Phys.org
christian0710 said:
could you write the equation as m(g)=17(miles/gallon)*g ?
Yes. That would be correct.
 
christian0710 said:
Hi,
How do you correctly use units when writing derivatives and functions in math?

Example

A car goes 17miles per gallon, so a function m with the equation m(g)=17g describes the distance it can go with g gallons.

And the derivative dm/dg = 17 miles/gallon.Question: could you write the equation as m(g)=17(miles/gallon)*g or is that incorrect?
Your question is confusing. It looks like you are asking is m(g)=17g correct, if m(g)=17g, except you are writing a label for 17?
 
When you are defining a variable, you can give it its unit right away or not.
So if you say ##m## is the distance the car can drive, then the variable ##m## has already contained the unit, maybe miles. So you should write:$$m=17mile/gallon\cdot g.$$You can see here my ##g## has also contained its unit: gallon, but 17 not, so then I write 17mile/gallon in the equation.
By the way, we seldom use ##m## to represent the distance because it is more often used to say mass, but it doesn't matter while it just depends on one's habits.
 
  • Like
Likes christian0710
It should be evident that if m is a distance, measured in miles, and g is a quantity of gasoline, measured in gallons, then in order that "m (miles)= k g(gallons) make sense, k must be in "miles per gallon" so that (k miles/gallon)(g gallons)= kg miles.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 19 ·
Replies
19
Views
8K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 2 ·
Replies
2
Views
8K