• Kogasa@programming.dev
    link
    fedilink
    arrow-up
    3
    ·
    4 hours ago

    Some confusing notation here that buries the assumption that the rate of change is constant (which is true in this case). For conceptual clarity I would explain it as:

    Let y(t) be the boy’s position at time t, and x(t) the girl’s position. The distance between them is S = sqrt(x^(2) + y^(2)). The distance is changing at a rate of dS/dt = dS/dx dx/dt + dS/dy dy/dt = (xdx/dt + ydy/dt)/sqrt(x^(2) + y^(2)). We are given dy/dt = 5 and dx/dt = 1, and we can determine that at t=5 we have y = 25 and x = 5. Therefore dS/dt = 130/sqrt(650) = sqrt(26) ~= 5.1.

    • davetortoise@reddthat.com
      link
      fedilink
      arrow-up
      2
      ·
      4 hours ago

      This is a better generalised solution, yeah. Though I do think that as far as conceptual clarity goes, doing it geometrically is a bit more transparent than using the chain rule, even if it’s sort of constrained to constant speed in this case