Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is integral expression correct? #260

Closed
pixelzoom opened this issue Mar 7, 2023 · 20 comments
Closed

Is integral expression correct? #260

pixelzoom opened this issue Mar 7, 2023 · 20 comments
Assignees

Comments

@pixelzoom
Copy link
Contributor

Noticed by @veillette. We're not sure if the integral expression is correct. It's currently:

screenshot_2373

... where x may be replace by t via Preferences.

@veillette recalls that the symbol use in the bounds (0, x) is sometimes different than the symbol in used in the integrand (f(x) dx). For example x' (x prime).

@amanda-phet can you verify what's correct, and whether we need to change anything?

@amanda-phet
Copy link
Contributor

Good catch! That is incorrect. Some point between dev4 and dev 5 that notation got changed. It is supposed to be integral from 0 --> x of f(t) dt. For the reason @veillette brings up.

Now, since we have the choice to use x or t in the preferences... we will need to do something else here, because that seems too confusing to use that notation at this point.

We also decided the prime notation isn't a good fit for calculus classes, because shorthand for derivatives is often f' or g', and while we wouldn't normally name a function x, it is still not a great choice to use x'.

I think we should change the integral bounds to be from 0 to x_0.
image

@catherinecarter does this sound good to you, too?

@catherinecarter
Copy link

catherinecarter commented Mar 7, 2023

I looked in some textbooks and saw the bounds on the integral where any of the following:

  1. bounds unknown:
  • image
  1. lower bound known but across t:

image

3. no bounds at all:

image

My concern with image is that image is usually the symbol for the starting x-value in a Riemann sum rather the end x-value of the sum. If a subscript is the preferred option, I think changing it to x-sub1 would be a little more clear (over x-sub0).

This brings up a question for me: If the letter x and t are dynamic according to the user's preferences, could the upper bound also be dynamic and follow the x-value if the values are turned on in preferences? If so, that would be pretty cool to help students notice that the area is being accumulated from 0 to whatever x their scrubber is on. If not, I'd probably vote for either choice 1 (from 0 to b) or choice 3 (no bounds at all).

Thoughts?

@pixelzoom
Copy link
Contributor Author

pixelzoom commented Mar 7, 2023

This brings up a question for me: If the letter x and t are dynamic according to the user's preferences, could the upper bound also be dynamic and follow the x-value if the values are turned on in preferences?

What do you mean by "follow the x-value"? Do you mean that if "Values" is turned on in preferences, then the bounds should change to 0 to 10? Is the really desirable or necessary? Would the student even notice?

@amanda-phet
Copy link
Contributor

My concern with image is that image is usually the symbol for the starting x-value in a Riemann sum rather the end x-value of the sum. If a subscript is the preferred option, I think changing it to x-sub1 would be a little more clear (over x-sub0).

Good point about x_0. x_1 would achieve the same result.

If not, I'd probably vote for either choice 1 (from 0 to b) or choice 3 (no bounds at all).

