NZ Level 8 (NZC) Level 3 (NCEA) [In development]
Find the equation of a tangent curve
Lesson

The graph of the function defined by the expression $\tan x$tanx is transformed in various ways when constants $a$a, $b$b, $c$c and $d$d are chosen to make a new function definition, $y(x)=a\tan(bx+c)+d$y(x)=atan(bx+c)+d.

The effects of these constants are the same as in the corresponding transformations of the sine and cosine functions.

### Vertical dilation

The constant $a$a multiplies every function value. Therefore, if $|a|>1$|a|>1, the graph appears stretched vertically, and if $0<|a|<1$0<|a|<1, the graph is compressed vertically. The absolute value of $a$a has been used because when $a$a is negative, the graph not only shows the dilation effect but it also appears reflected across the horizontal axis.

### Horizontal dilation

The constant $b$b that multiplies the variable $x$x, affects the horizontal scale. It does this in a way that may be unexpected: For $|b|>1$|b|>1, the graph appears compressed towards the origin by the factor $\frac{1}{b}$1b, and for $|b|<1$|b|<1, the stretching is away from the origin by the factor $\frac{1}{b}$1b. As before, we have used the absolute value symbol because if $b$b is negative, there is a reflection across the vertical axis as well as the dilation.

The consequence for the $\tan$tan function (and the other trigonometric functions) is that $b$b affects the period of a periodic function. For example, $\tan x$tanx has period $\pi$π but $\tan2x$tan2x has period $\frac{1}{2}\pi$12π. Similarly, in degrees, $\tan\theta$tanθ has period $180^\circ$180° but $\tan\frac{\theta}{2}$tanθ2 has period $180^\circ\times\frac{1}{\frac{1}{2}}=360^\circ$180°×112=360°.

### Phase shift

The constant $c$c added to $bx$bx brings about a horizontal translation of the graph. The amount of the translation or sideways shift is equal to the amount that has been added to $x$x directly. If the argument of the function is $bx+c$bx+c, we must think of this as $b(x+\frac{c}{b})$b(x+cb) to see that the amount added directly to $x$x is $\frac{c}{b}$cb, and this is the sideways shift.

If $c$c is positive, the shift is to the left and if $c$c is negative, the shift is to the right.

### Vertical shift

The constant $d$d is added to every function value. Therefore, it has the effect of translating the graph vertically. The amount of the translation is $d$d itself.

If we are given a graph that has the shape of a $\tan$tan function graph, and we wish to produce its equation with the correct constants $a$a, $b$b, $c$c and $d$d, we must use the facts about transformations that have been explained above.

Displayed below is the graph of $\tan x$tanx between $-\frac{\pi}{2}$π2 and $2\pi$2π. Here, $a=1$a=1, $b=1$b=1, $c=0$c=0 and $d=0$d=0. We will use this for comparison with other graphs involving $\tan$tan.

##### Example 1

Shown below is the graph (coloured green) of a function involving $\tan$tan. It is superimposed on the graph of $\tan x$tanx between $-\frac{\pi}{2}$π2 and $\frac{\pi}{2}$π2. We wish to find  the correct constants for its equation.

We see that three periods of the green curve occupy the same horizontal space as one period of $\tan x$tanx. The period has been multiplied by the factor $\frac{1}{3}$13. Equivalently, we say that the horizontal scale has been reduced by the factor $\frac{1}{3}$13.

No other transformation is apparent. So, we conclude that the equation of the green curve is $y(x)=\tan3x$y(x)=tan3x.

##### Example 2

Shown below is the graph (coloured green) of another function involving $\tan$tan. As before, it is superimposed on the graph of $\tan x$tanx between $-\frac{\pi}{2}$π2 and $\frac{\pi}{2}$π2. We wish to find  the correct constants for its equation.

The unknown graph appears to have the same centre and the same period as the graph of $\tan x$tanx. We note that while $\tan\frac{\pi}{4}=1$tanπ4=1 as shown, the green curve has the value $3$3 at $\frac{\pi}{4}$π4. In fact, at every point on the $x$x-axis, the green curve has $3$3 times the height of the $\tan$tan curve. There has been a vertical dilation by the factor $3$3. Therefore, the green curve is the graph of $y(x)=3\tan x$y(x)=3tanx.

##### Example 3

This example has several transformations of the $\tan$tan function combined. As before, we are looking for the constants $a$a, $b$b, $c$c and $d$d.

The first step should be to find the centre line of the unknown graph. Judging exactly where it is is not easy but we locate it so that there will be rotational symmetry about a point where the graph intersects the proposed centre line. In this example, the line is at $y=1$y=1 and we conclude that the graph has been translated vertically by $1$1 unit. That is, $d=1$d=1.

By drawing a vertical line through the nearest intersection point with the centre line to the $y$y-axis we can see that the graph has been shifted to the right by a little over $0.5$0.5 and with very careful measurement we might conclude that the shift is, in fact, $\frac{\pi}{6}$π6.

The period of the green curve is the same as the period of the $\tan$tan curve. So, $b=1$b=1.

Now, $\frac{c}{b}=\frac{\pi}{6}$cb=π6. So, we have $c=\frac{\pi}{6}$c=π6.

Finally, we need to find the constant $a$a. This is not a perfectly easy task. There are several strategies you could try and the following are two suggestions.

## Suggestion 1

We know that $\tan\frac{\pi}{4}=1$tanπ4=1  and that the green curve has been moved to the right by $\frac{\pi}{6}$π6 and up by $1$1.  We need to shift both curves so that their centres are aligned in order to compare their vertical scales.

If the $\tan$tan curve were to be moved to the right by $\frac{\pi}{6}$π6, it would attain the value $1$1 at $\frac{\pi}{6}+\frac{\pi}{4}=\frac{5\pi}{12}\approx1.31$π6+π4=5π121.31.

Reading from the graph, we see that the green curve attains the value $3$3 at $1.31$1.31, and so, if the green curve were to be moved down by $1$1 unit to align its centre line with that of the $\tan$tan curve, it would attain the value $2$2 at $1.31$1.31. This is $2\times1$2×1. So, the vertical dilation must be by a factor of $2$2 and therefore, $a=2$a=2.

## Suggestion 2

We can see from the graphs that the green curve and the $\tan x$tanx curve intersect at several points. That is, their values are equal at those points. Using the values of $b$b, $c$c and $d$d that we have determined, we can write $a\tan(x-\frac{\pi}{6})+1=\tan x$atan(xπ6)+1=tanx for $x$x at any one of the intersection points.

One such point is approximately $x=4.35$x=4.35 (reading from the graph). If this value is substituted for $x$x in the equation just derived, we can, with the help of a calculator, solve for $a$a.

$a=\frac{\tan4.35-1}{\tan(4.35-\frac{\pi}{6})}\approx2.005$a=tan4.351tan(4.35π6)2.005

We now have the equation for the green curve:

$y(x)=2\tan(x-\frac{\pi}{6})+1$y(x)=2tan(xπ6)+1

#### Worked Examples

##### Question 1

Consider the graph of the given $\tan$tan function.

1. The given graph is the result of what transformation?

Translating the graph of $y=\tan x$y=tanx horizontally.

A

Translating the graph of $y=\tan x$y=tanx vertically.

B

Reflecting the graph of $y=\tan x$y=tanx about the $x$x-axis.

C

Translating the graph of $y=\tan x$y=tanx horizontally.

A

Translating the graph of $y=\tan x$y=tanx vertically.

B

Reflecting the graph of $y=\tan x$y=tanx about the $x$x-axis.

C
2. State the equation of the graphed function.

##### Question 2

Consider the graph of the given $\tan$tan function.

1. The given graph is the result of what transformation?

Translating the graph of $y=\tan x$y=tanx horizontally.

A

Compressing the graph of $y=\tan x$y=tanx horizontally.

B

Reflecting the graph of $y=\tan x$y=tanx about the $x$x-axis.

C

Dilating the graph of $y=\tan x$y=tanx vertically.

D

Translating the graph of $y=\tan x$y=tanx horizontally.

A

Compressing the graph of $y=\tan x$y=tanx horizontally.

B

Reflecting the graph of $y=\tan x$y=tanx about the $x$x-axis.

C

Dilating the graph of $y=\tan x$y=tanx vertically.

D
2. State the equation of the graphed function.

### Outcomes

#### M8-2

Display and interpret the graphs of functions with the graphs of their inverse and/or reciprocal functions