写像としての関数
Agent支援エンジニアリングチェック
前提条件
前の活動を終え、行き詰まったら記載の回復ソースを使うこと。
学習目標
関数を、定義域内の許された各入力をちょうど一つの出力に対応させる規則として扱う。公式を使う前に表を作り、定義域・値域・単位・仮定を明示する。
手順
1. まず定義を読む:定義域 D から出る関数 f は、D のすべての入力 x にちょうど一つの出力 f(x) を割り当てる。式に触れる前に、D、出力の集合、単位(ここでは単なる数)を書く。
2. 計算の前に予測する:どの入力が最小の出力を与えるか、どの入力の組が同じ出力を共有するか。
3. 表を列ごとに作る:x、次に x^2、次に x^2+1。1 を足す前に平方する段階で誤りが最も多い。(-2)^2 は 4 であり、-4 ではない。
4. 値域は表だけでなく代数から読み取る:すべての実数 x で x^2 ≥ 0 なので x^2+1 ≥ 1。さらに y ≥ 1 のどの値も x = sqrt(y-1) で実現される。
5. 演習項目で定義を試す:一つの入力が二つの異なる出力と対になった時点で、その関係は関数ではない。
6. 予測と表を比べ、食い違いがあれば一文で記録する。
時間配分(120 分):読解 30 + 演習 60 + 確認 30。 読解:OpenStax Calculus Vol. 1 の 2.1 節(定義、定義域と値域、垂直線テスト)。演習:表と演習項目 (b)(c)。確認:ノートを閉じて習熟項目をやり直し、参照解答と一行ずつ比べる。
練習と予測ログ
(a) f(x)=x^2+1 について、x=-2,-1,0,1,2 の表を作る。実数全体での定義域と値域を述べる。さらに、一つの入力が二つの出力を持てない理由を説明する。(b) h(x)=sqrt(x-2) について実数の定義域と値域を述べ、h(2)、h(3)、h(6) を計算する。(c) 次のそれぞれが x の関数かどうか判定する:関係 {(1,2), (2,3), (1,4)}、および規則 x = y^2。
対応の矢印 x -> f(x) を書き、入力列と出力列にラベルを付ける。1 を足す前に平方を確認する。回復:OpenStax Calculus Vol. 1 の 2.1 節。利用できない場合は五行の表を描き直し、上の定義を使う。
(a) 平方を先にして一行ずつ計算する:
x = -2:x^2 = 4、f(-2) = 5
x = -1:x^2 = 1、f(-1) = 2
x = 0:x^2 = 0、f(0) = 1
x = 1:x^2 = 1、f(1) = 2
x = 2:x^2 = 4、f(2) = 5
定義域:すべての実数 x。平方と 1 の加算はすべての実数で定義されるからである。値域:y ≥ 1。理由:x^2 ≥ 0 で等号は x = 0 のときだけなので f(x) ≥ 1。また x = sqrt(y - 1) とすれば f(x) = y となるので、y ≥ 1 のすべての値が実現される。表が示すのは五つの出力だけであり、値域の主張にはこの代数が必要である。
一つの入力に一つの出力:関数は決定的な規則なので、f(2) を二度評価すれば二度とも 5 になる。二つの入力が同じ出力を共有するのは構わない(f(-2) = f(2) = 5)。一つの入力が二つの出力を持つことは許されない。
(b) 平方根の中身は非負でなければならないので x - 2 ≥ 0、定義域は x ≥ 2。h(2) = sqrt(0) = 0、h(3) = sqrt(1) = 1、h(6) = sqrt(4) = 2。値域:y ≥ 0。主平方根は負にならず、y ≥ 0 のどの値も x = y^2 + 2 で実現されるからである。
(c) {(1,2), (2,3), (1,4)} は関数ではない:入力 1 が 2 とも 4 とも対になっている。x = y^2 は y を x の関数として定めない:x = 4 で y = 2 と y = -2 の二つが出る。y ≥ 0 に制限すると関数 y = sqrt(x) になる。
よくある誤り:(-2)^2 + 1 = -3 と書く。定義域を写して値域を「すべての実数」とする。二つの入力が 5 を与えるから f は関数でない、と判断する。
支援なしで、定義域と値域を定義し、五つの正しい出力を示し、「入力ごとに出力はちょうど一つ」という仮定を挙げる。
権威ある出典リソースと出典情報
OpenStax Calculus Volume 1
該当セクション・タイムスタンプ: Sections 2.1-2.3 (Functions, Limits, and the Derivative); Sections 3.1-3.2 (Derivative Rules)
検証バージョンと日付: 3rd edition, verified 2026-10-30
Open, systematic treatment of the limit definition and derivative rules with stable section locations.
Algebra, coordinate geometry, and function notation
The authored derivations, tables, and exercises in these three Study Days are complete offline recovery material; use the linked section only for optional comparison.
比較対象候補リソースと選定評価 (3)
Strong exercises and transcripts, but the noncommercial share-alike terms and course navigation make OpenStax the primary stable text.
Useful reference, but rights and redistribution terms are less suitable for embedded recovery material.
A primary API reference for numerical derivative step-size behavior; it complements rather than replaces the hand derivation.
SciPy numerical derivative reference
該当セクション・タイムスタンプ: derivative API: finite differences, step-size iteration, tolerances
検証バージョンと日付: SciPy documentation, verified 2026-10-30
Documents numerical differentiation as an approximation with finite step sizes and stopping criteria.
Python arithmetic and the definition of a derivative
The local Day 18 tables and pure-Python snippets reproduce the relevant finite-difference behavior without SciPy.
比較対象候補リソースと選定評価 (2)
Array-oriented gradient estimation on sampled grids; the SciPy derivative reference matches the pointwise finite-difference helper the exercises implement.
Symbolic rather than numerical differentiation; useful for exact cross-checks but not the finite-difference practice target.