# How do I find the intersection of these two parametric curves (representing an undercut involute gear's tooth faces and tooth roots)?

I have two parametric curves. The first, with parameter theta:

$x = Z × \cos(α) × (\cos(θ − \tan(α) + α) + θ × \sin(θ − \tan(α) + α)),$

$y = Z × \cos(α) × (\sin(θ − \tan(α) + α) − θ × \cos(θ − \tan(α) + α)),$

$θ_{min} ≤ θ ≤ θ_{max}$

And the second, with parameter gamma:

$x = (2 × X − 2 × C + Z) × \cos(γ) + (2 × \tan(α) × (C − X) + γ × Z) × \sin(γ),$

$y = (2 × X − 2 × C + Z) × \sin(γ) − (2 × \tan(α) × (C − X) + γ × Z) × \cos(γ),$

$γ_{min} ≤ γ ≤ γ_{max}$

Where:

- $Z$ is a positive integer,
- $α$ is an angle in the interval $[0°, 32°]$,
- $X$ is a real number in the interval $[−1, 1]$,
- $C$ is a real number in the interval to $[1, 1.5]$,
- $θ_{max} = \frac{\sec(α)}{Z} × \sqrt{(2 × X + Z + 2)² − Z² × \cos(α)²}$,
- $γ_{max} = \frac{−2}{Z} × (C − X) × \tan(α)$, and
- $θ_{min}$ and $γ_{min}$ are the parameter values at the intersection that I want to find.

*touching*intersection (where their tangents are the same) at the parameter values $θ = \tan(α) − \frac{4}{Z} × (C − X) × \csc(2 × α)$ and $γ = \frac{−4}{Z} × (C − X) × \csc(2 × α)$. (See the red and blue curves in https://i.stack.imgur.com/MbIkv.png)

However, when $α < \arcsin\left(\sqrt{\frac{2}{Z} × (C − X)}\right)$, there is a

*transversal*intersection (where their tangents are distinct) at parameter values closer to zero than for the touching intersection. (See the red and blue curves in https://i.stack.imgur.com/5fM6k.png)

**I want to find the parameter values $θ_{min}$ and $γ_{min}$ for this transversal intersection in terms of $Z$, $α$, $X$, and $C$.**

Specifically,

**$θ_{min}$ should always be greater than or equal to zero**. If $α < \arcsin\left(\sqrt{\frac{2}{Z} × (C − X)}\right)$, then the value of $θ = \tan(α) − 4 / Z × (C − X) × \csc(2 × α)$ is negative and thus is invalid for my purposes.

I know that on the first curve, the radius of a point for a given value of theta is $r_θ = Z \cos(α) \sqrt{θ² + 1}$, and conversely the value of theta for a given radius is $θ_r = \sqrt{\frac{r²} {Z² \cos(α)²} - 1}$. This means that if I can find the radius of the transversal intersection point by any process, I can easily convert it into the value for $θ_{min}$, and vice versa.

Similarly, I know that for the second curve, the radius of a point for a given value of gamma is $r_γ = \sqrt{(2 \tan(α) (C - X) + γ Z)² + (2 X - 2 C + Z)²}$, and conversely the value of gamma for a given radius is $γ_r = \frac{±\sqrt{r² - (2 X - 2 C + Z)²} + (2 X - 2 C) \tan(α)}{Z}$. This means that if I can find the radius of the transversal intersection point by any process, I can easily convert it into the value for $γ_{min}$, and vice versa.

Thus, if I get either one of $θ_{min}$ or $γ_{min}$, I can use that value to find the other. If I can find the radius of the intersection separately, I can use it to find both values.

**Context:**

The curve with parameter theta is the involute face curve of a tooth on an involute gear, while the curve with parameter gamma is the trochoid root curve of the same tooth. These curves are naturally generated in real life by the gear-shaping process called

*hobbing*, without needing any fancy math. Representing them in a computer, which I want to do, is more difficult. The shapes of these curves are defined by four parameters:

- $Z$, the number of teeth on the gear;
- $α$, the angle of the contact force between meshed gear teeth, called the pressure angle or pitch angle;
- $X$, the profile shift coefficient, specifying how far in or out the cutting tool is moved compared to cutting a standard gear profile; and
- $C$, the clearance factor, specifying how much clearance there is between the tooth roots on one gear and the tooth tips on a meshing gear.

*module*or

*pitch*, which describes the overall size of the gear. Because this parameter is a uniform scaling factor, it has no effect on the angles involved or the values of theta and gamma, so I have left it out of the equations for the sake of simplicity.

When $α ≥ \arcsin\left(\sqrt{\frac{2}{Z} × (C − X)}\right)$, the involute face curve transitions smoothly into the trochoid root curve (with a touching intersection). However, when $α < \arcsin\left(\sqrt{\frac{2}{Z} × (C − X)}\right)$, the root curve cuts off some of the face curve (with a transversal intersection). This is called undercutting and is in general undesirable, as it reduces the strength of the gear; however, small amounts of undercutting are tolerated in many situations. I want to find the point on each curve where this undercutting occurs so I can accurately draw an undercut gear.

Join Matchmaticians Affiliate Marketing
Program to earn up to 50% commission on every question your affiliated users ask or answer.

- answered
- 320 views
- $40.00

It would take over an hour to understand, and figure out a solution for this problem. So I would say your offered amount is too low.

@David89 I increased the bounty.