京都大学 情報学研究科 知能情報学専攻 2021年8月実施 情報学基礎 F1-2
Author
Miyake
Description
日本語版
設問1
以下の問いに答えよ。
(1) 以下の関数について、 導関数を y y y のみを用いて表せ。 また、その導関数の値域を示せ。
A) y = f ( x ) = 1 1 + exp ( − x ) y = f(x) = \frac{1}{1 + \exp(-x)} y = f ( x ) = 1 + e x p ( − x ) 1
B) y = f ( x ) = exp ( x ) − exp ( − x ) exp ( x ) + exp ( − x ) y = f(x) = \frac{\exp(x) - \exp(-x)}{\exp(x) + \exp(-x)} y = f ( x ) = e x p ( x ) + e x p ( − x ) e x p ( x ) − e x p ( − x )
(2) x 2 + y 2 − 1 = 0 x^2 + y^2 - 1 = 0 x 2 + y 2 − 1 = 0 及び 0 ≤ x , y ≤ 1 0 \le x,y \le 1 0 ≤ x , y ≤ 1 の条件の下、f ( x , y ) = x 3 + 2 y 3 f(x, y) = x^3 + 2y^3 f ( x , y ) = x 3 + 2 y 3 の極値を求めよ。
設問2
地面に直立した半径 1 [ m ] 1[m] 1 [ m ] の円筒がある。 ヤギの首に長さ π [ m ] \pi[m] π [ m ] の伸び縮みしないヒモが結び付けられている。 このヒモのもう一端は円筒表面の一点(首と同じ高さ)に結び付けられている。
(1) 円筒の中心軸を原点とし、ヒモの結び付けられている円筒上の点を ( − 1 , 0 ) (-1,0) ( − 1 , 0 ) とする 2 2 2 次元座標系を地面上で考えたとき、x ≥ − 1 , y ≥ 0 x \ge -1, y \ge 0 x ≥ − 1 , y ≥ 0 において、ヤギがヒモをたるませずに立っているときの2次元座標を x x x 軸からの角度 θ \theta θ を用いて表せ。
(2) このヤギがヒモをたるませずに円筒周りを一周したとき、その総移動距離を求めよ。
(3) このヤギが歩き回れる地面の面積を求めよ。
English Version
Q.1
Answer the following questions.
(1) Express the derivative function for each of the following functions using only y y y and show the range of the derivative function.
A) y = f ( x ) = 1 1 + exp ( − x ) y = f(x) = \frac{1}{1 + \exp(-x)} y = f ( x ) = 1 + e x p ( − x ) 1
B) y = f ( x ) = exp ( x ) − exp ( − x ) exp ( x ) + exp ( − x ) y = f(x) = \frac{\exp(x) - \exp(-x)}{\exp(x) + \exp(-x)} y = f ( x ) = e x p ( x ) + e x p ( − x ) e x p ( x ) − e x p ( − x )
(2) Compute the extrema of f ( x , y ) = x 3 + 2 y 3 f(x, y) = x^3 + 2y^3 f ( x , y ) = x 3 + 2 y 3 when x 2 + y 2 − 1 = 0 x^2 + y^2 - 1 = 0 x 2 + y 2 − 1 = 0 and 0 ≤ x , y ≤ 1 0 \le x,y \le 1 0 ≤ x , y ≤ 1 .
Q.2
A cylinder of 1 [ m ] 1[m] 1 [ m ] radius is erected perpendicularly on the ground. A goat is on a leash
of π [ m ] \pi[m] π [ 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) ( − 1 , 0 ) .
Using angle θ \theta θ from the x x x axis, express the 2D coordinates of the goat when she is standing without any slack to the leash for x ≥ 1 , y ≥ 0 x \ge 1,y \ge 0 x ≥ 1 , y ≥ 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.
题目描述
回答:
对下列函数,把导数仅用 y y y 表示,并给出导数值域:
y = 1 1 + e − x y=\dfrac1{1+e^{-x}} y = 1 + e − x 1 ;
y = e x − e − x e x + e − x y=\dfrac{e^x-e^{-x}}{e^x+e^{-x}} y = e x + e − x e x − e − x 。
在 x 2 + y 2 = 1 x^2+y^2=1 x 2 + y 2 = 1 、0 ≤ x , y ≤ 1 0\le x,y\le1 0 ≤ x , y ≤ 1 下,求
f ( x , y ) = x 3 + 2 y 3 f(x,y)=x^3+2y^3 f ( x , y ) = x 3 + 2 y 3 的极值。
地面上竖立半径 1 m 1\,\mathrm m 1 m 的圆柱,山羊颈部系一根不可伸缩、长 π m \pi\,\mathrm m π m 的绳,另一端系在圆柱表面同高处。以圆柱轴为原点、系绳点为 ( − 1 , 0 ) (-1,0) ( − 1 , 0 ) 建立地面坐标系。
在 x ≥ − 1 , y ≥ 0 x\ge-1,y\ge0 x ≥ − 1 , y ≥ 0 区域,用相对 x x x 轴的角度 θ \theta θ 表示绳始终绷紧时山羊的坐标。
山羊保持绳绷紧绕圆柱一周,求总路程。
求山羊能活动到的地面总面积。
Sigmoid 与双曲正切导数 :把导数改写成 y ( 1 − y ) y(1-y) y ( 1 − y ) 、1 − y 2 1-y^2 1 − y 2 并求其值域。
圆弧约束极值 :在第一象限单位圆上用参数化或 Lagrange 乘子求边界极值。
圆的渐开线 :建立绳绕/解绕圆柱时端点的渐开线参数方程,并计算弧长与可达区域面积。
Kai
設問1
(1)
まず、 y = 1 / ( 1 + exp ( − x ) ) y=1/(1+\exp(-x)) y = 1/ ( 1 + exp ( − x )) より、 exp ( − x ) = ( 1 − y ) / y \exp(-x) = (1-y)/y exp ( − x ) = ( 1 − y ) / y である。
よって、
d y d x = d d x 1 1 + exp ( − x ) = exp ( − x ) ( 1 + exp ( − x ) ) 2 = y ( 1 − y ) = − y 2 + 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} d x d y = d x d 1 + exp ( − x ) 1 = ( 1 + exp ( − x ) ) 2 exp ( − x ) = y ( 1 − y ) = − y 2 + y
である。
d y / d x dy/dx d y / d x を x x x で表した式からわかるように、
任意の実数 x x x について、 d y / d x > 0 dy/dx \gt 0 d y / d x > 0 である。
また、
lim x → − ∞ y = 0 , lim x → ∞ y = 1 \begin{aligned}
\lim_{x \to -\infty} y = 0
, \ \
\lim_{x \to \infty} y = 1
\end{aligned} x → − ∞ lim y = 0 , x → ∞ lim y = 1
なので、 y y y の値域は ( 0 , 1 ) (0,1) ( 0 , 1 ) である。
さらに、
d y d x = − ( y − 1 2 ) 2 + 1 4 \begin{aligned}
\frac{dy}{dx}
&= - \left( y - \frac{1}{2} \right)^2 + \frac{1}{4}
\end{aligned} d x d y = − ( y − 2 1 ) 2 + 4 1
と書き換えられるので、 d y / d x dy/dx d y / d x の値域は ( 0 , 1 / 4 ] (0,1/4] ( 0 , 1/4 ] である。
まず、
d y d x = d d x exp ( x ) − exp ( − x ) exp ( x ) + exp ( − x ) = 4 ( exp ( x ) + exp ( − x ) ) 2 = − y 2 + 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} d x d y = d x d exp ( x ) + exp ( − x ) exp ( x ) − exp ( − x ) = ( exp ( x ) + exp ( − x ) ) 2 4 = − y 2 + 1
である。
d y / d x dy/dx d y / d x を x x x で表した式からわかるように、
任意の実数 x x x について、 d y / d x > 0 dy/dx \gt 0 d y / d x > 0 である。
また、
lim x → − ∞ y = − 1 , lim x → ∞ y = 1 \begin{aligned}
\lim_{x \to -\infty} y = -1
, \ \
\lim_{x \to \infty} y = 1
\end{aligned} x → − ∞ lim y = − 1 , x → ∞ lim y = 1
なので、 y y y の値域は ( − 1 , 1 ) (-1,1) ( − 1 , 1 ) である。
そこで、 d y / d x dy/dx d y / d x を y y y で表した式からわかるように、
d y / d x dy/dx d y / d x の値域は ( 0 , 1 ] (0,1] ( 0 , 1 ] である。
(2)
まず、条件 x 2 + y 2 − 1 = x^2+y^2-1= x 2 + y 2 − 1 = より、 x = cos θ , y = sin θ x = \cos \theta, y = \sin \theta x = cos θ , y = sin θ と表せる。
また、条件 0 ≤ x , y ≤ 1 0 \leq x, y \leq 1 0 ≤ x , y ≤ 1 は 0 ≤ θ ≤ π / 2 0 \leq \theta \leq \pi/2 0 ≤ θ ≤ π /2 に相当する。
f ( x , y ) f(x,y) f ( x , y ) を θ \theta θ で表した関数を g ( θ ) g(\theta) g ( θ ) と書く:
g ( θ ) = cos 3 θ + 2 sin 3 θ \begin{aligned}
g(\theta) = \cos^3 \theta + 2 \sin^3 \theta
\end{aligned} g ( θ ) = cos 3 θ + 2 sin 3 θ
このとき、
d g ( θ ) d θ = 3 sin θ cos θ ( − cos θ + 2 sin θ ) \begin{aligned}
\frac{dg(\theta)}{d \theta} = 3 \sin \theta \cos \theta (- \cos \theta + 2 \sin \theta)
\end{aligned} d θ d g ( θ ) = 3 sin θ cos θ ( − cos θ + 2 sin θ )
なので、増減表は次のようになる
( α \alpha α は tan α = 1 / 2 \tan \alpha = 1/2 tan α = 1/2 を満たす):
θ ⋯ 0 ⋯ α ⋯ π / 2 ⋯ g ′ ( θ ) + 0 – 0 + 0 − g ( θ ) ↗ 1 ↘ 2 / 5 ↗ 2 ↘ \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} θ g ′ ( θ ) g ( θ ) ⋯ + ↗ 0 0 1 ⋯ – ↘ α 0 2/ 5 ⋯ + ↗ π /2 0 2 ⋯ − ↘
よって、求める極値は、極大値 1 , 2 1,2 1 , 2 と極小値 2 / 5 2/\sqrt{5} 2/ 5 である。
設問2
(1)
原点を O O O とし、ヤギの座標を P P P とし、ヤギが点 ( 1 , 0 ) (1,0) ( 1 , 0 ) からヒモをたるませずに立っている状況を想定することにします。
ヒモと円筒の接点を Q Q Q とし、x x x 軸と線分 O Q OQ OQ のなす角度を反時計回りを正として θ \theta θ と定義します。
P , Q P, Q P , Q の座標ベクトルをそれぞれ p , q p, q p , q とし、直線 Q P QP QP の単位方向ベクトル、すなわち点 Q Q Q の円筒に関する接線の単位方向ベクトルを t t t とすると、以下が成り立ちます。
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) q = ( cos θ , sin θ ) , t = ( cos ( π /2 − θ ) , − sin ( π /2 − θ )) = ( sin θ , − cos θ )
一方、ほどけた紐の長さが扇型の弧の長さに相当して θ \theta θ であることに注意すると、p p p は
p = q + θ t p = q + \theta t p = q + θt
と表されます。したがって、円筒の半径を r r r とおくと、ヤギの座標ベクトルは以下のように表されます。
p = ( r cos θ + r θ sin θ , r sin θ − r θ cos θ ) p = (r\cos\theta+r\theta\sin\theta,~r\sin\theta-r\theta\cos\theta) p = ( r cos θ + r θ sin θ , r sin θ − r θ cos θ )
(2)
(1) で求めた範囲における移動距離を L 1 L_1 L 1 、x < − 1 x < -1 x < − 1 の半円弧を L 2 L_2 L 2 とすると、ヤギがヒモをたるませず円筒周りを一周したときの総移動距離 L L L は
L = 2 L 1 + L 2 = 2 L 1 + π 2 L = 2L_{1}+L_{2} = 2L_{1}+\pi^{2} L = 2 L 1 + L 2 = 2 L 1 + π 2
と表されます。ここで、
L 1 = ∫ α β ( d x d θ ) 2 + ( d y d θ ) 2 d θ = ∫ 0 π ( θ cos θ ) 2 + ( θ sin θ ) 2 d θ = ∫ 0 π θ d θ = π 2 2 \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 1 = ∫ α β ( d θ d x ) 2 + ( d θ d y ) 2 d θ = ∫ 0 π ( θ cos θ ) 2 + ( θ sin θ ) 2 d θ = ∫ 0 π θ d θ = 2 π 2
ゆえに、求める答えは
L = 2 ⋅ π 2 2 + π 2 = 2 π 2 L = 2\cdot\frac{\pi^{2}}{2}+\pi^{2} = 2\pi^{2} L = 2 ⋅ 2 π 2 + π 2 = 2 π 2
(3)
L 1 L_1 L 1 , 円筒, x = − 1 x = -1 x = − 1 に囲まれる面積を S 1 S_1 S 1 とし, L 2 L_2 L 2 , x = − 1 x = -1 x = − 1 に囲まれる面積を S 2 S_2 S 2 とし、
S = 2 S 1 + S 2 = 2 ∫ 0 π 1 2 θ 2 d θ + π 3 2 = 2 ⋅ π 3 6 + π 3 2 = 5 π 2 6 \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} S = 2 S 1 + S 2 = 2 ∫ 0 π 2 1 θ 2 d θ + 2 π 3 = 2 ⋅ 6 π 3 + 2 π 3 = 6 5 π 2
を計算できる。