Actually wanted to draw and plot Optical and acoustic branch but don't know it what's the command to draw a function like this ? enter image description here

Thanks for the help

  • 1
    I wouldl guess that the math refers only to the intersections with the axes, (0-\pi/a ?). You really don't have enough information here to do anything. I would overlay some graph paper and start recording points, then graph using smooth. Jun 15, 2019 at 12:53

1 Answer 1


pgfplots can produce such plots.

\begin{tikzpicture}[declare function={%
  \begin{axis}[axis x line=bottom,axis y line=middle,trig format=rad,
    xticklabels={},yticklabels={},trig format=rad]
    \addplot[color=red,domain=0:pi,smooth,samples=51] {omegaplus(x,1,1,1,2)}
    node[midway,above,sloped,font=\sffamily]{optical branch};
    \addplot[color=blue,domain=0:pi,smooth,samples=51] {omegaminus(x,1,1,1,2)}
    node[midway,above,sloped,font=\sffamily]{acoustic branch};
   \draw[thick] (pi,0)  -- (pi,2);

enter image description here

  • Thanks a lot , could you explain what you've done here by declaring the function and how do you put "acoustic branch" and "optical branch" in exact proper position.
    – Quintis
    Jun 16, 2019 at 5:55
  • @Quintis (I see this comment only now, sometimes comments get swallowed by the system.) All I did was to punch in the dispersion relations for phonons, which can be found e.g. here. And then you can position stuff with pos=<f> where f=0 is the start and f=1 the end of the plot.
    – user121799
    Jun 19, 2019 at 21:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.