跳到正文

个人记录

一道数学题

_rqy约 6 分钟
原文
文章信息与版本

文章信息

发布
2022年11月6日
收录
2025年12月12日
更新
2026年11月14日
篇幅
约 6 分钟
获赞
9

版本

  1. v1当前

一道数学题

今天看到一道数学题, 如下.

题目

二维平面上有一只兔子和一条猎犬. 兔子的巢穴在 (0,0)(0, 0) 点, 而猎犬在 (1,0)(1, 0) 点.

假设兔子跑到了某个点 (x,y)(x, y). 此时猎犬发现了兔子, 并往兔子的方向跑. (猎犬发现兔子前就在 (1,0)(1, 0) 原地不动) 兔子会以 1m/s 的速度直线跑回巢穴, 而猎犬时时刻刻朝着兔子的当前方向跑, 速度则始终是 2m/s.

如果兔子能在猎犬抓到自己前跑回巢穴, 就说 (x,y)(x, y) 这个点是安全的. 请计算所有安全的点构成的区域的总面积.

题解.

我们固定起点 (x,y)(x, y), 那么兔子需要花 T=x2+y2T = \sqrt{x^2 + y^2} 的时间跑回原点.

为了方便, 我们把坐标系旋转一下, 让兔子处于 (T,0)(T, 0) 这个点, 而猎犬初始处于 (u0,v0)(u_0, v_0) 点. 事实上, u0=xT,v0=−yTu_0 = \frac{x}{T}, v_0 = -\frac{y}{T}.

那么兔子以 (−1,0)(-1, 0) 的速度匀速直线运动 (单位均为米或者秒, 下同). 我们考虑猎犬相对于兔子的运动, 那么相当于兔子不动, 而猎犬的速度是两个速度向量的叠加: 第一个速度向量就是向着原点大小为 22 的向量; 第二个速度向量是始终向右, 大小为 11 的向量.

考虑这两个速度对应的径向速度和切向速度. 也就是说考虑猎犬朝着兔子的方向 vv, 也就是把它们分别分解成平行于 vv 的和垂直于 vv 的两个速度. 我们设径向速度的正方向是向内 (向原点), 切向速度的正方向是向右 (逆时针).

第一个速度向量对应径向速度为 22, 切向速度是 00. 第二个速度向量对应的径向速度为 cos⁡θ\cos \theta, 切向速度是 sin⁡θ\sin \theta; 其中 θ\theta 是从 “向右” 逆时针转到 “径向” 的夹角.

因此复合后, 可知道距离的变化率 drdt=−2−cos⁡θ\frac{dr}{dt} = - 2 - \cos \theta, 而夹角的变化率则是 dθdt=sin⁡θr\frac{d\theta}{dt} = \frac{\sin \theta}{r}. 弧度制.

因此我们知道 drdθ=−(2+cos⁡θ)rsin⁡θ\frac{dr}{d\theta} = -\frac{(2 + \cos \theta) r}{\sin \theta}. 这是一个可分离变量的方程, 可以积分解得

r=C1+cos⁡θ(1−cos⁡θ)sin⁡θ. r = C \frac{1 + \cos \theta}{(1 - \cos \theta) \sin \theta}.

反代入进 dθdt=sin⁡θr\frac{d \theta}{dt} = \frac{\sin \theta}{r} 可以得到 dθdt=sin⁡2θ(1−cos⁡θ)C(1+cos⁡θ)=1C(1−cos⁡θ)2\frac{d \theta}{dt} = \frac{\sin^2\theta (1 - \cos \theta)}{C(1 + \cos \theta)} = \frac{1}{C} (1 - \cos \theta)^2. 因此

t=∫C(1−cos⁡θ)2dθ=−Csin⁡θ(2−cos⁡θ)3(1−cos⁡θ)2+C′. t = \int \frac{C}{(1 - \cos \theta)^2} d\theta = - \frac{C\sin \theta (2 - \cos \theta)}{3(1 - \cos \theta)^2} + C'.

可以发现, 只有 θ→±π\theta \to \pm\pi 的时候, 才能让 r→0r \to 0 (此时 sin⁡θ\sin \theta 也是零点, 但是只是一阶零点, 而分母的 1−cos⁡θ1 - \cos \theta 是二阶零点; 换言之, lim⁡θ→±πr=0\lim_{\theta \to \pm\pi} r = 0).

我们可以解出 C=r0sin⁡θ0(1−cos⁡θ0)1+cos⁡θ0C = \frac{r_0 \sin \theta_0 (1 - \cos \theta_0)}{1 + \cos \theta_0}, 因此总的时间为

:=:−Csin⁡θ(2−cos⁡θ)3(1−cos⁡θ)2∣θ0±π=Csin⁡θ0(2−cos⁡θ0)3(1−cos⁡θ0)2=r0(2−cos⁡θ0)3. \begin{aligned} &\phantom{:=:} - \frac{C \sin \theta (2 - \cos \theta)}{3(1 - \cos \theta)^2} \Bigr|_{\theta_0}^{\pm\pi} \\ &= \frac{C \sin \theta_0 (2 - \cos \theta_0)}{3(1 - \cos \theta_0)^2} \\ &= \frac{r_0 (2 - \cos \theta_0)}{3}. \end{aligned}

因此若兔子成功进巢, 就需要 r0(2−cos⁡θ0)3≥T\frac{r_0(2 - \cos \theta_0)}{3} \geq T. 回忆我们最开始对坐标系的旋转以及 r,θr, \theta 的定义, 可知 r0r_0 是兔子起点到 (1,0)(1, 0) 的距离, 而 θ\theta 是兔子起点到原点的连线与兔子起点到猎犬起点的连线之间的夹角 (正负无所谓, cos⁡\cos 是偶函数).

我们知道两个向量夹角的余弦值等于其点积除以两向量长度. 因此 cos⁡θ0=x(x−1)+y2r0T\cos \theta_0 = \frac{x(x - 1) + y^2}{r_0T}. 而 r0=(x−1)2+y2,T=x2+y2r_0 = \sqrt{(x - 1)^2 + y^2}, T = \sqrt{x^2 + y^2}.

整理之后可以解得

{∣x∣≤12,∣y∣≤1+1−3x2−6x26. \left\{\begin{aligned} \lvert x \rvert &\leq \frac{1}{2}, \\ \lvert y \rvert &\leq \frac{\sqrt{1 + \sqrt{1-3x^2} - 6x^2}}{\sqrt{6}}. \end{aligned} \right.

因此我们要计算的面积就是

2∫01221+1−3x2−6x26dx2\int_0^{\frac{1}{2}} \frac{2\sqrt{1 + \sqrt{1 - 3x^2} - 6x^2}}{\sqrt{6}} dx

换元 u=1−3x2u = \sqrt{1 - 3x^2}, 那么 x=1−u23,dx=u3(1−u2)x = \sqrt{\frac{1 - u^2}{3}}, dx = \frac{u}{\sqrt{3(1-u^2)}}, 因此上述积分等于

2∫1212u2u2+u−131−u2dx=223∫121u2u−11−udx2\int_{\frac{1}{2}}^1 \frac{\sqrt{2}u\sqrt{2u^2 + u - 1}}{3\sqrt{1-u^2}} dx = \frac{2 \sqrt{2}}{3} \int_{\frac{1}{2}}^1 \frac{u\sqrt{2u - 1}}{\sqrt{1 - u}} dx

用一些积分小技巧(换元 v=2u−11−uv = \sqrt{\frac{2u-1}{1-u}}, 就可以把 uu 写成 vv 的多项式, 从而积分就变成了有理分式积分), 可以把它对应的不定积分积出来, 是

−112((2u−1)(1−u)(4u+5)+7arcsin⁡(2(1−u))).-\frac{1}{12}\bigl( \sqrt{(2u-1)(1-u)}(4u+5) + 7\arcsin(\sqrt{2(1-u)}) \bigr).

代入 12,1\frac{1}{2}, 1 就知道答案是 7π24\frac{7\pi}{24}.

原文
存档评论14 条抓取于