457
submitted 7 months ago by FatTony@lemmy.world to c/memes@lemmy.world
all 37 comments
sorted by: hot top controversial new old
[-] FatTony@lemmy.world 43 points 7 months ago* (last edited 7 months ago)

So let's take a random graph. You ever wonder what the the exact slope of a random angle is? Well with differentiation you can actually use maths to figure this out.

Normally you would take two points near each other, draw perhaps a line and see how close you can get. But at some point in time mathematicians started wondering if you can actually get the formula for the slope between two points where the two points are actually put over each other. And turns out you can!

This phenomenal discovery let to huge breakthroughs in maths as a whole. Including the discovery of integration. Which is in simple terms the opposite of differentiation. Only this time it's not so much for the slope but the for the entire area of a graph. For if you reverse it you can actually get the exact size of a surface.

[-] ramirezmike@programming.dev 16 points 7 months ago

I had pretty terrible math education in school but as an adult I've gotten into programming and making video games and every time I learn a math concept I think "wow, math is even cooler than I thought" but the main part stopping me from learning some concepts is not having a practical example.

I vaguely know differentiation and integration.. I think it might be the correct way to describe things like determining/applying acceleration to an object over time.. but when I read your description I really don't understand..

I think that's in general what I run into with math. it's cool and amazing when I get it, but a lot of the descriptions of concepts have a lot of assumptions about the reader sometimes to the point where to understand the description you'd have to already understand the concept.

[-] agamemnonymous@sh.itjust.works 13 points 7 months ago* (last edited 7 months ago)

So acceleration is a great example. Velocity is change in position over some change in time, v = ∆p/∆t (∆is just a symbol that means "change in ___"). You calculate this by finding the difference in position (p2-p1) and dividing it by the corresponding difference in time (t2-t1). For example, if I'm on the highway, and I pass mile marker 20 at exactly 11:00, and mile marker 75 at exactly 12:00, my average velocity is (75-20)miles/(12-11) hours, or 55 miles/hour. Simple.

Acceleration is change in velocity over change in time, a = ∆v/∆t. Let's say you plug a recorder into your speedometer, so you get a graph that plots your velocity over time. Now if you don't start measuring until you're on the highway with cruise control on, the graph will just show a horizontal line at whatever speed you set cruise control to. If you speed up to pass someone, the curve will slope up a bit. If you get slowed down by traffic, the curve will slope down a bit. If you calculate the slope of the curve over one of those intervals(∆v/∆t), you'll get your average acceleration over that interval. Simple.

Differentiation is just making a slope calculation like that, but for such a small ∆t that it's practically instantaneous. You can't make it exactly instantaneous, because if t1 = t2, then t2 - t1 = 0, and we all know you can't divide by 0. So mathematicians came up with something called an 'epsilon', which is just an infinitesimally small value that's almost 0 but not quite. We see how our function, in this case ∆v/∆t, behaves if we set ∆t to epsilon. That is, how the function is behaving at (basically) one exact instant, instead of averaged over some longer period. We symbolize that our ∆ is infinitesimally small by changing it to a d. In this case ∆t is shown as dt. So ∆v/dt is our instantaneous acceleration at any one point in time, like the moment I speed up to pass someone.

In conclusion, differentiation is just instantaneous rate of change: the slope of some function over an infinitesimally narrow interval.

Integration is kinda to differentiation what multiplication is to division. Let's say instead of trying to extract acceleration from our velocity graph, we want to extract the distance traveled.

Distance is equal to velocity • time. If I travel at a constant 50mph for 3 hours, total distance traveled is 50mph • 3h = 150 miles. If I have a graph of my velocity, it will be shown by a horizontal line at y = 50, with the x-axis ticking away the hours traveled. That means that our distance formula, velocity • time, is exactly the same as the formula for the area of the rectangle under our line, 50 • 3. Simple enough.

This gets a little more complicated if our velocity isn't constant, so the area under the velocity curve isn't a rectangle. However, we can approximate the area under a curve by slicing it into narrower rectangles (kinda like pixelating a circle), and adding up those areas. We can make our approximation better and better by making those rectangles narrower and narrower. The best approximation would use that epsilon trick from earlier, making the width of each rectangle almost-but-not-quite 0 (like an extremely high resolution pixelated circle).

That's basically integration. Differentiation and integration are basically the fairly straightforward concepts of finding the change of a value, and finding the total accumulation of a value, taken to the highest resolution we can via the concept of an infinitesimally small interval.

[-] swab148@startrek.website 7 points 7 months ago

Keep going I'm almost there

[-] dragontangram88@lemmy.world 1 points 7 months ago

I like your explanation of Riemann Sums. It is also good to note that creating trapezoids beneath the curve, to model area, or integration of the function, would give a more exact answer than the rectangles.

[-] Knock_Knock_Lemmy_In@lemmy.world 1 points 7 months ago

Now make some different sized trapezoidal and take a weighted average.

[-] dditty@lemm.ee 4 points 7 months ago

🥵🥵🥵

[-] affiliate@lemmy.world 20 points 7 months ago

here's a different way to think about differentiation and integration (which are easier to generalize to other settings):

