Tangents with a given slope: solve f′(x) = k and find the contact points
Recover every admissible contact point from a slope condition, form the tangent lines, and count distinct lines rather than contacts.
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
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)$.
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.
4. Practice
- Find tangents to $y=x^2$ with slope 0.
- Find tangents to $y=x^3$ with slope $-1$.
- Find the horizontal tangents to $y=x^3-3x$.
Hints and answers
- The derivative equation $2x=0$ gives 0, with contact point $(0;0)$, so $y=0$.
- There are none, since $3x^2\ge0$ cannot equal $-1$.
- 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).
Leave a Reply