I'm trying to draw a figure using Latex/Tikz, and the best way for me to do this is to define a function mathematically and draw it.
The function I have so far that best fits the picture is $5\sin^2(x) / x$.
I was hoping for some help manipulating it to meet these conditions:
- $f(x) = 0$ at $x=0$ and $x = 2\pi$;
- $f(x) \not = 0$ at $x = \pi$;
- $f(\pi/2) > f(3\pi/2)$.
Outside the limits of $[0,2\pi]$ it doesn't matter how the function behaves.
I've tried adding $\sqrt{x}$ to the end of the equation so that condition 2 is fulfilled, but I can't work out how fulfil the first condition.
Any suggestions?
Thanks.
How about adding a term in $\sin x$ to get 3 and a term in $\sin \frac x2$ to get 2?