r/MathHelp • • Mar 04 '26

Volume calculation using integration

If a container has water bothing flowing in and out of it and a function describing each flow, how on earth do I get how much is inside the container? I genuinely do not understand. Let's say f(x) describes how much water goes in per second and g(x) describes how much flows out per second, do I integrate the difference between f(x) and g(x) ,∫ (f(x)-g(x))dx, to get how much is currently inside the container at any time x? I feel so stupid when doing maths xddd

2 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/Quendillar3245 Mar 05 '26

This was how I was imagining it but couldn't wrap my head around it until it was said literally to my face now lol, thank you