Can we have it with no bounds? Maybe @veillette would know, but my understanding was that we did need to have bounds, since the sim is integrating over a very certain domain (even if that value isn't shown to students).

We do know one of the bounds is 0, so a to b doesn't make sense to me. Does 0 to b make sense? why b? If you think 0 to b is clear, then that works for me.

@pixelzoom
Copy link
Contributor Author

pixelzoom commented Mar 7, 2023

We do know one of the bounds is 0, so a to b doesn't make sense to me. Does 0 to b make sense? why b? If you think 0 to b is clear, then that works for me.

That's true if you assume that the y-axis is at x=0. When "Values" is off, we are not showing any x-axis labels, including 0. So wouldn't it be more correct to show no range when "Values" is off?

@catherinecarter
Copy link

catherinecarter commented Mar 7, 2023

What do you mean by "follow the x-value"?

@pixelzoom - I meant if the values were turned on, wherever the scrubber was, say x = 4.2, then that would be the upper bound. The lower bound would stay zero.

We do know one of the bounds is 0, so a to b doesn't make sense to me. Does 0 to b make sense? why b? If you think 0 to b is clear, then that works for me.

@amanda-phet - I was thinking that if students were used to seeing a to b, but a is always zero, it would make sense to have 0 to b. But I suspect that may be confusing, so probably x-sub1 will suffice. I do think it would cool, though, for the upper bound to dynamically reflect the x-value if the values are turned on. But I don't know if that's feasible or desirable.

@veillette
Copy link
Contributor

veillette commented Mar 7, 2023

The mathematically correct answer is

image

as we deal with a definite integral. Mathematically the a is a dummy variable, in other words, it could be anything.

The bounds of the integral defines the variable of the new function, so therefore the upper bound would need to be a function of x.

This what we did in flash.
image
but used x' for the dummy variable instead. Again it could be anything.

However, I don't think we should be too much swayed by mathematically correctness. Only pedantic math professors would be offended.

@pixelzoom
Copy link
Contributor Author

pixelzoom commented Mar 7, 2023

@catherinecarter said:

What do you mean by "follow the x-value"?

@pixelzoom - I meant if the values were turned on, wherever the scrubber was, say x = 4.2, then that would be the upper bound. The lower bound would stay zero.

There is no area scrubber in the Lab screen. We need to do something that works generally for all screens.

@amanda-phet
Copy link
Contributor

Thanks @veillette . What you are saying is now ringing a bell for me. We chose 't' because that's a reasonable dummy variable, but I don't think we should do that anymore. So, in that case, @catherinecarter what do you think about Martin's comment? Should we match the flash sim and use that x'? Should we use a?

@veillette
Copy link
Contributor

I'm still biased toward using x as our dummy variable, but last time we discussed it, it was not a popular opinion.

@catherinecarter
Copy link

catherinecarter commented Mar 7, 2023

It doesn't really matter to me what's there. I'd be interested to hear from teachers to see if they notice or have a preference about it. If we leave as is, the integral will go from 0 to x, and depending on what variable is used in preferences, it will be
image
(that's a question)

@pixelzoom
Copy link
Contributor Author

pixelzoom commented Mar 7, 2023

Not sure where you got those screenshots @catherinecarter -- I'm guessing not from the sim, since they do not have a blue background. But if we leave it as is, then the upper bound also changes to match the Variable selected in Preferences:

screenshot_2380

screenshot_2379

@veillette
Copy link
Contributor

Sorry @catherinecarter for the confusion. I would propose what @pixelzoom suggested above, (which is to do nothing).

@veillette
Copy link
Contributor

But @amanda-phet was proposing/suggesting when using the x variable

$$\int_0^x f(a) da$$

and, when using the t variable

$$\int_0^t f(a) da$$

@veillette
Copy link
Contributor

By the way, I just found how to write mathematical equation in github comment: https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/writing-mathematical-expressions

@pixelzoom
Copy link
Contributor Author

Cool! Wouldn't it be nice if we could do that in PhET sims, instead of having to cobble together mathematical expressions and equations?

@catherinecarter
Copy link

Ah, I see. Thanks for the clarification @pixelzoom and @veillette. Yes, the screenshots I put into this conversation were from a Google doc. I think @amanda-phet's suggestion is great. The upper bound correctly and clearly shows the variable being used on the x-axis, and the dummy variable, a is nice and neutral.

@catherinecarter
Copy link

@veillette - curious where your bias comes from for the dummy variable being x?

@pixelzoom
Copy link
Contributor Author

pixelzoom commented Mar 7, 2023

I'm concerned about using "f(a) da", when "f(x)" is used everywhere else. I think that's going to cause confusion.

See "Terminology and Notation" in https://en.wikipedia.org/wiki/Integral:

In general, the integral of a real-valued function f(x) with respect to a real variable x on an interval [a, b] is written as

$$\int_a^b f(x) dx$$

... The function f(x) is called the integrand, the points a and b are called the limits (or bounds) of integration, and the integral is said to be over the interval [a, b], called the interval of integration. ...

When the limits are omitted, as in

$$\int f(x) dx$$

the integral is called an indefinite integral, which represents a class of functions (the antiderivative) whose derivative is the integrand. ...

So my vote is for:

$$\int_a^b f(x) dx$$ $$\int_a^b f(t) dt$$

.... and I'd be OK with replacing "a" and "b" with "0" and "10" respectively when "Values" is turned on. But I question whether anyone will notice, and whether it's worth the effort.

@pixelzoom
Copy link
Contributor Author

pixelzoom commented Mar 8, 2023

3/8/2023 design meeting: @amanda-phet @catherinecarter @kathy-phet @veillette @pixelzoom

Decided to leave it as is:

$$\int_0^x f(x) dx$$ $$\int_0^t f(t) dt$$

Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants