Sometimes function is defined parametrically, but we still need to find equation of tangent line.
So, let parametric curve is defined by equations x=f(t) and y=g(t).
Suppose f and g are differentiable functions and we want to find the tangent line at a point on the curve where y is also a differentiable function of x.
Then using Chain Rule we can write dtdy=dxdydtdx.
If dtdx=0 then we solve for dxdy:
dxdy=dtdxdtdy.
This equation allows us to find the slope dxdy of tangent line without having to eliminate parameter t.
We see from equation that the curve has
horizontal tangent when dtdy=0 (provided that dtdx=0).
vertical tangent when dtdx=0 (provided that dtdy=0).
Example 1. Find equation of tangent line at point (5,-1) to the curve x=3t4+t2+1 and y=t5−2t. Where curve has horizontal and vertical tangents?
dtdx=3⋅4t4−1+2⋅t2−1=12t3+2t.
dtdy=5⋅t5−1−2⋅1t1−1=5t4−2.
At the point with parameter value t, the slope is
dxdy=dtdxdtdy=12t3+2t5t4−2.
Point (5,-1) corresponds to t=1, so dxdy∣t=1=12⋅13+2⋅15⋅14−2=143.
Therefore, equation of tangent line is y+1=143(x−5) or y=143x−1429 (blue line).
Curve has horizontal tangent when dtdy=0 or 5t4−2=0. So, tangent line is horizontal at t=±452≈±0.795271.
When t=0.795271(x,y)=(1.8324576,−1.272433).
When t=−0.795271(x,y)=(1.8324576,1.272433).
Curve has vertical tangent when dtdx=0 or 12t3+2t=0. So, tangent line is horizontal at t=0.
When t=0(x,y)=(0,0).
As appears from graph our answers are correct (green line is vertical tangent, red lines are horizontal tangents).
Finally, let's see example when there can be more than one tangent line at point.
Example 2. Find equation of tangent line to x=t2, y=t3−4t at point (4,0).
First let's find values of t for which x=4 and y=0.
So, t2=4 when t=±2 and t3−4t=t(t2−4)=0 when t=0 and t=±2.
So, x=4, y=0 when t=±2. Note that we obtained two values for t, so there will be two tangent lines.
Now, let's find derivative:
dxdy=dtdxdtdy=2t3t2−4.
When t=2 we have that dxdy∣t=2=2⋅23⋅22−4=2.
So, first tangent line is y−0=2(x−4) or y=2x−8.
When t=−2 we have that dxdy−∣t=2=2⋅(−2)3⋅(−2)2−4=−2.
Thus, second tangent line is y−0=−2(x−4) or y=−2x+8.
As can be seen there are two tangents at point where curve crosses itself, so there are one tangent line for each instance that the curve goes through the point.