Solving problems using the Average Value function

Click For Summary

Discussion Overview

The discussion revolves around calculating the average value of a function representing miles per gallon (mpg) over a specified time interval using integral calculus. Participants explore the setup and execution of the integral, as well as formatting issues related to LaTeX in forum posts.

Discussion Character

  • Mathematical reasoning
  • Technical explanation
  • Meta-discussion

Main Points Raised

  • One participant presents an integral setup to find the average value of the function $mpg(t) = 30 + 10\sin(t)$ over the interval $0 \leq t \leq \pi$.
  • Another participant confirms the correctness of the initial calculation.
  • A third participant points out a minor error in notation regarding the use of $x$ instead of $t$ in the antiderivative and offers advice on improving LaTeX formatting.
  • Subsequent posts discuss the convenience of using dollar signs for LaTeX versus the Sigma button for better formatting, with participants sharing their preferences and methods.

Areas of Agreement / Disagreement

Participants generally agree on the correctness of the integral setup, but there is a minor disagreement regarding notation. The discussion about LaTeX usage reflects varying preferences without a consensus on the best approach.

Contextual Notes

Some assumptions about the integral's limits and the function's behavior may not be explicitly stated. The discussion also highlights the potential for confusion in notation and formatting in mathematical expressions.

shamieh
Messages
538
Reaction score
0
The miles per gallon of my car on a recent trip at time t was given by $mpg(t) = 30 + 10sin(t)$ where $0 <= t <= \pi$. Find the average value of $mpg(t)$ over this time interval.

So I'm kind of confused on how to do this. Here is what I have set up, let me know if I'm on the wrong track or not. Thanks in advance.

$\frac{1}{\pi} \int^\pi_0 (30 + 10sin(t)) \, dt$

$\frac{1}{\pi} [30x - 10cos(t)]$ $|^\pi_0$

$\frac{1}{\pi} ( [30\pi + 10] + [+10])$

$\frac{1}{\pi} [30\pi + 20]$

= $\frac{30\pi}{\pi} + \frac{20}{\pi} = \frac{30\pi + 20}{\pi}$

By the way I just completely guessed on how to do this, so this attempt may look idiotic lol. Thanks again.
 
Physics news on Phys.org
This is correct.
 
I only have one very minor quibble...in your second line of work, you have an $x$ in your antiderivative when you have integrated with respect to $t$, but I highly suspect this is just a typo.

In your $\LaTeX$ coding, you may precede trigonometric (and other pre-defined) functions with a backslash so that they are not italicized and will not look like a string of variables. For example:

tan(\theta) gives $$tan(\theta)$$

whereas:

\tan(\theta) gives $$\tan(\theta)$$

Also, I highly recommend using the $$\Sigma$$ button on our toolbar to generate MATH tags rather than using the dollar sign tags. The button automatically generates the command \displaystyle which makes certain commands large and look better. Compare the difference:

\$\frac{1}{\pi} \int^\pi_0 (30 + 10\sin(t)) \, dt\$ gives $\frac{1}{\pi} \int^\pi_0 (30 + 10\sin(t)) \, dt$

whereas:

$$\frac{1}{\pi} \int^\pi_0 (30 + 10\sin(t)) \, dt$$ gives $$\frac{1}{\pi} \int^\pi_0 (30 + 10\sin(t)) \, dt$$
 
Ahh thank you Mark, I will definitely absorb that advice.
 
Hey Mark, sorry to double post. The reason I have been using the $ for LaTEx is because it is so convenient to just type rather than using the Sigma button to highlight and then click and then highlight and click... I was wondering is there a ctrl key or some shortcut I can do to just implement latex with that button WITHOUT typing [math every time? Was just curious.
 
shamieh said:
Hey Mark, sorry to double post. The reason I have been using the $ for LaTEx is because it is so convenient to just type rather than using the Sigma button to highlight and then click and then highlight and click... I was wondering is there a ctrl key or some shortcut I can do to just implement latex with that button WITHOUT typing [math every time? Was just curious.

What I do is click the button first, and then enter the code (you will find your cursor is conveniently placed at the proper place to begin entering your code). Doing it this way is a bit quicker than typing out the dollar sign tags, and the result is much better looking output that results from the BBCode associated with the MATH tags, i.e., the inclusion of the \displaystyle command. :D
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 8 ·
Replies
8
Views
9K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K