跳到正文

算法·理论

【数学】二次函数-001

原文
文章信息与版本

文章信息

收录
2026年4月17日
更新
2026年5月23日
篇幅
约 2 分钟

版本

  1. v1当前

题干

对于二次函数 y=ax2+bx+cy=ax^2+bx+c,若存在一个实数 tt,使得 g=y−txg=y-tx,则称 gg 是“tt 的相关量”.

现已知 gg 是“tt 的相关量”,且二次函数 y=−x2+3tx+t2−3y=-x^2+3tx+t^2-3 在 x∈[−2,1]x\in[-2,1] 时 gg 的最大值为 22,求此时的 tt.

解法

∵y=ax2+bx+c,g=y−tx\because y=ax^2+bx+c,g=y-tx,

∴g=ax2+(b−t)x+c.\therefore g=ax^2+(b-t)x+c.

∵y=−x2+3tx+t2−3\because y=-x^2+3tx+t^2-3,

∴a=−1,b=3t,c=t2−3\therefore a=-1,b=3t,c=t^2-3,

∴g=−x2+2tx+t2−3.\therefore g=-x^2+2tx+t^2-3.

∴\therefore 该抛物线开口向下,

∴\therefore 函数最大值在顶点.

由顶点坐标公式可知其顶点为 (t,t2−3).(t,t^2-3).

∵x∈[−2,1]\because x\in[-2,1] 时,gg 最大值为 22,

∴\therefore 进行分类讨论:

当 t∈[−2,1]t\in[-2,1] 时

∵\because 其顶点为 (t,t2−3)(t,t^2-3),

∴t2−3=2.\therefore t^2-3=2.

解得 t=±102.t=±\frac{\sqrt{10}}{2}.

计算发现 102∉[−2,1]\frac{\sqrt{10}}{2}\notin[-2,1],

∴t=−102.\therefore t=-\frac{\sqrt{10}}{2}.

当 t<−2t<-2 时

∵\because 该抛物线开口向下,

∴\therefore 最大值在 x=−2x=-2 处取得.

将 x=−2x=-2 代入,可知 t2−4t−7=2t^2-4t-7=2,解得 t=2±13.t=2±\sqrt{13}.

代入发现解不满足要求,故 t<−2t<-2 时无解.

当 t>1t>1 时

与 t<−2t<-2 的情况相似地,可解得 t=7−1.t=\sqrt 7-1.


综上可知,本题的解为

t∈{−102,7−1}.t\in\{-\frac{\sqrt{10}}{2},\sqrt 7-1\}.
原文