## high 5 years ago how can i draw a graph of mod(y)=cosx ???

1. sandra

hello high

2. sandra

well, mod(y)=cosx is really two separate graphs (well, the same graph, but there are two distinct parts.)

3. high

i think itll look like bubbles

4. high

am not so sure...

Are you sure that's a correct problem? What is `mod'?

6. high

modulus..

7. high

!y!

Yeah sorry. I've never seen mod used that way :)

So you're right if you mean bubbles as in just the parts where cos is above the x axis.

Because the absolute value (or modulus) of y must be positive, by definition, this function isn't defined if y < 0. Since cos(x) is sometimes negative, those parts of the cos(x) plot are not valid for this particular function, because they don't make any sense.

I am wrong!

12. high

i think so

Ah, I see what you mean about bubbles now. Yes, I think you're correct.

Because negative values of y will mirror the positive values.

15. high

Well, basically, what the above function means is really two different functions: y = \left\{\begin{align}\cos x\text{ when }y >= 0\\\cos y\text{ when }y < 0\end{align}\right.

Hm. Sorry: $y = \left\{\begin{matrix}\cos x\text{ when }y >= 0\\\cos x\text{ when }y < 0\end{matrix}\right.$

18. sid1729

The function only exists for cos x > 0, because absolute values cannot be negative. There will be two functions: y = cos x -y = cos x so for each x (when cos x >0), you will have two values - one positive and other negative, both having the same absolute numerical value

19. sid1729

take an example: let x be $\frac{\pi}{2}$ now, y = $\frac{1}{\sqrt(2)}$ and -y = $\frac{1}{\sqrt(2)}$ So, we put those two together in the same graph.