Skip to main content

Tangents with a given slope: solve f′(x) = k and find the contact points

2026-10-22 Cùng Học Toán Comments: 0

Recover every admissible contact point from a slope condition, form the tangent lines, and count distinct lines rather than contacts.

High schoolFunctions, Graphs & Tangents

Content updated: October 22, 2026

A slope determines only a tangent's direction. Its position also depends on the contact point; every admissible solution of the derivative-equals-slope equation must be handled.

Objectives: find contact points from the derivative, list all tangents, and distinguish the number of contacts from the number of lines.

Prerequisites: derivatives, the tangent equation at a point, and equation solving.

On this page: Definition · Method · Examples · Practice · Further learning

1. The slope condition

Consider $y=f(x)$ at points with finite derivatives. The tangent at input $x_0$ has slope $f'(x_0)$. To have real slope $k$, require $f'(x_0)=k$, with $x_0$ in the domains of the function and derivative being used.

This condition is necessary and sufficient for a tangent defined by the finite-derivative formula. It does not require either contact coordinate to equal $k$. If the equation has no admissible solution, there is no tangent with the specified slope within this setting.

2. Three steps and a check

Calculate $f'(x)$ and solve all of $f'(x)=k$ within the domain. For each root $x_i$, calculate $y_i=f(x_i)$ and write

$$y=k(x-x_i)+y_i=kx+(y_i-kx_i).$$

To count distinct lines, compare their constant terms $y_i-kx_i$. Two contact points may yield one line, for example a horizontal line tangent at two points. Retain both contact points, but do not count the line twice.

Check each line by substituting $x_i$ and comparing its slope with $k$. For rational or radical functions, filter the domain before forming the line; clearing denominators must not admit a point where the original function is undefined.

3. Worked examples

Example 1. Slope −3

Let $f(x)=x^3-3x^2+2$ and find tangents with $k=-3$. We have $f'(x)=3x^2-6x$. The equation $3x^2-6x=-3$ is equivalent to $3(x-1)^2=0$, so the sole contact input is 1. Its height is $f(1)=0$. The tangent is $y=-3(x-1)=-3x+3$. A double derivative-equation root still represents one contact point.

Example 2. Two contact points with the same slope

Let $f(x)=x^3+3x-1$ and $k=6$. Since $f'(x)=3x^2+3$, the equation $f'(x)=6$ gives $x=1$ or $x=-1$. The heights are $f(1)=3$ and $f(-1)=-5$, so the contacts are $(1;3)$ and $(-1;-5)$.

$$y=6(x-1)+3=6x-3,\qquad y=6(x+1)-5=6x+1.$$

Different constant terms give two distinct tangents with the same slope 6. At the second point, use $f(-1)$ rather than copying $f(1)$.

Example 3. Checking a rational function's domain

For $f(x)=1/x$, find tangents with $k=-1$. The domain is $x\ne0$, and the derivative is $-1/x^2$. Equating it to $-1$ gives $x^2=1$, so both $x=1,-1$ are admissible. Their heights are 1 and $-1$, giving $y=-x+2$ and $y=-x-2$. No substitution at 0 is allowed.

−1.5 −1.0 −0.5 0.0 0.5 1.0 1.5 x −10.0 −7.5 −5.0 −2.5 0.0 2.5 5.0 7.5 10.0 y (1, 3) (−1, −5) Two tangents with slope 6 f(x) = x³ + 3x − 1 y = 6x − 3 y = 6x + 1
Illustration of Example 2. Distinct contact points yield two tangents with slope 6 and different constant terms.

4. Practice

  1. Find tangents to $y=x^2$ with slope 0.
  2. Find tangents to $y=x^3$ with slope $-1$.
  3. Find the horizontal tangents to $y=x^3-3x$.
Hints and answers
  1. The derivative equation $2x=0$ gives 0, with contact point $(0;0)$, so $y=0$.
  2. There are none, since $3x^2\ge0$ cannot equal $-1$.
  3. The derivative equation $3x^2-3=0$ gives $x=\pm1$. The height at 1 is $-2$ and at $-1$ is 2. The two lines are $y=-2$ and $y=2$.

5. Common mistakes

Do not use $k$ as the contact input. Retain every derivative-equation root. Use the correct height after obtaining a negative input. Do not equate the number of contact points with the number of distinct tangents without comparing equations.

6. Further learning

The tangent at a point (English lesson) · Derivatives (English lesson) · Tangents parallel to a given line (English lesson) · Tangents perpendicular to a given line (English lesson).

Original lesson video (Vietnamese-language video)

Original lesson video (Vietnamese-language video)

Original lesson video (Vietnamese-language video)

Leave a Reply

Your email address will not be published. Required fields are marked *