The logarithm lnx is defined only for x>0, so f and its derivative live on x>0. The sine term uses radians.
2
Differentiate term by term
Constant multiples stay in front, and a sum is differentiated one term at a time. The derivative of ex is ex, of lnx is 1/x, and of sinx is cosx.
f′(x)=3ex−x2+5cosx
3
Evaluate at x=1
Substitute x=1 to get 3e1−2/1+5cos1, which is 3e−2+5cos1. With e≈2.71828 and cos1≈0.54030, the slope is about 8.856.
f′(1)=3e−2+5cos1≈8.856
4
Interpret the slope
At x=1 the graph rises about 8.86 units per unit of x. The exponential term contributes most of that, 3e≈8.15, and it grows as x increases while the logarithm’s contribution −2/x shrinks.
Result
f′(x)=3ex−2/x+5cosx for x>0, and f′(1)=5cos1−2+3e≈8.856.
f′(x)=3ex−x2+5cosx
Your turn
1. One like the example
Differentiate g(x)=4ex+3lnx−2cosx, then find g′(1).
Show the answer and explanation
g′(x)=4ex+3/x+2sinx for x>0, and g′(1)=4e+3+2sin1≈15.556.
Term by term, 4ex gives 4ex and 3lnx gives 3/x. The cosine’s derivative is −sinx,so −2cosx gives +2sinx. At x=1 that is 4e+3+2sin1≈10.873+3+1.683=15.556.
An exponential with base 5 has derivative 5x times ln5. A logarithm to base 2 is lnx/ln2, a constant multiple of lnx, so its derivative is 1/(xln2). The logarithm needs x>0.
h(x)=5x+log2xh′(x)=5xln5+xln21
3. Somewhere new
A mass on a spring sits s(t)=3costcm from its rest position t seconds after release. What is its velocity at t=π/6 seconds?
Show the answer and explanation
s′(π/6)=−3/2=−1.5 cm/s. The mass is moving back toward its rest position.
Velocity is the derivative of position. The derivative of 3cost is −3sintcm/s, and sin(π/6)=1/2, which gives s′(π/6)=−1.5 cm/s. At t=π/6 the mass is at 3cos(π/6)≈2.6 cm, on the positive side, and the negative velocity carries it toward 0.
s(t)=3costs′(t)=−3sints′(6π)=−23
Keep exploring
Open the steps in Math and replace 5sinx with 5cosx: predict the new derivative before the checker marks it.