Maths WorkshopMaths problems with full solutions
Exercise 62Calculus › Single-variable calculus › Differentiation › Taylor expansionsL1Added 3 Nov 2026

Position of a curve relative to its tangent

#tangent line#inflection#local behaviour

Statement

For each function, determine the position of its graph relative to its tangent at 00, locally:
1. f(x)=xcos⁡xf(x)=x\cos x,
2. g(x)=ln⁡(1+x)g(x)=\ln(1+x),
3. h(x)=exsin⁡xh(x)=e^x\sin x.

Hint

Expand to the first order at which the expansion differs from the tangent y=f(0)+f′(0)xy=f(0)+f'(0)x.

Show solutionHide solution

Solution

1. xcos⁡x=x−x32+o(x3)x\cos x=x-\frac{x^3}2+o(x^3). The tangent is y=xy=x, and f(x)−x∼−x32f(x)-x\sim-\frac{x^3}2 changes sign at 00: the curve crosses its tangent (inflection point).

2. ln⁡(1+x)=x−x22+o(x2)\ln(1+x)=x-\frac{x^2}2+o(x^2). The tangent is y=xy=x and g(x)−x∼−x22<0g(x)-x\sim-\frac{x^2}2<0: the curve lies below its tangent on both sides (locally concave).

3. exsin⁡x=x+x2+x33+o(x3)e^x\sin x=x+x^2+\frac{x^3}3+o(x^3). The tangent is y=xy=x and h(x)−x∼x2>0h(x)-x\sim x^2>0: the curve lies above its tangent (locally convex).

Rule. If the first non-zero term after the linear part is c xkc\,x^k: for kk even, the sign of cc gives the side (above if c>0c>0); for kk odd, the curve crosses the tangent.

Remark. Note that xcos⁡xx\cos x has f′′(0)=0f''(0)=0: this is the signature of an inflection point.