# Graphing Trig Functions

**URL:** <https://boards.straightdope.com/t/graphing-trig-functions/440094>\
**Category:** Factual Questions\
**Created:** [March 4, 2008, 9:29pm UTC](https://boards.straightdope.com/t/graphing-trig-functions/440094 "2008-03-04T21:29:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DoperChic](https://avatars.discourse-cdn.com/v4/letter/d/a9a28c/32.png) [@DoperChic](https://boards.straightdope.com/u/DoperChic)\
**Post date:** [March 4, 2008, 9:29pm UTC](https://boards.straightdope.com/t/graphing-trig-functions/440094/1 "2008-03-04T21:29:45Z")

</div>

I am in the middle of teaching a unit on graphing trigonometric functions and am getting hung up on an apparent anomaly.

We are graphing functions that have the following form:

y = C + AsinB(x - D) and y = C + AcosB(x - D)

where:[ul]  
[li]A = Amplitude (Vertical Stretch)[/li][li]360/abs(B) = Period (Horizontal Stretch)[/li][li]C = Sinusoidal Axis (Vertical Shift)[/li][li]D = Phase Displacement (Horizontal Shift).[/li][/ul]  
Since the period is defined using the absolute value of B, the graphs of these functions _should_ be the same using +/- B so long as all other values remain the same.

This works for cosine graphs but not for sine graphs. Why?

An example is the following function group.

y1 = 3 + 4cos(8(x - 5))  
y2 = 3 + 4cos(-8(x - 5))  
y3 = 3 + 4sin(8(x - 5))  
y4 = 3 + 4sin(-8(x - 5))

The graphs of y1 and y2 are identical but the graphs of y3 and y4 are mirror images of one another, reflected about the sinusoidal axis.

A great grapher can be found [here](http://id.mind.net/~zona/ezGraph/ezGraph.html) but functions must be entered with \* representing multiplication.

---

<div class="post-metadata">

**Author:** ![Thudlow\_Boink](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/thudlow_boink/32/320_2.png) [@Thudlow\_Boink](https://boards.straightdope.com/u/Thudlow_Boink)\
**Post date:** [March 4, 2008, 9:33pm UTC](https://boards.straightdope.com/t/graphing-trig-functions/440094/2 "2008-03-04T21:33:50Z")

</div>

Cosine is an even function, meaning that cos(–x) = cos(x).  
Sine is an odd function, meaning that sin(–x) = –sin(x).

Multiplying the argument of either sin or cos by –1 won’t affect the period (how long before the graph “repeats”). It will not affect the graph of cos at all, but it will affect the graph of sin.

---

<div class="post-metadata">

**Author:** ![Napier](https://avatars.discourse-cdn.com/v4/letter/n/ce73a5/32.png) [@Napier](https://boards.straightdope.com/u/Napier)\
**Post date:** [March 4, 2008, 9:48pm UTC](https://boards.straightdope.com/t/graphing-trig-functions/440094/3 "2008-03-04T21:48:31Z")

</div>

I agree with Thudlow. Why do you think that “Since the period is defined using the absolute value of B, the graphs of these functions should be the same using +/- B…”? I think you could say the period should be the same in either case, but not the graph itself, which is not defined in terms of abs(B).

---

<div class="post-metadata">

**Author:** ![DoperChic](https://avatars.discourse-cdn.com/v4/letter/d/a9a28c/32.png) [@DoperChic](https://boards.straightdope.com/u/DoperChic)\
**Post date:** [March 5, 2008, 2:09am UTC](https://boards.straightdope.com/t/graphing-trig-functions/440094/4 "2008-03-05T02:09:30Z")

</div>

Thanks, guys. That makes perfect sense. I don’t know how I missed that.

:smack: :smack:
