跳到主要内容

京都大学 情報学研究科 知能情報学専攻 2021年8月実施 情報学基礎 F1-2

Author

Miyake

Description

日本語版

設問1

以下の問いに答えよ。

(1) 以下の関数について、 導関数を yy のみを用いて表せ。 また、その導関数の値域を示せ。

  • A) y=f(x)=11+exp(x)y = f(x) = \frac{1}{1 + \exp(-x)}
  • B) y=f(x)=exp(x)exp(x)exp(x)+exp(x)y = f(x) = \frac{\exp(x) - \exp(-x)}{\exp(x) + \exp(-x)}

(2) x2+y21=0x^2 + y^2 - 1 = 0 及び 0x,y10 \le x,y \le 1 の条件の下、f(x,y)=x3+2y3f(x, y) = x^3 + 2y^3 の極値を求めよ。

設問2

地面に直立した半径 1[m]1[m] の円筒がある。 ヤギの首に長さ π[m]\pi[m] の伸び縮みしないヒモが結び付けられている。 このヒモのもう一端は円筒表面の一点(首と同じ高さ)に結び付けられている。

(1) 円筒の中心軸を原点とし、ヒモの結び付けられている円筒上の点を (1,0)(-1,0) とする 22 次元座標系を地面上で考えたとき、x1,y0x \ge -1, y \ge 0 において、ヤギがヒモをたるませずに立っているときの2次元座標を xx 軸からの角度 θ\theta を用いて表せ。

(2) このヤギがヒモをたるませずに円筒周りを一周したとき、その総移動距離を求めよ。

(3) このヤギが歩き回れる地面の面積を求めよ。

English Version

Q.1

Answer the following questions.

(1) Express the derivative function for each of the following functions using only yy and show the range of the derivative function.

  • A) y=f(x)=11+exp(x)y = f(x) = \frac{1}{1 + \exp(-x)}
  • B) y=f(x)=exp(x)exp(x)exp(x)+exp(x)y = f(x) = \frac{\exp(x) - \exp(-x)}{\exp(x) + \exp(-x)}

(2) Compute the extrema of f(x,y)=x3+2y3f(x, y) = x^3 + 2y^3 when x2+y21=0x^2 + y^2 - 1 = 0 and 0x,y10 \le x,y \le 1.

Q.2

A cylinder of 1[m]1[m] radius is erected perpendicularly on the ground. A goat is on a leash of π[m]\pi[m] that neither stretches nor compresses. The other end of the leash is tied to a surface point of the cylinder at the same height.

(1) Consider a two-dimensional coordinate frame with its origin at the center axis of the cylinder and where the point of attachment of the leash on the cylinder is (1,0)(-1, 0). Using angle θ\theta from the xx axis, express the 2D coordinates of the goat when she is standing without any slack to the leash for x1,y0x \ge 1,y \ge 0.

(2) Derive the total distance the goat would travel when going around the cylinder once without any slack to the leash.

(3) Derive the total area of the ground the goat can cover.

题目描述

  1. 回答:
    1. 对下列函数,把导数仅用 yy 表示,并给出导数值域:
      • y=11+exy=\dfrac1{1+e^{-x}}
      • y=exexex+exy=\dfrac{e^x-e^{-x}}{e^x+e^{-x}}
    2. x2+y2=1x^2+y^2=10x,y10\le x,y\le1 下,求 f(x,y)=x3+2y3f(x,y)=x^3+2y^3 的极值。
  2. 地面上竖立半径 1m1\,\mathrm m 的圆柱,山羊颈部系一根不可伸缩、长 πm\pi\,\mathrm m 的绳,另一端系在圆柱表面同高处。以圆柱轴为原点、系绳点为 (1,0)(-1,0) 建立地面坐标系。
    1. x1,y0x\ge-1,y\ge0 区域,用相对 xx 轴的角度 θ\theta 表示绳始终绷紧时山羊的坐标。
    2. 山羊保持绳绷紧绕圆柱一周,求总路程。
    3. 求山羊能活动到的地面总面积。

考点

  • Sigmoid 与双曲正切导数:把导数改写成 y(1y)y(1-y)1y21-y^2 并求其值域。
  • 圆弧约束极值:在第一象限单位圆上用参数化或 Lagrange 乘子求边界极值。
  • 圆的渐开线:建立绳绕/解绕圆柱时端点的渐开线参数方程,并计算弧长与可达区域面积。

Kai

設問1

(1)

A)

まず、 y=1/(1+exp(x))y=1/(1+\exp(-x)) より、 exp(x)=(1y)/y\exp(-x) = (1-y)/y である。 よって、

dydx=ddx11+exp(x)=exp(x)(1+exp(x))2=y(1y)=y2+y\begin{aligned} \frac{dy}{dx} &= \frac{d}{dx} \frac{1}{1 + \exp(-x)} \\ &= \frac{\exp(-x)}{\left( 1 + \exp(-x) \right)^2} \\ &= y(1-y) \\ &= -y^2 + y \end{aligned}

である。

dy/dxdy/dxxx で表した式からわかるように、 任意の実数 xx について、 dy/dx>0dy/dx \gt 0 である。 また、

limxy=0,  limxy=1\begin{aligned} \lim_{x \to -\infty} y = 0 , \ \ \lim_{x \to \infty} y = 1 \end{aligned}

なので、 yy の値域は (0,1)(0,1) である。 さらに、

dydx=(y12)2+14\begin{aligned} \frac{dy}{dx} &= - \left( y - \frac{1}{2} \right)^2 + \frac{1}{4} \end{aligned}

と書き換えられるので、 dy/dxdy/dx の値域は (0,1/4](0,1/4] である。

B)

まず、

dydx=ddxexp(x)exp(x)exp(x)+exp(x)=4(exp(x)+exp(x))2=y2+1\begin{aligned} \frac{dy}{dx} &= \frac{d}{dx} \frac{\exp(x) - \exp(-x)}{\exp(x) + \exp(-x)} \\ &= \frac{4}{\left( \exp(x) + \exp(-x) \right)^2} \\ &= -y^2 + 1 \end{aligned}

である。

dy/dxdy/dxxx で表した式からわかるように、 任意の実数 xx について、 dy/dx>0dy/dx \gt 0 である。 また、

limxy=1,  limxy=1\begin{aligned} \lim_{x \to -\infty} y = -1 , \ \ \lim_{x \to \infty} y = 1 \end{aligned}

なので、 yy の値域は (1,1)(-1,1) である。 そこで、 dy/dxdy/dxyy で表した式からわかるように、 dy/dxdy/dx の値域は (0,1](0,1] である。

(2)

まず、条件 x2+y21=x^2+y^2-1= より、 x=cosθ,y=sinθx = \cos \theta, y = \sin \theta と表せる。

また、条件 0x,y10 \leq x, y \leq 10θπ/20 \leq \theta \leq \pi/2 に相当する。

f(x,y)f(x,y)θ\theta で表した関数を g(θ)g(\theta) と書く:

g(θ)=cos3θ+2sin3θ\begin{aligned} g(\theta) = \cos^3 \theta + 2 \sin^3 \theta \end{aligned}

このとき、

dg(θ)dθ=3sinθcosθ(cosθ+2sinθ)\begin{aligned} \frac{dg(\theta)}{d \theta} = 3 \sin \theta \cos \theta (- \cos \theta + 2 \sin \theta) \end{aligned}

なので、増減表は次のようになる ( α\alphatanα=1/2\tan \alpha = 1/2 を満たす):

θ0απ/2g(θ)+00+0g(θ)12/52\begin{array} {c|ccccccc} \theta & \cdots & 0 & \cdots & \alpha & \cdots & \pi/2 & \cdots \\ \hline g'(\theta) & + & 0 & – & 0 & + & 0 & - \\ \hline g(\theta) & \nearrow & 1 & \searrow & 2/\sqrt{5} & \nearrow & 2 & \searrow \end{array}

よって、求める極値は、極大値 1,21,2 と極小値 2/52/\sqrt{5} である。

設問2

(1)

原点を OO とし、ヤギの座標を PP とし、ヤギが点 (1,0)(1,0) からヒモをたるませずに立っている状況を想定することにします。 ヒモと円筒の接点を QQ とし、xx 軸と線分 OQOQ のなす角度を反時計回りを正として θ\theta と定義します。

P,QP, Q の座標ベクトルをそれぞれ p,qp, q とし、直線 QPQP の単位方向ベクトル、すなわち点 QQ の円筒に関する接線の単位方向ベクトルを tt とすると、以下が成り立ちます。

q=(cosθ, sinθ),t=(cos(π/2θ), sin(π/2θ))=(sinθ, cosθ)q = (\cos\theta,~\sin\theta),\quad t = (\cos(\pi/2-\theta),~-\sin(\pi/2-\theta))=(\sin\theta,~-\cos\theta)

一方、ほどけた紐の長さが扇型の弧の長さに相当して θ\theta であることに注意すると、pp

p=q+θtp = q + \theta t

と表されます。したがって、円筒の半径を rr とおくと、ヤギの座標ベクトルは以下のように表されます。

p=(rcosθ+rθsinθ, rsinθrθcosθ)p = (r\cos\theta+r\theta\sin\theta,~r\sin\theta-r\theta\cos\theta)

(2)

(1) で求めた範囲における移動距離を L1L_1x<1x < -1 の半円弧を L2L_2 とすると、ヤギがヒモをたるませず円筒周りを一周したときの総移動距離 LL

L=2L1+L2=2L1+π2L = 2L_{1}+L_{2} = 2L_{1}+\pi^{2}

と表されます。ここで、

L1=αβ(dxdθ)2+(dydθ)2dθ=0π(θcosθ)2+(θsinθ)2dθ=0πθdθ=π22\begin{aligned} L_1 &= \int_{\alpha}^{\beta}\sqrt{\left(\frac{dx}{d\theta}\right)^{2}+\left(\frac{dy}{d\theta}\right)^{2}}d\theta \\ &= \int_{0}^{\pi}\sqrt{\left(\theta\cos\theta\right)^{2}+\left(\theta\sin\theta\right)^{2}}d\theta \\ &= \int_{0}^{\pi}\theta d\theta \\ &= \frac{\pi^{2}}{2} \end{aligned}

ゆえに、求める答えは

L=2π22+π2=2π2L = 2\cdot\frac{\pi^{2}}{2}+\pi^{2} = 2\pi^{2}

(3)

L1L_1, 円筒, x=1x = -1 に囲まれる面積を S1S_1 とし, L2L_2, x=1x = -1 に囲まれる面積を S2S_2 とし、

S=2S1+S2=20π12θ2dθ+π32=2π36+π32=5π26\begin{aligned} S &= 2S_{1}+S_{2} \\ &= 2\int_{0}^{\pi}\frac{1}{2}\theta^{2}d\theta + \frac{\pi^{3}}{2} \\ &=2 \cdot \frac{\pi^3}{6}+\frac{\pi^{3}}{2} \\ &= \frac{5 \pi^2}{6} \end{aligned}

を計算できる。