differentiation: lines are really easy to understand (they're completely determined by two points), so wouldn't it be nice if everything was a line? sadly, most things are not lines. but what if instead, we tried to approximate things using lines? i mean after all, if you zoom in really far when looking at the graphs of most common functions, they look kind of like a line, so it seems like it should work. and it does (for sufficiently nice functions)! and so, we define the derivative f'(x) of a function f to be the line that best approximates a function near some given number x. these approximations are typically quite good when considering numbers very close to x.

in higher dimensions, you don't consider the best approximating line, but the best approximating linear function. this is a big reason why linear algebra is so useful and important: you can use calculus to turn complicated problems into linear ones, and then use linear algebra to solve those problems.

differentiation is also a good example of a way of thinking that starts to become prevalent in different parts of abstract math: the big picture of something may be quite complicated, but when you zoom in, and only look at small regions, things can be rather nicely behaved. here's another example of this sort of concept: the earth. when you look at it in its entirety, it's spherical (complicated). but when you look at things locally (e.g. if you only focus on one particular city), then that region is "basically flat". this is in part why maps/GPS systems can work: you can put street directions on a flat piece of paper because that's a decent way to approximate small regions of the earth.

integration: this one is admittedly a bit more contrived, but here goes. integration is basically a way to generalize the concept of measuring things. what does it mean to measure something? it depends :) but let's consider a simple example: let's say you counted how many pieces of fruit you ate each month and wanted to measure how many pieces of fruit you ate in a year. what would you do? add up the amount of fruit eaten each month. so this is the simplest kind of measurement: addition.

what if you (somehow) had information about how much fruit you ate from now until infinity. how would you measure the total amount of fruit eaten? this would be considerably more challenging. but there is one thing that will make this a tad easier: the heat-death of the universe. eventually, the amount of fruit eaten will start to decline. (fruit will be harder to find when there are no more stars.) so, after a certain point, the new terms added by future months will be negligible: they will barely affect your sum. and so, your tally of total fruit eaten will start to settle on a value as you add up more and more months. this kind of measurement is called infinite summation.

okay, but what if you (somehow) had information about how much fruit you're consuming literally all the time. not just every second, but every possible moment. just non-stop fruit information. how would you measure how much fruit you've eaten on a given day? this is a bit tricker since you're now trying to measure a whole continuum. so what do you do? approximate. you could start out by breaking the day up into 1 hour intervals and then approximate how much fruit you ate each hour. you then add up all those estimates and divide by 24 (basically take the average). you could then take finer and finer approximations (break the day up into half hour chunks, quarter hour chunks, then 5 minute chunks, 5 second chunks, etc, taking the average each time), and then see if a pattern starts to emerge. eventually (hopefully), you'll see that past a certain point, these finer and finer approximations start to settle on a value. i.e., it seems like you're reaching a point of diminishing returns, where better approximations start to result in smaller differences in your final measurement. the value that these subsequent approximations start to approach is called the integral.

it's maybe worth mentioning that the symbol for integration is a big squiggly S, for summation. and that's because it's really supposed to be a way to try to add up a bunch of things. in the case of adding up a finite number of things, you no longer need to approximate and you can just add them up directly.

[-] 7heo@lemmy.ml 5 points 7 months ago

okay, but what if you (somehow) had information about how much fruit you're consuming literally all the time. not just every second, but every possible moment. just non-stop fruit information.

For a moment I wondered how you were going to switch from discrete to continuous using fruit eating... 🙂

[-] affiliate@lemmy.world 6 points 7 months ago

in hindsight it might have been better to do that using smoothies or something. but explaining integration using fruits was a bit challenging

[-] SkyeStarfall@lemmy.blahaj.zone 15 points 7 months ago

I said it before and I say it again, infodumping is hot

[-] intensely_human@lemm.ee 3 points 7 months ago

Dang, you wanna date me?

[-] psy32nd@lemmy.world 13 points 7 months ago* (last edited 7 months ago)

The girl's facial expression always turns me down.

[-] TheFriendlyDickhead@lemm.ee 15 points 7 months ago

She looks like she realy needs to pee.

[-] capital@lemmy.world 9 points 7 months ago

( ͡° ͜ʖ ͡°)

[-] iAvicenna@lemmy.world 5 points 7 months ago

if differentiation was as difficult as integration we would not have neural networks. that is the only thing you need to know.

[-] intensely_human@lemm.ee 3 points 7 months ago

Dude should be thinking in terms of the area under the curve

[-] tacosanonymous@lemm.ee 2 points 7 months ago

I love calc.

[-] Sagar@sopuli.xyz 2 points 7 months ago
this post was submitted on 05 Apr 2024
457 points (96.2% liked)

memes

10408 readers
1884 users here now

Community rules

1. Be civilNo trolling, bigotry or other insulting / annoying behaviour

2. No politicsThis is non-politics community. For political memes please go to !politicalmemes@lemmy.world

3. No recent repostsCheck for reposts when posting a meme, you can only repost after 1 month

4. No botsNo bots without the express approval of the mods or the admins

5. No Spam/AdsNo advertisements or spam. This is an instance rule and the only way to live.

Sister communities

founded 2 years ago
MODERATORS