1

I'm having some trouble inserting a Big O notation into a right-side curly bracket consisting of two lines. I'm using mathcal for the Big O notation but once I put it in the curly bracket it doesn't seem to work. I'm inserting an image of what I want to do (made in powerpoint). Very thankful for help :)

enter image description here

enter image description hereenter image description here

6
  • 2
    Welcome to TeX.SE! Please post a minimal code of what you have tried so far. This kind of construction is usually best achieved with the cases environment from the amsmath package.
    – campa
    Oct 7 '20 at 11:54
  • Welcome to the TeX.SE: your question seem a bit contradictory I'm using mathcal for the Big O notation but once I put it in the curly bracket it doesn't seem to work. What is, please, the example that you have made using LaTeX?
    – Sebastiano
    Oct 7 '20 at 11:56
  • 1
    Thank you for the quick reply! I've added some images. As you can see, the Big-O notation on the second line is just a normal O when I put it in curly brackets
    – mariposa89
    Oct 7 '20 at 12:02
  • 2
    Everything in the align environment is already in math mode and the two $ are wrong: lose them.
    – campa
    Oct 7 '20 at 12:03
  • 1
    Thank you so much! :)
    – mariposa89
    Oct 7 '20 at 12:06
4

This works...and the upvoted comment go to the user @campa :-)

\documentclass[a4paper,12pt]{article}
\usepackage{amsmath,amssymb}

\begin{document}
\[
\begin{cases}
T(1)=\mathcal{O}(1) & \\
T(m)=22\ast(T/2)
\end{cases} \implies T(m)=22\ast(T/2)
\]
\end{document}

enter image description here

1
  • 1
    Thank you! I hope I managed to upvote :)
    – mariposa89
    Oct 7 '20 at 12:08

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.