How I rotate formula written with libre maths

default alignment of formula is horizontal. I want to change in various orientation like tilt, vertical etc

You can’t do that directly in the Math app.

If you insert/paste the formula object in one of the graphically oriented apps (Draw or Impress), you can click again on a selected object to get the “transform handles”, or use menu item Format - Position and Size..., the Rotation tab.

This is also not possible directly in Writer, nor Calc. To have rotated formula objects there, you can …

  • insert a Draw object with an inserted formula object

    “object in object” is perhaps a bit convoluted, but with that the formula is still editable

    … or …
  • convert the formula to a curve or polygon in Draw (no longer editable as a formula) and copy/paste that.