Chalk−1

Math · Calculus I · Worked example

Differentiate eˣ, ln x and sin x terms

Differentiate f⁡(x) =3ex−2lnx+5sinx, then find the slope of its graph at x=1 (x in radians).

f⁡(x)=3ex−2lnx+5sinx

Try one — Chalk checks each line

State the domain

The logarithm lnx is defined only for x>0, so f and its derivative live on x>0. The sine term uses radians.

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−2x+5cosx

Evaluate at x=1

Substitute x=1 to get 3e1−2⁢/1+5cos1, which is 3⁢e−2+5cos1. With e≈2.71828 and cos1≈0.54030, the slope is about 8.856.

f′(1)=3⁢e−2+5cos1≈8.856

Interpret the slope

At x=1 the graph rises about 8.86 units per unit of x. The exponential term contributes most of that, 3⁢e≈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+3⁢e ≈8.856.

f′(x)=3ex−2x+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) =4⁢e+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 4⁢e+3+2sin1 ≈10.873+3+1.683 =15.556.

g⁡(x)=4ex+3lnx−2cosxg′(x)=4ex+3x+2sinxg′(1)=4⁢e+3+2sin1

2. A variation

Differentiate h⁢(x)=5x+log2x. Neither base is e.

Show the answer and explanation

h′(x) =5xln5+1⁢/⁢(xln2), for x>0.

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+1xln2

3. Somewhere new

A mass on a spring sits s⁢(t)=3cost cm 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 −3sint cm⁢/⁢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)=−32

Keep exploring

Open the steps in Math and replace 5sinx with 5cosx: predict the new derivative before the checker marks it.

Return to the concept →
Sources and scope

Authored study material. Tool results depend on the stated inputs and model assumptions.

After reading

Try it, then study it

Open the example in its tool to check steps or change values, then review the key terms as flashcards.

Check the derivative in Math Check it for x>0 in Math Study the 6 key terms Open worked example on a board Derivative formulas in Math Reference

Your existing work stays on this device. Examples open as editable copies.