Optimization // Calculus through Minecraft

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ม.ค. 2025

ความคิดเห็น • 80

  • @JWheadset
    @JWheadset 5 วันที่ผ่านมา +68

    Speaking of which, I'll start taking a course specifically on optimization theory in just 10 days, so wish me luck!

    • @gragbuilds
      @gragbuilds  5 วันที่ผ่านมา +4

      oh yeah best of luck with that!! thank you for all your comments haha but definitely good luck

    • @JWheadset
      @JWheadset 4 วันที่ผ่านมา

      @@gragbuilds Thanks so much!!! And you're welcome! I'm always willing to provide feedback whenever necessary!

    • @theracistcookie9253
      @theracistcookie9253 2 วันที่ผ่านมา +1

      Woah like a whole course on just optimization? Not just part of a calc course?

    • @JWheadset
      @JWheadset 2 วันที่ผ่านมา

      @@theracistcookie9253 Yes, it is a whole course on just that, and it focuses on problem formulation, software technologies and analytical methods for optimization serving, which sounds really interesting, for sure!

    • @JWheadset
      @JWheadset วันที่ผ่านมา

      ​@@theracistcookie9253 Yes, it is its own separate course which focuses on problem formulation, software technologies and analytical methods for optimization serving as an introduction to a wide variety of optimization problems and techniques, which sounds really interesting!

  • @PessoaCubica123
    @PessoaCubica123 3 วันที่ผ่านมา +24

    I love when smarts topics are explaining in smart videos using smart example, like a game. This is genius, my professors need to see that like of video.

    • @gragbuilds
      @gragbuilds  2 วันที่ผ่านมา +2

      Thank you! I'll continue making these better and better

  • @amakazor8632
    @amakazor8632 4 วันที่ผ่านมา +28

    Fucking A! Great idea, presenting problems in this fun and practical way is much more engaging that the current meta

    • @gragbuilds
      @gragbuilds  4 วันที่ผ่านมา +3

      Thank you so much!! It’s definitely a lot more fun to make too haha

  • @gameshoot8571
    @gameshoot8571 9 ชั่วโมงที่ผ่านมา

    I started learning calculus few weeks ago and I managed to do it myself after 1 or 2h of correcting wierd mistakes. Very fun puzzle I would say. Thank you for the video

  • @pubpit
    @pubpit 3 วันที่ผ่านมา +9

    Very small correction at 4:50, local/absolute minimums and maximums need not *only* occur when the derivative is equal to zero. Take f(x) = | x |, whose derivative is never zero for all inputs x. Great video regardless! Love the applications and problem solving break downs! Keep up the great work!

    • @padfoot9445
      @padfoot9445 2 วันที่ผ่านมา +1

      would restricting it to continous functions/expanding the requirement of d/dx = 0 to also include d/dx is undefined work?

    • @pubpit
      @pubpit 2 วันที่ผ่านมา +1

      @padfoot9445 Unfortunately, it's not enough to only have a continuous function, since your derivative isn't necessarily continuous. Cusps and vertical tangents can cause a derivative to be discontinuous.
      Including undefined values of dy/dx COULD work, however you should also check to see if the original function is defined at that point, like the function f(x) = 1/x, where it's value and derivative are both undefined at x = 0.
      If you find your function is continuous on your interval (which in most first year calculus courses, they will be), then it's perfectly reasonable to include undefined points of your derivative as critical points, since mostly like they are either cusps or vertical tangent lines, and are still defined at said point.

    • @gragbuilds
      @gragbuilds  2 วันที่ผ่านมา +2

      Ah of course I forgot about that, thank you so much for the correction! Since I took the earlier calculus courses, there was only really a need to check for when the derivative equals 0, so that part didn't cross my mind, thank you so much though!

  • @antenym8947
    @antenym8947 4 วันที่ผ่านมา +3

    Max min of a continuous function on a compact def set is found either in points where the derivative is zero, edge points or where derivative doesnt exist.

  • @renanguidolinmarcato5004
    @renanguidolinmarcato5004 4 วันที่ผ่านมา +6

    man that's an AMAZING content idea!! I hope your channel grows bigger and bigger everyday

  • @refthegeneric
    @refthegeneric 4 วันที่ผ่านมา +4

    Im awful at problem solving in calculus this actually helped a lot! Thanks dude :)

  • @BabySisZ_VR
    @BabySisZ_VR 4 วันที่ผ่านมา +3

    I love math, but being unmedicated ADHD, it makes it very hard to focus in class and my teacher's methods don't resonate with me.
    that's why I love this video. thanks, I have always been wondering (as I play a lot of Roblox) how to find the optimal routes for certain games and whatnot.
    you earned my subscribe! :)

    • @gragbuilds
      @gragbuilds  3 วันที่ผ่านมา +1

      Thank you so much! I also have had a lot of times where the teacher's efforts didn't work all that well for me, and I found that imagining the concepts in a different way helped get the topics through into my head, and that's what I'm trying to replicate here haha thank you though!

  • @DanDrimmic
    @DanDrimmic วันที่ผ่านมา +1

    Great video, I don't usually comment, but you deserve it for the algorithm, congrats, and thank you for this wholesome explanation!

    • @gragbuilds
      @gragbuilds  11 ชั่วโมงที่ผ่านมา

      Thank you so much man, hopefully al lthe explanations helped!!

  • @longlong10203
    @longlong10203 4 วันที่ผ่านมา +5

    This is really an underrated TH-cam channel. Wish you all the best in your TH-cam career!

    • @gragbuilds
      @gragbuilds  3 วันที่ผ่านมา +1

      Thank you man! I'm always going to keep pushing!!

  • @larc02
    @larc02 5 วันที่ผ่านมา +4

    i have been waiting your videos for past month. and i am surprised that you only have 970 subs

    • @gragbuilds
      @gragbuilds  5 วันที่ผ่านมา +2

      wow really?? thank you so much for watching all these videos haha, im sure with a lot of work i'll grow!!

  • @esphix
    @esphix 13 ชั่วโมงที่ผ่านมา

    You can also see at 6:07 that solution for x is dependent on the ratio of the velocities

  • @beokendoorstop
    @beokendoorstop 4 วันที่ผ่านมา +3

    Holy shit the youtube algorithm is showing me this video right as im learning this topic! I solved a problem thats essentially this same problem, just that it was about the cost of laying pipes along a river with underwater pipes being more expensive.

    • @gragbuilds
      @gragbuilds  4 วันที่ผ่านมา +1

      Yeah!! This problem or at least the theme of it is quite common haha

  • @cladxylophone0524
    @cladxylophone0524 5 วันที่ผ่านมา +3

    Can you do work and hookes law for calculus next? I love how simple you make these concepts sound. Super easy to digest.

    • @gragbuilds
      @gragbuilds  4 วันที่ผ่านมา +1

      Of course! I’m planning to do a shorter video about tangent lines but afterward I’ll definitely tackle work and hookes law :)

  • @neoplayz2009
    @neoplayz2009 5 วันที่ผ่านมา +3

    This time, I started watching but stopped because I want to try to solve it first myself tomorrow before I finish the video.
    I’m sure it will be spectacular…

    • @aarash6982
      @aarash6982 17 ชั่วโมงที่ผ่านมา

      Here's a reminder to check & share your answers!

  • @ananttiwari1337
    @ananttiwari1337 17 ชั่วโมงที่ผ่านมา

    I immediately recognized snell's law

  • @ПеткоПетков-ц9б
    @ПеткоПетков-ц9б 13 ชั่วโมงที่ผ่านมา +1

    Great job! Hope your channel grows so you continue on making such vidoes.❤

    • @gragbuilds
      @gragbuilds  11 ชั่วโมงที่ผ่านมา

      thank you so much!! I'll continue to make these for you guys!!

  • @NPWw-w9f
    @NPWw-w9f 4 วันที่ผ่านมา +7

    i love this problem but unfortunately it is flawed. in the video 4.07 seconds is his answer and its good mathematically. However if you stay off the soulsand, you travel 19 meters total at 5m/s which come out to a time of 3.8 seconds. so there is no point in crossing the soulsand in this problem at all.

    • @gragbuilds
      @gragbuilds  3 วันที่ผ่านมา +7

      That’s definitely my bad, the problem was meant to have the soul sand much further out on both sides so going purely on the grass wasn’t an option, this question is running off the assumption that the soul sand is unavoidable.

  • @atlas_19
    @atlas_19 19 ชั่วโมงที่ผ่านมา

    Laying the foundation for Fermat's principle.

  • @SwagatShrestha
    @SwagatShrestha 5 วันที่ผ่านมา +3

    Thank you

  • @hththgrsgrg-e7p
    @hththgrsgrg-e7p 4 วันที่ผ่านมา +2

    This video is phenomenal!

  • @10carries
    @10carries วันที่ผ่านมา

    Answer: just run+jump in a straight line to the finish and place blocks under you to prevent stepping in soul sand

  • @vikmasteri
    @vikmasteri 4 วันที่ผ่านมา +2

    I just discovered your channel and this is amazing! I've been studying calculus and physics and your videos are a great recap. So underrated this stuff but keep it up. I think you will soon get more viewers :D

    • @gragbuilds
      @gragbuilds  3 วันที่ผ่านมา

      Thank you so much!! I’m so glad you got a lot of help from these, you got this!!!

  • @ayush_x95
    @ayush_x95 5 วันที่ผ่านมา +2

    Awesome video man thanks alot!!!

  • @Vipullllllllllllllll
    @Vipullllllllllllllll 3 วันที่ผ่านมา +1

    ah the first qs reminded me of snells law in kinematics , tho finding the angles can be a bit weird in Minecraft

  • @pillagerfalante
    @pillagerfalante 2 วันที่ผ่านมา +1

    Vídeo maravilhoso. Faça algo relacionado a maximização de produção (como função de produção, da microeconomia) se for possível, por favor. Seria muito legal ver uma maximização de produção de uma farm. Abraços do Brasil

  • @Fangamer1254
    @Fangamer1254 4 วันที่ผ่านมา +2

    I have another problem which came out from my game.
    We have two variables Multiplier & MT value.
    Multiplier by default equals to 1 & MT = 0
    We have a value which we want to optimize named "Action" which I'll refer as A now.
    If we increase Multiplier by 1 we add 1 to A or we increase MT value by Multiplier.
    The question is what is the least action required to get MT from 0 to some value x ?
    Here's solution:
    Setting up the equation:
    I started by setting up what's action equal to?
    Action for the multiplier is equal but we assume that multiplier equals by default 1 so...
    A(m) = M - 1
    However we have also action for increasing MF value which I'm gonna call f from now.
    I tested how M relates to wanted number (I tested for 15)
    So f = 0 by default & we want to get to the value 15 which is x
    After testing we can see that A(f) = x/M because A decreases as M gets bigger.
    So A = A(f) + A(m)
    Now we take the derivative of the function & solve for 0 & we find out that x = M^2 which means the minimum Action for M equals to √15 in that case.
    To calculate A(f) we just do A(f) = M-1 + x/M - √x which equals A(f) = √x - 1 since M cancelles out because it's equal to √x
    A = 2√x -1 which the lowest amount of action you can take to reach destinated value x
    (Note: all equations works only when M = 1 & starting value of f = 0 unless you want to find the solution for different values use this equation:
    A = M - M(s) + (x - x(0))/M )

  • @zzman223
    @zzman223 4 วันที่ผ่านมา +1

    Gotta show my calc teacher this so he can teach next year bc calc with minecraft

  • @standerrrr
    @standerrrr 5 ชั่วโมงที่ผ่านมา +1

    is that zero from the hit game katana zero 😱

  • @Pedritox0953
    @Pedritox0953 วันที่ผ่านมา +1

    Great video! Peace out

  • @yante7
    @yante7 21 ชั่วโมงที่ผ่านมา +1

    great vid

  • @lool8421
    @lool8421 3 วันที่ผ่านมา +1

    and funny that light actually follows the optimization in order to save as much time as possible, bending when going through different mediums, so it has to spend as little time on travelling as possible, but then there's some quantum physics stuff

    • @gragbuilds
      @gragbuilds  2 วันที่ผ่านมา +1

      I did hear about that! It's super cool, and by adding an infinite number of mediums you get some sort of most optimal curve in gravity right? I forget

    • @lool8421
      @lool8421 2 วันที่ผ่านมา +1

      @@gragbuilds yeah, it created a cycloid which is pretty much the perfect slide

    • @ananttiwari1337
      @ananttiwari1337 17 ชั่วโมงที่ผ่านมา

      ​@@gragbuildsbrachistochrone

  • @KynesisCoding
    @KynesisCoding 2 วันที่ผ่านมา +1

    Great video idea, try making an Integration question

    • @gragbuilds
      @gragbuilds  11 ชั่วโมงที่ผ่านมา

      integration is the next video!

  • @exlpt2234
    @exlpt2234 3 วันที่ผ่านมา +1

    That’s actually lit

  • @funnydog7817
    @funnydog7817 36 นาทีที่ผ่านมา

    BRACHISTOCHROME

  • @bdk7569
    @bdk7569 4 วันที่ผ่านมา +2

    shouldn't we prove that the function is continuous before taking the derivative?

    • @gragbuilds
      @gragbuilds  4 วันที่ผ่านมา +1

      No need! I think you are talking about taking the derivative at a point using the limit definition in which case you do, but we’re taking the derivative of a function which means we don’t have to

    • @bdk7569
      @bdk7569 4 วันที่ผ่านมา

      @@gragbuilds hmm ok thank you !

    • @v1ad.mrn0
      @v1ad.mrn0 วันที่ผ่านมา

      In this example, the function is definitely continuous because it's composed of basic (continuous) functions, which implies its derivability

  • @3141minecraft
    @3141minecraft 4 วันที่ผ่านมา +6

    9:36 If you got all the way to there, you might as well just go around the soul sand

    • @gragbuilds
      @gragbuilds  4 วันที่ผ่านมา +2

      True I probably should have extended the soul sand 😭

    • @3141minecraft
      @3141minecraft 4 วันที่ผ่านมา +2

      @@gragbuilds also, if you just sprint jump, it would be way faster. I think it would be better if you used cobwebs there

    • @mankosan6737
      @mankosan6737 3 วันที่ผ่านมา +1

      ​@3141minecraft i think you are missing the point of the experiment

  • @SeigeGoat
    @SeigeGoat 5 วันที่ผ่านมา +2

    Im sorry but is that Zero skin from Katana Zero??!?

    • @gragbuilds
      @gragbuilds  4 วันที่ผ่านมา +2

      YES I love that game

    • @SeigeGoat
      @SeigeGoat 4 วันที่ผ่านมา +1

      @@gragbuilds Big W man, both of us still waiting for the DLC lmao.

  • @William-nani
    @William-nani 19 ชั่วโมงที่ผ่านมา +1

    I love this kinda Math

    • @William-nani
      @William-nani 10 ชั่วโมงที่ผ่านมา

      ooo notifications were turned off that's it!

  • @Poincianaa
    @Poincianaa 3 วันที่ผ่านมา +1

    i think you should jump probably

  • @termisher5676
    @termisher5676 4 วันที่ผ่านมา +2

    Would it not be easiest to just normalise distance so grass disrance is 15 m
    And distance in soul sand is 15 m after mutliplyigj how mcuh longer you take to wlak so this much if soul sand is equal to that mvuh of grass distance meanign tine out of equations unles its realy necessary.
    Just guess and no thinking into it so feel free to roast me
    Edit: Got it! I aim to implement the A* algorithm in such a way that when transitioning from grass (cost multiplier 1) to soul sand (cost multiplier 10), the algorithm dynamically adjusts the heuristic to account for the reduced traversal efficiency. Specifically, distances between nodes on soul sand are scaled by how much slower you walked. This scaling inflates the distance between nodes making the distance bigger on soul sand
    Then a* algorithm will find shortest path as it doesn't care how the nodes are placed as long as the heuretics are given
    Edits:
    Just get total distance and do binary search
    For value of x between 0 and 15 and I believe y of 7 you get distance in 2d
    And distance/(speed / speed multiplier of material) for first and second node of path
    Goal is the point on 0 , 7 and you're at 15, 0
    And x represents x position and you can do binary search by getting total distance of grass distance and soul sand distance and multiply our speed on that materials
    You can do binary search algorithm that will find always the best path regardless where goal is
    We just do heuristic if the point is closer by getting last best distance and x value for it and swapping for new if it is smaller time to travel

    • @gragbuilds
      @gragbuilds  4 วันที่ผ่านมา +1

      That’s actually what I thought too 😭 I originally wrote the script doing it that way but then you end up having to square the (15-x) term and then it just takes super messy, but it definitely is possible!

    • @termisher5676
      @termisher5676 4 วันที่ผ่านมา +1

      @gragbuilds like I asked chat gpt but it requires space bending to work so basically you must make it on paper and fold the paper to be as long so the time spend walking it would be same as on grass for same horizontal distance

    • @termisher5676
      @termisher5676 4 วันที่ผ่านมา +1

      @gragbuilds Got it! I aim to implement the A* algorithm in such a way that when transitioning from grass (cost multiplier 1) to soul sand (cost multiplier 10), the algorithm dynamically adjusts the heuristic to account for the reduced traversal efficiency. Specifically, distances between nodes on soul sand are scaled by how much slower you walked. This scaling inflates the distance between nodes making the distance bigger on soul sand
      Then a* algorithm will find shortest path as it doesn't care how the nodes are placed as long as the heuretics are given