在高中数学学习中,导数是微积分的重要组成部分,也是高考数学中的难点之一。掌握导数的概念、法则和运用是解决导数问题的关键。以下,我们将通过10个经典例题的解析,帮助高中生更好地理解和破解导数难题。
例题1:求函数f(x) = x^3 - 3x^2 + 2x的导数
解析: 首先,我们需要回忆导数的定义,即函数在某一点的导数是函数图像在该点切线斜率的极限值。根据导数的定义,我们可以得到:
def f(x):
return x**3 - 3*x**2 + 2*x
def derivative(f, x):
h = 0.00001
return (f(x + h) - f(x)) / h
# 求导数
x = 1
result = derivative(f, x)
print("f'(1) =", result)
答案: f’(x) = 3x^2 - 6x + 2,所以f’(1) = 3*1^2 - 6*1 + 2 = -1。
例题2:求函数f(x) = e^x - sin(x)在x=π/2处的导数
解析: 对于复合函数的导数,我们需要使用链式法则。首先,求出外函数e^x的导数,即e^x,然后求出内函数sin(x)的导数,即cos(x)。最后,将两个导数相乘得到复合函数的导数。
import math
def f(x):
return math.exp(x) - math.sin(x)
def derivative(f, x):
return f(x) * math.cos(x)
# 求导数
x = math.pi / 2
result = derivative(f, x)
print("f'(π/2) =", result)
答案: f’(π/2) = e^(π/2) - cos(π/2) = e^(π/2)。
例题3:求函数f(x) = ln(x)在x=1处的导数
解析: 对于对数函数的导数,我们需要使用对数函数的导数公式。对于函数f(x) = ln(x),其导数f’(x) = 1/x。
import math
def f(x):
return math.log(x)
def derivative(f, x):
return 1/x
# 求导数
x = 1
result = derivative(f, x)
print("f'(1) =", result)
答案: f’(1) = 1。
例题4:求函数f(x) = x^2 * sin(x)的导数
解析: 对于乘积函数的导数,我们需要使用乘积法则。即,对于函数f(x) = g(x) * h(x),其导数f’(x) = g’(x) * h(x) + g(x) * h’(x)。
import math
def f(x):
return x**2 * math.sin(x)
def derivative(f, x):
g = x**2
h = math.sin(x)
return g * h + x**2 * math.cos(x)
# 求导数
x = 1
result = derivative(f, x)
print("f'(1) =", result)
答案: f’(x) = 2x * sin(x) + x^2 * cos(x),所以f’(1) = 2*1 * sin(1) + 1**2 * cos(1) ≈ 3.544。
例题5:求函数f(x) = (1/x)^2的导数
解析: 对于幂函数的导数,我们需要使用幂函数的导数公式。对于函数f(x) = x^n,其导数f’(x) = nx^(n-1)。
import math
def f(x):
return (1/x)**2
def derivative(f, x):
return -2 * (1/x)**3
# 求导数
x = 1/2
result = derivative(f, x)
print("f'(1/2) =", result)
答案: f’(x) = -2x^(-3),所以f’(1⁄2) = -2*(1⁄2)^(-3) = -2*8 = -16。
例题6:求函数f(x) = x^3 + 2x^2 - 5x + 1的导数
解析: 对于多项式函数的导数,我们可以分别求出每一项的导数,然后将它们相加。对于函数f(x) = x^3 + 2x^2 - 5x + 1,其导数f’(x) = 3x^2 + 4x - 5。
import math
def f(x):
return x**3 + 2*x**2 - 5*x + 1
def derivative(f, x):
return 3*x**2 + 4*x - 5
# 求导数
x = 1
result = derivative(f, x)
print("f'(1) =", result)
答案: f’(1) = 3*1**2 + 4*1 - 5 = 2。
例题7:求函数f(x) = sin(x) + cos(x)的导数
解析: 对于三角函数的导数,我们需要使用三角函数的导数公式。对于函数f(x) = sin(x) + cos(x),其导数f’(x) = cos(x) - sin(x)。
import math
def f(x):
return math.sin(x) + math.cos(x)
def derivative(f, x):
return math.cos(x) - math.sin(x)
# 求导数
x = math.pi / 4
result = derivative(f, x)
print("f'(π/4) =", result)
答案: f’(π/4) = cos(π/4) - sin(π/4) = √2/2 - √2/2 = 0。
例题8:求函数f(x) = ln(x) + ln(x + 1)的导数
解析: 对于对数函数和乘积函数的导数,我们需要使用对数函数的导数公式和乘积法则。对于函数f(x) = ln(x) + ln(x + 1),其导数f’(x) = 1/x + 1/(x + 1)。
import math
def f(x):
return math.log(x) + math.log(x + 1)
def derivative(f, x):
return 1/x + 1/(x + 1)
# 求导数
x = 2
result = derivative(f, x)
print("f'(2) =", result)
答案: f’(x) = 1/x + 1/(x + 1),所以f’(2) = 1⁄2 + 1/(2 + 1) = 3/4。
例题9:求函数f(x) = x^2 * e^x的导数
解析: 对于乘积函数和指数函数的导数,我们需要使用乘积法则和指数函数的导数公式。对于函数f(x) = x^2 * e^x,其导数f’(x) = x^2 * e^x + 2x * e^x。
import math
def f(x):
return x**2 * math.exp(x)
def derivative(f, x):
return f(x) + 2*x * math.exp(x)
# 求导数
x = 1
result = derivative(f, x)
print("f'(1) =", result)
答案: f’(x) = x^2 * e^x + 2x * e^x,所以f’(1) = 1**2 * e^1 + 2*1 * e^1 = 3e。
例题10:求函数f(x) = sin(x^2)的导数
解析: 对于复合函数的导数,我们需要使用链式法则。对于函数f(x) = sin(x^2),我们可以将其看作是复合函数g(x) = x^2和h(x) = sin(x)的复合。首先,求出g(x)的导数,即2x,然后求出h(x)的导数,即cos(x^2)。最后,将两个导数相乘得到复合函数的导数。
import math
def f(x):
return math.sin(x**2)
def derivative(f, x):
return 2*x * math.cos(x**2)
# 求导数
x = math.pi / 2
result = derivative(f, x)
print("f'(π/2) =", result)
答案: f’(x) = 2x * cos(x^2),所以f’(π/2) = 2*(π/2) * cos((π/2)^2) = π * cos(π^2⁄4)。
