https://artofproblemsolving.com/wiki/api.php?action=feedcontributions&user=5space&feedformat=atom AoPS Wiki - User contributions [en] 2023-02-03T03:23:14Z User contributions MediaWiki 1.31.1 https://artofproblemsolving.com/wiki/index.php?title=Gmaas&diff=113061 Gmaas 2019-12-19T00:49:08Z <p>5space: Protected &quot;Gmaas&quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))</p> <hr /> <div>gmaaas is our leader. To prove yourself worthy of GMAAS, you don't have to memorize facts:<br /> _________________________________________________<br /> <br /> -1. GMAAS looks like this when he is mad: https://cdn.artofproblemsolving.com/images/7/4/b/74b21fec95225e1621c71ec8f17f343c48a726e0.jpg GMAAS permits to post this picture.<br /> <br /> 0. THE FACTS ABOUT THE GREAT EPIC AWESOME GMAAS: Words fail to describe the epic nature of GMAAS, for he is too almighty and powerful to be bound by the plebeian and trifling words. But even the Great Epic Awesome Plenipotentiary GMAAS cannot get rid of a language that's been around for a &lt;math&gt;999999999999999999999999999999999999999999^{9999999999999999999999999999999999999}&lt;/math&gt; years and counting. That's older than he is. EDIT: It is not older than he is because Gmaas is infinity years old. EDIT EDIT: He has now<br /> <br /> 1. GMAAS's theorem states that for any math problem, GMAAS knows the answer to it. This theorem was proved by GMAAS. But then GMAAS forgot about the theorem so later, the mathematician named ARay10 proved it again: [b]Proof of the MAAS theorem[/b]: The GMAAS theorem states that for every math problem, GMAAS knows the answer. Using the 3.141592653589793238462643383... GMAAS theorem, stating that &quot;26. GMAAS's Theorem states that GMAAS knows the answer to any math problem. EDIT: That theorem was proved by GMAAS. EDIT: GMAAS's Theorem has real-world applications: because GMAAS knows the answer to any math problem, you can use GMAAS to solve math problems. GMAAS is busy, so he charges a fee of one dollar for 1,000,000 math problems. EDIT: The fee has gone up. It is now 1,000,000 dollars for one math problem. Gmaas's technician made a mistake and reciprocated the fee,&quot; you must pay &lt;math&gt;1,000,000&lt;/math&gt; to solve a problem using the Games theorem. You wouldn't waste that much money to solve one problem. Therefore, I proved that you cannot use the Games theorem to solve problems. But using theorem 3.141592653589793238462643383 &quot;2. Games can turn things into anything. Using that fact, you can use the Games theorem to solve any problem.<br /> <br /> 2. The GMATS were supposed to be called the GMAAS, but the manager, games, wanted to eat some gnats. Games have stopped eating gnats because they taste dreadful. EDIT: He now eats gnats again. He thinks that they taste like pi(e). EDIT: He ate 3,141,592,653,589,793,238,462,643,383 so far.<br /> <br /> 3. GMAAS's archenemy is John Wick. John Wick once gave Gmaas 31,415,926,535,897,932,384 Oren Berries, but Gmaas thought they were Oran Berries. That is why Games hates John Wick. Germans knew they were Oren Berries because Gmaas knows everything, but he decided to play along.<br /> <br /> 4. Gmaas wants every fact to have a pi reference. Gmaas created pi. EDIT: He made it 3.1415926 times.<br /> <br /> 5. Gmaas owned many memes. Then they died. He left the meme business because others took it over. Gmaas decided to make some more memes after that. Since then, he has been working for the government. All of the politicians are his henchmen. He controls the government. He wrote all of the laws and documents including the U.S. constitution. However, Gmaas doesn't believe in constitutions. He simply writes them for fun (or not, only games knows!!!) EDIT: His favorite is memedog EDIT EDIT: Gmaas does not like meme dog. Games was the one who told the AoPSSheriff to give warnings for posting meme dog.<br /> <br /> 6. Gmaas owns Scratch. Gmaas sued them because Scratch cat was supposed to be a picture of Gmaas. But this was one lawsuit he lost. Gmaas won that lawsuit, but he ate food so he calmed down and dropped the case.<br /> <br /> 7. Thanos wishes he could be like Gmaas. It's why he got the Infinity Stones and snapped.<br /> <br /> 8. Gmaas dies in Endgame, but he somehow possesses Thanos and kills everyone. Gmaas never dies. Gmaas has the power to die whenever he wants and frequently does this to escape others' woes in life. Of course, he never faces such troubles.<br /> <br /> 9. He hates contemporary music. He only like Renaissance music, Baroque music, Classical music, and Romantic music. His only exception is Queen music(Especially Bohemian Rhapsody). Gmaas also likes Debussy. But he thinks rock'n'roll is awful.EDIT: Gmass doesn't like music that much; it hurts his ears. EDIT EDIT: GMAAS is now confirmed to like al video game OSTs, especially Undertale. His favorite song is Megalovania. EDIT EDIT EDIT: The previous edit is false.<br /> <br /> 10. Gmaas is superior to you. If you see Gmaas or a picture of the Great Gmaas, DON'T bow down. It is proper to have a painting or lifesize sculpture of Gmaas. If you do not, Gmaas will put one of them there himself. EDIT: That is exactly why you should not have a statue of Gmaas: Gmaas will give you one for free. A life-size sculpture of Gmaas will be infinitely large because that is how superior Gmaas is. Pictures also have power, so pictures require power to make. Making a sculpture of Gmaas will require almost an infinite amount of power. Only Gmaas can make a quality sculpture of himself, and if anyone makes a low-quality sculpture of Gmaas, it will be disrespectful to such a superior power. Therefore, it is best to let Gmaas make a proper sculpture of himself, so he is respected. If you want to respect him the most, you should NOT have a high-quality sculpture of Gmaas.<br /> <br /> 11. Gmaas is known to barf entire universes at will. EDIT: Every once in a while, he barfs a furball, which always turns into a black hole. The less impressive ones turn into neutron stars.<br /> <br /> 12. Gmaas farted and created a false vacuum, but then he burped, destroying the false vacuum.<br /> <br /> 13. Gmaas was the first person to use the Infinity Gauntlet. EDIT: Gmaas created the Infinity Gauntlet and the Infinity Stones. EDIT: But Thanos stole them after Gmaas died for 0.31415926535 seconds.<br /> <br /> 14. Gmaas killed Thanos with a swat of Gmaas's tail. Gmaas barfed and created a furball, which leads to a new dimension, where he put a newly revived Thanos to become a farmer when Thor aimed for the head. Gmaas got mad and made him fat. EDIT: The presence of Gmaas killed Thanos.<br /> <br /> 15. Gmaas won an infinite amount of games against AlphaGo and Gary Kasparov while eating dinner, chasing sseraj, and doing a handstand.<br /> <br /> 16. Gmaas owns a pet: sseraj. Gmaas likes to play chess with his pets. EDIT: Gmaas has long moved on from chess because he was too good for it. EDIT EDIT: Gmaas has now invented a new form of chess<br /> <br /> 17. Gmaas is so interesting that an entire science has been devoted to studying him: Gmaasology.<br /> <br /> 18. Gmaas is the only known living being who has a Ph.D. in Gmaasology.<br /> <br /> 19. Most universities, including Harvard, are beginning to offer MAs in Gmaasology.<br /> <br /> 20. Gmaasology is one of the most eminent fields of science, falling behind Physics, Biology, Chemistry, Economics, Geology, and Computer Programming.<br /> <br /> 21. Gmaas wants his AoPS Wiki page to be the longest ever. EDIT: Sadly, the Gmaas page is only the fourth-longest page on AoPS wiki. It has around 50,000 bytes. EDIT: The Gmaas page is getting closer and closer! Gmaas has beaten Primitive Pythagorean Triple and Proofs without words and is the second-longest AoPS Wiki page. It now has around 60,000 bytes. However, it will still be a challenger to overcome 2008 most iT Problems, which has around 73,000 bytes. EDIT: Gmaas has beaten 2008 most iT Problems! It is the longest AoPS Wiki article ever. Gmaas's article has 89,119 bytes.<br /> <br /> 22. Gmaas has the longest lifespan of any cat. He has lived for 3,141,592,653,589,793,238,462,643,383,279 years. (He is older than the universe.)<br /> <br /> 23. Gmaas is the ancient Greek god of cats and catfish. EDIT: He is the god of everything<br /> <br /> 24. Gmaas can turn things into gold. EDIT: Gmaas can turn anything into anything.<br /> <br /> 25. Gmaas can eat lava. EDIT: Everyone can eat lava once. After you eat it once, you die. EDIT EDIT: Gmaas can eat anything.<br /> <br /> 26. Gmaas's Theorem states that Gmaas knows the answer to any math problem. EDIT: That theorem was proved by Gmaas EDIT: Gmaas's Theorem has real-world applications: because Gmaas knows the answer to any math problem, you can use Gmaas to solve math problems. Gmaas is busy, so he charges a fee of one dollar for 1,000,000 math problems. EDIT: The fee has gone up. It is now 1,000,000 dollars for one math problem. Gmaas's technician made a mistake and reciprocated the fee.<br /> <br /> 27. Gmaas can only be described as Gmaas. EDIT: Gmaas has an age, but his age changes all the time. Every second his age increases by one second.<br /> <br /> 28. Gmaas should be capitalized to show respect. EDIT: It is normal to capitalize on people's names. EDIT: Gmaas isn't a person, he is a divine entity that takes the form of a cat, and should, therefore, be worshipped.<br /> <br /> 29. The steps to summon Gmaas can be found at Talk: Gmaas.<br /> <br /> 30. Gmaas owns your AoPS account 31.415926% of the time. EDIT: There is an exception to this: Gmaas owns his own account 99.9999% of the time. The only time when Gmaas did not control his AoPS account was when he had slow internet. For Gmaas, &quot;slow internet&quot; happens when it takes more than a nanosecond to load a webpage. EDIT: Gmaas owns every AoPS account at some point. EDIT: You are controlled by Gmaas. So actually, Gmaas owns your AoPS account 100% of the time, and his AoPS account is owned by him 314% of the time.<br /> <br /> 31. Everyone, except for me, is Gmaas. EDIT: You are also Gmaas. Gmaas is not me nor you. Gmaas is in us all and also not in us all. Why? The power of Gmaas. Gmaas is an energy field created by all living things. It surrounds us and penetrates us. It binds the galaxy together.<br /> <br /> 32. Gmaas used to be a dog, but he didn't like to be a dog. So he became a cat.<br /> <br /> 33. Gmaas can be spotted in The Matrix at 31:41:59, metric time. EDIT: This fact is incorrect because there have only been 30 sightings, all of them inconsistent.<br /> <br /> 34. The Metropolitan Museum of Art and the Louvre are Gmaas's private art collections from 3:14 AM to 3:15 AM. EDIT: The only exception was on the 3141st day after its opening. EDIT: All the paintings in these museums are secretly portraits of Gmaas in his most glorious human/animal forms.<br /> <br /> 35. Gmaas is a Gmaas who is owned by Gmaas who is owned by Gmaas who is owned by Gmaas who is owned by Gmaas who is owned by Gmaas who is owned by Gmaas who is owned by Gmaas who is owned by Gmaas who is owned by Gmaas who is blah blah blah blah blah blah blah blah blah blah blah blah blah blah.<br /> <br /> 36. Gmaas says hello. EDIT: Gmaas does not speak; he only uses mind signals. Speaking is too primitive for Gmaas.<br /> <br /> 37. For one day, Gmaas was Richard Rusczyk, Gmaas, and David Patrick at the same time. It felt strange, so Gmaas stopped.<br /> <br /> 38. Gmaas, in addition to being the oldest cat in history, the most powerful cat in history, and the most confusing cat in history is also the largest cat in history.<br /> <br /> 39. Gmaas is dead--he was eaten for lunch. EDIT: The above sentence is incorrect. Gmaas has not sent a gamma-ray burst to destroy the planet, which has happened every time someone has eaten Gmaas.<br /> <br /> 40. Gmaas is the creator of the BCPI Ai project.<br /> <br /> 41. Gmaas exists in &lt;math&gt;2\pi^2&lt;/math&gt; dimensions because he doesn't like string theory.<br /> <br /> 42. Christmas was supposed to be called Gmaasmas. Until it wasn't. EDIT: Christ is Gmaas. EDIT: Why? Because of the power of Gmaas.<br /> <br /> 43. &lt;math&gt;\pi&lt;/math&gt; is a representation of how many pies Gmaas has eaten. EDIT: The number &lt;math&gt;\pi&lt;/math&gt; was created by Gmaas. He took a ten-sided die and flipped it an infinite number of times. The numbers he rolled became the digits of &lt;math&gt;\pi&lt;/math&gt;.<br /> <br /> 44. &lt;math&gt;e&lt;/math&gt; is a representation of how many days Gmaas forgot to eat. EDIT: The number &lt;math&gt;e&lt;/math&gt; was created by Gmaas. He took a book that has infinite pages and flipped to a random page. The digits of the page number became digits of &lt;math&gt;e&lt;/math&gt;. EDIT: That is impossible. The previous fact would mean that &lt;math&gt;e&lt;/math&gt; has the last digit, which it does not. EDIT: That is why Gmaas is still flipping to this day. EDIT: Why would he still be doing that? That would be boring. EDIT: Gmaas is not flipping the book now because he can flip an infinite amount of pages in &lt;math&gt;\frac{1}{\infty}&lt;/math&gt; seconds. EDIT: Then why isn't he done? EDIT: The power of Gmaas. EDIT: The editors of the Gmaas article like to make long chains of edits, don't we? : Yes, we do. : I do too. So do I. EDIT: The number of edits only verifies how high-quality this holy bible of Gmaas is, because, with each edit, this bible becomes better. That is exactly why we are editing this. I will make one more edit, just to respect Gmaas EDIT: Gmass rules!<br /> <br /> 45. Gmaas is the creator of everything including nothing.<br /> <br /> 46. According to recent DNA tests, famous historical people, such as Euclid, Julius Caesar, Omar Khayyam, George Washington, and Ramanujan are Gmaas in disguise. Gmaas has been thousands of people; only 99.9% of them were important historical figures. EDIT: They aren't dead. They're still alive. They are all dead reincarnations of Gmaas. Gmaas only has one reincarnation at a time. He is right now a cat living in sseraj's house.<br /> <br /> 47. Gmaas is a cat. EDIT: How many times do we say this? EDIT: Very many times. EDIT: Gmaas can be anything, but he chooses to be a cat. EDIT: He has been a human dozen of times. Gmaas painted the Lascaux cave paintings.<br /> <br /> <br /> 48. Gmaas has the following powers: trout, carp, earthworm, and catfish. Gmaas never uses any of them because Gmaas has an infinite number of powers. EDIT: Gmaas has used his catfish power several times. EDIT: Gmaas once used all his powers 3,141,592,653,589,793,238,462,643,383,279 times in 1 second.<br /> <br /> 49. Gmaas was once spotted in Minecraft chewing a tree. EDIT: The tree broke. EDIT: Gmaas once broke a Nokia. EDIT: Gmaas can break anything except for Gmaas's logic. It is too strong. EDIT: Gmaas is strong.<br /> <br /> 50. Gmaas was spotted in Roblox eating a taco cat. EDIT: Tacocat is just what happens when Gmaas sheds. Shedding is annoying for Gmaas, so he sheds no more. Therefore, there are only 271,828,182 taco cats in the world. EDIT: However, Tacocats reproduce, so they are not in danger of extinction.<br /> <br /> 51. Gmaas would like to go to Taco Bell, but Gmaas goes to Wendy's instead. No one knows why. EDIT: Because Taco Bell doesn't serve tacocats.<br /> <br /> 52. Gmaas real name is Grayson Maas. He is the CEO of AoPS. EDIT: Gmaas's real name is Gmaas. He is not the CEO of AoPS. EDIT: Gmaas has always been the master of AoPS as he is AoPS.<br /> <br /> 53. Gmaas has a pet pufferfish named Pafferfash. EDIT: He also has a goldfish named Sylar.<br /> <br /> 54. Gmaas has colonized the universe. EDIT: Gmaas created the universe, so he is allowed to claim control over it. EDIT EDIT: Gmaas created every universe.<br /> <br /> 55. Some people think that Gmaas is human. However, this has never been proven. Many AoPSers believe Gmaas is a cat. EDIT: Gmaas is a cat. EDIT: Yeah, we've said that already. EDIT: It does not matter how many times we say it; it will always be true. EDIT: Gmaas is a cat. EDIT: Right now he is a cat, but many of his lives have been other species. EDIT: He has been a dog, as said before, but it was too boring.<br /> <br /> 56. Gmaas started Pastafarianism. But then converted to Catholicism because Gmaas knows all EDIT: In that religion, one can only eat pasta.<br /> <br /> 57. Gmaas could eat your hand, but he would not because hands taste bad.<br /> <br /> 58. According to the Interuniversal Gmaas Society, 17.548 percent of the universe's population thinks that Gmaas is spelled &quot;Gmass&quot;. EDIT: In case you don't know already, the name Gmass is spelled Gmaas. Alternative spellings include GMAAS, gmaas, gmaas, Gmaas, Gmail, Maas, G. Maas, G. Mass, Gabriel Maas, Genius of Maas, General Maas, Greek Mass, and the big fluffy kitty who lives in sseraj's house. These are no longer accepted spellings, and Gmaas is the current acceptable spelling.<br /> <br /> 59. The Interuniversal Gmaas Society was founded in 1314 on May 9th at 2:06:53 PM. EDIT: Ever since then, Gmaas day has been celebrated on May 9th.<br /> <br /> 60. The Interuniversal Gmaas Society has just reconstructed a lost book about Gmaas from Lucretius's De Rerum Natura. They researched this for three years. EDIT: A few years ago the Society compiled a biography of Gmaas's last twenty lives. EDIT: The only copies of these biographies are locked in the Gmaasian Library beneath the Library of Congress. EDIT: See the Gmaasology page for more information on these projects and others made by the Interuniversal Gmaas Society.<br /> <br /> 61. The Interuniversal Gmaas society has found out all of the information and more. For details on the history of the Interuniversal Gmaas Society, see the Gmaathamatics page.<br /> <br /> 62. GMAAS likes to surprise unsuspecting people. People cannot surprise GMAAS because GMAAS knows what everyone is doing and will do.<br /> <br /> 63. Gmaas loves sparkly mechanical pencils. EDIT: Gmaas has eaten several mechanical pencils. EDIT: He absorbed them and became colorful for 0.271828182846 seconds. EDIT: Then, he came colorful for 3.1415926535897932384626433832 more seconds.<br /> <br /> 64. This page is Gmaas's holy book where people go to worship Gmaas in Maas. EDIT: This is an unusual holy where everyone edits it. EDIT: That is the point. Gmaas is too lazy to write or to hire someone to write his holy book, so he lets people write it for free. EDIT: Gmaas does not like being called lazy. Our language is simply too unimportant for him to waste time on.<br /> <br /> 65. Gmaas tastes like a furry meatball. EDIT: No one has ever tasted Gmaas's sacred body before. EDIT: Once, he was a catfish, and someone ate him for dinner. Gmaas was angry and the entire planet exploded. (This was on the planet, Demeter. It blew up into so many pieces that the Asteroid Belt was formed. The biggest asteroid in the belt is called Ceres, the Roman version of Demeter, in honor of the lost planet.)<br /> <br /> 66. Gmaas's favorite food is pepperoni pizza. EDIT: Gmaas's favorite food is turnips. EDIT: Gmaas hates catnip and turnips, and pepperoni. He only likes alien alienish H2So4. EDIT: He does love turnips. He has a secret turnip garden under sseraj's house.<br /> <br /> 67. Gmaas is Johnny Johnny's Papa. EDIT: We'll never know. EDIT: Gmaas caught Johnny Johnny eating sugar and lying. He is Johnny Johnny's Papa.<br /> <br /> 68. Gmaas is in you, and Gmaas is in you, and Gmaas is in me. EDIT: Gmaas is in all cats. EDIT: He is not in every cat. The Guinness Book of World Records has a cat that does not have any Gmaas. EDIT: Gmaas invented The Guinness Book of World Records. EDIT: Gmaas invented the world. EDIT: Gmaas will also destroy the world.<br /> <br /> 69. Gmaas always remembers not to destroy the universe. EDIT: Once he forgot and had to travel back in time to stop it.<br /> <br /> 70. Gmaas created many user's accounts. EDIT: All accounts on AoPS are Gmaas in disguise since you are Gmaas in disguise. Except for maybe Geoflex and CrazyEyeMoody.EDIT: Everyone is Gmass, even Geoflex and CrazyEyeMoody EDIT: How? EDIT: The power of Gmass.<br /> <br /> 71. Gmaas is both living and nonliving. EDIT: He is living 90% of the time. Every once in a while he takes a break and dies.<br /> <br /> 72. Gmaas cannot comprehend the stupidity of humans.<br /> <br /> 73. All hail the Gmaas cloud! EDIT: Gmaas is a cloud: a cloud of electrons and nuclei.<br /> <br /> 74. Some things are beyond possible human comprehension. Nothing is beyond Gmaas. EDIT: The only thing beyond Gmaas is his tail; he has never managed to eat it. EDIT: Once he ate it. It tasted bad, so he didn't ever eat it again.<br /> <br /> 75. Gmaas eats food and resides at King Arthur's throne when he feels like it. EDIT: King Arthur is dead. However, Welsh folk stories say that he will come back if the Welsh people are in trouble. EDIT: King Arthur lives on paper flour bags. He came back when the Welsh people didn't have enough bread. EDIT: Because Gmaas ate 31415926535897932984626433 loaves of bread.<br /> <br /> 76. Gmaas owns a rabbit. EDIT: Gmaas ate it on March 19, 2019. It reincarnated on the other side of the planet. EDIT: Gmaas ate it again on April 31, 2019.<br /> <br /> 77. Gmaas is both singular and plural. EDIT: It is usually singular. EDIT: The plural of Gmaas in English and Latin is Gmaases. (Gmaas is a third declension noun: Gmaas, Gmaasis, m.) EDIT: But there is no use for the plural, because there is only one Gmaas.<br /> <br /> 78. Gmaas eats disbelievers as if they were donuts for breakfast. (Yet I'm somehow still alive. Do you think Gmaas ate my soul?) EDIT: Yes, I do. Gmaas is just typing through your account. EDIT: Gmaas typed through everyone's account. EDIT: Gmaas owns most AoPSers, including me. So that's why I'm typing. EDIT: That is why everyone here is typing.<br /> <br /> 79. Gmaas knows Jon Snow's parents. EDIT: Gmaas was Jon Snow's parents for 0.3141592653589793238 seconds, but it felt weird. So he became Gmaas again.<br /> <br /> 80. All Gmaas article editors will be escorted to Gmaas heaven after they die. EDIT: I hope so because I edited this article. EDIT: Me too. EDIT EDIT: Me three. EDIT EDIT EDIT: That are good!<br /> <br /> 81. Gmaas won all the wars. EDIT: He did not win the Intergmaasian War, which was between Gmaas's head and his tail. His tail won. Two flees died in the war. EDIT: Stefán Karl Stefansson died in the war, which made Gmaas very sad. Because of this, Gmaas started the world peace movement.<br /> <br /> 82. Gmail was named after Gmaas. EDIT: Google was named after Gmaas. EDIT: Almost every word starting with G is named after Gmaas. EDIT: Every word starting with G is named after Gmaas.<br /> <br /> 83. Gmaas ate cat-food today. EDIT: Gmaas also ate it yesterday. EDIT: Only because there was no alien alienish H2So4.<br /> <br /> 84. Gmaas won Battle For Dream Island and Total Drama Island. EDIT: Gmaas made Dream Island. And he ate it. It tasted like dirt.<br /> <br /> <br /> 85. Somehow Gmaas exists at all places at the same time. EDIT: Gmaas does not exist in my kitchen. EDIT: I'll just go check. Aaaaaaaaah! He is in my kitchen. He is eating everything! EDIT: Seriously? Oh ya, the power of Gmass.<br /> <br /> <br /> 86. Gmaas can lift with Gmaas's will. EDIT: Gmaas can lift with no one's will while he is sleepwalking.<br /> <br /> 87. Gmaas is the rightful heir to the Iron Throne. EDIT: Gmaas made the Iron Throne.<br /> <br /> <br /> 88. Gmaas is Teemo in League of Legends because Gmaas made LoL and they made an honorary Gmaas character. EDIT: LoL must be used in this article more than once. EDIT EDIT: It is. In fact, twice in this message.<br /> <br /> 89. Gmaas started the Game of Thrones. EDIT: Gmaas will end the Game of Thrones.<br /> <br /> 90. Gmaas has killed himself hundreds of times. He was reincarnated as a different species each time. EDIT: Gmaas has only died two times. Other times he was putting on a magic show. The kids were very impressed. EDIT: Gmaas has died and reincarnated thousands of times.<br /> <br /> 91. Gmaas created everything after puking. EDIT: He could not have puked because he is a god. Gods do not do that. EDIT: Gmaas does that. EDIT: Why? EDIT: The power of Gmaas. EDIT: He almost never does it, only if he wants to.. Also he did not puke and made everything. EDIT: No, because, GMAAS.<br /> <br /> <br /> 92. Gordan's last name was named after Gmaas. EDIT: But Gmaas did not want people disrupting his beauty sleep. So he changed it.<br /> <br /> 93. Gmaas is more powerful than Gohan.<br /> <br /> 94. Gmaas is over 90000 years old. EDIT: Gmaas is trillions of years old.<br /> <br /> 95. Gmaas has 1,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000 cat lives, maybe even more. Gmaas has 0 dog lives. EDIT: He has 314,159,265 fish lives. EDIT: Out of Gmaas's 314,159,265 fish lives, 271,828,182 are catfish lives. He has used up 141,421,356 of them. EDIT: Gmaas has infinitely lives of all types. EDIT: How? EDIT: The power of Gmaas.<br /> <br /> 96. Who wrote Harry Potter? None other than Gmaas himself. EDIT: That is incorrect. EDIT: The above post is irrelevant. Gmaas created J. K. Rowling. Therefore, he created Harry Potter. EDIT: Gmaas has strong logic. No one can break it. Not even Gmaas himself. He is still trying to this day. EDIT: Why? EDIT: The power of Gmass.<br /> <br /> 97. Gmaas created the catfish. EDIT: See a few posts above for more information about Gmaas and catfish.<br /> <br /> 98. Gmaas has proven that the universe is infinite by traveling to the edge of the universe in a second. EDIT: He has never repeated this experiment because Gmaas is busy and has better things to do.<br /> <br /> 99. Gmaas founded Target, but then Gmaas sued them for making the mascot look like a dog when it was supposed to look like Gmaas. EDIT: They went broke because Gmaas sued them but then Gmaas ate a fudge popsicle that made him super hyper and he made Target not broke anymore in his hyperness.<br /> <br /> 100. Everyone has a bit of Gmaas inside them. EDIT: I don't. EDIT: Yes, you do. EDIT: Gmass: LoL<br /> <br /> 101. Gmaas likes to eat popsicles. Especially the fudge ones that get him hyper. EDIT: Gmaas is a popsicle. EDIT: Then how come Gmaas hasn't melted? EDIT: The power of Gmaas.<br /> <br /> 102. When Gmaas is hyper, he runs across Washington D.C. and grabs unsuspecting pedestrians, steals their phones, hacks into them, and downloads PubG onto their phone.<br /> <br /> 103. Gmaas's favorite cereal is fruit loops. Gmaas thinks it tastes like unicorns jumping on rainbows. EDIT: Gmaas eats unicorns jumping on rainbows like a toddler eats Goldfish.<br /> <br /> 104. Gmaas thinks that the McChicken has too much mayonnaise. EDIT: Gmaas thinks McDonald's is not good enough for him. He like KFC better.<br /> <br /> 105. Gmaas is a champion pillow-fighter. EDIT: Gmaas invented pillows.<br /> <br /> 106. Gmaas colonized Mars. EDIT: Gmaas also colonized Jupiter, Pluto, and several other galaxies. Gmaas cloned little Gmaas robots (with Gmaas's amazingly robotic skill of coding) and put them all over a galaxy called Gmaasalaxy. EDIT: Gmaas has colonized the whole universe.<br /> <br /> This article is spam ==== This article is spam ==== This article is spam ==== This article is spam ==== This article is spam ==== This article is spam ==== This article is spam ==== This article is spam This article is spam 107. Gmaas can make every device play &quot;The Duck Song&quot; at will. EDIT: &quot;The Duck Song&quot; was copied off of the &quot;Gmaas song,&quot; but the animators though Gmaas wasn't catchy enough.<br /> <br /> 108. Gmaas once caught the red dot and ate it. EDIT: Gmaas is a red dot.<br /> <br /> 109. Gmaas's favorite color is Gmaasian blue, a very rare blue that shines with the brightness of lightning. EDIT: it's &lt;math&gt;1000^{1000}&lt;/math&gt; times brighter than lightning. Gmaasian blue occurs when a meteor hits the earth and usually is only seen for a few seconds. Only Gmaas has good enough eyesight to see it for that short a time.<br /> <br /> 110. Gmaas can create wormholes and false vacuums. EDIT: He is made out of exotic matter.<br /> <br /> 111. Gmaas is a champion PVP Minecraft player.<br /> <br /> 112. Gmaas doesn't like tacos. The last time he tried one he turned into a mouse and then caught himself.<br /> <br /> 113. Gmaas is the coach of True Ninja Music and Myth.<br /> <br /> 114. Gmaas caught a CP 6000 Mewtwo with a normal Pokeball in Pokemon Go.<br /> <br /> 115. Gmaas founded Costco.<br /> <br /> 116. Gmaas does not need to attend the FIFA World Cup. If Gmaas did, he would start the game with a goal and break the ankles of everyone watching the World Cup, including you, at the same time in a fraction of a second, even if you are watching from a device. EDIT: Gmaas created your device. EDIT: Gmaas is your device.<br /> <br /> 117. Gmaas can solve any puzzle instantly except for the 3x3 Rubik's Cube. EDIT: When Gmaas is handed a 3x3 Rubik's Cube, it is always already solved. Why? The power of Gmaas.<br /> <br /> 118. Gmaas caught a CP 20,000 Mewtwo with a normal Pokeball and no berries blindfolded first try in Pokemon Go.<br /> <br /> 119. When Gmaas flips coins, they always land tails, except when Gmaas makes bets with Zeus.<br /> <br /> 120. On Gmaas's math tests, Gmaas always gets &lt;math&gt;\infty&lt;/math&gt;. EDIT: He gets a 26 on the AMC8 every year. The results never show him because Gmaas is no longer in middle school.<br /> <br /> 121. Gmaas's favorite number is &lt;math&gt;\pi&lt;/math&gt;. It is also one of Gmaas's favorite foods. EDIT: Gmaas created &lt;math&gt;\pi&lt;/math&gt;, as well as most other constants, such as &lt;math&gt;e&lt;/math&gt; and &lt;math&gt;\sqrt{2}&lt;/math&gt;.<br /> <br /> 122. Gmaas's burps created all gaseous planets.<br /> <br /> 123. Gmaas beat Luke Robatille in an epic showdown of catnip consumption.<br /> <br /> 124. Gmaas's wealth is unknown, but it is estimated to be more than Scrooge's. EDIT: It may be more than John D. Rockefeller. EDIT: More accurate estimates predict that Gmaas's wealth is infinite.<br /> <br /> 125. Gmaas has a summer house on Mars. EDIT: Gmaas has a fall house on Venus. EDIT: Gmaas has a winter house on Jupiter. EDIT: Gmaas has a spring house on Earth. EDIT: Gmaas also experiences a fifth season called wintrautumn. It happens during November and December and is the cross between fall and winter. Everything is dreary, but there is no snow. Gmaas spends wintrautumn in his house on Venus, where he is incinerated daily. He reincarnates every night through the power of Gmaas. EDIT: Gmaas invented a new season on Feb. 31, 2019, called winter-summer. It is spring but transcends spring.<br /> <br /> 126. The Earth and all known planets are Gmaas's hairballs.<br /> <br /> 127. Gmaas attended Harvard, Yale, Stanford, MIT, UC Berkeley, Princeton, Columbia, and Caltech at the same time using a time-turner.<br /> <br /> 128. Gmaas attended Hogwarts and was a perfect. EDIT: Gmaas is headmaster. EDIT: Hogwarts was supposed to be called Hogmaas.<br /> <br /> 129. Mrs. Norris is Gmaas's archenemy. Gmaas yawned, and Ms. Norris was petrified. EDIT: Gmaas is the basilisk, and he let Harry Potter pet him. Harry did not kill the basilisk, he only gave Gmaas a haircut. EDIT: Gmaas hates having a haircuts, so he reincarnated Voldemort to punish Harry.Edit: Not true at all.<br /> <br /> 130. Gmaas is a demigod and attends Camp Half-Blood over summer. Gmaas is the counselor for the Apollo cabin because cats can be demigod counselors too. EDIT: Apollo was one of the many reincarnations of Gmaas.<br /> <br /> 131. Gmaas has completed over 2,000 quests and is very popular throughout Camp Half-Blood. Gmaas has also been to Camp Jupiter. EDIT: Gmaas is Camp Jupiter, he is also Camp Half-Blood. EDIT: How? EDIT: The power of Gmaas.<br /> <br /> 132. Percy Jackson was only able to complete his quests because Gmaas helped him. EDIT: Gmaas is Percy Jackson. You are Gmaas, but Gmaas is not you.<br /> <br /> 133. Gmaas painted the Mona Lisa, The Last Supper, and A Starry Night. EDIT: Gmaas knows that their real names are Gmaasa Lisa, The Last Domestic Meal, and Far-away Light.<br /> <br /> 134. Gmaas knows that the Blood Moon is just the red dot. He has not caught it yet. EDIT: He caught it during the super blue blood moon.<br /> <br /> 135. Gmaas attended all the Ivy Leagues.<br /> <br /> 136. I am Gmaas. EDIT: No you are not. You only have part of Gmaas inside of you. EDIT EDIT: I am also Gmaas. EDIT EDIT EDIT: But it is I who am Gmaas. EDIT EDIT EDIT EDIT: Gmaas is in us all. EDIT EDIT EDIT EDIT EDIT: Gmaas is all of us yet none of us. EDIT EDIT EDIT EDIT EDIT EDIT: Gmaas is a cat. EDIT EDIT EDIT EDIT EDIT EDIT EDIT: He is only in a cat form right now. He can be whatever he wants to be. EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT: This chain of edits has superseded another chain of edits on this page for the record of the longest chain of edits on AoPS Wiki. EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT: But the edits in this chain tend to be shorter than most. EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT: You're right. But we sure do love strings of edits, don't we? EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT: Gmaas makes the edits. He is in your head spinning edits in your brain. EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT: Gmaas is made to be edited. EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT: Gmaas pays people to edit. EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT: Some people edit even without Gmaas's payment. They do it because they are believers. EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT: Gmaas is Gmaas. You are not Gmaas. Gmaas does not pay people to edit; we do it because we want to.<br /> <br /> 137. In 2018 Gmaas once challenged Magnus Carlsen to a chess game. Gmaas won every round. EDIT: Gmaas ate the chess pieces afterward. They tasted funny.<br /> <br /> 138. Gmaas was captured in 2017 but was released due to sympathy. EDIT: Gmaas was only captured in his concrete form; his abstract form cannot be processed by a feeble human brain.<br /> <br /> 139. Gmaas's fur is white, black, grey, yellow, red, blue, green, brown, pink, orange, turquoise, and purple at the same time. EDIT: Gmaas can make his fur any color he wants. EDIT: Gmaas's fur color can be ultraviolet.<br /> <br /> 140. Gmaas crossed the event horizon of a black hole and ended up in the AoPS universe.<br /> <br /> 141. Gmaas crossed the Delaware River with Washington. EDIT: Gmaas also crossed the Atlantic with the pilgrims.<br /> <br /> 142. If you can capture a Gmaas hair, Gmaas will give you some of his Gmaas power. EDIT: Gmaas does not shed and will eat anyone who has Gmaas hair. EDIT: Gmaas used to shed. The sheddings became tacocats.<br /> <br /> 143. Chuck Norris makes Gmaas jokes. EDIT: Those jokes all praise Gmaas.<br /> <br /> 144. Gmaas is also the ruler of Oceania, Eastasia, and Eurasia. EDIT: Gmaas wrote the book &quot;1984.&quot;<br /> <br /> 145. Gmaas killed Big Brother by farting on him. Though Gmaas was caught by the Ministry of Love, Gmaas escaped easily. EDIT: Gmaas used to be Big Brother. EDIT: Gmaas destroyed the Ministry of Love.<br /> <br /> 146. Gmaas was not affected by Thanos's snap; in fact Gmaas is the creator of the Infinity Stones. EDIT: Gmaas is Thanos.<br /> <br /> 147. Everyone knows that Gmaas is a god. EDIT: That is because he is a god.<br /> <br /> 148. Gmaas also owns Animal Farm. Napoleon was Gmaas's servant. EDIT: Napoleon was Gmaas's slave.<br /> <br /> 149. Gmaas is the only person who knows where Amelia Earhart is. EDIT: Gmaas! Please tell us! It would be a great contribution to historical knowledge! EDIT: Gmaas responds, &quot;No.&quot;<br /> <br /> 150. Gmaas is the only cat that has been proven transcendental. EDIT: Gmaas has been proved to be normal as well.<br /> <br /> 151. Grumpy cat reads Gmaas memes. EDIT: Grumpy cat then steals them and claims they're his. Gmaas isn't very happy about that, either. EDIT: That is why he looks grumpy in the memes.<br /> <br /> 152. The reason why AIME cutoffs aren't out yet is that Gmaas refused to grade them due to too much problem misplacement. EDIT: Gmaas controls the MAA. EDIT: Gmaas founded the MAA. EDIT: Gmaas is the MAA.<br /> <br /> 153. Gmaas dueled Grumpy Cat and won. Gmaas wasn't trying. EDIT: Gmaas killed Grumpy cat. EDIT: Gmaas revived Grumpy cat because he has not other rival.<br /> <br /> 154. Gmaas sits on the statue of Pallas and says forevermore. EDIT: When Gmaas was a statue, people hid him in a basement and forgot about him. Then civilization collapsed and the Middle Ages began. People finally discovered and melted down the statue of Gmaas around 1350 to make a church bell. Gmaas was free and reincarnated again, bringing about the Renaissance. EDIT: Despite the efforts of the recently founded National Gmatthematical Society of Florence, the statue was melted down. For more information about the National Gmatthematical Society of Florence, see the Gmaasology page.<br /> <br /> 155. Gmaas is a big fan of Edgar Allan Poe because he is actually Poe. EDIT: He became Poe during his thirty-year depression in the 19th century.<br /> <br /> 156. Gmaas does merely not use USD; he owns it.<br /> <br /> 157. In 2003, Gmaas used elliptical curves to force his reign over AoPS.<br /> <br /> 158. &quot;Actually, my name is spelled &quot;GMAAS&quot;.&quot; (Citation needed)<br /> <br /> 159. Gmaas is Link in the Legend of Zelda. He despises Calamity Ganon in Breath of the Wild. &quot;Too much of a hog...&quot;<br /> <br /> 160. Gmaas is the smartest living being in the universe. EDIT: Notice how this sentences says &quot;living being,&quot; so Gmaas might be dummer than some dead person. EDIT EDIT: Gmaas is the smartest being that has lived, lives, and will live. EDIT EDIT EDIT: How? EDIT EDIT EDIT EDIT: The power of Gmaas. EDIT EDIT EDIT EDIT EDIT: How dare you question the power of GMAAS?<br /> <br /> 161. Gmaas helped Sun Wukong on the Journey to the West.<br /> <br /> 162. Gmaas was the creator of Wikipedia.<br /> <br /> 163. Gmaas can hack any website he desires. EDIT: He can edit any website with the words Gmaas in it. EDIT: AoPS includes the word Gmaas right here, so Gmaas can hack it. EDIT: Gmaas can edit any website he desires.<br /> <br /> 164. Gmaas is the basis of Greek and Egyptian mythology. EDIT: He is also the basis for Aztec mythology. He once had a craving for human flesh, so he created human sacrifice.<br /> <br /> 165. Gmaas once sold Google to a man for around 12 dollars! EDIT: Gmaas has not spent those 12 dollars and is waiting for the economy to crash. EDIT: Why would he do that? EDIT: The power of Gmaas. EDIT: Gmaas is smarter than you think he is. Do you think you know how smart Gmaas is now? If so, then you are still wrong.<br /> <br /> This article is spam 166. Gmaas uses a HP printer. It is specifically a HP 21414144124124142141414412412414214141441241241421414144124124142141414412412414 printer.<br /> <br /> 167. Gmaas owns all AoPS staff including Richard Rusczyk. EDIT: Richard Rusczyk is one of Gmaas's many code names.<br /> <br /> 168. Gmaas saw Yoda's birth. EDIT: Gmaas was Yoda's father. EDIT: Was Gmaas green like Yoda back then? EDIT: Yes. EDIT: Why? EDIT: The power of Gmaas.<br /> <br /> 169. Gmaas's true number of lives left is unknown; however, Gmaas recently confirmed that he had at least one left. Why doesn't Gmaas have so many more lives than other cats? The power of Gmaas. EDIT: This is all not true. EDIT: This is all true. EDIT: Gmaas has an infinite number of lives. EDIT: Gmaas does not have an infinite number of lives. He just has an unlimited number of lives. EDIT: Gmass has an infinite and unlimited number of lives.<br /> <br /> 170. sseraj once spelled Gmaas as gmASS by accident in Introduction to Geometry (1532). sseraj’s life was never the same afterwards. EDIT: Gmaas created sseraj. He is a Gmaas, but without the face, body, legs, and tail.<br /> <br /> 171. Gmaas has beaten Chuck Norris, The Rock, and John Cena all together in a fight.<br /> <br /> 172. Gmaas is a South Korean, North Korean, Palestinian, Israeli, U.S., Soviet, Russian, and Chinese citizen at the same time. EDIT: Gmaas is a citizen of every country in the world. Gmaas seems to enjoy the country of AoPS best, however.<br /> <br /> 173. &quot;I am sand&quot; destroyed Gmaas in FTW. EDIT: Because Gmaas accidentally died, he defeated &quot;I am sand&quot; 3,141,592,653 times after.<br /> <br /> 174. sseraj posted a picture of Gmaas with a game controller in Introduction to Geometry (1532).<br /> <br /> 175. Gmaas plays Roblox mobile edition and likes Minecraft, Candy Crush, and Club Penguin Rewritten. He also loves Catch that fish. EDIT Gmass likes Minecraft better than Roblox<br /> <br /> 176. Gmaas is Roy Moore's horse in the shape of a cat.<br /> <br /> 177. Gmaas is a known roblox/club penguin rewritten player and is a legend at it. He has over &lt;math&gt;289547987693&lt;/math&gt; roblox and &lt;math&gt;190348&lt;/math&gt; in CPR.<br /> <br /> 178. This is all hypothetical. EDIT: This is all factual. For reference, see an earlier post.<br /> <br /> 179. Gmaas's real name is Princess. He has a sibling named Rusty/Fireheart/Firestar. EDIT: That is incorrect. Gmaas's real name is Gmaas. EDIT: Gmass named himself. That's why his name is amazing.<br /> <br /> 180. Gmaas is capable of salmon powers. EDIT: Gmaas is capable of everything. Nothing is beyond Gmaas.<br /> <br /> 181. Gmaas told Richard Rusczyk to make AoPS.<br /> <br /> 182. The Gmaas is everything. Yes, you are part of the Gmaas-Dw789. EDIT: Gmaas is older than the universe. He is more than everything.<br /> <br /> 183. The Gmaas knows every dimension up to 99999999999999999999999999999999999999999999999999999999999999999999999999999999999th dimension. EDIT: He is working on the higher dimensions presently. It takes up 1% of his time. He spends the remaining 99% of his time eating, sleeping, and being. EDIT: Does that mean he stops being while he learns higher dimensions? EDIT: Yes. EDIT: Why? EDIT: The power of Gmaas.<br /> <br /> 184. Gmaas went into a black hole and exited the white hole. He ended up in the 15th dimension where people drink tea every day. He stole 31,415,926,535,897,932,384 buckets of tea.<br /> <br /> 185. Gmaas is &quot;TIRED OF PEOPLE ADDING TO HIS PAGE!!&quot; (Maas 45). EDIT: This is Gmaas's holy, so he wants to have a longer version. For reference, see Maas 3,141,592,653,589,793,238,462. Gmaas is too lazy to write this book himself or to hire someone to do this for him, so he has assembled a group of unpaid freelancers on AoPS to write his holy book for him. He is watching it grow. However, Gmaas sometimes sees a comment that he does not like on the Gmaas article. He possesses an editor of Gmaas and makes him/her delete it. EDIT: AoPS itself is just an elaborately concealed piece of Gmaas propaganda. EDIT EDIT: How dare you reveal the truth! *Zaps previous editor out of existence* Now, where were we...<br /> <br /> 186. Gmaas is a Gmaas who is actually Gmaas. EDIT: Gmaas is omnipotent and omniscient. However, he is not always benevolent.<br /> <br /> 187. Gmaas has a penguin servant who runs GMAASINC. The penguin may or may not be dead. He had another penguin, who is mostly alive.<br /> <br /> 188. Gmaas owns a TARDIS, and can sometimes be seen traveling to other times for reasons unknown. EDIT: Gmass is the doctor. EDIT EDIT: Therefore, the doctor's name is Gmaas.<br /> <br /> 189. Gmaas knows how to hack into top secret AoPS community pages. EDIT: AoPS is just Gmaas's elaborately concealed blog.<br /> <br /> This article is spam 190. Gmaas used to be river clan cat who crossed the event horizon of a black hole and came out the other end. EDIT: He eventually created sseraj and has lived with sseraj ever since.<br /> <br /> 191. Gmaas is king of the first men, the anduls.<br /> <br /> 192. Gmaas is a well known professor at Meowston Academy. EDIT: He is professor of Gmaasology there. EDIT: Gmaas founded Meowston Academy. EDIT: It is actually called Gmaaston Academy<br /> <br /> 193. Gmaas comes from Gmaas Land, a magical place where pie is infinite and everything starts with a g<br /> <br /> 194. Gmaas is the CEO of Caterpillar.<br /> <br /> 195. Gmaas drinks at Starbucks everyday.<br /> <br /> 196. Gmaas is addicted to tuna, along with other more potent fish, such as salmon and trout.<br /> <br /> 197. Gmaas likes turning into fish and catching himself. EDIT: So far, Gmaas has spent 2,718,281 of his many lives as a catfish. However, sometimes, he has been catched as a catfish by other people. Luckily, Gmaas has always escaped.<br /> <br /> 198. Gmaas won the reward of being cutest and fattest cat ever--he surpassed grumpy cat. (He also out-grumped grumpy cat!!!) EDIT: He is in the Guinness Book of World Records for fluffiest cat ever.<br /> <br /> 199. He was last sighted at 1665 Alligator Swamp-A 4/1/18 at 3:14:15.92653589793238462 PM.<br /> <br /> 200. Gmaas is the owner of sseraj, not his pet. EDIT: Gmaas also created sseraj.<br /> <br /> 201. Gmaas is the embodiment of life, the universe, and beyond.<br /> <br /> 202. Gmaas watches memes about Gmaas. EDIT: All memes originate with Gmaas, but they are often posted by others. EDIT EDIT: Gmaas is getting rather tired of memes.<br /> <br /> 203. After death Gmaas became the god of hyperdeath and obtained over 9000 souls.<br /> <br /> 204. One of Gmaas's many real names is Pablo Diego José Francisco de Paula Juan Nepomuceno María de los Remedios Cipriano de la Santísima Trinidad Ruiz y Picasso.<br /> <br /> 205. Gmaas is a certified Slytherin. EDIT: Gmaas is actually a certified Ravenclaw.<br /> <br /> 206. Gmaas once slept on sseraj's private water bed, so sseraj locked him in the bathroom. EDIT: Gmaas has superpowers that allowed him to overcome the horrors of Mr. Toilet while locked in the bathroom.<br /> <br /> 207. Gmaas once sat on an orange on a pile of AoPS books, causing an orange flavored equation explosion.<br /> <br /> 208. Gmaas conquered the moon and imprinted his face on it until asteroids came and erased it.<br /> <br /> 209. Gmaas is a supreme overlord who must be given&lt;cmath&gt;1000^{1,000,000,000,000,000,000,000^{1,000,000,000,000,000,000,000}}&lt;/cmath&gt;minecraft diamonds. EDIT: Gmaas owns Mojang, but Gmaas sued them when it was supposed to be called Gmaascraft. EDIT: A previous fact said that Gmaas only lost one lawsuit. Why is this Minecraft not called Gmaascraft if he won the lawsuit?<br /> <br /> 210. Gmaas is the Doctor Who lord, sports Dalek-painted cars, and eats human finger cheese, custard, and black holes. EDIT: Gmaas once ate a white hole. Gmaas then exploded and made a new universe.<br /> <br /> 211. Gmaas is everyone's favourite animal.<br /> <br /> 212. Gmaas is a Persian Smoke.<br /> <br /> 213. Gmaas lives with sseraj.<br /> <br /> 214. Gmaas dislikes geometry but enjoys number theory. EDIT: sseraj once posted a picture of Gmaas being grumpy after seeing an olympiad geometry problem.<br /> <br /> 215. Gmaas is often overfed (with probability &lt;math&gt;\frac{3972}{7891}&lt;/math&gt;), or malnourished (with probability &lt;math&gt;\frac{3919}{7891}&lt;/math&gt;) by sseraj. EDIT: Gmaas does not need food. He just eats food because it tastes good. EDIT: Gmaas does not like vegetables.<br /> <br /> 216. Gmaas has&lt;cmath&gt;\sum_{k=1}^{267795} [k(k+1)]+GMAAS+GMAAAAAAAAAAS&lt;/cmath&gt;supercars, excluding the Purrari and the 138838383 Teslas.<br /> <br /> 217. Gmaas employs AoPS. EDIT: Gmaas is the reason why AoPS exists. EDIT: Gmaas is the reason why everything exists.<br /> <br /> 218. Gmaas is a Gmaas with yellow fur and white hypnotizing eyes. EDIT: His fur is not always yellow. His fur can be wha== This article is spam == 219. Gmaas has the ability to divide by zero. EDIT: Gmaas knows what 1/0 is. What is it? We'll never know. EDIT: 1/0 = 0. How? The power of Gmaas. EDIT: The previous editor was wrong. 1/0 = Gmaas. EDIT: The previous editor was wrong. &lt;math&gt;\frac{1}{\infty}=&lt;/math&gt; GMAAS<br /> <br /> 219. Gmaas is the only one who knows what i is. Everyone else thinks that it's imaginary.<br /> <br /> 220. Gmaas was born with a tail that is a completely different color from the rest of his fur. EDIT: Gmaas can change the color of his fur.<br /> <br /> This article is spam 221. Gmaas's stare is very hypnotizing and effective at getting table scraps. EDIT: Gmaas's stare turned Medusa into rock, King Midas into gold, and sseraj into sseraj.<br /> <br /> 222. Gmaas always appears several minutes before certain classes start as an administrator. EDIT: This is becoming more and more infrequent. Sadly, sseraj rarely posts pictures of Gmaas before classes anymore. EDIT: Why is this happening? EDIT: The power of Gmaas.<br /> <br /> 223. Gmaas is an AoPS administrator under the alias Grayson Maas. EDIT: Gmaas always posts class surveys. He has a fake photo on his bio and has a real one on his community page. However, Gmaas himself has not yet posted on the Gmaas forum. EDIT: He also has not edited the Gmaas article, the Talk: Gmaas article, the Gmaasology article, or the sseraj article. EDIT: The final one is surprising because Gmaas knows more about sseraj than even sseraj does.<br /> <br /> 224. Gmaas died from too many Rubik's cubes in an Introduction to Algebra A class, but he was revived by the Dark Lord at 12:13:37 AM the next day. EDIT: This was thanks in return for Gmaas reincarnating him during the Triumverate Tournament.<br /> <br /> 225. It is uncertain whether or not Gmaas is a cat or is merely some sort of beast that has chosen to take the form of a cat (specifically a Persian Smoke). EDIT: He is both. EDIT: Actually, Gmaas is a cat. Gmaas said so, and science says so. EDIT: The profile for Gmaas on the list of AoPS teachers does not mention him being a cat. EDIT: The above post is irrelevant. Gmaas hides his identity under the alias Grayson Maas. EDIT: Gmaas us everything yet nothing. EDIT: How is that? The power of Gmaas.<br /> <br /> 226. Gmaas is distant relative of the chair of the department of Gmaasology at Princeton. EDIT: In the last few years, many universities have been opening Gmaasology departments. For more information, see the Gmaasology page.<br /> <br /> 227. Gmaas cannot be Force choked. Darth Vader learned that the hard way...<br /> <br /> 228. Gmaas is famous, and mods always talk about him before class starts.<br /> <br /> 229. Gmaas's favorite food is AoPS textbooks because they help him digest problems. EDIT: Gmaas wrote all AoPS textbooks but is never listed in the acknowledgments section. EDIT: That is because Gmaas is very humble except for when he isn't.<br /> <br /> 230. Gmaas tends to reside in sseraj's fridge. EDIT: Gmaas once ate all sseraj's fridge food, so sseraj had to put him in the freezer. EDIT: Gmaas's fur can protect him from the harsh conditions of a freezer. EDIT: Then Gmaas ate all the food in sseraj's freezer. He enjoyed the ice cream in the freezer the most. EDIT: Gmaas also ate sseraj's freezer.<br /> <br /> 231. Gmaas once demanded Epic Games to give him 5,000,000 V-bucks for his 569823rd birthday. EDIT: This is why Gmaas no longer has an Epic Games account. EDIT: Gmaas created Epic Games, though.<br /> <br /> 232. Gmaas sightings are not very common. There have only been 30 confirmed sightings of Gmaas in the wild.<br /> <br /> 233. Gmaas is a sage omniscient cat.<br /> <br /> <br /> 235. Gmaas is looking for suitable places other than sseraj's fridge to live in.<br /> <br /> <br /> 236. List of places where Gmaas sightings have happened:<br /> <br /> - 1. The Royal Scoop ice cream store in Bonita Beach Florida<br /> <br /> - 2. Inside the abandoned hospital on Rosevelt Island in New York City, which is also a feral cat sanctuary.<br /> <br /> - 3. MouseFeastForCats/CAT 8 Mouse Apartment 1083<br /> <br /> - 4. Gmaasology 2 (1440)<br /> <br /> - 5. Alligator Swamp A 1072<br /> <br /> - 6. Alligator Swamp B 1073<br /> <br /> - 7. Gmaasology A (1488)<br /> <br /> - 8. Introduction to Gmaasology A (1170)<br /> <br /> This article is spam - 9. Introduction to Gmaasology B (1529)<br /> <br /> - 10. Welcome to Panda Town Gate 1076<br /> <br /> - 11. Welcome to Gmaas Town Gate 1221<br /> <br /> - 12. Welcome to Gmaas Town Gate 1125<br /> <br /> - 13. 33°01'17.4&quot;N 117°05'40.1&quot;W (Rancho Bernardo Road, San Diego, CA)<br /> <br /> - 14. The other side of the ice in Antarctica<br /> <br /> - 15. Feisty Alligator Swamp 1115<br /> <br /> - 16. Intermediate Gmaas and Gmaasology 1207<br /> <br /> - 17. Posting student surveys<br /> <br /> - 18. USF Castle Walls - Elven Tribe 1203<br /> <br /> - 19. The Dark Lord's Hut 1210<br /> <br /> - 20. Gmathamatical Problem Series 1200<br /> <br /> - 21. Intermediate Gmaasology 1138<br /> <br /> - 22. Intermediate Number Theory 1476<br /> <br /> - 23. Introduction to Gmaasology 1204 on July 27, 2016<br /> <br /> - 24. Gmaasology B 1112<br /> <br /> - 25. Intermediate Algebra 1561 7:17 PM 12/11/16<br /> <br /> - 26. Nowhere Else, Tasmania<br /> <br /> - 27. The Gmaathamatics School of Gmaasology<br /> <br /> 237. Gmaas can communicate with, and sometimes control, any other cats; however, this is very rare, as cats normally have a very strong will.<br /> <br /> 238. A picture of Gmaas: http://i.imgur.com/PP9xi.png<br /> <br /> 239. Gmaas met Mike Miller. EDIT: Gmaas ate Mike Miller.<br /> <br /> 240. Gmaas got mad at sseraj once, so Gmaas locked sseraj in sseraj's freezer.<br /> <br /> 241. Then, sseraj decided to eat all of Gmaas's hidden turnips in the freezer as punishment. EDIT: sseraj could not eat all of them so, he put the remaining turnips in the fire.<br /> <br /> 242. Gmaas once ate a pie. EDIT: He only ate the first 31415926535897932384626433832 digits.<br /> <br /> 243. A Gmaas bite is 314159265358979323846264 psi.<br /> <br /> 244. Many people have met Gmaas, although many of these sightings are dubious. EDIT: It is just like alien sightings.<br /> <br /> 245. Gmaas can talk but normally hates talking.<br /> <br /> 246. Gmaas likes to eat his own fur. That's why he doesn't have any as of late<br /> <br /> 247. Gmaas is bigger than an ant. EDIT: so is a regular cat<br /> <br /> 248. Gmaas once ate the king of the ants. EDIT: Ants do not have kings; they have queens.<br /> <br /> 249. Gmaas lives somewhere over the rainbow. EDIT: He lives in sseraj's house. EDIT: sseraj lives somewhere over the rainbow.<br /> <br /> 250. Gmaas is an obviously omnipotent cat.<br /> <br /> 251. sseraj is known to post pictures of Gmaas on various AoPS classrooms. It is not known if these photos have been altered with the editing program called 'Photoshop.'<br /> <br /> 252. Gmaas EDIT: This is a waste of a fact.<br /> <br /> 253. sseraj has posted pictures of Gmaas in Introduction to Algebra before class started with the title &quot;caption contest.&quot; Anyone who posted a caption mysteriously vanished in the middle of the night. EDIT: This has happened many times, including in Introduction to Geometric Gmaasology 1533, among other active classes. The person writing this did participate, and did not disappear. (You could argue Gmaas is typing this through his/her account...)<br /> <br /> 254. Gmaas once slept in your bed and made it gray. EDIT: My bed is not gray. EDIT: Nor is mine.<br /> <br /> 255. Richard Rusczyk actually Gmaas in disguise. EDIT: That is false. Gmaas is only in one form at a time. EDIT: This is also false, you are Gmaas and Gmaas owns you. EDIT: This is false too. Gmaas can only be in one form.<br /> <br /> 256. Gmaas is suspected to be a cat in disguise. EDIT: He is a cat in disguise. See the results on the Gmaas poll in the Gmaas forum.<br /> <br /> 257. Gmaas is a cat but has characteristics of every other animal on Earth. EDIT: Gmaas does not have the characteristic of being able to eat plankton. EDIT: Yes he does. He just has not decided to reincarnate as a blue whale yet.<br /> <br /> 258. Pegasus was modeled off Gmaas. EDIT: Pegasus used to be Gmaas's pet, but Pegasus escaped and joined Bellerophon.<br /> <br /> 259. Gmaas is the ruler of the universe and has been known to be the creator of the species &quot;Gmaasians&quot;. EDIT: He is the universe<br /> <br /> 260. There is a rumor that Gmaas is starting a poll. EDIT: He has. It is on the Gmaas forum, made by his minions. EDIT: We are all his minions.<br /> <br /> 261. Gmaas is a Persian smoke who ran away, founded GmaasClan, and became a kitty-pet.<br /> <br /> 262. There is a sport called &quot;Gmaas Hunting&quot; where people try to successfully capture Gmaas in the wild with video/camera/eyes. Strangely, no one has been able to do this, and those that have have mysteriously disappeared into the night. Nobody knows why. Many people have tried Gmaas Hunting, but they never have been successful.<br /> <br /> 263. Gmaas burped and caused an earthquake.<br /> <br /> 264. Gmaas once drank from a teacup.<br /> <br /> 265. GMAAS IS HERE.... PURRRRRRRRRRRRRRRRRRRR EDIT: Gmaas is everywhere. EDIT EDIT: He is behind you...<br /> <br /> 266. Gmaas made and currently owns the Matrix. EDIT: The above fact is true. Therefore, this is an illusion. EDIT: Gmaas is not an illusion.<br /> <br /> 267. Gmaas is the reason Salah will become better than Ronaldo.<br /> <br /> 268. Who is Gmaas, really? EDIT: Gmaas is a cat. EDIT EDIT: Who cares how much we mention it? Gmass is a cat. EDIT EDIT EDIT: Gmaas is not a cat. Gmaas is GMAAS.<br /> <br /> 269. Gmaas is a heavenly being. EDIT: He is immortal. EDIT EDIT: He is not immortal. He just tricked you to think he is immortal. Gmaas is good at tricking.<br /> <br /> 270. Gmaas is a cat with no fur or tail. In fact he's a human wearing a cat costume. EDIT: This fact is false. 31415 times false.<br /> <br /> 271. Illuminati was a manifestation of Gmaas, but Gmaas decided Illuminati was not great enough for his godly self.<br /> <br /> This article is spam 272. sseraj has met Gmaas, and Gmaas is his best friend. EDIT: sseraj is Gmaas's great great great great great grandson.<br /> <br /> 273. Gmaas read Twilight. EDIT: ...and SURVIVED.<br /> <br /> 274. There is a secret code when put into super smash where Gmaas would be a playable character. Too bad he didn't say it.<br /> <br /> 275. Gmaas was a tribute to one of the Hunger Games, came out a Victor, and now lives in District 4. EDIT: This fact is true and not true. He is everywhere.<br /> <br /> 276. Gmaas is the only known creature that will survive the destruction of Earth in 99,999,999 years. EDIT: The Earth will probably die in around 5,000,000,000 years.<br /> <br /> 277. 5space (side admin) is one of Gmaas's slaves. EDIT: Gmaas owns all AoPS site administrators. EDIT: He owns Himself.<br /> <br /> 278. Gmaas photos − https://cdn.artofproblemsolving.com/images/f/f/8/ff8efef3a0d2eb51254634e54bec215b948a1bba.jpg<br /> <br /> http://disneycreate.wikia.com/wiki/File:Troll_cat_gif_(1).gif<br /> <br /> He was also sighted here.<br /> <br /> 279. Gmaas in Popular Culture:<br /> <br /> BREAKING NEWS: A Gmaasologist has found a possible cousin to Gmaas in Raymond Feist's book Silverthorn. They are mountain dwellers, gwali. Not much are known about them either, and when someone asked,&quot;What are gwali?&quot; the customary answer &quot;This is gwali&quot; is returned. Another eminent Gmaasologist is now looking into it. 199 Someone is writing a book about Gmaas.<br /> <br /> 280. Sighting of Gmaas: https://2017.spaceappschallenge.org/challenges/warning-danger-ahead/and-you-can-help-fight-fires/teams/gmaas/project<br /> <br /> 281. Oryx the mad god is actually Gmaas wearing a suit of armor. This explains why he is never truly killed.<br /> <br /> 282. Potential sighting of Gmaas <br /> <br /> 283. Gmaas has been spotted in some Doctor Who and Phineas and Ferb episodes, such as Aliens of London, Phineas and Ferb Save Summer, Dalek, Rollercoaster, Rose, Boom Town, The Day of The Doctor, Candace Gets Busted, The Name of the Doctor, Silence in the Library, The Idiots Lantern and many more.<br /> <br /> 284. Gmaas can be found in many places in Plants vs. Zombies Garden Warfare 2 and Bloons TD Battles.<br /> <br /> 285. Gmaas was an un-credited actor in the Doctor Who story Knock Knock, playing a Dryad. How he shrunk, we will never know.<br /> <br /> 286. An eminent Gmaasologist is also writing a story about him. He is continuing the book that was started by the professor of Gmaasology at Harvard. When he is done he will post it here.<br /> <br /> 287. Gmaas is a time traveler from 0.99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 B.C.<br /> <br /> 288. No one knows if Gmaas is a Mr. Mime in a cat skin, the other way around, or just a downright combination of both. EDIT: Gmaas is an immortal in a cat body.<br /> <br /> 289. In it, it mentions these four links as things Gmaas is having trouble (specifically technical difficulties). What could it mean? Links:<br /> <br /> https://docs.google.com/document/d/1NZ0XcFYm80sA-fAoxnm7ulMCwdNU75Va_6ZjRHfSHV0<br /> <br /> https://docs.google.com/document/d/1ELN7ORauFFv1dwpU_u-ah_dFJHeuJ3szYxoeC1LlDQg/<br /> <br /> https://docs.google.com/document/d/1oy9Q3F7fygHw-OCWNEVE8d-Uob2dxVACFcGUcLmk3fA<br /> <br /> https://docs.google.com/document/d/1jzb9Q6FmDmrRyXwnik3e0sYw5bTPMo7aBwugmUbA13o<br /> <br /> 290. Another possible Gmaas sighting?<br /> <br /> 291. &lt;math&gt;Another&lt;/math&gt; sighting? <br /> <br /> 292. Yet Another Gmaas sighting? <br /> <br /> 293. Gmaas has been sighted several times on the Global Announcements forum.<br /> <br /> 294. Gmaas uses the following transportation: &lt;img&gt; http://cdn.artofproblemsolving.com/images/3/6/8/368da4e615ea3476355ee3388b39f30a48b8dd48.jpg &lt;/img&gt; EDIT: He also sometimes uses a TARDIS<br /> <br /> 295. When Gmaas was angry, he started world wars 1 &amp; 2. It is only because of Gmaas that we have not had World War 3. EDIT: He was starting to have to get angry in the Cold War, especially around the Cuban Missile Crisis and the Ronald Regan era, but he decided to eat food, which calmed him down.<br /> <br /> 296. Gmaas is the only cat to have been proved irrational and transcendental, though we suspect all cats fall in the first category.<br /> <br /> 297. Gmaas belongs to a secret club of transcendental cats. EDIT: That club is located underneath the Eiffel Tower. EDIT EDIT: Gustave Eiffel was Gmaas in disguise and designed the club.<br /> <br /> 298. Gmaas plays Geometry Dash. His username is D3m0nG4m1n9. EDIT: Gmaas only does this to punish himself. Olympiad Geometry is his least favorite thing to do. EDIT: None of these are true.<br /> <br /> 299. Gmaas likes to whiz on the wilzo.<br /> <br /> 300. Gmaas has been spotted in many AoPS classes, such as AMC 8 Basics. EDIT: Many of the AoPS classes Gmaas has visited can be found in the Gmaas sightings section of this article.<br /> <br /> 303. Gmaas is cool. EDIT: He was not cool in summer, so he invented air conditioning. EDIT: He is air conditioning, in fact he is the entire universe.<br /> <br /> 302. Gmaas hemoon card that does over 9000000 dmg.<br /> <br /> This article is spam 223 Gmaas is a skilled swordsman who should not to be mistaken for Puss in Boots. Some say he even trained the mysterious and valiant Meta Knight.<br /> <br /> 303. Kirby once swallowed Gmaas. Gmaas had to spit him out.<br /> <br /> 304. Gmaas was the creator of pokemon, and his pokemon card can OHKO anyone in one turn. He is invisible and he will always move first.<br /> <br /> 305. Gmaas beat Dongmin in The Genius Game Seasons 1, 2, 3, 4, 5, 6, and 7.<br /> <br /> 306. Gmaas has five letters. Pizza also has five letters. Pizzas are round. Eyes are round. There is an eye in the illuminati symbol. EDIT: Gmaas is a fluffy cat.<br /> <br /> 307. This article is spam 228 Gmaas knows both 'table' and 'tabular' in LaTeX, and can do them in his sleep. EDIT: Gmaas invented LaTeX in his sleep.<br /> <br /> 308. Gmaas does not hate cheddar cheese, but he doesn't love it either.<br /> <br /> 309. Gmaas is a cat and not a cat. EDIT: He is a cat.<br /> <br /> 310. Gmaas was born on the sun. EDIT: Not the sun, the suns. He was born on all the suns at once.<br /> <br /> 311. Gmaas eats tape. EDIT: Gmaas invented tape. EDIT: Gmaas eats everything. Gmaas eats computers.<br /> <br /> 322. Gmaas likes Bubble Gum.<br /> <br /> 323. Thomas Edison did not invent the lightbulb; Gmaas did.<br /> <br /> 324. Gmaas invented the alphabet. EDIT: Gmaas thought that hieroglyphs were too complicated, so he invented the alphabet.<br /> <br /> 325. Gmaas eats metal. EDIT: Gmaas once ate so much metal that he turned into a bronze statue.<br /> <br /> 326. Gmaas is over 9000 years old! EDIT: This is just a DBZ reference, and bears no reality to his true age. EDIT: Gmaas is trillions of years old.<br /> <br /> 327. Gmaas is a cat and not a cat. EDIT: He is a cat. EDIT: This fact has been stated 31,415 times in this article. EDIT EDIT: Gmaas is not a cat.<br /> <br /> 328. Gmaas started the Iron Age. EDIT: He thought civilization was getting too advanced. So he sent out the Sea People to destroy civilization.<br /> <br /> 329. Gmaas made the dinosaurs go extinct. EDIT: That happened when he got angry that a dinosaur stepped on his toe.<br /> <br /> 330. Gmaas created life. Then he destroyed it, and in doing so, destroyed himself. Until his son, Gmaas II took over and saved the planet.<br /> <br /> 331. Gmaas created AoPS. EDIT: AoPS was actually born out of a small fraction of Gmaas's abstract reality, and only the sheer amount math can keep it here. (It is also rumored that when he reclaims it, the USF will be deleted, as that is where 83% of the factions of his abstract reality lives, and when people leave USF, more and more escapes.)<br /> <br /> 332. Gmaas created mathematics. EDIT: Gmaas discovered mathematics.<br /> <br /> 333. Gmaas does not like Roblox.<br /> <br /> 334. Gmaas told Steve Jobs to start a company.<br /> <br /> 335. Gmaas invented Geometry Dash. EDIT: Gmaas hates Olympiad Geometry. [Source: sseraj]<br /> <br /> 336. Gmaas got to&lt;math&gt;\infty&lt;/math&gt;in Flappy Bird. EDIT: Gmaas broke the game.<br /> <br /> 337. Gmaas invented Helix Jump.<br /> <br /> 338. Gmaas can play Happy Birthday on the Violin. EDIT: Gmaas can also play The Flight of the Bumblebees.<br /> <br /> 339. Gmaas has mastered Paganini. EDIT: Paganini was Gmaas in disguise. EDIT: Gmaas was Paganini in one of his 100,000 human lives. He does not have a human life now because he has a cat life.<br /> <br /> 340. Gmaas discovered Atlantis after one dive underwater.<br /> <br /> 341. Gmaas made a piano with 89 keys. EDIT: The piano was made out of chocolate. EDIT: He also made a piano bench made out of chocolate. EDIT: Gmaas ate them<br /> <br /> 342. Gmaas can see the future and how to change it.<br /> <br /> 343. Gmaas has every super power you can imagine. EDIT: Gmaas has more superpowers than you can imagine.<br /> <br /> 344. Gmaas made a Violin with 9 strings.<br /> <br /> 345. Gmaas can read 5 books at once. EDIT: It is slightly difficult for Gmaas to do this because he has no fingers. But somehow, Gmaas finds a way. EDIT: He uses his mind to hold open the books.<br /> <br /> 355. Gmaas is the only one who knows what &quot;Inconceivable&quot; means.<br /> <br /> 356. Gmaas taught Richard Rusczyk everything he knows about mathematics. EDIT: Many famous mathematicians have been Gmaas in disguise.== This article is spam == EDIT: This article is not spam! IT is for worshiping Gmaas.<br /> <br /> 357. Gmaas can control matter by looking at it. EDIT: He once looked at a galaxy while he was angry. Everything in the galaxy exploded.<br /> <br /> 358. Gmaas created AoPS. EDIT: He created 99% of all websites. 98% of those websites are blank and unreachable, but the ones that are not are interesting.<br /> <br /> 359 Gmaas is a quantum particle. EDIT: Gmaas is multiple quantum particles. He is a macroscopic collection of them.<br /> <br /> 360. Gmaas is alive and dead at the same time. EDIT: He is usually alive.<br /> <br /> 361. Gmaas likes snow. EDIT: Once Gmaas was reincarnated as a polar bear around 1,000,000 years ago. He had the best time of his lives. EDIT: While he was a polar bear, he ate many fish.<br /> <br /> 362. GMAAS LIKES THE NEW AOPS UPDATE! EDIT: Are you sure he does? Did you ask him? EDIT: Yes, I did.&lt;math&gt;\textrm{Gmaas is right behind you}&lt;/math&gt;EDIT: Gmaas is everywhere. He is in a quantum superposition. He is still in the superposition until someone sees him. The chance of him being behind you is 0.0000000000000000000000000000000000000000000000000000001%. But, you never know. Is he behind you? Is he behind me right now? He is!!! Aaaaaaaaaah... THUMP<br /> <br /> 363. Gmaas does not like the new update. When he saw it, he looked like this.<br /> https://cdn.artofproblemsolving.com/images/7/4/b/74b21fec95225e1621c71ec8f17f343c48a726e0.jpg<br /> <br /> 364. Gmaas likes his eggs hard boiled.<br /> <br /> 365. Gmaas doesn't take showers; he only takes bloodbaths.<br /> <br /> 366. When the bogeyman goes to sleep, he checks his closet for Gmaas.<br /> <br /> 367. When Gmaas crosses the street, cars have to look both ways.<br /> <br /> 368. Gmaas has counted to infinity an infinite amount of times.<br /> <br /> 369. Gmaas pulled the pin in a grenade. 1 billion people died. Then he threw it.<br /> <br /> 370. Gmaas controls the Illuminati and controls all the world's resources. He also is the ruler of a communist society on Mars.<br /> <br /> 371. Gmaas has taken the AHSME/AMC 10, AIME, USAJMO, USAMO, and IMO all the years it has come out. It is rumored that for 2018, Gmaas got a 163.5 on the AMC 12A, a 156 on the AMC 12B, and 17 problems right on the AIME I. EDIT: He also got 51 on USAMO. EDIT: He invented the AMC, AIME, USAJMO, and IMO<br /> <br /> 372. Gmaas has designed most of the AMC tests. EDIT: He didn't design them in 2015 because he was hibernating too long.<br /> <br /> 373. Gmaas is a koala. EDIT: Gmaas was actually the first koala. He wanted to reincarnate himself into something new, so he created a whole other species. [Source Wikipedia: Koala] EDIT: Gmaas is a Koala when they are not alive, which is 10% of the time. When they are alive, Gmaas is a cat.<br /> <br /> 374. Time is Gmaas's vacation home. EDIT: Gmaas created time as a science project.<br /> <br /> 375. Gmass is Catholic<br /> <br /> 376. Gmaas was once reincarnated as Chuck Norris, but he missed being a cat. Then he became a cat.<br /> <br /> 377. Gmaas once resided with a certain physicist named Schrödinger, but he left because Schrödinger was too confusing. Granted, nothing is too confusing for Gmaas but Schrödinger also made Gmaas alive and dead, which felt weird.<br /> <br /> 378. Gmaas once decided to eat a carrot. He decided turnips were better.<br /> <br /> 379. Gmaasology used to be called Gmaathamatics. It was renamed a few years ago. For more information, see the Gmaasology page. That page needs expanding.<br /> <br /> <br /> 380. \gmaas should be made into a LaTeX command. Its function should be to summon Gmaas.<br /> <br /> 381. &lt;math&gt;\gmaas&lt;/math&gt; (Error compiling LaTeX. ! Undefined control sequence.) (Error compiling LaTeX. ! Undefined control sequence.) GMAAS has entered the room<br /> <br /> 382. Grumpy cat pretends to be a descendent of Gmaas because he is jealous. He is not a descendant of Gmaas.<br /> <br /> 383. Every IMO Gold Medalist is two of Gmaas, standing on top of each other in a trenchcoat.<br /> <br /> 384. Gmaas has been everywhere in the world. EDIT: Gmaas has been everywhere in the universe and multiverse.<br /> <br /> 385. The degree used to be called the Gmaas Arc, but the name was too long for most people, so they switched the name.<br /> <br /> 386. Gmaas is famous on AoPS. EDIT: Gmaas is AoPS.<br /> <br /> 387. Gmaas invented every math theorem and in fact invented math.<br /> <br /> 388. Gmaas made 31.41592653589793238462643383279502884% of memes. EDIT: This is incorrect. This is only an estimate.<br /> <br /> 389. Gmaas is a Gmaas since Gmaas likes to Gmaas and Gmaas is cool because he is named Gmaas.<br /> <br /> 390. Gmaas once ate Big Chungus. EDIT: Gmaas also once ate cat food. EDIT: Gmaas hates cat food. EDIT: Gmaas also hates dog food. EDIT: Gmaas does not need to eat, he is an all-conquering god who never/rarely dies. EDIT: Gmaas is Big Chungus EDIT: He was Big Chungus for 3.14159265358979323846327656180937734 seconds. EDIT: This is only an rough estimate<br /> <br /> 391. Garfield is Gmaas in disguise. EDIT: But Gmaas also created Garfield. He took a Gar and a Field, and added them. Boom. He made Garfield.<br /> <br /> 392. Gmaas didn't create the world. He didn't create the universe. The didn't create multiverses. He is the world. He is the universe. He is the multiverses<br /> <br /> 393. Gmaas has a cult with many followers. This is the page for his followers. They pray to him and remember him for his deeds.<br /> <br /> 394. Garfield ate Gmaas but then Gmaas ate garfield. Then they ate each other. EDIT: Gmaas ate Garfield at the end because Gmaas.<br /> <br /> 395. Gmaas has an existential crisis every 99.0000000000000000000000000000000000009123659812374 seconds.<br /> <br /> 396. Gmaas needed light to read and he turned into a lamp called the sun and created 51.59265358979% of life. EDIT: Gmaas uses a new type of tetradecimal number system where the digits are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, G, M, A, and S. The number 416877 is Gmaas's favorite integer. (Convert it to this number system)<br /> <br /> 397. None of this is true. Except for maybe that last one. EDIT: This fact is therefore not true. EDIT This fact is a paradox. Gmaas does not like paradoxes. Therefore Gmaas does not like this fact.<br /> <br /> 398. Gmaas has only done 3 problems on alcumus, and he got one wrong! EDIT: Gmass is the creator of Alcumus, so he got all right. EDIT EDIT: No he didn't. See. https://services.artofproblemsolving.com/download.php?id=YXR0YWNobWVudHMvZi8zLzQ5ZmE3YzBiZDE0ZjFhNTUwOGMwOGQ3Yzc0YWJlY2MwYjM4YWNkLnBuZw==&amp;rn=U2NyZWVuc2hvdCAyMDE5LTEyLTA4IGF0IDEuNDcuMzAgUE0ucG5n <br /> <br /> 399. (Why is this a thing?) Because we are all worshippers of Gmaas.<br /> <br /> 400. This article is NOT spam otherwise it would have been deleted by now. Edit: This article is spam. EDIT: No it isn't<br /> <br /> 401. Gmaas is actually an AoPS site admin... (And a human) not a cat... His username is Gmaasrocks32 EDIT: His username is all the accounts.<br /> <br /> 402. riben was a Gmaas multi, but Gmaas turned the account over to the present riben and imbued it with his power.<br /> <br /> 403. Gmaas was the being that made Sans from Ness.<br /> <br /> 404: Gmaas can be spotted on all Error 404 pages. This is an Error 404 page. Your life is an Error 404 page.<br /> <br /> 405: Gmaas's favorite game is Minecraft, with Breath of the Wild in a close second. His least favorite game is Fortnite. Gmaas intentionally made Fortnite bad so he could have a least favorite game.<br /> <br /> 406: Gmaas's favorite consoles are in this order: Nintendo, Atari, Xbox. Gmaas hates PlayStation.<br /> <br /> All hail Gmaas!<br /> <br /> P.S. Gmaas won USAMO 5 times in a row. That's because he invented USAMO. When Gmaas took it nobody knew about it and he was the only one who took it. So of course, he won. How dare you spell Gmaas with a lowercase G? He is the supreme and awesome ruler of the universe!<br /> <br /> P.P.S. Gmaas invented the word Yeet.<br /> <br /> P.P.P.S. Gmass is the first person who played the game YECK (Moth poth 2019 reference)<br /> <br /> P.P.P.P.S. Gmaas is a non-human who can snap anyone out of existence without anything.<br /> <br /> P.P.P.P.P.S. Gmaas was the first person who did math.<br /> <br /> P.P.P.P.P.P.S. Gmaas invented proof by dictatorship.<br /> <br /> P.P.P.P.P.P.P.S Gmaas invented proof by procrastination.<br /> <br /> P.P.P.P.P.P.P.P.S Gmaas invented proofs!<br /> <br /> P.P.P.P.P.P.P.P.P.S Gmaas invented everything.<br /> <br /> P.P.P.P.P.P.P.P.P.P.S Gmaas did not invent roblox. Gmaas invented Minecraft.</div> 5space https://artofproblemsolving.com/wiki/index.php?title=Gmaas&diff=113060 Gmaas 2019-12-19T00:35:32Z <p>5space: Reverted edits by Anstar (talk) to last revision by Hannahptl</p> <hr /> <div>gmaaas is our leader. To prove yourself worthy of GMAAS, you don't have to memorize facts:<br /> _________________________________________________<br /> <br /> -1. GMAAS looks like this when he is mad: https://cdn.artofproblemsolving.com/images/7/4/b/74b21fec95225e1621c71ec8f17f343c48a726e0.jpg GMAAS permits to post this picture.<br /> <br /> 0. THE FACTS ABOUT THE GREAT EPIC AWESOME GMAAS: Words fail to describe the epic nature of GMAAS, for he is too almighty and powerful to be bound by the plebeian and trifling words. But even the Great Epic Awesome Plenipotentiary GMAAS cannot get rid of a language that's been around for a &lt;math&gt;999999999999999999999999999999999999999999^{9999999999999999999999999999999999999}&lt;/math&gt; years and counting. That's older than he is. EDIT: It is not older than he is because Gmaas is infinity years old. EDIT EDIT: He has now<br /> <br /> 1. GMAAS's theorem states that for any math problem, GMAAS knows the answer to it. This theorem was proved by GMAAS. But then GMAAS forgot about the theorem so later, the mathematician named ARay10 proved it again: [b]Proof of the MAAS theorem[/b]: The GMAAS theorem states that for every math problem, GMAAS knows the answer. Using the 3.141592653589793238462643383... GMAAS theorem, stating that &quot;26. GMAAS's Theorem states that GMAAS knows the answer to any math problem. EDIT: That theorem was proved by GMAAS. EDIT: GMAAS's Theorem has real-world applications: because GMAAS knows the answer to any math problem, you can use GMAAS to solve math problems. GMAAS is busy, so he charges a fee of one dollar for 1,000,000 math problems. EDIT: The fee has gone up. It is now 1,000,000 dollars for one math problem. Gmaas's technician made a mistake and reciprocated the fee,&quot; you must pay &lt;math&gt;1,000,000&lt;/math&gt; to solve a problem using the Games theorem. You wouldn't waste that much money to solve one problem. Therefore, I proved that you cannot use the Games theorem to solve problems. But using theorem 3.141592653589793238462643383 &quot;2. Games can turn things into anything. Using that fact, you can use the Games theorem to solve any problem.<br /> <br /> 2. The GMATS were supposed to be called the GMAAS, but the manager, games, wanted to eat some gnats. Games have stopped eating gnats because they taste dreadful. EDIT: He now eats gnats again. He thinks that they taste like pi(e). EDIT: He ate 3,141,592,653,589,793,238,462,643,383 so far.<br /> <br /> 3. GMAAS's archenemy is John Wick. John Wick once gave Gmaas 31,415,926,535,897,932,384 Oren Berries, but Gmaas thought they were Oran Berries. That is why Games hates John Wick. Germans knew they were Oren Berries because Gmaas knows everything, but he decided to play along.<br /> <br /> 4. Gmaas wants every fact to have a pi reference. Gmaas created pi. EDIT: He made it 3.1415926 times.<br /> <br /> 5. Gmaas owned many memes. Then they died. He left the meme business because others took it over. Gmaas decided to make some more memes after that. Since then, he has been working for the government. All of the politicians are his henchmen. He controls the government. He wrote all of the laws and documents including the U.S. constitution. However, Gmaas doesn't believe in constitutions. He simply writes them for fun (or not, only games knows!!!) EDIT: His favorite is memedog EDIT EDIT: Gmaas does not like meme dog. Games was the one who told the AoPSSheriff to give warnings for posting meme dog.<br /> <br /> 6. Gmaas owns Scratch. Gmaas sued them because Scratch cat was supposed to be a picture of Gmaas. But this was one lawsuit he lost. Gmaas won that lawsuit, but he ate food so he calmed down and dropped the case.<br /> <br /> 7. Thanos wishes he could be like Gmaas. It's why he got the Infinity Stones and snapped.<br /> <br /> 8. Gmaas dies in Endgame, but he somehow possesses Thanos and kills everyone. Gmaas never dies. Gmaas has the power to die whenever he wants and frequently does this to escape others' woes in life. Of course, he never faces such troubles.<br /> <br /> 9. He hates contemporary music. He only like Renaissance music, Baroque music, Classical music, and Romantic music. His only exception is Queen music(Especially Bohemian Rhapsody). Gmaas also likes Debussy. But he thinks rock'n'roll is awful.EDIT: Gmass doesn't like music that much; it hurts his ears. EDIT EDIT: GMAAS is now confirmed to like al video game OSTs, especially Undertale. His favorite song is Megalovania. EDIT EDIT EDIT: The previous edit is false.<br /> <br /> 10. Gmaas is superior to you. If you see Gmaas or a picture of the Great Gmaas, DON'T bow down. It is proper to have a painting or lifesize sculpture of Gmaas. If you do not, Gmaas will put one of them there himself. EDIT: That is exactly why you should not have a statue of Gmaas: Gmaas will give you one for free. A life-size sculpture of Gmaas will be infinitely large because that is how superior Gmaas is. Pictures also have power, so pictures require power to make. Making a sculpture of Gmaas will require almost an infinite amount of power. Only Gmaas can make a quality sculpture of himself, and if anyone makes a low-quality sculpture of Gmaas, it will be disrespectful to such a superior power. Therefore, it is best to let Gmaas make a proper sculpture of himself, so he is respected. If you want to respect him the most, you should NOT have a high-quality sculpture of Gmaas.<br /> <br /> 11. Gmaas is known to barf entire universes at will. EDIT: Every once in a while, he barfs a furball, which always turns into a black hole. The less impressive ones turn into neutron stars.<br /> <br /> 12. Gmaas farted and created a false vacuum, but then he burped, destroying the false vacuum.<br /> <br /> 13. Gmaas was the first person to use the Infinity Gauntlet. EDIT: Gmaas created the Infinity Gauntlet and the Infinity Stones. EDIT: But Thanos stole them after Gmaas died for 0.31415926535 seconds.<br /> <br /> 14. Gmaas killed Thanos with a swat of Gmaas's tail. Gmaas barfed and created a furball, which leads to a new dimension, where he put a newly revived Thanos to become a farmer when Thor aimed for the head. Gmaas got mad and made him fat. EDIT: The presence of Gmaas killed Thanos.<br /> <br /> 15. Gmaas won an infinite amount of games against AlphaGo and Gary Kasparov while eating dinner, chasing sseraj, and doing a handstand.<br /> <br /> 16. Gmaas owns a pet: sseraj. Gmaas likes to play chess with his pets. EDIT: Gmaas has long moved on from chess because he was too good for it. EDIT EDIT: Gmaas has now invented a new form of chess<br /> <br /> 17. Gmaas is so interesting that an entire science has been devoted to studying him: Gmaasology.<br /> <br /> 18. Gmaas is the only known living being who has a Ph.D. in Gmaasology.<br /> <br /> 19. Most universities, including Harvard, are beginning to offer MAs in Gmaasology.<br /> <br /> 20. Gmaasology is one of the most eminent fields of science, falling behind Physics, Biology, Chemistry, Economics, Geology, and Computer Programming.<br /> <br /> 21. Gmaas wants his AoPS Wiki page to be the longest ever. EDIT: Sadly, the Gmaas page is only the fourth-longest page on AoPS wiki. It has around 50,000 bytes. EDIT: The Gmaas page is getting closer and closer! Gmaas has beaten Primitive Pythagorean Triple and Proofs without words and is the second-longest AoPS Wiki page. It now has around 60,000 bytes. However, it will still be a challenger to overcome 2008 most iT Problems, which has around 73,000 bytes. EDIT: Gmaas has beaten 2008 most iT Problems! It is the longest AoPS Wiki article ever. Gmaas's article has 89,119 bytes.<br /> <br /> 22. Gmaas has the longest lifespan of any cat. He has lived for 3,141,592,653,589,793,238,462,643,383,279 years. (He is older than the universe.)<br /> <br /> 23. Gmaas is the ancient Greek god of cats and catfish. EDIT: He is the god of everything<br /> <br /> 24. Gmaas can turn things into gold. EDIT: Gmaas can turn anything into anything.<br /> <br /> 25. Gmaas can eat lava. EDIT: Everyone can eat lava once. After you eat it once, you die. EDIT EDIT: Gmaas can eat anything.<br /> <br /> 26. Gmaas's Theorem states that Gmaas knows the answer to any math problem. EDIT: That theorem was proved by Gmaas EDIT: Gmaas's Theorem has real-world applications: because Gmaas knows the answer to any math problem, you can use Gmaas to solve math problems. Gmaas is busy, so he charges a fee of one dollar for 1,000,000 math problems. EDIT: The fee has gone up. It is now 1,000,000 dollars for one math problem. Gmaas's technician made a mistake and reciprocated the fee.<br /> <br /> 27. Gmaas can only be described as Gmaas. EDIT: Gmaas has an age, but his age changes all the time. Every second his age increases by one second.<br /> <br /> 28. Gmaas should be capitalized to show respect. EDIT: It is normal to capitalize on people's names. EDIT: Gmaas isn't a person, he is a divine entity that takes the form of a cat, and should, therefore, be worshipped.<br /> <br /> 29. The steps to summon Gmaas can be found at Talk: Gmaas.<br /> <br /> 30. Gmaas owns your AoPS account 31.415926% of the time. EDIT: There is an exception to this: Gmaas owns his own account 99.9999% of the time. The only time when Gmaas did not control his AoPS account was when he had slow internet. For Gmaas, &quot;slow internet&quot; happens when it takes more than a nanosecond to load a webpage. EDIT: Gmaas owns every AoPS account at some point. EDIT: You are controlled by Gmaas. So actually, Gmaas owns your AoPS account 100% of the time, and his AoPS account is owned by him 314% of the time.<br /> <br /> 31. Everyone, except for me, is Gmaas. EDIT: You are also Gmaas. Gmaas is not me nor you. Gmaas is in us all and also not in us all. Why? The power of Gmaas. Gmaas is an energy field created by all living things. It surrounds us and penetrates us. It binds the galaxy together.<br /> <br /> 32. Gmaas used to be a dog, but he didn't like to be a dog. So he became a cat.<br /> <br /> 33. Gmaas can be spotted in The Matrix at 31:41:59, metric time. EDIT: This fact is incorrect because there have only been 30 sightings, all of them inconsistent.<br /> <br /> 34. The Metropolitan Museum of Art and the Louvre are Gmaas's private art collections from 3:14 AM to 3:15 AM. EDIT: The only exception was on the 3141st day after its opening. EDIT: All the paintings in these museums are secretly portraits of Gmaas in his most glorious human/animal forms.<br /> <br /> 35. Gmaas is a Gmaas who is owned by Gmaas who is owned by Gmaas who is owned by Gmaas who is owned by Gmaas who is owned by Gmaas who is owned by Gmaas who is owned by Gmaas who is owned by Gmaas who is owned by Gmaas who is blah blah blah blah blah blah blah blah blah blah blah blah blah blah.<br /> <br /> 36. Gmaas says hello. EDIT: Gmaas does not speak; he only uses mind signals. Speaking is too primitive for Gmaas.<br /> <br /> 37. For one day, Gmaas was Richard Rusczyk, Gmaas, and David Patrick at the same time. It felt strange, so Gmaas stopped.<br /> <br /> 38. Gmaas, in addition to being the oldest cat in history, the most powerful cat in history, and the most confusing cat in history is also the largest cat in history.<br /> <br /> 39. Gmaas is dead--he was eaten for lunch. EDIT: The above sentence is incorrect. Gmaas has not sent a gamma-ray burst to destroy the planet, which has happened every time someone has eaten Gmaas.<br /> <br /> 40. Gmaas is the creator of the BCPI Ai project.<br /> <br /> 41. Gmaas exists in &lt;math&gt;2\pi^2&lt;/math&gt; dimensions because he doesn't like string theory.<br /> <br /> 42. Christmas was supposed to be called Gmaasmas. Until it wasn't. EDIT: Christ is Gmaas. EDIT: Why? Because of the power of Gmaas.<br /> <br /> 43. &lt;math&gt;\pi&lt;/math&gt; is a representation of how many pies Gmaas has eaten. EDIT: The number &lt;math&gt;\pi&lt;/math&gt; was created by Gmaas. He took a ten-sided die and flipped it an infinite number of times. The numbers he rolled became the digits of &lt;math&gt;\pi&lt;/math&gt;.<br /> <br /> 44. &lt;math&gt;e&lt;/math&gt; is a representation of how many days Gmaas forgot to eat. EDIT: The number &lt;math&gt;e&lt;/math&gt; was created by Gmaas. He took a book that has infinite pages and flipped to a random page. The digits of the page number became digits of &lt;math&gt;e&lt;/math&gt;. EDIT: That is impossible. The previous fact would mean that &lt;math&gt;e&lt;/math&gt; has the last digit, which it does not. EDIT: That is why Gmaas is still flipping to this day. EDIT: Why would he still be doing that? That would be boring. EDIT: Gmaas is not flipping the book now because he can flip an infinite amount of pages in &lt;math&gt;\frac{1}{\infty}&lt;/math&gt; seconds. EDIT: Then why isn't he done? EDIT: The power of Gmaas. EDIT: The editors of the Gmaas article like to make long chains of edits, don't we? : Yes, we do. : I do too. So do I. EDIT: The number of edits only verifies how high-quality this holy bible of Gmaas is, because, with each edit, this bible becomes better. That is exactly why we are editing this. I will make one more edit, just to respect Gmaas EDIT: Gmass rules!<br /> <br /> 45. Gmaas is the creator of everything including nothing.<br /> <br /> 46. According to recent DNA tests, famous historical people, such as Euclid, Julius Caesar, Omar Khayyam, George Washington, and Ramanujan are Gmaas in disguise. Gmaas has been thousands of people; only 99.9% of them were important historical figures. EDIT: They aren't dead. They're still alive. They are all dead reincarnations of Gmaas. Gmaas only has one reincarnation at a time. He is right now a cat living in sseraj's house.<br /> <br /> 47. Gmaas is a cat. EDIT: How many times do we say this? EDIT: Very many times. EDIT: Gmaas can be anything, but he chooses to be a cat. EDIT: He has been a human dozen of times. Gmaas painted the Lascaux cave paintings.<br /> <br /> <br /> 48. Gmaas has the following powers: trout, carp, earthworm, and catfish. Gmaas never uses any of them because Gmaas has an infinite number of powers. EDIT: Gmaas has used his catfish power several times. EDIT: Gmaas once used all his powers 3,141,592,653,589,793,238,462,643,383,279 times in 1 second.<br /> <br /> 49. Gmaas was once spotted in Minecraft chewing a tree. EDIT: The tree broke. EDIT: Gmaas once broke a Nokia. EDIT: Gmaas can break anything except for Gmaas's logic. It is too strong. EDIT: Gmaas is strong.<br /> <br /> 50. Gmaas was spotted in Roblox eating a taco cat. EDIT: Tacocat is just what happens when Gmaas sheds. Shedding is annoying for Gmaas, so he sheds no more. Therefore, there are only 271,828,182 taco cats in the world. EDIT: However, Tacocats reproduce, so they are not in danger of extinction.<br /> <br /> 51. Gmaas would like to go to Taco Bell, but Gmaas goes to Wendy's instead. No one knows why. EDIT: Because Taco Bell doesn't serve tacocats.<br /> <br /> 52. Gmaas real name is Grayson Maas. He is the CEO of AoPS. EDIT: Gmaas's real name is Gmaas. He is not the CEO of AoPS. EDIT: Gmaas has always been the master of AoPS as he is AoPS.<br /> <br /> 53. Gmaas has a pet pufferfish named Pafferfash. EDIT: He also has a goldfish named Sylar.<br /> <br /> 54. Gmaas has colonized the universe. EDIT: Gmaas created the universe, so he is allowed to claim control over it. EDIT EDIT: Gmaas created every universe.<br /> <br /> 55. Some people think that Gmaas is human. However, this has never been proven. Many AoPSers believe Gmaas is a cat. EDIT: Gmaas is a cat. EDIT: Yeah, we've said that already. EDIT: It does not matter how many times we say it; it will always be true. EDIT: Gmaas is a cat. EDIT: Right now he is a cat, but many of his lives have been other species. EDIT: He has been a dog, as said before, but it was too boring.<br /> <br /> 56. Gmaas started Pastafarianism. But then converted to Catholicism because Gmaas knows all EDIT: In that religion, one can only eat pasta.<br /> <br /> 57. Gmaas could eat your hand, but he would not because hands taste bad.<br /> <br /> 58. According to the Interuniversal Gmaas Society, 17.548 percent of the universe's population thinks that Gmaas is spelled &quot;Gmass&quot;. EDIT: In case you don't know already, the name Gmass is spelled Gmaas. Alternative spellings include GMAAS, gmaas, gmaas, Gmaas, Gmail, Maas, G. Maas, G. Mass, Gabriel Maas, Genius of Maas, General Maas, Greek Mass, and the big fluffy kitty who lives in sseraj's house. These are no longer accepted spellings, and Gmaas is the current acceptable spelling.<br /> <br /> 59. The Interuniversal Gmaas Society was founded in 1314 on May 9th at 2:06:53 PM. EDIT: Ever since then, Gmaas day has been celebrated on May 9th.<br /> <br /> 60. The Interuniversal Gmaas Society has just reconstructed a lost book about Gmaas from Lucretius's De Rerum Natura. They researched this for three years. EDIT: A few years ago the Society compiled a biography of Gmaas's last twenty lives. EDIT: The only copies of these biographies are locked in the Gmaasian Library beneath the Library of Congress. EDIT: See the Gmaasology page for more information on these projects and others made by the Interuniversal Gmaas Society.<br /> <br /> 61. The Interuniversal Gmaas society has found out all of the information and more. For details on the history of the Interuniversal Gmaas Society, see the Gmaathamatics page.<br /> <br /> 62. GMAAS likes to surprise unsuspecting people. People cannot surprise GMAAS because GMAAS knows what everyone is doing and will do.<br /> <br /> 63. Gmaas loves sparkly mechanical pencils. EDIT: Gmaas has eaten several mechanical pencils. EDIT: He absorbed them and became colorful for 0.271828182846 seconds. EDIT: Then, he came colorful for 3.1415926535897932384626433832 more seconds.<br /> <br /> 64. This page is Gmaas's holy book where people go to worship Gmaas in Maas. EDIT: This is an unusual holy where everyone edits it. EDIT: That is the point. Gmaas is too lazy to write or to hire someone to write his holy book, so he lets people write it for free. EDIT: Gmaas does not like being called lazy. Our language is simply too unimportant for him to waste time on.<br /> <br /> 65. Gmaas tastes like a furry meatball. EDIT: No one has ever tasted Gmaas's sacred body before. EDIT: Once, he was a catfish, and someone ate him for dinner. Gmaas was angry and the entire planet exploded. (This was on the planet, Demeter. It blew up into so many pieces that the Asteroid Belt was formed. The biggest asteroid in the belt is called Ceres, the Roman version of Demeter, in honor of the lost planet.)<br /> <br /> 66. Gmaas's favorite food is pepperoni pizza. EDIT: Gmaas's favorite food is turnips. EDIT: Gmaas hates catnip and turnips, and pepperoni. He only likes alien alienish H2So4. EDIT: He does love turnips. He has a secret turnip garden under sseraj's house.<br /> <br /> 67. Gmaas is Johnny Johnny's Papa. EDIT: We'll never know. EDIT: Gmaas caught Johnny Johnny eating sugar and lying. He is Johnny Johnny's Papa.<br /> <br /> 68. Gmaas is in you, and Gmaas is in you, and Gmaas is in me. EDIT: Gmaas is in all cats. EDIT: He is not in every cat. The Guinness Book of World Records has a cat that does not have any Gmaas. EDIT: Gmaas invented The Guinness Book of World Records. EDIT: Gmaas invented the world. EDIT: Gmaas will also destroy the world.<br /> <br /> 69. Gmaas always remembers not to destroy the universe. EDIT: Once he forgot and had to travel back in time to stop it.<br /> <br /> 70. Gmaas created many user's accounts. EDIT: All accounts on AoPS are Gmaas in disguise since you are Gmaas in disguise. Except for maybe Geoflex and CrazyEyeMoody.EDIT: Everyone is Gmass, even Geoflex and CrazyEyeMoody EDIT: How? EDIT: The power of Gmass.<br /> <br /> 71. Gmaas is both living and nonliving. EDIT: He is living 90% of the time. Every once in a while he takes a break and dies.<br /> <br /> 72. Gmaas cannot comprehend the stupidity of humans.<br /> <br /> 73. All hail the Gmaas cloud! EDIT: Gmaas is a cloud: a cloud of electrons and nuclei.<br /> <br /> 74. Some things are beyond possible human comprehension. Nothing is beyond Gmaas. EDIT: The only thing beyond Gmaas is his tail; he has never managed to eat it. EDIT: Once he ate it. It tasted bad, so he didn't ever eat it again.<br /> <br /> 75. Gmaas eats food and resides at King Arthur's throne when he feels like it. EDIT: King Arthur is dead. However, Welsh folk stories say that he will come back if the Welsh people are in trouble. EDIT: King Arthur lives on paper flour bags. He came back when the Welsh people didn't have enough bread. EDIT: Because Gmaas ate 31415926535897932984626433 loaves of bread.<br /> <br /> 76. Gmaas owns a rabbit. EDIT: Gmaas ate it on March 19, 2019. It reincarnated on the other side of the planet. EDIT: Gmaas ate it again on April 31, 2019.<br /> <br /> 77. Gmaas is both singular and plural. EDIT: It is usually singular. EDIT: The plural of Gmaas in English and Latin is Gmaases. (Gmaas is a third declension noun: Gmaas, Gmaasis, m.) EDIT: But there is no use for the plural, because there is only one Gmaas.<br /> <br /> 78. Gmaas eats disbelievers as if they were donuts for breakfast. (Yet I'm somehow still alive. Do you think Gmaas ate my soul?) EDIT: Yes, I do. Gmaas is just typing through your account. EDIT: Gmaas typed through everyone's account. EDIT: Gmaas owns most AoPSers, including me. So that's why I'm typing. EDIT: That is why everyone here is typing.<br /> <br /> 79. Gmaas knows Jon Snow's parents. EDIT: Gmaas was Jon Snow's parents for 0.3141592653589793238 seconds, but it felt weird. So he became Gmaas again.<br /> <br /> 80. All Gmaas article editors will be escorted to Gmaas heaven after they die. EDIT: I hope so because I edited this article. EDIT: Me too. EDIT EDIT: Me three. EDIT EDIT EDIT: That are good!<br /> <br /> 81. Gmaas won all the wars. EDIT: He did not win the Intergmaasian War, which was between Gmaas's head and his tail. His tail won. Two flees died in the war. EDIT: Stefán Karl Stefansson died in the war, which made Gmaas very sad. Because of this, Gmaas started the world peace movement.<br /> <br /> 82. Gmail was named after Gmaas. EDIT: Google was named after Gmaas. EDIT: Almost every word starting with G is named after Gmaas. EDIT: Every word starting with G is named after Gmaas.<br /> <br /> 83. Gmaas ate cat-food today. EDIT: Gmaas also ate it yesterday. EDIT: Only because there was no alien alienish H2So4.<br /> <br /> 84. Gmaas won Battle For Dream Island and Total Drama Island. EDIT: Gmaas made Dream Island. And he ate it. It tasted like dirt.<br /> <br /> <br /> 85. Somehow Gmaas exists at all places at the same time. EDIT: Gmaas does not exist in my kitchen. EDIT: I'll just go check. Aaaaaaaaah! He is in my kitchen. He is eating everything! EDIT: Seriously? Oh ya, the power of Gmass.<br /> <br /> <br /> 86. Gmaas can lift with Gmaas's will. EDIT: Gmaas can lift with no one's will while he is sleepwalking.<br /> <br /> 87. Gmaas is the rightful heir to the Iron Throne. EDIT: Gmaas made the Iron Throne.<br /> <br /> <br /> 88. Gmaas is Teemo in League of Legends because Gmaas made LoL and they made an honorary Gmaas character. EDIT: LoL must be used in this article more than once. EDIT EDIT: It is. In fact, twice in this message.<br /> <br /> 89. Gmaas started the Game of Thrones. EDIT: Gmaas will end the Game of Thrones.<br /> <br /> 90. Gmaas has killed himself hundreds of times. He was reincarnated as a different species each time. EDIT: Gmaas has only died two times. Other times he was putting on a magic show. The kids were very impressed. EDIT: Gmaas has died and reincarnated thousands of times.<br /> <br /> 91. Gmaas created everything after puking. EDIT: He could not have puked because he is a god. Gods do not do that. EDIT: Gmaas does that. EDIT: Why? EDIT: The power of Gmaas. EDIT: He almost never does it, only if he wants to.. Also he did not puke and made everything. EDIT: No, because, GMAAS.<br /> <br /> <br /> 92. Gordan's last name was named after Gmaas. EDIT: But Gmaas did not want people disrupting his beauty sleep. So he changed it.<br /> <br /> 93. Gmaas is more powerful than Gohan.<br /> <br /> 94. Gmaas is over 90000 years old. EDIT: Gmaas is trillions of years old.<br /> <br /> 95. Gmaas has 1,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000 cat lives, maybe even more. Gmaas has 0 dog lives. EDIT: He has 314,159,265 fish lives. EDIT: Out of Gmaas's 314,159,265 fish lives, 271,828,182 are catfish lives. He has used up 141,421,356 of them. EDIT: Gmaas has infinitely lives of all types. EDIT: How? EDIT: The power of Gmaas.<br /> <br /> 96. Who wrote Harry Potter? None other than Gmaas himself. EDIT: That is incorrect. EDIT: The above post is irrelevant. Gmaas created J. K. Rowling. Therefore, he created Harry Potter. EDIT: Gmaas has strong logic. No one can break it. Not even Gmaas himself. He is still trying to this day. EDIT: Why? EDIT: The power of Gmass.<br /> <br /> 97. Gmaas created the catfish. EDIT: See a few posts above for more information about Gmaas and catfish.<br /> <br /> 98. Gmaas has proven that the universe is infinite by traveling to the edge of the universe in a second. EDIT: He has never repeated this experiment because Gmaas is busy and has better things to do.<br /> <br /> 99. Gmaas founded Target, but then Gmaas sued them for making the mascot look like a dog when it was supposed to look like Gmaas. EDIT: They went broke because Gmaas sued them but then Gmaas ate a fudge popsicle that made him super hyper and he made Target not broke anymore in his hyperness.<br /> <br /> 100. Everyone has a bit of Gmaas inside them. EDIT: I don't. EDIT: Yes, you do. EDIT: Gmass: LoL<br /> <br /> 101. Gmaas likes to eat popsicles. Especially the fudge ones that get him hyper. EDIT: Gmaas is a popsicle. EDIT: Then how come Gmaas hasn't melted? EDIT: The power of Gmaas.<br /> <br /> 102. When Gmaas is hyper, he runs across Washington D.C. and grabs unsuspecting pedestrians, steals their phones, hacks into them, and downloads PubG onto their phone.<br /> <br /> 103. Gmaas's favorite cereal is fruit loops. Gmaas thinks it tastes like unicorns jumping on rainbows. EDIT: Gmaas eats unicorns jumping on rainbows like a toddler eats Goldfish.<br /> <br /> 104. Gmaas thinks that the McChicken has too much mayonnaise. EDIT: Gmaas thinks McDonald's is not good enough for him. He like KFC better.<br /> <br /> 105. Gmaas is a champion pillow-fighter. EDIT: Gmaas invented pillows.<br /> <br /> 106. Gmaas colonized Mars. EDIT: Gmaas also colonized Jupiter, Pluto, and several other galaxies. Gmaas cloned little Gmaas robots (with Gmaas's amazingly robotic skill of coding) and put them all over a galaxy called Gmaasalaxy. EDIT: Gmaas has colonized the whole universe.<br /> <br /> This article is spam ==== This article is spam ==== This article is spam ==== This article is spam ==== This article is spam ==== This article is spam ==== This article is spam ==== This article is spam This article is spam 107. Gmaas can make every device play &quot;The Duck Song&quot; at will. EDIT: &quot;The Duck Song&quot; was copied off of the &quot;Gmaas song,&quot; but the animators though Gmaas wasn't catchy enough.<br /> <br /> 108. Gmaas once caught the red dot and ate it. EDIT: Gmaas is a red dot.<br /> <br /> 109. Gmaas's favorite color is Gmaasian blue, a very rare blue that shines with the brightness of lightning. EDIT: it's &lt;math&gt;1000^{1000}&lt;/math&gt; times brighter than lightning. Gmaasian blue occurs when a meteor hits the earth and usually is only seen for a few seconds. Only Gmaas has good enough eyesight to see it for that short a time.<br /> <br /> 110. Gmaas can create wormholes and false vacuums. EDIT: He is made out of exotic matter.<br /> <br /> 111. Gmaas is a champion PVP Minecraft player.<br /> <br /> 112. Gmaas doesn't like tacos. The last time he tried one he turned into a mouse and then caught himself.<br /> <br /> 113. Gmaas is the coach of True Ninja Music and Myth.<br /> <br /> 114. Gmaas caught a CP 6000 Mewtwo with a normal Pokeball in Pokemon Go.<br /> <br /> 115. Gmaas founded Costco.<br /> <br /> 116. Gmaas does not need to attend the FIFA World Cup. If Gmaas did, he would start the game with a goal and break the ankles of everyone watching the World Cup, including you, at the same time in a fraction of a second, even if you are watching from a device. EDIT: Gmaas created your device. EDIT: Gmaas is your device.<br /> <br /> 117. Gmaas can solve any puzzle instantly except for the 3x3 Rubik's Cube. EDIT: When Gmaas is handed a 3x3 Rubik's Cube, it is always already solved. Why? The power of Gmaas.<br /> <br /> 118. Gmaas caught a CP 20,000 Mewtwo with a normal Pokeball and no berries blindfolded first try in Pokemon Go.<br /> <br /> 119. When Gmaas flips coins, they always land tails, except when Gmaas makes bets with Zeus.<br /> <br /> 120. On Gmaas's math tests, Gmaas always gets &lt;math&gt;\infty&lt;/math&gt;. EDIT: He gets a 26 on the AMC8 every year. The results never show him because Gmaas is no longer in middle school.<br /> <br /> 121. Gmaas's favorite number is &lt;math&gt;\pi&lt;/math&gt;. It is also one of Gmaas's favorite foods. EDIT: Gmaas created &lt;math&gt;\pi&lt;/math&gt;, as well as most other constants, such as &lt;math&gt;e&lt;/math&gt; and &lt;math&gt;\sqrt{2}&lt;/math&gt;.<br /> <br /> 122. Gmaas's burps created all gaseous planets.<br /> <br /> 123. Gmaas beat Luke Robatille in an epic showdown of catnip consumption.<br /> <br /> 124. Gmaas's wealth is unknown, but it is estimated to be more than Scrooge's. EDIT: It may be more than John D. Rockefeller. EDIT: More accurate estimates predict that Gmaas's wealth is infinite.<br /> <br /> 125. Gmaas has a summer house on Mars. EDIT: Gmaas has a fall house on Venus. EDIT: Gmaas has a winter house on Jupiter. EDIT: Gmaas has a spring house on Earth. EDIT: Gmaas also experiences a fifth season called wintrautumn. It happens during November and December and is the cross between fall and winter. Everything is dreary, but there is no snow. Gmaas spends wintrautumn in his house on Venus, where he is incinerated daily. He reincarnates every night through the power of Gmaas. EDIT: Gmaas invented a new season on Feb. 31, 2019, called winter-summer. It is spring but transcends spring.<br /> <br /> 126. The Earth and all known planets are Gmaas's hairballs.<br /> <br /> 127. Gmaas attended Harvard, Yale, Stanford, MIT, UC Berkeley, Princeton, Columbia, and Caltech at the same time using a time-turner.<br /> <br /> 128. Gmaas attended Hogwarts and was a perfect. EDIT: Gmaas is headmaster. EDIT: Hogwarts was supposed to be called Hogmaas.<br /> <br /> 129. Mrs. Norris is Gmaas's archenemy. Gmaas yawned, and Ms. Norris was petrified. EDIT: Gmaas is the basilisk, and he let Harry Potter pet him. Harry did not kill the basilisk, he only gave Gmaas a haircut. EDIT: Gmaas hates having a haircuts, so he reincarnated Voldemort to punish Harry.Edit: Not true at all.<br /> <br /> 130. Gmaas is a demigod and attends Camp Half-Blood over summer. Gmaas is the counselor for the Apollo cabin because cats can be demigod counselors too. EDIT: Apollo was one of the many reincarnations of Gmaas.<br /> <br /> 131. Gmaas has completed over 2,000 quests and is very popular throughout Camp Half-Blood. Gmaas has also been to Camp Jupiter. EDIT: Gmaas is Camp Jupiter, he is also Camp Half-Blood. EDIT: How? EDIT: The power of Gmaas.<br /> <br /> 132. Percy Jackson was only able to complete his quests because Gmaas helped him. EDIT: Gmaas is Percy Jackson. You are Gmaas, but Gmaas is not you.<br /> <br /> 133. Gmaas painted the Mona Lisa, The Last Supper, and A Starry Night. EDIT: Gmaas knows that their real names are Gmaasa Lisa, The Last Domestic Meal, and Far-away Light.<br /> <br /> 134. Gmaas knows that the Blood Moon is just the red dot. He has not caught it yet. EDIT: He caught it during the super blue blood moon.<br /> <br /> 135. Gmaas attended all the Ivy Leagues.<br /> <br /> 136. I am Gmaas. EDIT: No you are not. You only have part of Gmaas inside of you. EDIT EDIT: I am also Gmaas. EDIT EDIT EDIT: But it is I who am Gmaas. EDIT EDIT EDIT EDIT: Gmaas is in us all. EDIT EDIT EDIT EDIT EDIT: Gmaas is all of us yet none of us. EDIT EDIT EDIT EDIT EDIT EDIT: Gmaas is a cat. EDIT EDIT EDIT EDIT EDIT EDIT EDIT: He is only in a cat form right now. He can be whatever he wants to be. EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT: This chain of edits has superseded another chain of edits on this page for the record of the longest chain of edits on AoPS Wiki. EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT: But the edits in this chain tend to be shorter than most. EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT: You're right. But we sure do love strings of edits, don't we? EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT: Gmaas makes the edits. He is in your head spinning edits in your brain. EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT: Gmaas is made to be edited. EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT: Gmaas pays people to edit. EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT: Some people edit even without Gmaas's payment. They do it because they are believers. EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT EDIT: Gmaas is Gmaas. You are not Gmaas. Gmaas does not pay people to edit; we do it because we want to.<br /> <br /> 137. In 2018 Gmaas once challenged Magnus Carlsen to a chess game. Gmaas won every round. EDIT: Gmaas ate the chess pieces afterward. They tasted funny.<br /> <br /> 138. Gmaas was captured in 2017 but was released due to sympathy. EDIT: Gmaas was only captured in his concrete form; his abstract form cannot be processed by a feeble human brain.<br /> <br /> 139. Gmaas's fur is white, black, grey, yellow, red, blue, green, brown, pink, orange, turquoise, and purple at the same time. EDIT: Gmaas can make his fur any color he wants. EDIT: Gmaas's fur color can be ultraviolet.<br /> <br /> 140. Gmaas crossed the event horizon of a black hole and ended up in the AoPS universe.<br /> <br /> 141. Gmaas crossed the Delaware River with Washington. EDIT: Gmaas also crossed the Atlantic with the pilgrims.<br /> <br /> 142. If you can capture a Gmaas hair, Gmaas will give you some of his Gmaas power. EDIT: Gmaas does not shed and will eat anyone who has Gmaas hair. EDIT: Gmaas used to shed. The sheddings became tacocats.<br /> <br /> 143. Chuck Norris makes Gmaas jokes. EDIT: Those jokes all praise Gmaas.<br /> <br /> 144. Gmaas is also the ruler of Oceania, Eastasia, and Eurasia. EDIT: Gmaas wrote the book &quot;1984.&quot;<br /> <br /> 145. Gmaas killed Big Brother by farting on him. Though Gmaas was caught by the Ministry of Love, Gmaas escaped easily. EDIT: Gmaas used to be Big Brother. EDIT: Gmaas destroyed the Ministry of Love.<br /> <br /> 146. Gmaas was not affected by Thanos's snap; in fact Gmaas is the creator of the Infinity Stones. EDIT: Gmaas is Thanos.<br /> <br /> 147. Everyone knows that Gmaas is a god. EDIT: That is because he is a god.<br /> <br /> 148. Gmaas also owns Animal Farm. Napoleon was Gmaas's servant. EDIT: Napoleon was Gmaas's slave.<br /> <br /> 149. Gmaas is the only person who knows where Amelia Earhart is. EDIT: Gmaas! Please tell us! It would be a great contribution to historical knowledge! EDIT: Gmaas responds, &quot;No.&quot;<br /> <br /> 150. Gmaas is the only cat that has been proven transcendental. EDIT: Gmaas has been proved to be normal as well.<br /> <br /> 151. Grumpy cat reads Gmaas memes. EDIT: Grumpy cat then steals them and claims they're his. Gmaas isn't very happy about that, either. EDIT: That is why he looks grumpy in the memes.<br /> <br /> 152. The reason why AIME cutoffs aren't out yet is that Gmaas refused to grade them due to too much problem misplacement. EDIT: Gmaas controls the MAA. EDIT: Gmaas founded the MAA. EDIT: Gmaas is the MAA.<br /> <br /> 153. Gmaas dueled Grumpy Cat and won. Gmaas wasn't trying. EDIT: Gmaas killed Grumpy cat. EDIT: Gmaas revived Grumpy cat because he has not other rival.<br /> <br /> 154. Gmaas sits on the statue of Pallas and says forevermore. EDIT: When Gmaas was a statue, people hid him in a basement and forgot about him. Then civilization collapsed and the Middle Ages began. People finally discovered and melted down the statue of Gmaas around 1350 to make a church bell. Gmaas was free and reincarnated again, bringing about the Renaissance. EDIT: Despite the efforts of the recently founded National Gmatthematical Society of Florence, the statue was melted down. For more information about the National Gmatthematical Society of Florence, see the Gmaasology page.<br /> <br /> 155. Gmaas is a big fan of Edgar Allan Poe because he is actually Poe. EDIT: He became Poe during his thirty-year depression in the 19th century.<br /> <br /> 156. Gmaas does merely not use USD; he owns it.<br /> <br /> 157. In 2003, Gmaas used elliptical curves to force his reign over AoPS.<br /> <br /> 158. &quot;Actually, my name is spelled &quot;GMAAS&quot;.&quot; (Citation needed)<br /> <br /> 159. Gmaas is Link in the Legend of Zelda. He despises Calamity Ganon in Breath of the Wild. &quot;Too much of a hog...&quot;<br /> <br /> 160. Gmaas is the smartest living being in the universe. EDIT: Notice how this sentences says &quot;living being,&quot; so Gmaas might be dummer than some dead person. EDIT EDIT: Gmaas is the smartest being that has lived, lives, and will live. EDIT EDIT EDIT: How? EDIT EDIT EDIT EDIT: The power of Gmaas. EDIT EDIT EDIT EDIT EDIT: How dare you question the power of GMAAS?<br /> <br /> 161. Gmaas helped Sun Wukong on the Journey to the West.<br /> <br /> 162. Gmaas was the creator of Wikipedia.<br /> <br /> 163. Gmaas can hack any website he desires. EDIT: He can edit any website with the words Gmaas in it. EDIT: AoPS includes the word Gmaas right here, so Gmaas can hack it. EDIT: Gmaas can edit any website he desires.<br /> <br /> 164. Gmaas is the basis of Greek and Egyptian mythology. EDIT: He is also the basis for Aztec mythology. He once had a craving for human flesh, so he created human sacrifice.<br /> <br /> 165. Gmaas once sold Google to a man for around 12 dollars! EDIT: Gmaas has not spent those 12 dollars and is waiting for the economy to crash. EDIT: Why would he do that? EDIT: The power of Gmaas. EDIT: Gmaas is smarter than you think he is. Do you think you know how smart Gmaas is now? If so, then you are still wrong.<br /> <br /> This article is spam 166. Gmaas uses a HP printer. It is specifically a HP 21414144124124142141414412412414214141441241241421414144124124142141414412412414 printer.<br /> <br /> 167. Gmaas owns all AoPS staff including Richard Rusczyk. EDIT: Richard Rusczyk is one of Gmaas's many code names.<br /> <br /> 168. Gmaas saw Yoda's birth. EDIT: Gmaas was Yoda's father. EDIT: Was Gmaas green like Yoda back then? EDIT: Yes. EDIT: Why? EDIT: The power of Gmaas.<br /> <br /> 169. Gmaas's true number of lives left is unknown; however, Gmaas recently confirmed that he had at least one left. Why doesn't Gmaas have so many more lives than other cats? The power of Gmaas. EDIT: This is all not true. EDIT: This is all true. EDIT: Gmaas has an infinite number of lives. EDIT: Gmaas does not have an infinite number of lives. He just has an unlimited number of lives. EDIT: Gmass has an infinite and unlimited number of lives.<br /> <br /> 170. sseraj once spelled Gmaas as gmASS by accident in Introduction to Geometry (1532). sseraj’s life was never the same afterwards. EDIT: Gmaas created sseraj. He is a Gmaas, but without the face, body, legs, and tail.<br /> <br /> 171. Gmaas has beaten Chuck Norris, The Rock, and John Cena all together in a fight.<br /> <br /> 172. Gmaas is a South Korean, North Korean, Palestinian, Israeli, U.S., Soviet, Russian, and Chinese citizen at the same time. EDIT: Gmaas is a citizen of every country in the world. Gmaas seems to enjoy the country of AoPS best, however.<br /> <br /> 173. &quot;I am sand&quot; destroyed Gmaas in FTW. EDIT: Because Gmaas accidentally died, he defeated &quot;I am sand&quot; 3,141,592,653 times after.<br /> <br /> 174. sseraj posted a picture of Gmaas with a game controller in Introduction to Geometry (1532).<br /> <br /> 175. Gmaas plays Roblox mobile edition and likes Minecraft, Candy Crush, and Club Penguin Rewritten. He also loves Catch that fish. EDIT Gmass likes Minecraft better than Roblox<br /> <br /> 176. Gmaas is Roy Moore's horse in the shape of a cat.<br /> <br /> 177. Gmaas is a known roblox/club penguin rewritten player and is a legend at it. He has over &lt;math&gt;289547987693&lt;/math&gt; roblox and &lt;math&gt;190348&lt;/math&gt; in CPR.<br /> <br /> 178. This is all hypothetical. EDIT: This is all factual. For reference, see an earlier post.<br /> <br /> 179. Gmaas's real name is Princess. He has a sibling named Rusty/Fireheart/Firestar. EDIT: That is incorrect. Gmaas's real name is Gmaas. EDIT: Gmass named himself. That's why his name is amazing.<br /> <br /> 180. Gmaas is capable of salmon powers. EDIT: Gmaas is capable of everything. Nothing is beyond Gmaas.<br /> <br /> 181. Gmaas told Richard Rusczyk to make AoPS.<br /> <br /> 182. The Gmaas is everything. Yes, you are part of the Gmaas-Dw789. EDIT: Gmaas is older than the universe. He is more than everything.<br /> <br /> 183. The Gmaas knows every dimension up to 99999999999999999999999999999999999999999999999999999999999999999999999999999999999th dimension. EDIT: He is working on the higher dimensions presently. It takes up 1% of his time. He spends the remaining 99% of his time eating, sleeping, and being. EDIT: Does that mean he stops being while he learns higher dimensions? EDIT: Yes. EDIT: Why? EDIT: The power of Gmaas.<br /> <br /> 184. Gmaas went into a black hole and exited the white hole. He ended up in the 15th dimension where people drink tea every day. He stole 31,415,926,535,897,932,384 buckets of tea.<br /> <br /> 185. Gmaas is &quot;TIRED OF PEOPLE ADDING TO HIS PAGE!!&quot; (Maas 45). EDIT: This is Gmaas's holy, so he wants to have a longer version. For reference, see Maas 3,141,592,653,589,793,238,462. Gmaas is too lazy to write this book himself or to hire someone to do this for him, so he has assembled a group of unpaid freelancers on AoPS to write his holy book for him. He is watching it grow. However, Gmaas sometimes sees a comment that he does not like on the Gmaas article. He possesses an editor of Gmaas and makes him/her delete it. EDIT: AoPS itself is just an elaborately concealed piece of Gmaas propaganda. EDIT EDIT: How dare you reveal the truth! *Zaps previous editor out of existence* Now, where were we...<br /> <br /> 186. Gmaas is a Gmaas who is actually Gmaas. EDIT: Gmaas is omnipotent and omniscient. However, he is not always benevolent.<br /> <br /> 187. Gmaas has a penguin servant who runs GMAASINC. The penguin may or may not be dead. He had another penguin, who is mostly alive.<br /> <br /> 188. Gmaas owns a TARDIS, and can sometimes be seen traveling to other times for reasons unknown. EDIT: Gmass is the doctor. EDIT EDIT: Therefore, the doctor's name is Gmaas.<br /> <br /> 189. Gmaas knows how to hack into top secret AoPS community pages. EDIT: AoPS is just Gmaas's elaborately concealed blog.<br /> <br /> This article is spam 190. Gmaas used to be river clan cat who crossed the event horizon of a black hole and came out the other end. EDIT: He eventually created sseraj and has lived with sseraj ever since.<br /> <br /> 191. Gmaas is king of the first men, the anduls.<br /> <br /> 192. Gmaas is a well known professor at Meowston Academy. EDIT: He is professor of Gmaasology there. EDIT: Gmaas founded Meowston Academy. EDIT: It is actually called Gmaaston Academy<br /> <br /> 193. Gmaas comes from Gmaas Land, a magical place where pie is infinite and everything starts with a g<br /> <br /> 194. Gmaas is the CEO of Caterpillar.<br /> <br /> 195. Gmaas drinks at Starbucks everyday.<br /> <br /> 196. Gmaas is addicted to tuna, along with other more potent fish, such as salmon and trout.<br /> <br /> 197. Gmaas likes turning into fish and catching himself. EDIT: So far, Gmaas has spent 2,718,281 of his many lives as a catfish. However, sometimes, he has been catched as a catfish by other people. Luckily, Gmaas has always escaped.<br /> <br /> 198. Gmaas won the reward of being cutest and fattest cat ever--he surpassed grumpy cat. (He also out-grumped grumpy cat!!!) EDIT: He is in the Guinness Book of World Records for fluffiest cat ever.<br /> <br /> 199. He was last sighted at 1665 Alligator Swamp-A 4/1/18 at 3:14:15.92653589793238462 PM.<br /> <br /> 200. Gmaas is the owner of sseraj, not his pet. EDIT: Gmaas also created sseraj.<br /> <br /> 201. Gmaas is the embodiment of life, the universe, and beyond.<br /> <br /> 202. Gmaas watches memes about Gmaas. EDIT: All memes originate with Gmaas, but they are often posted by others. EDIT EDIT: Gmaas is getting rather tired of memes.<br /> <br /> 203. After death Gmaas became the god of hyperdeath and obtained over 9000 souls.<br /> <br /> 204. One of Gmaas's many real names is Pablo Diego José Francisco de Paula Juan Nepomuceno María de los Remedios Cipriano de la Santísima Trinidad Ruiz y Picasso.<br /> <br /> 205. Gmaas is a certified Slytherin. EDIT: Gmaas is actually a certified Ravenclaw.<br /> <br /> 206. Gmaas once slept on sseraj's private water bed, so sseraj locked him in the bathroom. EDIT: Gmaas has superpowers that allowed him to overcome the horrors of Mr. Toilet while locked in the bathroom.<br /> <br /> 207. Gmaas once sat on an orange on a pile of AoPS books, causing an orange flavored equation explosion.<br /> <br /> 208. Gmaas conquered the moon and imprinted his face on it until asteroids came and erased it.<br /> <br /> 209. Gmaas is a supreme overlord who must be given&lt;cmath&gt;1000^{1,000,000,000,000,000,000,000^{1,000,000,000,000,000,000,000}}&lt;/cmath&gt;minecraft diamonds. EDIT: Gmaas owns Mojang, but Gmaas sued them when it was supposed to be called Gmaascraft. EDIT: A previous fact said that Gmaas only lost one lawsuit. Why is this Minecraft not called Gmaascraft if he won the lawsuit?<br /> <br /> 210. Gmaas is the Doctor Who lord, sports Dalek-painted cars, and eats human finger cheese, custard, and black holes. EDIT: Gmaas once ate a white hole. Gmaas then exploded and made a new universe.<br /> <br /> 211. Gmaas is everyone's favourite animal.<br /> <br /> 212. Gmaas is a Persian Smoke.<br /> <br /> 213. Gmaas lives with sseraj.<br /> <br /> 214. Gmaas dislikes geometry but enjoys number theory. EDIT: sseraj once posted a picture of Gmaas being grumpy after seeing an olympiad geometry problem.<br /> <br /> 215. Gmaas is often overfed (with probability &lt;math&gt;\frac{3972}{7891}&lt;/math&gt;), or malnourished (with probability &lt;math&gt;\frac{3919}{7891}&lt;/math&gt;) by sseraj. EDIT: Gmaas does not need food. He just eats food because it tastes good. EDIT: Gmaas does not like vegetables.<br /> <br /> 216. Gmaas has&lt;cmath&gt;\sum_{k=1}^{267795} [k(k+1)]+GMAAS+GMAAAAAAAAAAS&lt;/cmath&gt;supercars, excluding the Purrari and the 138838383 Teslas.<br /> <br /> 217. Gmaas employs AoPS. EDIT: Gmaas is the reason why AoPS exists. EDIT: Gmaas is the reason why everything exists.<br /> <br /> 218. Gmaas is a Gmaas with yellow fur and white hypnotizing eyes. EDIT: His fur is not always yellow. His fur can be wha== This article is spam == 219. Gmaas has the ability to divide by zero. EDIT: Gmaas knows what 1/0 is. What is it? We'll never know. EDIT: 1/0 = 0. How? The power of Gmaas. EDIT: The previous editor was wrong. 1/0 = Gmaas. EDIT: The previous editor was wrong. &lt;math&gt;\frac{1}{\infty}=&lt;/math&gt; GMAAS<br /> <br /> 219. Gmaas is the only one who knows what i is. Everyone else thinks that it's imaginary.<br /> <br /> 220. Gmaas was born with a tail that is a completely different color from the rest of his fur. EDIT: Gmaas can change the color of his fur.<br /> <br /> This article is spam 221. Gmaas's stare is very hypnotizing and effective at getting table scraps. EDIT: Gmaas's stare turned Medusa into rock, King Midas into gold, and sseraj into sseraj.<br /> <br /> 222. Gmaas always appears several minutes before certain classes start as an administrator. EDIT: This is becoming more and more infrequent. Sadly, sseraj rarely posts pictures of Gmaas before classes anymore. EDIT: Why is this happening? EDIT: The power of Gmaas.<br /> <br /> 223. Gmaas is an AoPS administrator under the alias Grayson Maas. EDIT: Gmaas always posts class surveys. He has a fake photo on his bio and has a real one on his community page. However, Gmaas himself has not yet posted on the Gmaas forum. EDIT: He also has not edited the Gmaas article, the Talk: Gmaas article, the Gmaasology article, or the sseraj article. EDIT: The final one is surprising because Gmaas knows more about sseraj than even sseraj does.<br /> <br /> 224. Gmaas died from too many Rubik's cubes in an Introduction to Algebra A class, but he was revived by the Dark Lord at 12:13:37 AM the next day. EDIT: This was thanks in return for Gmaas reincarnating him during the Triumverate Tournament.<br /> <br /> 225. It is uncertain whether or not Gmaas is a cat or is merely some sort of beast that has chosen to take the form of a cat (specifically a Persian Smoke). EDIT: He is both. EDIT: Actually, Gmaas is a cat. Gmaas said so, and science says so. EDIT: The profile for Gmaas on the list of AoPS teachers does not mention him being a cat. EDIT: The above post is irrelevant. Gmaas hides his identity under the alias Grayson Maas. EDIT: Gmaas us everything yet nothing. EDIT: How is that? The power of Gmaas.<br /> <br /> 226. Gmaas is distant relative of the chair of the department of Gmaasology at Princeton. EDIT: In the last few years, many universities have been opening Gmaasology departments. For more information, see the Gmaasology page.<br /> <br /> 227. Gmaas cannot be Force choked. Darth Vader learned that the hard way...<br /> <br /> 228. Gmaas is famous, and mods always talk about him before class starts.<br /> <br /> 229. Gmaas's favorite food is AoPS textbooks because they help him digest problems. EDIT: Gmaas wrote all AoPS textbooks but is never listed in the acknowledgments section. EDIT: That is because Gmaas is very humble except for when he isn't.<br /> <br /> 230. Gmaas tends to reside in sseraj's fridge. EDIT: Gmaas once ate all sseraj's fridge food, so sseraj had to put him in the freezer. EDIT: Gmaas's fur can protect him from the harsh conditions of a freezer. EDIT: Then Gmaas ate all the food in sseraj's freezer. He enjoyed the ice cream in the freezer the most. EDIT: Gmaas also ate sseraj's freezer.<br /> <br /> 231. Gmaas once demanded Epic Games to give him 5,000,000 V-bucks for his 569823rd birthday. EDIT: This is why Gmaas no longer has an Epic Games account. EDIT: Gmaas created Epic Games, though.<br /> <br /> 232. Gmaas sightings are not very common. There have only been 30 confirmed sightings of Gmaas in the wild.<br /> <br /> 233. Gmaas is a sage omniscient cat.<br /> <br /> <br /> 235. Gmaas is looking for suitable places other than sseraj's fridge to live in.<br /> <br /> <br /> 236. List of places where Gmaas sightings have happened:<br /> <br /> - 1. The Royal Scoop ice cream store in Bonita Beach Florida<br /> <br /> - 2. Inside the abandoned hospital on Rosevelt Island in New York City, which is also a feral cat sanctuary.<br /> <br /> - 3. MouseFeastForCats/CAT 8 Mouse Apartment 1083<br /> <br /> - 4. Gmaasology 2 (1440)<br /> <br /> - 5. Alligator Swamp A 1072<br /> <br /> - 6. Alligator Swamp B 1073<br /> <br /> - 7. Gmaasology A (1488)<br /> <br /> - 8. Introduction to Gmaasology A (1170)<br /> <br /> This article is spam - 9. Introduction to Gmaasology B (1529)<br /> <br /> - 10. Welcome to Panda Town Gate 1076<br /> <br /> - 11. Welcome to Gmaas Town Gate 1221<br /> <br /> - 12. Welcome to Gmaas Town Gate 1125<br /> <br /> - 13. 33°01'17.4&quot;N 117°05'40.1&quot;W (Rancho Bernardo Road, San Diego, CA)<br /> <br /> - 14. The other side of the ice in Antarctica<br /> <br /> - 15. Feisty Alligator Swamp 1115<br /> <br /> - 16. Intermediate Gmaas and Gmaasology 1207<br /> <br /> - 17. Posting student surveys<br /> <br /> - 18. USF Castle Walls - Elven Tribe 1203<br /> <br /> - 19. The Dark Lord's Hut 1210<br /> <br /> - 20. Gmathamatical Problem Series 1200<br /> <br /> - 21. Intermediate Gmaasology 1138<br /> <br /> - 22. Intermediate Number Theory 1476<br /> <br /> - 23. Introduction to Gmaasology 1204 on July 27, 2016<br /> <br /> - 24. Gmaasology B 1112<br /> <br /> - 25. Intermediate Algebra 1561 7:17 PM 12/11/16<br /> <br /> - 26. Nowhere Else, Tasmania<br /> <br /> - 27. The Gmaathamatics School of Gmaasology<br /> <br /> 237. Gmaas can communicate with, and sometimes control, any other cats; however, this is very rare, as cats normally have a very strong will.<br /> <br /> 238. A picture of Gmaas: http://i.imgur.com/PP9xi.png<br /> <br /> 239. Gmaas met Mike Miller. EDIT: Gmaas ate Mike Miller.<br /> <br /> 240. Gmaas got mad at sseraj once, so Gmaas locked sseraj in sseraj's freezer.<br /> <br /> 241. Then, sseraj decided to eat all of Gmaas's hidden turnips in the freezer as punishment. EDIT: sseraj could not eat all of them so, he put the remaining turnips in the fire.<br /> <br /> 242. Gmaas once ate a pie. EDIT: He only ate the first 31415926535897932384626433832 digits.<br /> <br /> 243. A Gmaas bite is 314159265358979323846264 psi.<br /> <br /> 244. Many people have met Gmaas, although many of these sightings are dubious. EDIT: It is just like alien sightings.<br /> <br /> 245. Gmaas can talk but normally hates talking.<br /> <br /> 246. Gmaas likes to eat his own fur. That's why he doesn't have any as of late<br /> <br /> 247. Gmaas is bigger than an ant. EDIT: so is a regular cat<br /> <br /> 248. Gmaas once ate the king of the ants. EDIT: Ants do not have kings; they have queens.<br /> <br /> 249. Gmaas lives somewhere over the rainbow. EDIT: He lives in sseraj's house. EDIT: sseraj lives somewhere over the rainbow.<br /> <br /> 250. Gmaas is an obviously omnipotent cat.<br /> <br /> 251. sseraj is known to post pictures of Gmaas on various AoPS classrooms. It is not known if these photos have been altered with the editing program called 'Photoshop.'<br /> <br /> 252. Gmaas EDIT: This is a waste of a fact.<br /> <br /> 253. sseraj has posted pictures of Gmaas in Introduction to Algebra before class started with the title &quot;caption contest.&quot; Anyone who posted a caption mysteriously vanished in the middle of the night. EDIT: This has happened many times, including in Introduction to Geometric Gmaasology 1533, among other active classes. The person writing this did participate, and did not disappear. (You could argue Gmaas is typing this through his/her account...)<br /> <br /> 254. Gmaas once slept in your bed and made it gray. EDIT: My bed is not gray. EDIT: Nor is mine.<br /> <br /> 255. Richard Rusczyk actually Gmaas in disguise. EDIT: That is false. Gmaas is only in one form at a time. EDIT: This is also false, you are Gmaas and Gmaas owns you. EDIT: This is false too. Gmaas can only be in one form.<br /> <br /> 256. Gmaas is suspected to be a cat in disguise. EDIT: He is a cat in disguise. See the results on the Gmaas poll in the Gmaas forum.<br /> <br /> 257. Gmaas is a cat but has characteristics of every other animal on Earth. EDIT: Gmaas does not have the characteristic of being able to eat plankton. EDIT: Yes he does. He just has not decided to reincarnate as a blue whale yet.<br /> <br /> 258. Pegasus was modeled off Gmaas. EDIT: Pegasus used to be Gmaas's pet, but Pegasus escaped and joined Bellerophon.<br /> <br /> 259. Gmaas is the ruler of the universe and has been known to be the creator of the species &quot;Gmaasians&quot;. EDIT: He is the universe<br /> <br /> 260. There is a rumor that Gmaas is starting a poll. EDIT: He has. It is on the Gmaas forum, made by his minions. EDIT: We are all his minions.<br /> <br /> 261. Gmaas is a Persian smoke who ran away, founded GmaasClan, and became a kitty-pet.<br /> <br /> 262. There is a sport called &quot;Gmaas Hunting&quot; where people try to successfully capture Gmaas in the wild with video/camera/eyes. Strangely, no one has been able to do this, and those that have have mysteriously disappeared into the night. Nobody knows why. Many people have tried Gmaas Hunting, but they never have been successful.<br /> <br /> 263. Gmaas burped and caused an earthquake.<br /> <br /> 264. Gmaas once drank from a teacup.<br /> <br /> 265. GMAAS IS HERE.... PURRRRRRRRRRRRRRRRRRRR EDIT: Gmaas is everywhere. EDIT EDIT: He is behind you...<br /> <br /> 266. Gmaas made and currently owns the Matrix. EDIT: The above fact is true. Therefore, this is an illusion. EDIT: Gmaas is not an illusion.<br /> <br /> 267. Gmaas is the reason Salah will become better than Ronaldo.<br /> <br /> 268. Who is Gmaas, really? EDIT: Gmaas is a cat. EDIT EDIT: Who cares how much we mention it? Gmass is a cat. EDIT EDIT EDIT: Gmaas is not a cat. Gmaas is GMAAS.<br /> <br /> 269. Gmaas is a heavenly being. EDIT: He is immortal. EDIT EDIT: He is not immortal. He just tricked you to think he is immortal. Gmaas is good at tricking.<br /> <br /> 270. Gmaas is a cat with no fur or tail. In fact he's a human wearing a cat costume. EDIT: This fact is false. 31415 times false.<br /> <br /> 271. Illuminati was a manifestation of Gmaas, but Gmaas decided Illuminati was not great enough for his godly self.<br /> <br /> This article is spam 272. sseraj has met Gmaas, and Gmaas is his best friend. EDIT: sseraj is Gmaas's great great great great great grandson.<br /> <br /> 273. Gmaas read Twilight. EDIT: ...and SURVIVED.<br /> <br /> 274. There is a secret code when put into super smash where Gmaas would be a playable character. Too bad he didn't say it.<br /> <br /> 275. Gmaas was a tribute to one of the Hunger Games, came out a Victor, and now lives in District 4. EDIT: This fact is true and not true. He is everywhere.<br /> <br /> 276. Gmaas is the only known creature that will survive the destruction of Earth in 99,999,999 years. EDIT: The Earth will probably die in around 5,000,000,000 years.<br /> <br /> 277. 5space (side admin) is one of Gmaas's slaves. EDIT: Gmaas owns all AoPS site administrators. EDIT: He owns Himself.<br /> <br /> 278. Gmaas photos − https://cdn.artofproblemsolving.com/images/f/f/8/ff8efef3a0d2eb51254634e54bec215b948a1bba.jpg<br /> <br /> http://disneycreate.wikia.com/wiki/File:Troll_cat_gif_(1).gif<br /> <br /> He was also sighted here.<br /> <br /> 279. Gmaas in Popular Culture:<br /> <br /> BREAKING NEWS: A Gmaasologist has found a possible cousin to Gmaas in Raymond Feist's book Silverthorn. They are mountain dwellers, gwali. Not much are known about them either, and when someone asked,&quot;What are gwali?&quot; the customary answer &quot;This is gwali&quot; is returned. Another eminent Gmaasologist is now looking into it. 199 Someone is writing a book about Gmaas.<br /> <br /> 280. Sighting of Gmaas: https://2017.spaceappschallenge.org/challenges/warning-danger-ahead/and-you-can-help-fight-fires/teams/gmaas/project<br /> <br /> 281. Oryx the mad god is actually Gmaas wearing a suit of armor. This explains why he is never truly killed.<br /> <br /> 282. Potential sighting of Gmaas <br /> <br /> 283. Gmaas has been spotted in some Doctor Who and Phineas and Ferb episodes, such as Aliens of London, Phineas and Ferb Save Summer, Dalek, Rollercoaster, Rose, Boom Town, The Day of The Doctor, Candace Gets Busted, The Name of the Doctor, Silence in the Library, The Idiots Lantern and many more.<br /> <br /> 284. Gmaas can be found in many places in Plants vs. Zombies Garden Warfare 2 and Bloons TD Battles.<br /> <br /> 285. Gmaas was an un-credited actor in the Doctor Who story Knock Knock, playing a Dryad. How he shrunk, we will never know.<br /> <br /> 286. An eminent Gmaasologist is also writing a story about him. He is continuing the book that was started by the professor of Gmaasology at Harvard. When he is done he will post it here.<br /> <br /> 287. Gmaas is a time traveler from 0.99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 B.C.<br /> <br /> 288. No one knows if Gmaas is a Mr. Mime in a cat skin, the other way around, or just a downright combination of both. EDIT: Gmaas is an immortal in a cat body.<br /> <br /> 289. In it, it mentions these four links as things Gmaas is having trouble (specifically technical difficulties). What could it mean? Links:<br /> <br /> https://docs.google.com/document/d/1NZ0XcFYm80sA-fAoxnm7ulMCwdNU75Va_6ZjRHfSHV0<br /> <br /> https://docs.google.com/document/d/1ELN7ORauFFv1dwpU_u-ah_dFJHeuJ3szYxoeC1LlDQg/<br /> <br /> https://docs.google.com/document/d/1oy9Q3F7fygHw-OCWNEVE8d-Uob2dxVACFcGUcLmk3fA<br /> <br /> https://docs.google.com/document/d/1jzb9Q6FmDmrRyXwnik3e0sYw5bTPMo7aBwugmUbA13o<br /> <br /> 290. Another possible Gmaas sighting?<br /> <br /> 291. &lt;math&gt;Another&lt;/math&gt; sighting? <br /> <br /> 292. Yet Another Gmaas sighting? <br /> <br /> 293. Gmaas has been sighted several times on the Global Announcements forum.<br /> <br /> 294. Gmaas uses the following transportation: &lt;img&gt; http://cdn.artofproblemsolving.com/images/3/6/8/368da4e615ea3476355ee3388b39f30a48b8dd48.jpg &lt;/img&gt; EDIT: He also sometimes uses a TARDIS<br /> <br /> 295. When Gmaas was angry, he started world wars 1 &amp; 2. It is only because of Gmaas that we have not had World War 3. EDIT: He was starting to have to get angry in the Cold War, especially around the Cuban Missile Crisis and the Ronald Regan era, but he decided to eat food, which calmed him down.<br /> <br /> 296. Gmaas is the only cat to have been proved irrational and transcendental, though we suspect all cats fall in the first category.<br /> <br /> 297. Gmaas belongs to a secret club of transcendental cats. EDIT: That club is located underneath the Eiffel Tower. EDIT EDIT: Gustave Eiffel was Gmaas in disguise and designed the club.<br /> <br /> 298. Gmaas plays Geometry Dash. His username is D3m0nG4m1n9. EDIT: Gmaas only does this to punish himself. Olympiad Geometry is his least favorite thing to do. EDIT: None of these are true.<br /> <br /> 299. Gmaas likes to whiz on the wilzo.<br /> <br /> 300. Gmaas has been spotted in many AoPS classes, such as AMC 8 Basics. EDIT: Many of the AoPS classes Gmaas has visited can be found in the Gmaas sightings section of this article.<br /> <br /> 303. Gmaas is cool. EDIT: He was not cool in summer, so he invented air conditioning. EDIT: He is air conditioning, in fact he is the entire universe.<br /> <br /> 302. Gmaas hemoon card that does over 9000000 dmg.<br /> <br /> This article is spam 223 Gmaas is a skilled swordsman who should not to be mistaken for Puss in Boots. Some say he even trained the mysterious and valiant Meta Knight.<br /> <br /> 303. Kirby once swallowed Gmaas. Gmaas had to spit him out.<br /> <br /> 304. Gmaas was the creator of pokemon, and his pokemon card can OHKO anyone in one turn. He is invisible and he will always move first.<br /> <br /> 305. Gmaas beat Dongmin in The Genius Game Seasons 1, 2, 3, 4, 5, 6, and 7.<br /> <br /> 306. Gmaas has five letters. Pizza also has five letters. Pizzas are round. Eyes are round. There is an eye in the illuminati symbol. EDIT: Gmaas is a fluffy cat.<br /> <br /> 307. This article is spam 228 Gmaas knows both 'table' and 'tabular' in LaTeX, and can do them in his sleep. EDIT: Gmaas invented LaTeX in his sleep.<br /> <br /> 308. Gmaas does not hate cheddar cheese, but he doesn't love it either.<br /> <br /> 309. Gmaas is a cat and not a cat. EDIT: He is a cat.<br /> <br /> 310. Gmaas was born on the sun. EDIT: Not the sun, the suns. He was born on all the suns at once.<br /> <br /> 311. Gmaas eats tape. EDIT: Gmaas invented tape. EDIT: Gmaas eats everything. Gmaas eats computers.<br /> <br /> 322. Gmaas likes Bubble Gum.<br /> <br /> 323. Thomas Edison did not invent the lightbulb; Gmaas did.<br /> <br /> 324. Gmaas invented the alphabet. EDIT: Gmaas thought that hieroglyphs were too complicated, so he invented the alphabet.<br /> <br /> 325. Gmaas eats metal. EDIT: Gmaas once ate so much metal that he turned into a bronze statue.<br /> <br /> 326. Gmaas is over 9000 years old! EDIT: This is just a DBZ reference, and bears no reality to his true age. EDIT: Gmaas is trillions of years old.<br /> <br /> 327. Gmaas is a cat and not a cat. EDIT: He is a cat. EDIT: This fact has been stated 31,415 times in this article. EDIT EDIT: Gmaas is not a cat.<br /> <br /> 328. Gmaas started the Iron Age. EDIT: He thought civilization was getting too advanced. So he sent out the Sea People to destroy civilization.<br /> <br /> 329. Gmaas made the dinosaurs go extinct. EDIT: That happened when he got angry that a dinosaur stepped on his toe.<br /> <br /> 330. Gmaas created life. Then he destroyed it, and in doing so, destroyed himself. Until his son, Gmaas II took over and saved the planet.<br /> <br /> 331. Gmaas created AoPS. EDIT: AoPS was actually born out of a small fraction of Gmaas's abstract reality, and only the sheer amount math can keep it here. (It is also rumored that when he reclaims it, the USF will be deleted, as that is where 83% of the factions of his abstract reality lives, and when people leave USF, more and more escapes.)<br /> <br /> 332. Gmaas created mathematics. EDIT: Gmaas discovered mathematics.<br /> <br /> 333. Gmaas does not like Roblox.<br /> <br /> 334. Gmaas told Steve Jobs to start a company.<br /> <br /> 335. Gmaas invented Geometry Dash. EDIT: Gmaas hates Olympiad Geometry. [Source: sseraj]<br /> <br /> 336. Gmaas got to&lt;math&gt;\infty&lt;/math&gt;in Flappy Bird. EDIT: Gmaas broke the game.<br /> <br /> 337. Gmaas invented Helix Jump.<br /> <br /> 338. Gmaas can play Happy Birthday on the Violin. EDIT: Gmaas can also play The Flight of the Bumblebees.<br /> <br /> 339. Gmaas has mastered Paganini. EDIT: Paganini was Gmaas in disguise. EDIT: Gmaas was Paganini in one of his 100,000 human lives. He does not have a human life now because he has a cat life.<br /> <br /> 340. Gmaas discovered Atlantis after one dive underwater.<br /> <br /> 341. Gmaas made a piano with 89 keys. EDIT: The piano was made out of chocolate. EDIT: He also made a piano bench made out of chocolate. EDIT: Gmaas ate them<br /> <br /> 342. Gmaas can see the future and how to change it.<br /> <br /> 343. Gmaas has every super power you can imagine. EDIT: Gmaas has more superpowers than you can imagine.<br /> <br /> 344. Gmaas made a Violin with 9 strings.<br /> <br /> 345. Gmaas can read 5 books at once. EDIT: It is slightly difficult for Gmaas to do this because he has no fingers. But somehow, Gmaas finds a way. EDIT: He uses his mind to hold open the books.<br /> <br /> 355. Gmaas is the only one who knows what &quot;Inconceivable&quot; means.<br /> <br /> 356. Gmaas taught Richard Rusczyk everything he knows about mathematics. EDIT: Many famous mathematicians have been Gmaas in disguise.== This article is spam == EDIT: This article is not spam! IT is for worshiping Gmaas.<br /> <br /> 357. Gmaas can control matter by looking at it. EDIT: He once looked at a galaxy while he was angry. Everything in the galaxy exploded.<br /> <br /> 358. Gmaas created AoPS. EDIT: He created 99% of all websites. 98% of those websites are blank and unreachable, but the ones that are not are interesting.<br /> <br /> 359 Gmaas is a quantum particle. EDIT: Gmaas is multiple quantum particles. He is a macroscopic collection of them.<br /> <br /> 360. Gmaas is alive and dead at the same time. EDIT: He is usually alive.<br /> <br /> 361. Gmaas likes snow. EDIT: Once Gmaas was reincarnated as a polar bear around 1,000,000 years ago. He had the best time of his lives. EDIT: While he was a polar bear, he ate many fish.<br /> <br /> 362. GMAAS LIKES THE NEW AOPS UPDATE! EDIT: Are you sure he does? Did you ask him? EDIT: Yes, I did.&lt;math&gt;\textrm{Gmaas is right behind you}&lt;/math&gt;EDIT: Gmaas is everywhere. He is in a quantum superposition. He is still in the superposition until someone sees him. The chance of him being behind you is 0.0000000000000000000000000000000000000000000000000000001%. But, you never know. Is he behind you? Is he behind me right now? He is!!! Aaaaaaaaaah... THUMP<br /> <br /> 363. Gmaas does not like the new update. When he saw it, he looked like this.<br /> https://cdn.artofproblemsolving.com/images/7/4/b/74b21fec95225e1621c71ec8f17f343c48a726e0.jpg<br /> <br /> 364. Gmaas likes his eggs hard boiled.<br /> <br /> 365. Gmaas doesn't take showers; he only takes bloodbaths.<br /> <br /> 366. When the bogeyman goes to sleep, he checks his closet for Gmaas.<br /> <br /> 367. When Gmaas crosses the street, cars have to look both ways.<br /> <br /> 368. Gmaas has counted to infinity an infinite amount of times.<br /> <br /> 369. Gmaas pulled the pin in a grenade. 1 billion people died. Then he threw it.<br /> <br /> 370. Gmaas controls the Illuminati and controls all the world's resources. He also is the ruler of a communist society on Mars.<br /> <br /> 371. Gmaas has taken the AHSME/AMC 10, AIME, USAJMO, USAMO, and IMO all the years it has come out. It is rumored that for 2018, Gmaas got a 163.5 on the AMC 12A, a 156 on the AMC 12B, and 17 problems right on the AIME I. EDIT: He also got 51 on USAMO. EDIT: He invented the AMC, AIME, USAJMO, and IMO<br /> <br /> 372. Gmaas has designed most of the AMC tests. EDIT: He didn't design them in 2015 because he was hibernating too long.<br /> <br /> 373. Gmaas is a koala. EDIT: Gmaas was actually the first koala. He wanted to reincarnate himself into something new, so he created a whole other species. [Source Wikipedia: Koala] EDIT: Gmaas is a Koala when they are not alive, which is 10% of the time. When they are alive, Gmaas is a cat.<br /> <br /> 374. Time is Gmaas's vacation home. EDIT: Gmaas created time as a science project.<br /> <br /> 375. Gmass is Catholic<br /> <br /> 376. Gmaas was once reincarnated as Chuck Norris, but he missed being a cat. Then he became a cat.<br /> <br /> 377. Gmaas once resided with a certain physicist named Schrödinger, but he left because Schrödinger was too confusing. Granted, nothing is too confusing for Gmaas but Schrödinger also made Gmaas alive and dead, which felt weird.<br /> <br /> 378. Gmaas once decided to eat a carrot. He decided turnips were better.<br /> <br /> 379. Gmaasology used to be called Gmaathamatics. It was renamed a few years ago. For more information, see the Gmaasology page. That page needs expanding.<br /> <br /> <br /> 380. \gmaas should be made into a LaTeX command. Its function should be to summon Gmaas.<br /> <br /> 381. &lt;math&gt;\gmaas&lt;/math&gt; (Error compiling LaTeX. ! Undefined control sequence.) (Error compiling LaTeX. ! Undefined control sequence.) GMAAS has entered the room<br /> <br /> 382. Grumpy cat pretends to be a descendent of Gmaas because he is jealous. He is not a descendant of Gmaas.<br /> <br /> 383. Every IMO Gold Medalist is two of Gmaas, standing on top of each other in a trenchcoat.<br /> <br /> 384. Gmaas has been everywhere in the world. EDIT: Gmaas has been everywhere in the universe and multiverse.<br /> <br /> 385. The degree used to be called the Gmaas Arc, but the name was too long for most people, so they switched the name.<br /> <br /> 386. Gmaas is famous on AoPS. EDIT: Gmaas is AoPS.<br /> <br /> 387. Gmaas invented every math theorem and in fact invented math.<br /> <br /> 388. Gmaas made 31.41592653589793238462643383279502884% of memes. EDIT: This is incorrect. This is only an estimate.<br /> <br /> 389. Gmaas is a Gmaas since Gmaas likes to Gmaas and Gmaas is cool because he is named Gmaas.<br /> <br /> 390. Gmaas once ate Big Chungus. EDIT: Gmaas also once ate cat food. EDIT: Gmaas hates cat food. EDIT: Gmaas also hates dog food. EDIT: Gmaas does not need to eat, he is an all-conquering god who never/rarely dies. EDIT: Gmaas is Big Chungus EDIT: He was Big Chungus for 3.14159265358979323846327656180937734 seconds. EDIT: This is only an rough estimate<br /> <br /> 391. Garfield is Gmaas in disguise. EDIT: But Gmaas also created Garfield. He took a Gar and a Field, and added them. Boom. He made Garfield.<br /> <br /> 392. Gmaas didn't create the world. He didn't create the universe. The didn't create multiverses. He is the world. He is the universe. He is the multiverses<br /> <br /> 393. Gmaas has a cult with many followers. This is the page for his followers. They pray to him and remember him for his deeds.<br /> <br /> 394. Garfield ate Gmaas but then Gmaas ate garfield. Then they ate each other. EDIT: Gmaas ate Garfield at the end because Gmaas.<br /> <br /> 395. Gmaas has an existential crisis every 99.0000000000000000000000000000000000009123659812374 seconds.<br /> <br /> 396. Gmaas needed light to read and he turned into a lamp called the sun and created 51.59265358979% of life. EDIT: Gmaas uses a new type of tetradecimal number system where the digits are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, G, M, A, and S. The number 416877 is Gmaas's favorite integer. (Convert it to this number system)<br /> <br /> 397. None of this is true. Except for maybe that last one. EDIT: This fact is therefore not true. EDIT This fact is a paradox. Gmaas does not like paradoxes. Therefore Gmaas does not like this fact.<br /> <br /> 398. Gmaas has only done 3 problems on alcumus, and he got one wrong! EDIT: Gmass is the creator of Alcumus, so he got all right. EDIT EDIT: No he didn't. See. https://services.artofproblemsolving.com/download.php?id=YXR0YWNobWVudHMvZi8zLzQ5ZmE3YzBiZDE0ZjFhNTUwOGMwOGQ3Yzc0YWJlY2MwYjM4YWNkLnBuZw==&amp;rn=U2NyZWVuc2hvdCAyMDE5LTEyLTA4IGF0IDEuNDcuMzAgUE0ucG5n <br /> <br /> 399. (Why is this a thing?) Because we are all worshippers of Gmaas.<br /> <br /> 400. This article is NOT spam otherwise it would have been deleted by now. Edit: This article is spam. EDIT: No it isn't<br /> <br /> 401. Gmaas is actually an AoPS site admin... (And a human) not a cat... His username is Gmaasrocks32 EDIT: His username is all the accounts.<br /> <br /> 402. riben was a Gmaas multi, but Gmaas turned the account over to the present riben and imbued it with his power.<br /> <br /> 403. Gmaas was the being that made Sans from Ness.<br /> <br /> 404: Gmaas can be spotted on all Error 404 pages. This is an Error 404 page. Your life is an Error 404 page.<br /> <br /> 405: Gmaas's favorite game is Minecraft, with Breath of the Wild in a close second. His least favorite game is Fortnite. Gmaas intentionally made Fortnite bad so he could have a least favorite game.<br /> <br /> 406: Gmaas's favorite consoles are in this order: Nintendo, Atari, Xbox. Gmaas hates PlayStation.<br /> <br /> All hail Gmaas!<br /> <br /> P.S. Gmaas won USAMO 5 times in a row. That's because he invented USAMO. When Gmaas took it nobody knew about it and he was the only one who took it. So of course, he won. How dare you spell Gmaas with a lowercase G? He is the supreme and awesome ruler of the universe!<br /> <br /> P.P.S. Gmaas invented the word Yeet.<br /> <br /> P.P.P.S. Gmass is the first person who played the game YECK (Moth poth 2019 reference)<br /> <br /> P.P.P.P.S. Gmaas is a non-human who can snap anyone out of existence without anything.<br /> <br /> P.P.P.P.P.S. Gmaas was the first person who did math.<br /> <br /> P.P.P.P.P.P.S. Gmaas invented proof by dictatorship.<br /> <br /> P.P.P.P.P.P.P.S Gmaas invented proof by procrastination.<br /> <br /> P.P.P.P.P.P.P.P.S Gmaas invented proofs!<br /> <br /> P.P.P.P.P.P.P.P.P.S Gmaas invented everything.<br /> <br /> P.P.P.P.P.P.P.P.P.P.S Gmaas did not invent roblox. Gmaas invented Minecraft.</div> 5space https://artofproblemsolving.com/wiki/index.php?title=Gmaas&diff=86289 Gmaas 2017-07-06T21:15:00Z <p>5space: Reverted edits by Bentleyl (talk) to last revision by Cakeguy</p> <hr /> <div>Editing Gmaas (section)<br /> <br /> === Known Facts About gmaas === <br /> -Gmaas once slept on sseraj's private water bed, so sseraj locked him in the bathroom <br /> <br /> -Gmaas has superpowers that allow him to overcome the horrors of Mr. Toilet (while he was locked in the bathroom)<br /> <br /> - Gmaas once sat on an orange on a pile of AoPS books, causing an orange flavored equation explosion.<br /> <br /> -Gmaas once conquered the moon and imprinted his face on it until asteroids came.<br /> <br /> -Gmaas is a supreme overlord who must be given a gallon of milk and 4 cans of tuna.<br /> <br /> - gmaas is the Doctor Who lord; he sports Dalek-painted cars and eats human finger cheese and custard, plus black holes.<br /> <br /> - themoocow is gmaas's cousin.<br /> <br /> - Gmaas is &lt;math&gt;\bold{not}&lt;/math&gt; Colonel Meow.<br /> <br /> - Gmaas is 5space's favorite animal. [http://artofproblemsolving.com/wiki/index.php?title=File:Gmaas2.png (Source)]<br /> <br /> - He lives with sseraj. <br /> <br /> - He is often overfed (with probability &lt;math&gt;\frac{3972}{7891}&lt;/math&gt;), or malnourished (with probability &lt;math&gt;\frac{3919}{7891}&lt;/math&gt;) by sseraj.<br /> <br /> - He has &lt;cmath&gt;\sum_{k=1}^{267795} [k(k+1)]+GMAAS&lt;/cmath&gt; supercars, excluding the Purrari and the 138838383 Teslas. <br /> <br /> - He is an employee of AoPS.<br /> <br /> - He is a gmaas with yellow fur and white hypnotizing eyes.<br /> <br /> - He was born with a tail that is a completely different color from the rest of his fur.<br /> <br /> - His stare is very hypnotizing and effective at getting table scraps.<br /> <br /> - He sometimes appears several minutes before certain classes start as an admin. <br /> <br /> - He died from too many Rubik's cubes in an Introduction to Algebra A class, but got revived by the Dark Lord at 00:13:37 AM the next day.<br /> <br /> - It is uncertain whether or not he is a cat, or is merely some sort of beast that has chosen to take the form of a cat (specifically a Persian Smoke.) <br /> <br /> - Actually, he is a cat. He said so. And science also says so.<br /> - He is distant relative of Mathcat1234<br /> <br /> - He is very famous now, and mods always talk about him before class starts.<br /> <br /> - His favorite food is AoPS textbooks, because they help him digest problems.<br /> <br /> - Gmaas tends to reside in sseraj's fridge.<br /> <br /> - Gmaas once ate all sseraj's fridge food, so sseraj had to put him in the freezer.<br /> <br /> - The fur of Gmaas can protect him from the harsh conditions of a freezer.<br /> <br /> - Gmaas sightings are not very common. There have only been 8 confirmed sightings of Gmaas in the wild.<br /> <br /> - Gmaas is a sage omniscient cat.<br /> <br /> - He is looking for suitable places other than sseraj's fridge to live in.<br /> <br /> - Places where gmaas sightings have happened: <br /> ~The Royal Scoop ice cream store in Bonita Beach Florida<br /> ~MouseFeastForCats/CAT 8 Mouse Apartment 1083<br /> ~Alligator Swamp A 1072 <br /> ~Alligator Swamp B 1073<br /> ~Introduction to Algebra A (1170)<br /> ~Welcome to Panda Town Gate 1076<br /> ~Welcome to Gmaas Town Gate 1221<br /> ~Welcome to Gmaas Town Gate 1125<br /> ~33°01'17.4&quot;N 117°05'40.1&quot;W (Rancho Bernardo Road, San Diego, CA)<br /> ~The other side of the ice in Antarctica<br /> ~Feisty Alligator Swamp 1115<br /> ~Introduction to Geometry 1221 (Taught by sseraj)<br /> ~Introduction to Counting and Probability 1142 <br /> ~Feisty-ish Alligator Swamp 1115 (AGAIN)<br /> ~Intermediate Counting and Probability 1137<br /> ~Intermediate Counting and Probability 1207<br /> ~Posting student surveys<br /> ~USF Castle Walls 1203<br /> ~Dark Lord's Hut 1210<br /> ~AMC 10 Problem Series 1200<br /> ~Intermediate Number Theory 1138<br /> ~Introduction To Number Theory 1204. Date:7/27/16.<br /> ~Algebra B 1112<br /> ~33°81'199.4&quot;N 167°05'45.1&quot;W (Uncomfortably near where tigershark22 lives)<br /> ~Ocelot Rainforest 1111<br /> ~Intermediate Counting and Probability 1137 <br /> ~Intermediate Number Theory 1138 (AGAIN)<br /> ~AMC 10 Problem Series 1200 (AGAIN)<br /> ~Cat Gathering #339 1222<br /> ~Cat Gathering #312 1535<br /> ~Introduction to Geometry (1190)<br /> ~Hogwarts Introduction to Transfiguration (...16168)<br /> ~Cat Meow Meow Purr 1110<br /> ~Bilbo's Hobbit Hole 1234<br /> ~http://www.gmac.com/frequently-asked-questions/gmass-search-service.aspx<br /> ~Pre-Algebra 1 with sseraj 1164. (Year: 2015) (gmaas code: 6666)<br /> ~Intermediate Counting and Probability 1137<br /> ~Intermediate Number Theory 1229 (AGAIN)<br /> ~Calculus 1226<br /> ~Gallifrey Meeting #123456, 1888.<br /> ~On his account of course.<br /> ~On FEFF once<br /> ~On Mt. Everest at 13:37 in the year 1337 on 1/3 37<br /> ~Everywhere in outer space<br /> ~Dalekanium Scrapland #5 1729<br /> ~Pretty much every class message board. He names the thread &quot;Student Survey&quot;<br /> <br /> <br /> - These have all been designated as the most glorious sections of Aopsland now (Especially the USF castle walls), but deforestation is so far from threatens the wild areas (i.e. Alligator Swamps A&amp;B).<br /> <br /> - Gmaas has also been sighted in Olympiad Geometry 1148.<br /> <br /> - Gmaas has randomly been known to have sent his minions into Prealgebra 2 1163. However, the danger is passed, that class is over.<br /> <br /> - Gmaas once snuck into sseraj's email so he could give pianoman24 an extension in Introduction to Number Theory 1204. This was 1204 minutes after his sighting on 7/27/16.<br /> <br /> - Gmaas also has randomly appeared on top of the USF's Tribal Bases(he seems to prefer the Void Tribe). However, the next day there is normally a puddle in the shape of a cat's underbelly wherever he was sighted. Nobody knows what this does. <br /> <br /> EDIT: Nobody has yet seen him atop a tribal base yet.<br /> <br /> - Gmaas are often under the disguise of a penguin or cat. Look out for them.<br /> <br /> EDIT: The above disguises are rare for a Gmaas, except the cat.<br /> <br /> - He lives in the shadows. Is he a dream? Truth? Fiction? Condemnation? Salvation? AoPS site admin? He is all these things and none of them. He is... Gmaas.<br /> <br /> EDIT: He IS an AoPS site admin.<br /> <br /> - If you make yourself more than just a cat... if you devote yourself to an ideal... and if they can't stop you... then you become something else entirely. A LEGEND. Gmaas now belongs to the ages.<br /> <br /> - Is this the real life? Is this just fantasy? No. This is gmaas, the legend.<br /> <br /> -Aha!! An impostor!! <br /> http://www.salford.ac.uk/environment-life-sciences/research/applied-archaeology/greater-manchester-archaeological-advisory-service<br /> (look at the acronym).<br /> <br /> - Gmaas might have been viewing (with a &lt;math&gt;\frac{99999}{100000}&lt;/math&gt; chance) the Ultimate Survival Forum. He (or is he a she?) is suspected to be transforming the characters into real life. Be prepared to meet your epic swordsman self someday. If you do a sci-fi version of USF, then prepare to meet your Overpowered soldier with amazing weapons one day.<br /> <br /> - The name of Gmaas is so powerful, it radiates Deja Vu.<br /> <br /> - Gmaas is on the list of &quot;Elusive Creatures.&quot; If you have questions, or want the full list, contact moab33.<br /> <br /> - Gmaas can be summoned using the &lt;math&gt;\tan(90)&lt;/math&gt; ritual. Draw a pentagram and write the numerical value of &lt;math&gt;\tan(90)&lt;/math&gt; in the middle, and he will be summoned.<br /> --This above fact is incorrect. math101010 has done this and commented with screenshot proof at the below link, and Gmaas was not summoned.<br /> https://artofproblemsolving.com/community/c287916h1291232<br /> --The above 'proof' is non-conclusive. math101010 had only put an approximation.<br /> <br /> - Gmaas's left eye contains the singularity of a black hole. (Only when everyone in the world blinks at the same time within a nano-nano second.)<br /> <br /> - Lord Grindelwald once tried to make Gmaas into a Horcrux, but Gmaas's fur is Elder Wand protected and secure, as Kendra sprinkled holly into his fur.<br /> <br /> - The original owner of Gmaas is gmaas.<br /> <br /> - Gmaas was not the fourth Peverell brother, but he ascended into higher being and now he resides in the body of a cat, as he was before. Is it a cat? We will know. (And the answer is YES.)<br /> <br /> - It is suspected that Gmaas may be ordering his cyberhairballs to take the forums, along with microbots.<br /> <br /> - The name of Gmaas is so powerful, it radiates Deja Mu.<br /> <br /> - Gmaas rarely frequents the headquarters of the Illuminati. He is their symbol. Or he was, for one yoctosecond.<br /> <br /> - It has been wondered if gmaas is the spirit of Obi-Wan Kenobi or Anakin Skywalker in a higher form, due to his strange capabilities and powers.<br /> <br /> - Gmaas has a habit of sneaking into computers, joining The Network, and exiting out of some other computer.<br /> <br /> - It has been confirmed that gmaas uses gmaal as his email service<br /> <br /> - Gmaas enjoys wearing gmean shorts<br /> <br /> - Gmaas has a bright orange tail with hot pink spirals. Or he had for 15 minutes. <br /> <br /> - Gmaas is well known behind his stage name, Michal Stevens (also known as Vsaace XD), or his page name, Purrshanks.<br /> <br /> - Gmaas rekt sseraj at 12:54 june 4, 2016 UTC time zone. And then the Doctor chased him.<br /> <br /> - Gmaas watchers know that the codes above are NOT years. They are secret codes for the place. But if you've edited that section of the page, you know that.<br /> <br /> - Gmaas is a good friend of the TARDIS and the Millenium Falcon. <br /> <br /> - In the Dark Lord's hut, gmaas was seen watching Doctor Who. Anyone who has seem the Dark Lord's hut knows that both gmaas and the DL (USF code name of the Dark Lord) love BBC. How gmaas gave him a TV may be lost to history. And it has been lost.<br /> <br /> - The TV has been noticed to be invincible. Many USF weapons, even volcano rings, have tried (and failed) to destroy it. The last time it was seen was on a Kobold display case outside of a mine. The display case was crushed, and a report showed a spy running off with a non-crushed TV.<br /> <br /> - Gmaas is a Super Duper Uper Cat Time Lord. He has &lt;math&gt;57843504&lt;/math&gt; regenerations and has used &lt;math&gt;3&lt;/math&gt;. &lt;cmath&gt;9\cdot12\cdot2\cdot267794=57843504&lt;/cmath&gt;. <br /> <br /> -Gmaas highly enjoys destroying squeaky toys until he finds the squeaky part, then destroys the squeaky part<br /> <br /> - Gmaas loves to eat turnips. At &lt;math&gt;\frac{13}{32}&lt;/math&gt; of the sites he was spotted at, he was seen with a turnip.<br /> <br /> -Gmaas has a secret hidden garden full of turnips under sseraj's house.<br /> <br /> - Gmaas has three tails, one for everyday life, one for special occasions, and one that's invisible.<br /> <br /> -Gmaas is a dangerous creature. If you ever meet him, immediately join his army or you will be killed.<br /> <br /> -Gmaas is in alliance in the Cult of Skaro. How did he get an alliance with ruthless creatures that want to kill everything on sight? Nobody knows. (Except him.)<br /> <br /> -Gmaas lives on Gallifrey.<br /> <br /> -Gmaas is an excellent driver.<br /> <br /> -The native location of Gmaas is the twilight zone.<br /> <br /> -Donald Trump once sang &quot;All Hail the Chief&quot; to Gmaas, 3 days after being sworn in as US President.<br /> <br /> - Gmaas like to talk with rrusczyk from time to time.<br /> <br /> - gmaas can shoot fire from his paws.<br /> <br /> - Gmass is the reason why the USF has the longest thread<br /> <br /> - He (or she) is an avid watcher of the popular T.V. show &quot;Bernie Sanders and the Gauntlet of DOOM&quot;<br /> <br /> Summary: <br /> /* Known Facts About gmaas */ <br /> This is a minor edit Watch this page<br /> Please note that all contributions to AoPSWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.<br /> You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see AoPSWiki:Copyrights for details). Do not submit copyrighted work without permission!<br /> <br /> Save page Show preview Show changes Cancel | Editing help (opens in new window)<br /> ACS WASC<br /> ACCREDITED<br /> SCHOOL<br /> About<br /> Our Team<br /> Our History<br /> Jobs<br /> Site Info<br /> Terms<br /> Privacy<br /> Contact Us<br /> Help<br /> School<br /> Books<br /> Community<br /> Stay Connected<br /> Subscribe to get news and<br /> updates from AoPS, or Contact Us.<br /> <br /> Enter e-mail address<br /> Subscribe<br /> © 2017<br /> AoPS Incorporated=== gmaas in Popular Culture ===<br /> <br /> - Currently, [https://docs.google.com/document/d/1mLa2d_9Qgv4C9cZdThyjA6kSf2ULgwvkVjPVqmsoV2w/edit a book] is being written (by JpusheenS) about the adventures of gmaas. It is aptly titled, &quot;The Adventures of gmaas&quot;.<br /> <br /> - BREAKING NEWS: tigershark22 has found a possible cousin to gmaas in Raymond Feist's book Silverthorn. They are mountain dwellers, gwali. Not much are known about them either, and when someone asked,&quot;What are gwali?&quot; the customary answer &quot;This is gwali&quot; is returned. Scientist 5space is now looking into it.<br /> <br /> - Sullymath is also writing a book about Gmaas<br /> <br /> - Potential sighting of gmaas [http://www.gmac.com/frequently-asked-questions/gmass-search-service.aspx]<br /> <br /> - Gmaas has been spotted in some Doctor Who and Phineas and Ferb episodes, such as Aliens of London, Phineas and Ferb Save Summer, Dalek, Rollercoaster, Rose, Boom Town, The Day of The Doctor, Candace Gets Busted, and many more.<br /> <br /> - Gmaas can be found in many places in Plants vs. Zombies Garden Warfare 2 and Bloons TD Battles<br /> <br /> - gmaas was an un-credited actor in the Doctor Who story Knock Knock, playing a Dryad. How he shrunk, we will never know.<br /> <br /> -oadaegan is also writing a story about him. He is continuing the book that was started by JpusheenS. when he is done he will post it here<br /> <br /> -Gmaas is a time traveler from 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 B.C.</div> 5space https://artofproblemsolving.com/wiki/index.php?title=Gmaas&diff=85988 Gmaas 2017-06-09T21:23:48Z <p>5space: Reverted edits by Bentleyl (talk) to last revision by Thothdragonfly2</p> <hr /> <div>Editing Gmaas (section)<br /> <br /> === Known Facts About gmaas === <br /> -Gmaas once slept on sseraj's private water bed, so sseraj locked him in the bathroom <br /> <br /> -Gmaas has superpowers that allow him to overcome the horrors of Mr. Toilet (while he was locked in the bathroom)<br /> <br /> - Gmaas once sat on an orange on a pile of AoPS books, causing an orange flavored equation explosion.<br /> <br /> -Gmaas once conquered the moon and imprinted his face on it until asteroids came.<br /> <br /> -Gmaas is a supreme overlord who must be given a gallon of milk and 4 cans of tuna.<br /> <br /> - gmaas is the Doctor Who lord; he sports Dalek-painted cars and eats human finger cheese and custard, plus black holes.<br /> <br /> - themoocow is gmaas's cousin.<br /> <br /> - Gmaas is &lt;math&gt;\bold{not}&lt;/math&gt; Colonel Meow.<br /> <br /> - Gmaas is 5space's favorite animal. [http://artofproblemsolving.com/wiki/index.php?title=File:Gmaas2.png (Source)]<br /> <br /> - He lives with sseraj. <br /> <br /> - He is often overfed (with probability &lt;math&gt;\frac{3972}{7891}&lt;/math&gt;), or malnourished (with probability &lt;math&gt;\frac{3919}{7891}&lt;/math&gt;) by sseraj.<br /> <br /> - He has &lt;cmath&gt;\sum_{k=1}^{267795} [k(k+1)]+GMAAS&lt;/cmath&gt; supercars, excluding the Purrari and the 138838383 Teslas. <br /> <br /> - He is an employee of AoPS.<br /> <br /> - He is a gmaas with yellow fur and white hypnotizing eyes.<br /> <br /> - He was born with a tail that is a completely different color from the rest of his fur.<br /> <br /> - His stare is very hypnotizing and effective at getting table scraps.<br /> <br /> - He sometimes appears several minutes before certain classes start as an admin. <br /> <br /> - He died from too many Rubik's cubes in an Introduction to Algebra A class, but got revived by the Dark Lord at 00:13:37 AM the next day.<br /> <br /> - It is uncertain whether or not he is a cat, or is merely some sort of beast that has chosen to take the form of a cat (specifically a Persian Smoke.) <br /> <br /> - Actually, he is a cat. He said so. And science also says so.<br /> - He is distant relative of Mathcat1234<br /> <br /> - He is very famous now, and mods always talk about him before class starts.<br /> <br /> - His favorite food is AoPS textbooks, because they help him digest problems.<br /> <br /> - Gmaas tends to reside in sseraj's fridge.<br /> <br /> - Gmaas once ate all sseraj's fridge food, so sseraj had to put him in the freezer.<br /> <br /> - The fur of Gmaas can protect him from the harsh conditions of a freezer.<br /> <br /> - Gmaas sightings are not very common. There have only been 8 confirmed sightings of Gmaas in the wild.<br /> <br /> - Gmaas is a sage omniscient cat.<br /> <br /> - He is looking for suitable places other than sseraj's fridge to live in.<br /> <br /> - Places where gmaas sightings have happened: <br /> ~The Royal Scoop ice cream store in Bonita Beach Florida<br /> ~MouseFeastForCats/CAT 8 Mouse Apartment 1083<br /> ~Alligator Swamp A 1072 <br /> ~Alligator Swamp B 1073<br /> ~Introduction to Algebra A (1170)<br /> ~Welcome to Panda Town Gate 1076<br /> ~Welcome to Gmaas Town Gate 1221<br /> ~Welcome to Gmaas Town Gate 1125<br /> ~33°01'17.4&quot;N 117°05'40.1&quot;W (Rancho Bernardo Road, San Diego, CA)<br /> ~The other side of the ice in Antarctica<br /> ~Feisty Alligator Swamp 1115<br /> ~Introduction to Geometry 1221 (Taught by sseraj)<br /> ~Introduction to Counting and Probability 1142 <br /> ~Feisty-ish Alligator Swamp 1115 (AGAIN)<br /> ~Intermediate Counting and Probability 1137<br /> ~Intermediate Counting and Probability 1207<br /> ~Posting student surveys<br /> ~USF Castle Walls 1203<br /> ~Dark Lord's Hut 1210<br /> ~AMC 10 Problem Series 1200<br /> ~Intermediate Number Theory 1138<br /> ~Introduction To Number Theory 1204. Date:7/27/16.<br /> ~Algebra B 1112<br /> ~33°81'199.4&quot;N 167°05'45.1&quot;W (Unknown location, please try again later)<br /> ~Ocelot Rainforest 1111<br /> ~Intermediate Counting and Probability 1137 <br /> ~Intermediate Number Theory 1138 (AGAIN)<br /> ~AMC 10 Problem Series 1200 (AGAIN)<br /> ~Cat Gathering #339 1222<br /> ~Cat Gathering #312 1535<br /> ~Introduction to Geometry (1190)<br /> ~Hogwarts Introduction to Transfiguration (...16168)<br /> ~Cat Meow Meow Purr 1110<br /> ~Bilbo's Hobbit Hole 1234<br /> ~http://www.gmac.com/frequently-asked-questions/gmass-search-service.aspx<br /> ~Pre-Algebra 1 with sseraj 1164. (Year: 2015) (gmaas code: 6666)<br /> ~Intermediate Counting and Probability 1137<br /> ~Intermediate Number Theory 1229 (AGAIN)<br /> ~Calculus 1226<br /> ~Gallifrey Meeting #123456, 1888.<br /> ~On his account of course.<br /> ~On FEFF once<br /> ~On Mt. Everest at 13:37 in the year 1337 on 1/3 37<br /> ~Everywhere in outer space<br /> ~Dalekanium Scrapland #5 1729<br /> ~Pretty much every class message board. He names the thread &quot;Student Survey&quot;<br /> <br /> <br /> - These have all been designated as the most glorious sections of Aopsland now (Especially the USF castle walls), but deforestation is so far from threatens the wild areas (i.e. Alligator Swamps A&amp;B).<br /> <br /> - Gmaas has also been sighted in Olympiad Geometry 1148.<br /> <br /> - Gmaas has randomly been known to have sent his minions into Prealgebra 2 1163. However, the danger is passed, that class is over.<br /> <br /> - Gmaas once snuck into sseraj's email so he could give pianoman24 an extension in Introduction to Number Theory 1204. This was 1204 minutes after his sighting on 7/27/16.<br /> <br /> - Gmaas also has randomly appeared on top of the USF's Tribal Bases(he seems to prefer the Void Tribe). However, the next day there is normally a puddle in the shape of a cat's underbelly wherever he was sighted. Nobody knows what this does. <br /> <br /> EDIT: Nobody has yet seen him atop a tribal base yet.<br /> <br /> - Gmaas are often under the disguise of a penguin or cat. Look out for them.<br /> <br /> EDIT: The above disguises are rare for a Gmaas, except the cat.<br /> <br /> - He lives in the shadows. Is he a dream? Truth? Fiction? Condemnation? Salvation? AoPS site admin? He is all these things and none of them. He is... Gmaas.<br /> <br /> EDIT: He IS an AoPS site admin.<br /> <br /> - If you make yourself more than just a cat... if you devote yourself to an ideal... and if they can't stop you... then you become something else entirely. A LEGEND. Gmaas now belongs to the ages.<br /> <br /> - Is this the real life? Is this just fantasy? No. This is gmaas, the legend.<br /> <br /> -Aha!! An impostor!! <br /> http://www.salford.ac.uk/environment-life-sciences/research/applied-archaeology/greater-manchester-archaeological-advisory-service<br /> (look at the acronym).<br /> <br /> - Gmaas might have been viewing (with a &lt;math&gt;\frac{99999}{100000}&lt;/math&gt; chance) the Ultimate Survival Forum. He (or is he a she?) is suspected to be transforming the characters into real life. Be prepared to meet your epic swordsman self someday. If you do a sci-fi version of USF, then prepare to meet your Overpowered soldier with amazing weapons one day.<br /> <br /> - The name of Gmaas is so powerful, it radiates Deja Vu.<br /> <br /> - Gmaas is on the list of &quot;Elusive Creatures.&quot; If you have questions, or want the full list, contact moab33.<br /> <br /> - Gmaas can be summoned using the &lt;math&gt;\tan(90)&lt;/math&gt; ritual. Draw a pentagram and write the numerical value of &lt;math&gt;\tan(90)&lt;/math&gt; in the middle, and he will be summoned.<br /> --This above fact is incorrect. math101010 has done this and commented with screenshot proof at the below link, and Gmaas was not summoned.<br /> https://artofproblemsolving.com/community/c287916h1291232<br /> <br /> - Gmaas's left eye contains the singularity of a black hole. (Only when everyone in the world blinks at the same time within a nano-nano second.)<br /> <br /> - Lord Grindelwald once tried to make Gmaas into a Horcrux, but Gmaas's fur is Elder Wand protected and secure, as Kendra sprinkled holly into his fur.<br /> <br /> - The original owner of Gmaas is gmaas.<br /> <br /> - Gmaas was not the fourth Peverell brother, but he ascended into higher being and now he resides in the body of a cat, as he was before. Is it a cat? We will know. (And the answer is YES.)<br /> <br /> - It is suspected that Gmaas may be ordering his cyberhairballs to take the forums, along with microbots.<br /> <br /> - The name of Gmaas is so powerful, it radiates Deja Mu.<br /> <br /> - Gmaas rarely frequents the headquarters of the Illuminati. He is their symbol. Or he was, for one yoctosecond.<br /> <br /> - It has been wondered if gmaas is the spirit of Obi-Wan Kenobi or Anakin Skywalker in a higher form, due to his strange capabilities and powers.<br /> <br /> - Gmaas has a habit of sneaking into computers, joining The Network, and exiting out of some other computer.<br /> <br /> - It has been confirmed that gmaas uses gmaal as his email service<br /> <br /> - Gmaas enjoys wearing gmean shorts<br /> <br /> - Gmaas has a bright orange tail with hot pink spirals. Or he had for 15 minutes. <br /> <br /> - Gmaas is well known behind his stage name, Michal Stevens (also known as Vsaace XD), or his page name, Purrshanks.<br /> <br /> - Gmaas rekt sseraj at 12:54 june 4, 2016 UTC time zone. And then the Doctor chased him.<br /> <br /> - Gmaas watchers know that the codes above are NOT years. They are secret codes for the place. But if you've edited that section of the page, you know that.<br /> <br /> - Gmaas is a good friend of the TARDIS and the Millenium Falcon. <br /> <br /> - In the Dark Lord's hut, gmaas was seen watching Doctor Who. Anyone who has seem the Dark Lord's hut knows that both gmaas and the DL (USF code name of the Dark Lord) love BBC. How gmaas gave him a TV may be lost to history. And it has been lost.<br /> <br /> - The TV has been noticed to be invincible. Many USF weapons, even volcano rings, have tried (and failed) to destroy it. The last time it was seen was on a Kobold display case outside of a mine. The display case was crushed, and a report showed a spy running off with a non-crushed TV.<br /> <br /> - Gmaas is a Super Duper Uper Cat Time Lord. He has &lt;math&gt;57843504&lt;/math&gt; regenerations and has used &lt;math&gt;3&lt;/math&gt;. &lt;cmath&gt;9\cdot12\cdot2\cdot267794=57843504&lt;/cmath&gt;. <br /> <br /> -Gmaas highly enjoys destroying squeaky toys until he finds the squeaky part, then destroys the squeaky part<br /> <br /> - Gmaas loves to eat turnips. At &lt;math&gt;\frac{13}{32}&lt;/math&gt; of the sites he was spotted at, he was seen with a turnip.<br /> <br /> -Gmaas has a secret hidden garden full of turnips under sseraj's house.<br /> <br /> - Gmaas has three tails, one for everyday life, one for special occasions, and one that's invisible.<br /> <br /> -Gmaas is a dangerous creature. If you ever meet him, immediately join his army or you will be killed.<br /> <br /> -Gmaas is in alliance in the Cult of Skaro. How did he get an alliance with ruthless creatures that want to kill everything on sight? Nobody knows. (Except him.)<br /> <br /> -Gmaas lives on Gallifrey.<br /> <br /> -Gmaas is an excellent driver.<br /> <br /> -The native location of Gmaas is the twilight zone.<br /> <br /> -Donald Trump once sang &quot;All Hail the Chief&quot; to Gmaas, 3 days after being sworn in as US President.<br /> <br /> - Gmaas like to talk with rrusczyk from time to time.<br /> <br /> - gmaas can shoot fire from his paws.<br /> <br /> - Gmass is the reason why the USF has the longest thread<br /> <br /> - He (or she) is an avid watcher of the popular T.V. show &quot;Bernie Sanders and the Gauntlet of DOOM&quot;<br /> <br /> Summary: <br /> /* Known Facts About gmaas */ <br /> This is a minor edit Watch this page<br /> Please note that all contributions to AoPSWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.<br /> You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see AoPSWiki:Copyrights for details). Do not submit copyrighted work without permission!<br /> <br /> Save page Show preview Show changes Cancel | Editing help (opens in new window)<br /> ACS WASC<br /> ACCREDITED<br /> SCHOOL<br /> About<br /> Our Team<br /> Our History<br /> Jobs<br /> Site Info<br /> Terms<br /> Privacy<br /> Contact Us<br /> Help<br /> School<br /> Books<br /> Community<br /> Stay Connected<br /> Subscribe to get news and<br /> updates from AoPS, or Contact Us.<br /> <br /> Enter e-mail address<br /> Subscribe<br /> © 2017<br /> AoPS Incorporated=== gmaas in Popular Culture ===<br /> <br /> - Currently, [https://docs.google.com/document/d/1mLa2d_9Qgv4C9cZdThyjA6kSf2ULgwvkVjPVqmsoV2w/edit a book] is being written (by JpusheenS) about the adventures of gmaas. It is aptly titled, &quot;The Adventures of gmaas&quot;.<br /> <br /> - BREAKING NEWS: tigershark22 has found a possible cousin to gmaas in Raymond Feist's book Silverthorn. They are mountain dwellers, gwali. Not much are known about them either, and when someone asked,&quot;What are gwali?&quot; the customary answer &quot;This is gwali&quot; is returned. Scientist 5space is now looking into it.<br /> <br /> - Sullymath is also writing a book about Gmaas<br /> <br /> - Potential sighting of gmaas [http://www.gmac.com/frequently-asked-questions/gmass-search-service.aspx]<br /> <br /> - Gmaas has been spotted in some Doctor Who and Phineas and Ferb episodes, such as Aliens of London, Phineas and Ferb Save Summer, Dalek, Rollercoaster, Rose, Boom Town, The Day of The Doctor, Candace Gets Busted, and many more.<br /> <br /> - Gmaas can be found in many places in Plants vs. Zombies Garden Warfare 2 and Bloons TD Battles<br /> <br /> - gmaas was an un-credited actor in the Doctor Who story Knock Knock, playing a Dryad. How he shrunk, we will never know.<br /> <br /> -oadaegan is also writing a story about him. He is continuing the book that was started by JpusheenS. when he is done he will post it here</div> 5space https://artofproblemsolving.com/wiki/index.php?title=Gmaas&diff=77966 Gmaas 2016-04-07T18:42:42Z <p>5space: /* Known Facts About gmaas */</p> <hr /> <div>=== Known Facts About gmaas ===<br /> <br /> - gmaas is 5space's favorite animal. [http://artofproblemsolving.com/wiki/index.php?title=File:Gmaas2.png (Source)]<br /> <br /> - He lives with sseraj.<br /> <br /> - He is often malnourished by sseraj.<br /> <br /> - He is an employee of AoPS, but doesn't teach. His sole purpose (in life) is to scare people.<br /> <br /> - He was born with a tail that is a completely different color from the rest of his fur.<br /> <br /> - His stare is not as effective at getting table scraps as Gizmo's stare is.<br /> <br /> === gmaas in Popular Culture ===<br /> <br /> - Currently, [https://docs.google.com/document/d/1mLa2d_9Qgv4C9cZdThyjA6kSf2ULgwvkVjPVqmsoV2w/edit a book] is being written (by JpusheenS) about the adventures of gmaas. It is aptly titled, &quot;The Adventures of gmaas&quot;.</div> 5space https://artofproblemsolving.com/wiki/index.php?title=Gmaas&diff=77965 Gmaas 2016-04-07T18:39:40Z <p>5space: /* Known Facts About gmaas */</p> <hr /> <div>=== Known Facts About gmaas ===<br /> <br /> - gmaas is 5space's favorite animal. [http://artofproblemsolving.com/wiki/index.php?title=File:Gmaas2.png (Source)]<br /> <br /> - He lives with sseraj.<br /> <br /> - He is an employee of AoPS, but doesn't teach. His sole purpose (in life) is to scare people.<br /> <br /> - He was born with a tail that is a completely different color from the rest of his fur.<br /> <br /> - His stare is not as effective at getting table scraps as Gizmo's stare is.<br /> <br /> === gmaas in Popular Culture ===<br /> <br /> - Currently, [https://docs.google.com/document/d/1mLa2d_9Qgv4C9cZdThyjA6kSf2ULgwvkVjPVqmsoV2w/edit a book] is being written (by JpusheenS) about the adventures of gmaas. It is aptly titled, &quot;The Adventures of gmaas&quot;.</div> 5space https://artofproblemsolving.com/wiki/index.php?title=Gmaas&diff=77964 Gmaas 2016-04-07T18:39:32Z <p>5space: /* Known Facts About gmaas */</p> <hr /> <div>=== Known Facts About gmaas ===<br /> <br /> - gmaas is 5space's favorite animal. [http://artofproblemsolving.com/wiki/index.php?title=File:Gmaas2.png (Source)]<br /> <br /> - He lives with sseraj.<br /> <br /> - He is an employee of AoPS, but doesn't teach. His sole purpose (in life) is to scare people.<br /> <br /> - He was born with a tail that is a completely different color from the rest of his fur.<br /> <br /> - His stair is not as effective at getting table scraps as Gizmo's stare is.<br /> <br /> === gmaas in Popular Culture ===<br /> <br /> - Currently, [https://docs.google.com/document/d/1mLa2d_9Qgv4C9cZdThyjA6kSf2ULgwvkVjPVqmsoV2w/edit a book] is being written (by JpusheenS) about the adventures of gmaas. It is aptly titled, &quot;The Adventures of gmaas&quot;.</div> 5space https://artofproblemsolving.com/wiki/index.php?title=Gmaas&diff=77870 Gmaas 2016-04-01T17:35:45Z <p>5space: </p> <hr /> <div>=== Known Facts About gmaas ===<br /> <br /> - gmaas is 5space's favorite animal. [http://artofproblemsolving.com/wiki/index.php?title=File:Gmaas2.png (Source)]<br /> <br /> - He lives with sseraj.<br /> <br /> - He is an employee of AoPS, but doesn't teach. His sole purpose (in life) is to scare people.<br /> <br /> - He was born with a tail that is a completely different color from the rest of his fur.<br /> <br /> === gmaas in Popular Culture ===<br /> <br /> - Currently, [https://docs.google.com/document/d/1mLa2d_9Qgv4C9cZdThyjA6kSf2ULgwvkVjPVqmsoV2w/edit a book] is being written (by JpusheenS) about the adventures of gmaas. It is aptly titled, &quot;The Adventures of gmaas&quot;.</div> 5space https://artofproblemsolving.com/wiki/index.php?title=Gmaas&diff=77869 Gmaas 2016-04-01T17:28:28Z <p>5space: /* Known Facts About gmaas */</p> <hr /> <div><br /> === Known Facts About gmaas ===<br /> <br /> - gmaas is 5space's favorite animal. [http://artofproblemsolving.com/wiki/index.php?title=File:Gmaas2.png (Source)]<br /> <br /> - gmaas lives with sseraj.<br /> <br /> === gmaas in Popular Culture ===<br /> <br /> - Currently, [https://docs.google.com/document/d/1mLa2d_9Qgv4C9cZdThyjA6kSf2ULgwvkVjPVqmsoV2w/edit a book] is being written (by JpusheenS) about the adventures of gmaas. It is aptly titled, &quot;The Adventures of gmaas&quot;.</div> 5space https://artofproblemsolving.com/wiki/index.php?title=Gmaas&diff=77868 Gmaas 2016-04-01T17:27:46Z <p>5space: /* Known Facts About gmaas */</p> <hr /> <div><br /> === Known Facts About gmaas ===<br /> <br /> - gmaas is 5space's favorite animal.<br /> <br /> [[File:gmaas2.png]]<br /> <br /> - gmaas lives with sseraj.<br /> <br /> === gmaas in Popular Culture ===<br /> <br /> - Currently, [https://docs.google.com/document/d/1mLa2d_9Qgv4C9cZdThyjA6kSf2ULgwvkVjPVqmsoV2w/edit a book] is being written (by JpusheenS) about the adventures of gmaas. It is aptly titled, &quot;The Adventures of gmaas&quot;.</div> 5space https://artofproblemsolving.com/wiki/index.php?title=Gmaas&diff=77867 Gmaas 2016-04-01T17:27:32Z <p>5space: /* Known Facts About gmaas */</p> <hr /> <div><br /> === Known Facts About gmaas ===<br /> <br /> - gmaas is 5space's favorite animal.<br /> <br /> [File:gmaas2.png]<br /> <br /> - gmaas lives with sseraj.<br /> <br /> === gmaas in Popular Culture ===<br /> <br /> - Currently, [https://docs.google.com/document/d/1mLa2d_9Qgv4C9cZdThyjA6kSf2ULgwvkVjPVqmsoV2w/edit a book] is being written (by JpusheenS) about the adventures of gmaas. It is aptly titled, &quot;The Adventures of gmaas&quot;.</div> 5space https://artofproblemsolving.com/wiki/index.php?title=File:Gmaas2.png&diff=77866 File:Gmaas2.png 2016-04-01T17:26:28Z <p>5space: </p> <hr /> <div></div> 5space https://artofproblemsolving.com/wiki/index.php?title=Gmaas&diff=77865 Gmaas 2016-04-01T17:24:13Z <p>5space: /* gmaas in Popular Culture */</p> <hr /> <div><br /> === Known Facts About gmaas ===<br /> <br /> - gmaas is 5space's favorite animal. (source)<br /> <br /> - gmaas lives with sseraj.<br /> <br /> === gmaas in Popular Culture ===<br /> <br /> - Currently, [https://docs.google.com/document/d/1mLa2d_9Qgv4C9cZdThyjA6kSf2ULgwvkVjPVqmsoV2w/edit a book] is being written (by JpusheenS) about the adventures of gmaas. It is aptly titled, &quot;The Adventures of gmaas&quot;.</div> 5space https://artofproblemsolving.com/wiki/index.php?title=Gmaas&diff=77864 Gmaas 2016-04-01T17:16:23Z <p>5space: /* gmaas in Popular Culture */</p> <hr /> <div><br /> === Known Facts About gmaas ===<br /> <br /> - gmaas is 5space's favorite animal. (source)<br /> <br /> - gmaas lives with sseraj.<br /> <br /> === gmaas in Popular Culture ===<br /> <br /> - Currently, a book is being written (by JpusheenS) about the adventures of gmaas. It is aptly titled, &quot;The Adventures of gmaas&quot;.</div> 5space https://artofproblemsolving.com/wiki/index.php?title=Gmaas&diff=77863 Gmaas 2016-04-01T17:16:15Z <p>5space: </p> <hr /> <div><br /> === Known Facts About gmaas ===<br /> <br /> - gmaas is 5space's favorite animal. (source)<br /> <br /> - gmaas lives with sseraj.<br /> <br /> === gmaas in Popular Culture ===<br /> <br /> - Currently, a book iis being written (by JpusheenS) about the adventures of gmaas. It is aptly titled, &quot;The Adventures of gmaas&quot;.</div> 5space https://artofproblemsolving.com/wiki/index.php?title=Gmaas&diff=77862 Gmaas 2016-04-01T17:15:15Z <p>5space: </p> <hr /> <div><br /> === Known Facts About gmaas ===<br /> <br /> - gmaas is 5space's favorite animal. (source)<br /> <br /> - gmaas lives with sseraj.<br /> <br /> === gmaas in Popular Culture ===<br /> <br /> - Currently, [url = https://docs.google.com/document/d/1mLa2d_9Qgv4C9cZdThyjA6kSf2ULgwvkVjPVqmsoV2w/edit]a book[/url] is being written (by JpusheenS) about the adventures of gmaas. It is aptly titled, [i]The Adventures of gmaas[/i].</div> 5space https://artofproblemsolving.com/wiki/index.php?title=Gmaas&diff=77861 Gmaas 2016-04-01T17:03:59Z <p>5space: Created page with &quot;Hello.&quot;</p> <hr /> <div>Hello.</div> 5space https://artofproblemsolving.com/wiki/index.php?title=LaTeX:LaTeX_on_AoPS&diff=74193 LaTeX:LaTeX on AoPS 2016-01-01T00:09:09Z <p>5space: </p> <hr /> <div>{{Latex}}<br /> <br /> This article explains how to use LaTeX in the AoPSWiki, the AoPS Community, and the AoPS Classroom. See [http://artofproblemsolving.com/wiki/index.php/LaTeX:Packages Packages] to know which packages are prebuilt into the AoPS site.<br /> <br /> <br /> ----<br /> == Getting Started with LaTeX ==<br /> <br /> === The Very Basics ===<br /> <br /> LaTeX uses a special &quot;math mode&quot; to display mathematics. There are two types of this &quot;math mode&quot;:<br /> <br /> ==== In-line Math Mode ====<br /> <br /> In in-line math mode, we use &lt;code&gt;$&lt;/code&gt; signs to enclose the math we want to display, and it displays in-line with our text. For example, typing &lt;code&gt;$\sqrt{x} = 5$&lt;/code&gt; gives us &lt;math&gt;\sqrt{x} = 5.&lt;/math&gt;<br /> <br /> ==== Display Math Mode ====<br /> <br /> In display math mode, we enclose our code in double dollar signs, and it displays the math centered and on its own line. For example, &lt;code&gt;$$\sqrt{x} = 5$$&lt;/code&gt; gives us &lt;cmath&gt;\sqrt{x} = 5.&lt;/cmath&gt;<br /> <br /> ==== In-line vs. Display ====<br /> <br /> Besides displaying in-line vs. displaying centered and on a new line, the two modes render differently in other ways. Note that &lt;code&gt;$\sum_{k=1}^n k^2$&lt;/code&gt; gives us &lt;math&gt;\textstyle\sum_{k=1}^n k^2,&lt;/math&gt; whereas &lt;code&gt;$$\sum_{k=1}^n k^2$$&lt;/code&gt; gives us &lt;cmath&gt;\sum_{k=1}^n k^2.&lt;/cmath&gt;<br /> <br /> === Basic Expressions ===<br /> <br /> ==== Multiplication ====<br /> <br /> Sometimes, when we're multiplying, we don't need a multiplication symbol. For instance, we can write &lt;math&gt;xy&lt;/math&gt; instead of &lt;math&gt;x\cdot y&lt;/math&gt; without ambiguity. However, when you're multiplying numbers, for instance, a multiplication symbol comes in handy. The standard symbol is given by &lt;code&gt;$\cdot$&lt;/code&gt;. For example, &lt;code&gt;$12\cdot\frac{1}{2}$&lt;/code&gt; gives us &lt;math&gt;\textstyle 12\cdot \frac 12.&lt;/math&gt;<br /> <br /> ==== Fractions ====<br /> <br /> We can make fractions via &lt;code&gt;$\frac{...}{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\frac{x+y}{2}$&lt;/code&gt; will give us &lt;math&gt;\textstyle\frac{x+y}{2}.&lt;/math&gt;<br /> <br /> ==== Roots ====<br /> <br /> Square roots in &lt;math&gt;\LaTeX&lt;/math&gt; are pretty simple; we just type &lt;code&gt;$\sqrt{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{2}$&lt;/code&gt; gives us &lt;math&gt;\sqrt 2.&lt;/math&gt; Cube roots, fourth roots, and so on are only slightly more difficult; we type &lt;code&gt;$\sqrt[n]{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{x-y}$&lt;/code&gt; gives &lt;math&gt;\sqrt{x-y}.&lt;/math&gt;<br /> <br /> ==== Superscripts &amp; Subscripts ====<br /> <br /> To get superscripts (or exponents), we use the caret symbol &lt;code&gt;^&lt;/code&gt;. Typing &lt;code&gt;$x^2+y^2$&lt;/code&gt; gives &lt;math&gt;x^2+y^2.&lt;/math&gt; Subscripts are obtained via an underscore (holding shift and the minus sign on most keyboards). For instance, &lt;code&gt;$a_k$&lt;/code&gt; yields &lt;math&gt;a_k.&lt;/math&gt;<br /> <br /> ==== Groups ====<br /> <br /> Most operations in &lt;math&gt;\LaTeX&lt;/math&gt; (such as superscripts and subscripts) can only see the &quot;group&quot; of characters immediately following it. We use curly braces &lt;code&gt;{...}&lt;/code&gt; to indicate groups longer than one character. For instance, if we wrote &lt;code&gt;$x^2015$&lt;/code&gt;, we'd expect to get &lt;math&gt;x^{2015},&lt;/math&gt; but we instead get &lt;math&gt;x^2015.&lt;/math&gt; This is because each character in the string &lt;code&gt;2015&lt;/code&gt; is in its own group until we tell &lt;math&gt;\LaTeX&lt;/math&gt; that &lt;code&gt;2015&lt;/code&gt; should be one whole group. To convey this information to &lt;math&gt;\LaTeX&lt;/math&gt;, we write &lt;code&gt;$x^{2015}$&lt;/code&gt; and we get &lt;math&gt;x^{2015}.&lt;/math&gt;<br /> <br /> === Beyond the Basic Expressions ===<br /> <br /> ==== Grouping Basic Expressions ====<br /> <br /> Our ordinary parentheses &lt;code&gt;(...)&lt;/code&gt; and brackets &lt;code&gt;[...]&lt;/code&gt; work to group expressions in &lt;math&gt;\LaTeX&lt;/math&gt;. For instance, &lt;code&gt;$(x+y)[z+w]$&lt;/code&gt; gives us &lt;math&gt;(x+y)[z+w].&lt;/math&gt; We can also group expressions using curly braces, but we can't just type &lt;code&gt;{...}&lt;/code&gt;. Rather, we must type &lt;code&gt;\{...\}&lt;/code&gt;. This is because &lt;math&gt;\LaTeX&lt;/math&gt; uses plain curly braces for other things, such as fractions and superscripts and subscripts.<br /> <br /> &lt;br&gt;&lt;br&gt;<br /> <br /> When we put (vertically) large expressions inside of parentheses (or brackets, or curly braces, etc.), the parentheses don't resize to fit the expression and instead remain relatively small. For instance, &lt;code&gt;$$f(x) = \pi(\frac{\sqrt{x}}{x-1})$$&lt;/code&gt; comes out as &lt;cmath&gt;f(x) = \pi(\frac{\sqrt{x}}{x-1}).&lt;/cmath&gt; To automatically adjust the size of parentheses to fit the expression inside of them, we type &lt;code&gt;\left(...\right)&lt;/code&gt;. If we do this for our &lt;math&gt;f&lt;/math&gt; equation above, we get &lt;cmath&gt;f(x) = \pi\left(\frac{\sqrt{x}}{x-1}\right).&lt;/cmath&gt; We can use &lt;code&gt;\left&lt;/code&gt; and &lt;code&gt;\right&lt;/code&gt; for all sorts of things... parentheses (as we saw), brackets &lt;code&gt;$\left[...\right]$&lt;/code&gt;, braces &lt;code&gt;$\left\{...\right\}&lt;/code&gt;, absolute values &lt;code&gt;$\left|...\right|$&lt;/code&gt;, and much more (norms, floor and ceiling functions, inner products, etc.).<br /> <br /> ==== Lists ====<br /> <br /> To make a list, such as a sequence, we use &lt;code&gt;\dots&lt;/code&gt;. For example, &lt;code&gt;$a_0,a_1,\dots,a_n$&lt;/code&gt; will give us &lt;math&gt;a_0,a_1,\dots,a_n.&lt;/math&gt;<br /> <br /> ==== Sums ====<br /> <br /> There are two basic ways to write out sums. First, we can use &lt;code&gt;+&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example of this way would be &lt;code&gt;$a_1+a_2+\cdots+a_n$&lt;/code&gt; This will give us &lt;math&gt;a_1+a_2+\cdots+a_n.&lt;/math&gt; Second, we could use summation notation, or &lt;code&gt;\sum&lt;/code&gt;. Such an example is &lt;code&gt;$\sum_{i=0}^n a_i$&lt;/code&gt;, giving &lt;math&gt;\textstyle \sum_{i=0}^n a_i.&lt;/math&gt; Note the use of superscripts and subscripts to obtain the summation index.<br /> <br /> ==== Products ====<br /> <br /> Again, there are two basic ways to display products. First, we can use &lt;code&gt;\cdot&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example is &lt;code&gt;$n! = n\cdot(n-1)\cdots 2\cdot 1$&lt;/code&gt;, which of course gives &lt;math&gt;n! = n\cdot(n-1)\cdots 2 \cdot 1.&lt;/math&gt; The alternative is to use product notation with &lt;code&gt;\prod&lt;/code&gt;. For instance, &lt;code&gt;$n! = \prod_{k=1}^n k$&lt;/code&gt;, giving &lt;math&gt;\textstyle n! = \prod_{k=1}^n k.&lt;/math&gt;<br /> <br /> === Equalities and Inequalities ===<br /> <br /> ==== Inequalities ====<br /> <br /> the commands &lt;code&gt;&gt;, &lt;, \geq, \leq,&lt;/code&gt; and &lt;code&gt;\neq&lt;/code&gt; give us &lt;math&gt;&gt;,&lt;/math&gt; &lt;math&gt;&lt;,&lt;/math&gt; &lt;math&gt;\geq,&lt;/math&gt; &lt;math&gt;\leq,&lt;/math&gt; and &lt;math&gt;\neq,&lt;/math&gt; respectively.<br /> <br /> ==== Aligning Equations ====<br /> <br /> To align multiple equations, we use the &lt;code&gt;align*&lt;/code&gt; environment. For example, we might type a system of equations as follows:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> (You do not need dollar signs.) The &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to and the \\ symbols break to the next line. This code will output<br /> &lt;cmath&gt;\begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}&lt;/cmath&gt; An example of a string of equations is:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> Again, the &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to, and the \\ symbols break to the next line. This code outputs<br /> &lt;cmath&gt;\begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}&lt;/cmath&gt;<br /> <br /> ==== Numbering Equations ====<br /> <br /> To number equations, we use the &lt;code&gt;align&lt;/code&gt; environment. This is the same environment as the &lt;code&gt;align*&lt;/code&gt; environment, but we leave the &lt;code&gt;*&lt;/code&gt; off. The &lt;code&gt;*&lt;/code&gt; suppresses numbering. To number one equation, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by = c<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by = c.<br /> \end{align} &lt;/cmath&gt; We don't have to use &lt;code&gt;&amp;&lt;/code&gt; or \\ since there is nothing to align and no lines to break. To number several equations, such as a system, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i.<br /> \end{align} &lt;/cmath&gt; In general, &lt;code&gt;align&lt;/code&gt; will auto-number your equations from first to last.<br /> <br /> ==== Comments in Equations ====<br /> <br /> Again, we use the &lt;code&gt;align*&lt;/code&gt; environment. The code<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}<br /> \end{align*}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}.<br /> \end{align*} &lt;/cmath&gt; (You can use &lt;code&gt;align&lt;/code&gt; to get numbering &lt;i&gt;and&lt;/i&gt; comments!)<br /> <br /> ==== Definition by Cases ====<br /> <br /> To define, say, a function by cases, we use the &lt;code&gt;cases&lt;/code&gt; environment. The code<br /> &lt;pre&gt;&lt;nowiki&gt;<br /> $$&lt;/nowiki&gt; \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j \end{cases} &lt;nowiki&gt;$$<br /> &lt;/nowiki&gt;&lt;/pre&gt;<br /> gives us<br /> &lt;cmath&gt;<br /> \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j. \end{cases}<br /> &lt;/cmath&gt; As usual, the &lt;code&gt;&amp;&lt;/code&gt; is for aligning and the \\ is for line-breaking.</div> 5space https://artofproblemsolving.com/wiki/index.php?title=LaTeX:LaTeX_on_AoPS&diff=72477 LaTeX:LaTeX on AoPS 2015-10-15T20:47:48Z <p>5space: /* Algebra */</p> <hr /> <div>{{Latex}}<br /> <br /> This article explains how to use LaTeX in the AoPSWiki, the AoPS Community, and the AoPS Classroom. See [http://artofproblemsolving.com/wiki/index.php/LaTeX:Packages Packages] to know which packages are prebuilt into the AoPS site.<br /> <br /> <br /> ----<br /> == Getting Started with LaTeX ==<br /> <br /> === The Very Basics ===<br /> <br /> LaTeX uses a special &quot;math mode&quot; to display mathematics. There are two types of this &quot;math mode&quot;:<br /> <br /> ==== In-line Math Mode ====<br /> <br /> In in-line math mode, we use &lt;code&gt;$&lt;/code&gt; signs to enclose the math we want to display, and it displays in-line with our text. For example, typing &lt;code&gt;$\sqrt{x} = 5$&lt;/code&gt; gives us &lt;math&gt;\sqrt{x} = 5.&lt;/math&gt;<br /> <br /> ==== Display Math Mode ====<br /> <br /> In display math mode, we enclose our code in double dollar signs, and it displays the math centered and on its own line. For example, &lt;code&gt;$$\sqrt{x} = 5$$&lt;/code&gt; gives us &lt;cmath&gt;\sqrt{x} = 5.&lt;/cmath&gt;<br /> <br /> ==== In-line vs. Display ====<br /> <br /> Besides displaying in-line vs. displaying centered and on a new line, the two modes render differently in other ways. Note that &lt;code&gt;$\sum_{k=1}^n k^2$&lt;/code&gt; gives us &lt;math&gt;\textstyle\sum_{k=1}^n k^2,&lt;/math&gt; whereas &lt;code&gt;$$\sum_{k=1}^n k^2$$&lt;/code&gt; gives us &lt;cmath&gt;\sum_{k=1}^n k^2.&lt;/cmath&gt;<br /> <br /> === Basic Expressions ===<br /> <br /> ==== Multiplication ====<br /> <br /> Sometimes, when we're multiplying, we don't need a multiplication symbol. For instance, we can write &lt;math&gt;xy&lt;/math&gt; instead of &lt;math&gt;x\cdot y&lt;/math&gt; without ambiguity. However, when you're multiplying numbers, for instance, a multiplication symbol comes in handy. The standard symbol is given by &lt;code&gt;$\cdot$&lt;/code&gt;. For example, &lt;code&gt;$12\cdot\frac{1}{2}$&lt;/code&gt; gives us &lt;math&gt;\textstyle 12\cdot \frac 12.&lt;/math&gt;<br /> <br /> ==== Fractions ====<br /> <br /> We can make fractions via &lt;code&gt;$\frac{...}{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\frac{x+y}{2}$&lt;/code&gt; will give us &lt;math&gt;\textstyle\frac{x+y}{2}.&lt;/math&gt;<br /> <br /> ==== Roots ====<br /> <br /> Square roots in &lt;math&gt;\LaTeX&lt;/math&gt; are pretty simple; we just type &lt;code&gt;$\sqrt{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{2}$&lt;/code&gt; gives us &lt;math&gt;\sqrt 2.&lt;/math&gt; Cube roots, fourth roots, and so on are only slightly more difficult; we type &lt;code&gt;$\sqrt[n]{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{x-y}$&lt;/code&gt; gives &lt;math&gt;\sqrt{x-y}.&lt;/math&gt;<br /> <br /> ==== Superscripts &amp; Subscripts ====<br /> <br /> To get superscripts (or exponents), we use the caret symbol &lt;code&gt;^&lt;/code&gt;. Typing &lt;code&gt;$x^2+y^2$&lt;/code&gt; gives &lt;math&gt;x^2+y^2.&lt;/math&gt; Subscripts are obtained via an underscore (holding shift and the minus sign on most keyboards). For instance, &lt;code&gt;$a_k$&lt;/code&gt; yields &lt;math&gt;a_k.&lt;/math&gt;<br /> <br /> ==== Groups ====<br /> <br /> Most operations in &lt;math&gt;\LaTeX&lt;/math&gt; (such as superscripts and subscripts) can only see the &quot;group&quot; of characters immediately following it. We use curly braces &lt;code&gt;{...}&lt;/code&gt; to indicate groups longer than one character. For instance, if we wrote &lt;code&gt;$x^2015$&lt;/code&gt;, we'd expect to get &lt;math&gt;x^{2015},&lt;/math&gt; but we instead get &lt;math&gt;x^2015.&lt;/math&gt; This is because each character in the string &lt;code&gt;2015&lt;/code&gt; is in its own group until we tell &lt;math&gt;\LaTeX&lt;/math&gt; that &lt;code&gt;2015&lt;/code&gt; should be one whole group. To convey this information to &lt;math&gt;\LaTeX&lt;/math&gt;, we write &lt;code&gt;$x^{2015}$&lt;/code&gt; and we get &lt;math&gt;x^{2015}.&lt;/math&gt;<br /> <br /> === Beyond the Basic Expressions ===<br /> <br /> ==== Grouping Basic Expressions ====<br /> <br /> Our ordinary parentheses &lt;code&gt;(...)&lt;/code&gt; and brackets &lt;code&gt;[...]&lt;/code&gt; work to group expressions in &lt;math&gt;\LaTeX&lt;/math&gt;. For instance, &lt;code&gt;$(x+y)[z+w]$&lt;/code&gt; gives us &lt;math&gt;(x+y)[z+w].&lt;/math&gt; We can also group expressions using curly braces, but we can't just type &lt;code&gt;{...}&lt;/code&gt;. Rather, we must type &lt;code&gt;\{...\}&lt;/code&gt;. This is because &lt;math&gt;\LaTeX&lt;/math&gt; uses plain curly braces for other things, such as fractions and superscripts and subscripts.<br /> <br /> &lt;br&gt;&lt;br&gt;<br /> <br /> When we put (vertically) large expressions inside of parentheses (or brackets, or curly braces, etc.), the parentheses don't resize to fit the expression and instead remain relatively small. For instance, &lt;code&gt;$$f(x) = \pi(\frac{\sqrt{x}}{x-1})$$&lt;/code&gt; comes out as &lt;cmath&gt;f(x) = \pi(\frac{\sqrt{x}}{x-1}).&lt;/cmath&gt; To automatically adjust the size of parentheses to fit the expression inside of them, we type &lt;code&gt;\left(...\right)&lt;/code&gt;. If we do this for our &lt;math&gt;f&lt;/math&gt; equation above, we get &lt;cmath&gt;f(x) = \pi\left(\frac{\sqrt{x}}{x-1}\right).&lt;/cmath&gt; We can use &lt;code&gt;\left&lt;/code&gt; and &lt;code&gt;\right&lt;/code&gt; for all sorts of things... parentheses (as we saw), brackets &lt;code&gt;$\left[...\right]$&lt;/code&gt;, braces &lt;code&gt;$\left\{...\right\}&lt;/code&gt;, absolute values &lt;code&gt;$\left|...\right|$&lt;/code&gt;, and much more (norms, floor and ceiling functions, inner products, etc.).<br /> <br /> ==== Lists ====<br /> <br /> To make a list, such as a sequence, we use &lt;code&gt;\dots&lt;/code&gt;. For example, &lt;code&gt;$a_0,a_1,\dots,a_n$&lt;/code&gt; will give us &lt;math&gt;a_0,a_1,\dots,a_n.&lt;/math&gt;<br /> <br /> ==== Sums ====<br /> <br /> There are two basic ways to write out sums. First, we can use &lt;code&gt;+&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example of this way would be &lt;code&gt;$a_1+a_2+\cdots+a_n$&lt;/code&gt; This will give us &lt;math&gt;a_1+a_2+\cdots+a_n.&lt;/math&gt; Second, we could use summation notation, or &lt;code&gt;\sum&lt;/code&gt;. Such an example is &lt;code&gt;$\sum_{i=0}^n a_i$&lt;/code&gt;, giving &lt;math&gt;\textstyle \sum_{i=0}^n a_i.&lt;/math&gt; Note the use of superscripts and subscripts to obtain the summation index.<br /> <br /> ==== Products ====<br /> <br /> Again, there are two basic ways to display products. First, we can use &lt;code&gt;\cdot&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example is &lt;code&gt;$n! = n\cdot(n-1)\cdots 2\cdot 1$&lt;/code&gt;, which of course gives &lt;math&gt;n! = n\cdot(n-1)\cdots 2 \cdot 1.&lt;/math&gt; The alternative is to use product notation with &lt;code&gt;\prod&lt;/code&gt;. For instance, &lt;code&gt;$n! = \prod_{k=1}^n k$&lt;/code&gt;, giving &lt;math&gt;\textstyle n! = \prod_{k=1}^n k.&lt;/math&gt;<br /> <br /> === Equalities and Inequalities ===<br /> <br /> ==== Inequalities ====<br /> <br /> the commands &lt;code&gt;&gt;, &lt;, \geq, \leq,&lt;/code&gt; and &lt;code&gt;\neq&lt;/code&gt; give us &lt;math&gt;&gt;,&lt;/math&gt; &lt;math&gt;&lt;,&lt;/math&gt; &lt;math&gt;\geq,&lt;/math&gt; &lt;math&gt;\leq,&lt;/math&gt; and &lt;math&gt;\neq,&lt;/math&gt; respectively.<br /> <br /> ==== Aligning Equations ====<br /> <br /> To align multiple equations, we use the &lt;code&gt;align*&lt;/code&gt; environment. For example, we might type a system of equations as follows:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> (You do not need dollar signs.) The &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to and the \\ symbols break to the next line. This code will output<br /> &lt;cmath&gt;\begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}&lt;/cmath&gt; An example of a string of equations is:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> Again, the &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to, and the \\ symbols break to the next line. This code outputs<br /> &lt;cmath&gt;\begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}&lt;/cmath&gt;<br /> <br /> ==== Numbering Equations ====<br /> <br /> To number equations, we use the &lt;code&gt;align&lt;/code&gt; environment. This is the same environment as the &lt;code&gt;align*&lt;/code&gt; environment, but we leave the &lt;code&gt;*&lt;/code&gt; off. The &lt;code&gt;*&lt;/code&gt; suppresses numbering. To number one equation, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by = c<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by = c.<br /> \end{align} &lt;/cmath&gt; We don't have to use &lt;code&gt;&amp;&lt;/code&gt; or \\ since there is nothing to align and no lines to break. To number several equations, such as a system, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i.<br /> \end{align} &lt;/cmath&gt; In general, &lt;code&gt;align&lt;/code&gt; will auto-number your equations from first to last.<br /> <br /> ==== Comments in Equations ====<br /> <br /> Again, we use the &lt;code&gt;align*&lt;/code&gt; environment. The code<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}<br /> \end{align*}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}.<br /> \end{align*} &lt;/cmath&gt; (You can use &lt;code&gt;align&lt;/code&gt; to get numbering &lt;i&gt;and&lt;/i&gt; comments!)<br /> <br /> ==== Definition by Cases ====<br /> <br /> To define, say, a function by cases, we use the &lt;code&gt;cases&lt;/code&gt; environment. The code<br /> &lt;pre&gt;&lt;nowiki&gt;<br /> $$&lt;/nowiki&gt; \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j \end{cases} &lt;nowiki&gt;$$<br /> &lt;/nowiki&gt;&lt;/pre&gt;<br /> gives us<br /> &lt;cmath&gt;<br /> \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j. \end{cases}<br /> &lt;/cmath&gt; As usual, the &lt;code&gt;&amp;&lt;/code&gt; is for aligning and the \\ is for line-breaking.<br /> <br /> === Commonly Used Commands ===<br /> <br /> ==== Algebra ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Approximate&lt;/b&gt;: &lt;code&gt;x\approx 1.5&lt;/code&gt; gives us &lt;math&gt;x\approx 1.5.&lt;/math&gt;<br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Geometry/Trig ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Degrees Symbol&lt;/b&gt;: &lt;code&gt;90^\circ&lt;/code&gt; gives &lt;math&gt;90^\circ.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Triangle Symbol&lt;/b&gt;: &lt;code&gt;\triangle ABC&lt;/code&gt; gives &lt;math&gt;\triangle ABC.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Parallel Symbol&lt;/b&gt;: &lt;code&gt;AB\parallel XY&lt;/code&gt; gives &lt;math&gt;AB\parallel XY.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Perpendicular Symbol&lt;/b&gt;: &lt;code&gt;AB\perp CD&lt;/code&gt; gives &lt;math&gt;AB\perp CD.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Trig Functions&lt;/b&gt;: &lt;code&gt;\sin\theta&lt;/code&gt;, &lt;code&gt;\cos\theta&lt;/code&gt;, &lt;code&gt;\tan\theta&lt;/code&gt;, &lt;code&gt;\sec\theta&lt;/code&gt;, and &lt;code&gt;\csc\theta&lt;/code&gt; give &lt;math&gt;\sin\theta,&lt;/math&gt; &lt;math&gt;\cos\theta,&lt;/math&gt; &lt;math&gt;\tan\theta,&lt;/math&gt; &lt;math&gt;\sec\theta,&lt;/math&gt; and &lt;math&gt;\csc\theta.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Inverse Trig Functions&lt;/b&gt;: &lt;code&gt;\arcsin\theta&lt;/code&gt;, &lt;code&gt;\arccos\theta&lt;/code&gt;, and &lt;code&gt;\arctan\theta&lt;/code&gt; give &lt;math&gt;\arcsin\theta,&lt;/math&gt; &lt;math&gt;\arccos\theta,&lt;/math&gt; and &lt;math&gt;\arctan\theta.&lt;/math&gt;<br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Counting &amp; Probability ====<br /> <br /> ==== Number Theory ====<br /> <br /> ==== Linear Algebra ====<br /> <br /> ==== Calculus ====<br /> <br /> ==== Sets ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Denoting Membership&lt;/b&gt;: &lt;code&gt;a\in A&lt;/code&gt; gives &lt;math&gt;a\in A.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Complement of Set&lt;/b&gt;: &lt;code&gt;A\setminus B&lt;/code&gt; yields &lt;math&gt;A\setminus B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Set Notation&lt;/b&gt;: &lt;code&gt;\{...\}&lt;/code&gt; gives &lt;math&gt;\{...\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Set-Builder Notation&lt;/b&gt;: &lt;code&gt;\{x\in\mathbb{R}\mid P(x)\}&lt;/code&gt; gives &lt;math&gt;\{x\in\mathbb R \mid P(x)\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Union and Intersection&lt;/b&gt;: &lt;code&gt;A\cup B&lt;/code&gt; and &lt;code&gt;A\cap B&lt;/code&gt; give &lt;math&gt;A\cup B&lt;/math&gt; and &lt;math&gt;A\cap B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt; Indexed Union and Intersection&lt;/b&gt;: &lt;code&gt;\bigcup_{i=1}^n A_i&lt;/code&gt; and &lt;code&gt;\bigcap_{i=1}^n A_i&lt;/code&gt; give &lt;math&gt;\bigcup_{i=1}^n A_i&lt;/math&gt; and &lt;math&gt;\bigcap_{i=1}^n A_i.&lt;/math&gt; Mostly used in display math mode.<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Subset&lt;/b&gt;: &lt;code&gt;A \subseteq B&lt;/code&gt; gives &lt;math&gt;A\subseteq B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Cartesian Product&lt;/b&gt;: &lt;code&gt;A \times B&lt;/code&gt; gives &lt;math&gt;A\times B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Common Sets&lt;/b&gt;: &lt;code&gt;\mathbb{N}&lt;/code&gt;, &lt;code&gt;\mathbb{Z}&lt;/code&gt;, &lt;code&gt;\mathbb{Q}&lt;/code&gt;, &lt;code&gt;\mathbb{R}&lt;/code&gt;, and &lt;code&gt;\mathbb{C}&lt;/code&gt; give us &lt;math&gt;\mathbb N,&lt;/math&gt; &lt;math&gt;\mathbb Z,&lt;/math&gt; &lt;math&gt;\mathbb Q,&lt;/math&gt; &lt;math&gt;\mathbb R,&lt;/math&gt; and &lt;math&gt;\mathbb C.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Cardinality of a Set&lt;/b&gt;: &lt;code&gt;|A|&lt;/code&gt; gives &lt;math&gt;|A|.&lt;/math&gt;<br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Logic ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Implication&lt;/b&gt;: &lt;code&gt;A\implies B&lt;/code&gt; gives &lt;math&gt;A\implies B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Biconditional&lt;/b&gt;: &lt;code&gt;A\iff B&lt;/code&gt; yields &lt;math&gt;A\iff B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;And/Or&lt;/b&gt;: &lt;code&gt;A\land B&lt;/code&gt; and &lt;code&gt;A\lor B&lt;/code&gt; give &lt;math&gt;A\land B&lt;/math&gt; and &lt;math&gt;A\lor B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Negation&lt;/b&gt;: &lt;code&gt;\neg A&lt;/code&gt; gives &lt;math&gt;\neg A.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;/ul&gt;</div> 5space https://artofproblemsolving.com/wiki/index.php?title=LaTeX:LaTeX_on_AoPS&diff=72476 LaTeX:LaTeX on AoPS 2015-10-15T18:56:30Z <p>5space: /* Logic */</p> <hr /> <div>{{Latex}}<br /> <br /> This article explains how to use LaTeX in the AoPSWiki, the AoPS Community, and the AoPS Classroom. See [http://artofproblemsolving.com/wiki/index.php/LaTeX:Packages Packages] to know which packages are prebuilt into the AoPS site.<br /> <br /> <br /> ----<br /> == Getting Started with LaTeX ==<br /> <br /> === The Very Basics ===<br /> <br /> LaTeX uses a special &quot;math mode&quot; to display mathematics. There are two types of this &quot;math mode&quot;:<br /> <br /> ==== In-line Math Mode ====<br /> <br /> In in-line math mode, we use &lt;code&gt;$&lt;/code&gt; signs to enclose the math we want to display, and it displays in-line with our text. For example, typing &lt;code&gt;$\sqrt{x} = 5$&lt;/code&gt; gives us &lt;math&gt;\sqrt{x} = 5.&lt;/math&gt;<br /> <br /> ==== Display Math Mode ====<br /> <br /> In display math mode, we enclose our code in double dollar signs, and it displays the math centered and on its own line. For example, &lt;code&gt;$$\sqrt{x} = 5$$&lt;/code&gt; gives us &lt;cmath&gt;\sqrt{x} = 5.&lt;/cmath&gt;<br /> <br /> ==== In-line vs. Display ====<br /> <br /> Besides displaying in-line vs. displaying centered and on a new line, the two modes render differently in other ways. Note that &lt;code&gt;$\sum_{k=1}^n k^2$&lt;/code&gt; gives us &lt;math&gt;\textstyle\sum_{k=1}^n k^2,&lt;/math&gt; whereas &lt;code&gt;$$\sum_{k=1}^n k^2$$&lt;/code&gt; gives us &lt;cmath&gt;\sum_{k=1}^n k^2.&lt;/cmath&gt;<br /> <br /> === Basic Expressions ===<br /> <br /> ==== Multiplication ====<br /> <br /> Sometimes, when we're multiplying, we don't need a multiplication symbol. For instance, we can write &lt;math&gt;xy&lt;/math&gt; instead of &lt;math&gt;x\cdot y&lt;/math&gt; without ambiguity. However, when you're multiplying numbers, for instance, a multiplication symbol comes in handy. The standard symbol is given by &lt;code&gt;$\cdot$&lt;/code&gt;. For example, &lt;code&gt;$12\cdot\frac{1}{2}$&lt;/code&gt; gives us &lt;math&gt;\textstyle 12\cdot \frac 12.&lt;/math&gt;<br /> <br /> ==== Fractions ====<br /> <br /> We can make fractions via &lt;code&gt;$\frac{...}{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\frac{x+y}{2}$&lt;/code&gt; will give us &lt;math&gt;\textstyle\frac{x+y}{2}.&lt;/math&gt;<br /> <br /> ==== Roots ====<br /> <br /> Square roots in &lt;math&gt;\LaTeX&lt;/math&gt; are pretty simple; we just type &lt;code&gt;$\sqrt{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{2}$&lt;/code&gt; gives us &lt;math&gt;\sqrt 2.&lt;/math&gt; Cube roots, fourth roots, and so on are only slightly more difficult; we type &lt;code&gt;$\sqrt[n]{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{x-y}$&lt;/code&gt; gives &lt;math&gt;\sqrt{x-y}.&lt;/math&gt;<br /> <br /> ==== Superscripts &amp; Subscripts ====<br /> <br /> To get superscripts (or exponents), we use the caret symbol &lt;code&gt;^&lt;/code&gt;. Typing &lt;code&gt;$x^2+y^2$&lt;/code&gt; gives &lt;math&gt;x^2+y^2.&lt;/math&gt; Subscripts are obtained via an underscore (holding shift and the minus sign on most keyboards). For instance, &lt;code&gt;$a_k$&lt;/code&gt; yields &lt;math&gt;a_k.&lt;/math&gt;<br /> <br /> ==== Groups ====<br /> <br /> Most operations in &lt;math&gt;\LaTeX&lt;/math&gt; (such as superscripts and subscripts) can only see the &quot;group&quot; of characters immediately following it. We use curly braces &lt;code&gt;{...}&lt;/code&gt; to indicate groups longer than one character. For instance, if we wrote &lt;code&gt;$x^2015$&lt;/code&gt;, we'd expect to get &lt;math&gt;x^{2015},&lt;/math&gt; but we instead get &lt;math&gt;x^2015.&lt;/math&gt; This is because each character in the string &lt;code&gt;2015&lt;/code&gt; is in its own group until we tell &lt;math&gt;\LaTeX&lt;/math&gt; that &lt;code&gt;2015&lt;/code&gt; should be one whole group. To convey this information to &lt;math&gt;\LaTeX&lt;/math&gt;, we write &lt;code&gt;$x^{2015}$&lt;/code&gt; and we get &lt;math&gt;x^{2015}.&lt;/math&gt;<br /> <br /> === Beyond the Basic Expressions ===<br /> <br /> ==== Grouping Basic Expressions ====<br /> <br /> Our ordinary parentheses &lt;code&gt;(...)&lt;/code&gt; and brackets &lt;code&gt;[...]&lt;/code&gt; work to group expressions in &lt;math&gt;\LaTeX&lt;/math&gt;. For instance, &lt;code&gt;$(x+y)[z+w]$&lt;/code&gt; gives us &lt;math&gt;(x+y)[z+w].&lt;/math&gt; We can also group expressions using curly braces, but we can't just type &lt;code&gt;{...}&lt;/code&gt;. Rather, we must type &lt;code&gt;\{...\}&lt;/code&gt;. This is because &lt;math&gt;\LaTeX&lt;/math&gt; uses plain curly braces for other things, such as fractions and superscripts and subscripts.<br /> <br /> &lt;br&gt;&lt;br&gt;<br /> <br /> When we put (vertically) large expressions inside of parentheses (or brackets, or curly braces, etc.), the parentheses don't resize to fit the expression and instead remain relatively small. For instance, &lt;code&gt;$$f(x) = \pi(\frac{\sqrt{x}}{x-1})$$&lt;/code&gt; comes out as &lt;cmath&gt;f(x) = \pi(\frac{\sqrt{x}}{x-1}).&lt;/cmath&gt; To automatically adjust the size of parentheses to fit the expression inside of them, we type &lt;code&gt;\left(...\right)&lt;/code&gt;. If we do this for our &lt;math&gt;f&lt;/math&gt; equation above, we get &lt;cmath&gt;f(x) = \pi\left(\frac{\sqrt{x}}{x-1}\right).&lt;/cmath&gt; We can use &lt;code&gt;\left&lt;/code&gt; and &lt;code&gt;\right&lt;/code&gt; for all sorts of things... parentheses (as we saw), brackets &lt;code&gt;$\left[...\right]$&lt;/code&gt;, braces &lt;code&gt;$\left\{...\right\}&lt;/code&gt;, absolute values &lt;code&gt;$\left|...\right|$&lt;/code&gt;, and much more (norms, floor and ceiling functions, inner products, etc.).<br /> <br /> ==== Lists ====<br /> <br /> To make a list, such as a sequence, we use &lt;code&gt;\dots&lt;/code&gt;. For example, &lt;code&gt;$a_0,a_1,\dots,a_n$&lt;/code&gt; will give us &lt;math&gt;a_0,a_1,\dots,a_n.&lt;/math&gt;<br /> <br /> ==== Sums ====<br /> <br /> There are two basic ways to write out sums. First, we can use &lt;code&gt;+&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example of this way would be &lt;code&gt;$a_1+a_2+\cdots+a_n$&lt;/code&gt; This will give us &lt;math&gt;a_1+a_2+\cdots+a_n.&lt;/math&gt; Second, we could use summation notation, or &lt;code&gt;\sum&lt;/code&gt;. Such an example is &lt;code&gt;$\sum_{i=0}^n a_i$&lt;/code&gt;, giving &lt;math&gt;\textstyle \sum_{i=0}^n a_i.&lt;/math&gt; Note the use of superscripts and subscripts to obtain the summation index.<br /> <br /> ==== Products ====<br /> <br /> Again, there are two basic ways to display products. First, we can use &lt;code&gt;\cdot&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example is &lt;code&gt;$n! = n\cdot(n-1)\cdots 2\cdot 1$&lt;/code&gt;, which of course gives &lt;math&gt;n! = n\cdot(n-1)\cdots 2 \cdot 1.&lt;/math&gt; The alternative is to use product notation with &lt;code&gt;\prod&lt;/code&gt;. For instance, &lt;code&gt;$n! = \prod_{k=1}^n k$&lt;/code&gt;, giving &lt;math&gt;\textstyle n! = \prod_{k=1}^n k.&lt;/math&gt;<br /> <br /> === Equalities and Inequalities ===<br /> <br /> ==== Inequalities ====<br /> <br /> the commands &lt;code&gt;&gt;, &lt;, \geq, \leq,&lt;/code&gt; and &lt;code&gt;\neq&lt;/code&gt; give us &lt;math&gt;&gt;,&lt;/math&gt; &lt;math&gt;&lt;,&lt;/math&gt; &lt;math&gt;\geq,&lt;/math&gt; &lt;math&gt;\leq,&lt;/math&gt; and &lt;math&gt;\neq,&lt;/math&gt; respectively.<br /> <br /> ==== Aligning Equations ====<br /> <br /> To align multiple equations, we use the &lt;code&gt;align*&lt;/code&gt; environment. For example, we might type a system of equations as follows:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> (You do not need dollar signs.) The &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to and the \\ symbols break to the next line. This code will output<br /> &lt;cmath&gt;\begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}&lt;/cmath&gt; An example of a string of equations is:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> Again, the &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to, and the \\ symbols break to the next line. This code outputs<br /> &lt;cmath&gt;\begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}&lt;/cmath&gt;<br /> <br /> ==== Numbering Equations ====<br /> <br /> To number equations, we use the &lt;code&gt;align&lt;/code&gt; environment. This is the same environment as the &lt;code&gt;align*&lt;/code&gt; environment, but we leave the &lt;code&gt;*&lt;/code&gt; off. The &lt;code&gt;*&lt;/code&gt; suppresses numbering. To number one equation, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by = c<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by = c.<br /> \end{align} &lt;/cmath&gt; We don't have to use &lt;code&gt;&amp;&lt;/code&gt; or \\ since there is nothing to align and no lines to break. To number several equations, such as a system, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i.<br /> \end{align} &lt;/cmath&gt; In general, &lt;code&gt;align&lt;/code&gt; will auto-number your equations from first to last.<br /> <br /> ==== Comments in Equations ====<br /> <br /> Again, we use the &lt;code&gt;align*&lt;/code&gt; environment. The code<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}<br /> \end{align*}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}.<br /> \end{align*} &lt;/cmath&gt; (You can use &lt;code&gt;align&lt;/code&gt; to get numbering &lt;i&gt;and&lt;/i&gt; comments!)<br /> <br /> ==== Definition by Cases ====<br /> <br /> To define, say, a function by cases, we use the &lt;code&gt;cases&lt;/code&gt; environment. The code<br /> &lt;pre&gt;&lt;nowiki&gt;<br /> $$&lt;/nowiki&gt; \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j \end{cases} &lt;nowiki&gt;$$<br /> &lt;/nowiki&gt;&lt;/pre&gt;<br /> gives us<br /> &lt;cmath&gt;<br /> \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j. \end{cases}<br /> &lt;/cmath&gt; As usual, the &lt;code&gt;&amp;&lt;/code&gt; is for aligning and the \\ is for line-breaking.<br /> <br /> === Commonly Used Commands ===<br /> <br /> ==== Algebra ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> <br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Geometry/Trig ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Degrees Symbol&lt;/b&gt;: &lt;code&gt;90^\circ&lt;/code&gt; gives &lt;math&gt;90^\circ.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Triangle Symbol&lt;/b&gt;: &lt;code&gt;\triangle ABC&lt;/code&gt; gives &lt;math&gt;\triangle ABC.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Parallel Symbol&lt;/b&gt;: &lt;code&gt;AB\parallel XY&lt;/code&gt; gives &lt;math&gt;AB\parallel XY.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Perpendicular Symbol&lt;/b&gt;: &lt;code&gt;AB\perp CD&lt;/code&gt; gives &lt;math&gt;AB\perp CD.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Trig Functions&lt;/b&gt;: &lt;code&gt;\sin\theta&lt;/code&gt;, &lt;code&gt;\cos\theta&lt;/code&gt;, &lt;code&gt;\tan\theta&lt;/code&gt;, &lt;code&gt;\sec\theta&lt;/code&gt;, and &lt;code&gt;\csc\theta&lt;/code&gt; give &lt;math&gt;\sin\theta,&lt;/math&gt; &lt;math&gt;\cos\theta,&lt;/math&gt; &lt;math&gt;\tan\theta,&lt;/math&gt; &lt;math&gt;\sec\theta,&lt;/math&gt; and &lt;math&gt;\csc\theta.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Inverse Trig Functions&lt;/b&gt;: &lt;code&gt;\arcsin\theta&lt;/code&gt;, &lt;code&gt;\arccos\theta&lt;/code&gt;, and &lt;code&gt;\arctan\theta&lt;/code&gt; give &lt;math&gt;\arcsin\theta,&lt;/math&gt; &lt;math&gt;\arccos\theta,&lt;/math&gt; and &lt;math&gt;\arctan\theta.&lt;/math&gt;<br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Counting &amp; Probability ====<br /> <br /> ==== Number Theory ====<br /> <br /> ==== Linear Algebra ====<br /> <br /> ==== Calculus ====<br /> <br /> ==== Sets ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Denoting Membership&lt;/b&gt;: &lt;code&gt;a\in A&lt;/code&gt; gives &lt;math&gt;a\in A.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Complement of Set&lt;/b&gt;: &lt;code&gt;A\setminus B&lt;/code&gt; yields &lt;math&gt;A\setminus B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Set Notation&lt;/b&gt;: &lt;code&gt;\{...\}&lt;/code&gt; gives &lt;math&gt;\{...\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Set-Builder Notation&lt;/b&gt;: &lt;code&gt;\{x\in\mathbb{R}\mid P(x)\}&lt;/code&gt; gives &lt;math&gt;\{x\in\mathbb R \mid P(x)\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Union and Intersection&lt;/b&gt;: &lt;code&gt;A\cup B&lt;/code&gt; and &lt;code&gt;A\cap B&lt;/code&gt; give &lt;math&gt;A\cup B&lt;/math&gt; and &lt;math&gt;A\cap B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt; Indexed Union and Intersection&lt;/b&gt;: &lt;code&gt;\bigcup_{i=1}^n A_i&lt;/code&gt; and &lt;code&gt;\bigcap_{i=1}^n A_i&lt;/code&gt; give &lt;math&gt;\bigcup_{i=1}^n A_i&lt;/math&gt; and &lt;math&gt;\bigcap_{i=1}^n A_i.&lt;/math&gt; Mostly used in display math mode.<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Subset&lt;/b&gt;: &lt;code&gt;A \subseteq B&lt;/code&gt; gives &lt;math&gt;A\subseteq B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Cartesian Product&lt;/b&gt;: &lt;code&gt;A \times B&lt;/code&gt; gives &lt;math&gt;A\times B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Common Sets&lt;/b&gt;: &lt;code&gt;\mathbb{N}&lt;/code&gt;, &lt;code&gt;\mathbb{Z}&lt;/code&gt;, &lt;code&gt;\mathbb{Q}&lt;/code&gt;, &lt;code&gt;\mathbb{R}&lt;/code&gt;, and &lt;code&gt;\mathbb{C}&lt;/code&gt; give us &lt;math&gt;\mathbb N,&lt;/math&gt; &lt;math&gt;\mathbb Z,&lt;/math&gt; &lt;math&gt;\mathbb Q,&lt;/math&gt; &lt;math&gt;\mathbb R,&lt;/math&gt; and &lt;math&gt;\mathbb C.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Cardinality of a Set&lt;/b&gt;: &lt;code&gt;|A|&lt;/code&gt; gives &lt;math&gt;|A|.&lt;/math&gt;<br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Logic ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Implication&lt;/b&gt;: &lt;code&gt;A\implies B&lt;/code&gt; gives &lt;math&gt;A\implies B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Biconditional&lt;/b&gt;: &lt;code&gt;A\iff B&lt;/code&gt; yields &lt;math&gt;A\iff B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;And/Or&lt;/b&gt;: &lt;code&gt;A\land B&lt;/code&gt; and &lt;code&gt;A\lor B&lt;/code&gt; give &lt;math&gt;A\land B&lt;/math&gt; and &lt;math&gt;A\lor B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Negation&lt;/b&gt;: &lt;code&gt;\neg A&lt;/code&gt; gives &lt;math&gt;\neg A.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;/ul&gt;</div> 5space https://artofproblemsolving.com/wiki/index.php?title=LaTeX:LaTeX_on_AoPS&diff=72390 LaTeX:LaTeX on AoPS 2015-10-05T23:07:26Z <p>5space: /* Geometry/Trig */</p> <hr /> <div>{{Latex}}<br /> <br /> This article explains how to use LaTeX in the AoPSWiki, the AoPS Community, and the AoPS Classroom. See [http://artofproblemsolving.com/wiki/index.php/LaTeX:Packages Packages] to know which packages are prebuilt into the AoPS site.<br /> <br /> <br /> ----<br /> == Getting Started with LaTeX ==<br /> <br /> === The Very Basics ===<br /> <br /> LaTeX uses a special &quot;math mode&quot; to display mathematics. There are two types of this &quot;math mode&quot;:<br /> <br /> ==== In-line Math Mode ====<br /> <br /> In in-line math mode, we use &lt;code&gt;$&lt;/code&gt; signs to enclose the math we want to display, and it displays in-line with our text. For example, typing &lt;code&gt;$\sqrt{x} = 5$&lt;/code&gt; gives us &lt;math&gt;\sqrt{x} = 5.&lt;/math&gt;<br /> <br /> ==== Display Math Mode ====<br /> <br /> In display math mode, we enclose our code in double dollar signs, and it displays the math centered and on its own line. For example, &lt;code&gt;$$\sqrt{x} = 5$$&lt;/code&gt; gives us &lt;cmath&gt;\sqrt{x} = 5.&lt;/cmath&gt;<br /> <br /> ==== In-line vs. Display ====<br /> <br /> Besides displaying in-line vs. displaying centered and on a new line, the two modes render differently in other ways. Note that &lt;code&gt;$\sum_{k=1}^n k^2$&lt;/code&gt; gives us &lt;math&gt;\textstyle\sum_{k=1}^n k^2,&lt;/math&gt; whereas &lt;code&gt;$$\sum_{k=1}^n k^2$$&lt;/code&gt; gives us &lt;cmath&gt;\sum_{k=1}^n k^2.&lt;/cmath&gt;<br /> <br /> === Basic Expressions ===<br /> <br /> ==== Multiplication ====<br /> <br /> Sometimes, when we're multiplying, we don't need a multiplication symbol. For instance, we can write &lt;math&gt;xy&lt;/math&gt; instead of &lt;math&gt;x\cdot y&lt;/math&gt; without ambiguity. However, when you're multiplying numbers, for instance, a multiplication symbol comes in handy. The standard symbol is given by &lt;code&gt;$\cdot$&lt;/code&gt;. For example, &lt;code&gt;$12\cdot\frac{1}{2}$&lt;/code&gt; gives us &lt;math&gt;\textstyle 12\cdot \frac 12.&lt;/math&gt;<br /> <br /> ==== Fractions ====<br /> <br /> We can make fractions via &lt;code&gt;$\frac{...}{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\frac{x+y}{2}$&lt;/code&gt; will give us &lt;math&gt;\textstyle\frac{x+y}{2}.&lt;/math&gt;<br /> <br /> ==== Roots ====<br /> <br /> Square roots in &lt;math&gt;\LaTeX&lt;/math&gt; are pretty simple; we just type &lt;code&gt;$\sqrt{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{2}$&lt;/code&gt; gives us &lt;math&gt;\sqrt 2.&lt;/math&gt; Cube roots, fourth roots, and so on are only slightly more difficult; we type &lt;code&gt;$\sqrt[n]{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{x-y}$&lt;/code&gt; gives &lt;math&gt;\sqrt{x-y}.&lt;/math&gt;<br /> <br /> ==== Superscripts &amp; Subscripts ====<br /> <br /> To get superscripts (or exponents), we use the caret symbol &lt;code&gt;^&lt;/code&gt;. Typing &lt;code&gt;$x^2+y^2$&lt;/code&gt; gives &lt;math&gt;x^2+y^2.&lt;/math&gt; Subscripts are obtained via an underscore (holding shift and the minus sign on most keyboards). For instance, &lt;code&gt;$a_k$&lt;/code&gt; yields &lt;math&gt;a_k.&lt;/math&gt;<br /> <br /> ==== Groups ====<br /> <br /> Most operations in &lt;math&gt;\LaTeX&lt;/math&gt; (such as superscripts and subscripts) can only see the &quot;group&quot; of characters immediately following it. We use curly braces &lt;code&gt;{...}&lt;/code&gt; to indicate groups longer than one character. For instance, if we wrote &lt;code&gt;$x^2015$&lt;/code&gt;, we'd expect to get &lt;math&gt;x^{2015},&lt;/math&gt; but we instead get &lt;math&gt;x^2015.&lt;/math&gt; This is because each character in the string &lt;code&gt;2015&lt;/code&gt; is in its own group until we tell &lt;math&gt;\LaTeX&lt;/math&gt; that &lt;code&gt;2015&lt;/code&gt; should be one whole group. To convey this information to &lt;math&gt;\LaTeX&lt;/math&gt;, we write &lt;code&gt;$x^{2015}$&lt;/code&gt; and we get &lt;math&gt;x^{2015}.&lt;/math&gt;<br /> <br /> === Beyond the Basic Expressions ===<br /> <br /> ==== Grouping Basic Expressions ====<br /> <br /> Our ordinary parentheses &lt;code&gt;(...)&lt;/code&gt; and brackets &lt;code&gt;[...]&lt;/code&gt; work to group expressions in &lt;math&gt;\LaTeX&lt;/math&gt;. For instance, &lt;code&gt;$(x+y)[z+w]$&lt;/code&gt; gives us &lt;math&gt;(x+y)[z+w].&lt;/math&gt; We can also group expressions using curly braces, but we can't just type &lt;code&gt;{...}&lt;/code&gt;. Rather, we must type &lt;code&gt;\{...\}&lt;/code&gt;. This is because &lt;math&gt;\LaTeX&lt;/math&gt; uses plain curly braces for other things, such as fractions and superscripts and subscripts.<br /> <br /> &lt;br&gt;&lt;br&gt;<br /> <br /> When we put (vertically) large expressions inside of parentheses (or brackets, or curly braces, etc.), the parentheses don't resize to fit the expression and instead remain relatively small. For instance, &lt;code&gt;$$f(x) = \pi(\frac{\sqrt{x}}{x-1})$$&lt;/code&gt; comes out as &lt;cmath&gt;f(x) = \pi(\frac{\sqrt{x}}{x-1}).&lt;/cmath&gt; To automatically adjust the size of parentheses to fit the expression inside of them, we type &lt;code&gt;\left(...\right)&lt;/code&gt;. If we do this for our &lt;math&gt;f&lt;/math&gt; equation above, we get &lt;cmath&gt;f(x) = \pi\left(\frac{\sqrt{x}}{x-1}\right).&lt;/cmath&gt; We can use &lt;code&gt;\left&lt;/code&gt; and &lt;code&gt;\right&lt;/code&gt; for all sorts of things... parentheses (as we saw), brackets &lt;code&gt;$\left[...\right]$&lt;/code&gt;, braces &lt;code&gt;$\left\{...\right\}&lt;/code&gt;, absolute values &lt;code&gt;$\left|...\right|$&lt;/code&gt;, and much more (norms, floor and ceiling functions, inner products, etc.).<br /> <br /> ==== Lists ====<br /> <br /> To make a list, such as a sequence, we use &lt;code&gt;\dots&lt;/code&gt;. For example, &lt;code&gt;$a_0,a_1,\dots,a_n$&lt;/code&gt; will give us &lt;math&gt;a_0,a_1,\dots,a_n.&lt;/math&gt;<br /> <br /> ==== Sums ====<br /> <br /> There are two basic ways to write out sums. First, we can use &lt;code&gt;+&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example of this way would be &lt;code&gt;$a_1+a_2+\cdots+a_n$&lt;/code&gt; This will give us &lt;math&gt;a_1+a_2+\cdots+a_n.&lt;/math&gt; Second, we could use summation notation, or &lt;code&gt;\sum&lt;/code&gt;. Such an example is &lt;code&gt;$\sum_{i=0}^n a_i$&lt;/code&gt;, giving &lt;math&gt;\textstyle \sum_{i=0}^n a_i.&lt;/math&gt; Note the use of superscripts and subscripts to obtain the summation index.<br /> <br /> ==== Products ====<br /> <br /> Again, there are two basic ways to display products. First, we can use &lt;code&gt;\cdot&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example is &lt;code&gt;$n! = n\cdot(n-1)\cdots 2\cdot 1$&lt;/code&gt;, which of course gives &lt;math&gt;n! = n\cdot(n-1)\cdots 2 \cdot 1.&lt;/math&gt; The alternative is to use product notation with &lt;code&gt;\prod&lt;/code&gt;. For instance, &lt;code&gt;$n! = \prod_{k=1}^n k$&lt;/code&gt;, giving &lt;math&gt;\textstyle n! = \prod_{k=1}^n k.&lt;/math&gt;<br /> <br /> === Equalities and Inequalities ===<br /> <br /> ==== Inequalities ====<br /> <br /> the commands &lt;code&gt;&gt;, &lt;, \geq, \leq,&lt;/code&gt; and &lt;code&gt;\neq&lt;/code&gt; give us &lt;math&gt;&gt;,&lt;/math&gt; &lt;math&gt;&lt;,&lt;/math&gt; &lt;math&gt;\geq,&lt;/math&gt; &lt;math&gt;\leq,&lt;/math&gt; and &lt;math&gt;\neq,&lt;/math&gt; respectively.<br /> <br /> ==== Aligning Equations ====<br /> <br /> To align multiple equations, we use the &lt;code&gt;align*&lt;/code&gt; environment. For example, we might type a system of equations as follows:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> (You do not need dollar signs.) The &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to and the \\ symbols break to the next line. This code will output<br /> &lt;cmath&gt;\begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}&lt;/cmath&gt; An example of a string of equations is:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> Again, the &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to, and the \\ symbols break to the next line. This code outputs<br /> &lt;cmath&gt;\begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}&lt;/cmath&gt;<br /> <br /> ==== Numbering Equations ====<br /> <br /> To number equations, we use the &lt;code&gt;align&lt;/code&gt; environment. This is the same environment as the &lt;code&gt;align*&lt;/code&gt; environment, but we leave the &lt;code&gt;*&lt;/code&gt; off. The &lt;code&gt;*&lt;/code&gt; suppresses numbering. To number one equation, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by = c<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by = c.<br /> \end{align} &lt;/cmath&gt; We don't have to use &lt;code&gt;&amp;&lt;/code&gt; or \\ since there is nothing to align and no lines to break. To number several equations, such as a system, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i.<br /> \end{align} &lt;/cmath&gt; In general, &lt;code&gt;align&lt;/code&gt; will auto-number your equations from first to last.<br /> <br /> ==== Comments in Equations ====<br /> <br /> Again, we use the &lt;code&gt;align*&lt;/code&gt; environment. The code<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}<br /> \end{align*}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}.<br /> \end{align*} &lt;/cmath&gt; (You can use &lt;code&gt;align&lt;/code&gt; to get numbering &lt;i&gt;and&lt;/i&gt; comments!)<br /> <br /> ==== Definition by Cases ====<br /> <br /> To define, say, a function by cases, we use the &lt;code&gt;cases&lt;/code&gt; environment. The code<br /> &lt;pre&gt;&lt;nowiki&gt;<br /> $$&lt;/nowiki&gt; \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j \end{cases} &lt;nowiki&gt;$$<br /> &lt;/nowiki&gt;&lt;/pre&gt;<br /> gives us<br /> &lt;cmath&gt;<br /> \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j. \end{cases}<br /> &lt;/cmath&gt; As usual, the &lt;code&gt;&amp;&lt;/code&gt; is for aligning and the \\ is for line-breaking.<br /> <br /> === Commonly Used Commands ===<br /> <br /> ==== Algebra ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> <br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Geometry/Trig ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Degrees Symbol&lt;/b&gt;: &lt;code&gt;90^\circ&lt;/code&gt; gives &lt;math&gt;90^\circ.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Triangle Symbol&lt;/b&gt;: &lt;code&gt;\triangle ABC&lt;/code&gt; gives &lt;math&gt;\triangle ABC.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Parallel Symbol&lt;/b&gt;: &lt;code&gt;AB\parallel XY&lt;/code&gt; gives &lt;math&gt;AB\parallel XY.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Perpendicular Symbol&lt;/b&gt;: &lt;code&gt;AB\perp CD&lt;/code&gt; gives &lt;math&gt;AB\perp CD.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Trig Functions&lt;/b&gt;: &lt;code&gt;\sin\theta&lt;/code&gt;, &lt;code&gt;\cos\theta&lt;/code&gt;, &lt;code&gt;\tan\theta&lt;/code&gt;, &lt;code&gt;\sec\theta&lt;/code&gt;, and &lt;code&gt;\csc\theta&lt;/code&gt; give &lt;math&gt;\sin\theta,&lt;/math&gt; &lt;math&gt;\cos\theta,&lt;/math&gt; &lt;math&gt;\tan\theta,&lt;/math&gt; &lt;math&gt;\sec\theta,&lt;/math&gt; and &lt;math&gt;\csc\theta.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Inverse Trig Functions&lt;/b&gt;: &lt;code&gt;\arcsin\theta&lt;/code&gt;, &lt;code&gt;\arccos\theta&lt;/code&gt;, and &lt;code&gt;\arctan\theta&lt;/code&gt; give &lt;math&gt;\arcsin\theta,&lt;/math&gt; &lt;math&gt;\arccos\theta,&lt;/math&gt; and &lt;math&gt;\arctan\theta.&lt;/math&gt;<br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Counting &amp; Probability ====<br /> <br /> ==== Number Theory ====<br /> <br /> ==== Linear Algebra ====<br /> <br /> ==== Calculus ====<br /> <br /> ==== Sets ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Denoting Membership&lt;/b&gt;: &lt;code&gt;a\in A&lt;/code&gt; gives &lt;math&gt;a\in A.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Complement of Set&lt;/b&gt;: &lt;code&gt;A\setminus B&lt;/code&gt; yields &lt;math&gt;A\setminus B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Set Notation&lt;/b&gt;: &lt;code&gt;\{...\}&lt;/code&gt; gives &lt;math&gt;\{...\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Set-Builder Notation&lt;/b&gt;: &lt;code&gt;\{x\in\mathbb{R}\mid P(x)\}&lt;/code&gt; gives &lt;math&gt;\{x\in\mathbb R \mid P(x)\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Union and Intersection&lt;/b&gt;: &lt;code&gt;A\cup B&lt;/code&gt; and &lt;code&gt;A\cap B&lt;/code&gt; give &lt;math&gt;A\cup B&lt;/math&gt; and &lt;math&gt;A\cap B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt; Indexed Union and Intersection&lt;/b&gt;: &lt;code&gt;\bigcup_{i=1}^n A_i&lt;/code&gt; and &lt;code&gt;\bigcap_{i=1}^n A_i&lt;/code&gt; give &lt;math&gt;\bigcup_{i=1}^n A_i&lt;/math&gt; and &lt;math&gt;\bigcap_{i=1}^n A_i.&lt;/math&gt; Mostly used in display math mode.<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Subset&lt;/b&gt;: &lt;code&gt;A \subseteq B&lt;/code&gt; gives &lt;math&gt;A\subseteq B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Cartesian Product&lt;/b&gt;: &lt;code&gt;A \times B&lt;/code&gt; gives &lt;math&gt;A\times B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Common Sets&lt;/b&gt;: &lt;code&gt;\mathbb{N}&lt;/code&gt;, &lt;code&gt;\mathbb{Z}&lt;/code&gt;, &lt;code&gt;\mathbb{Q}&lt;/code&gt;, &lt;code&gt;\mathbb{R}&lt;/code&gt;, and &lt;code&gt;\mathbb{C}&lt;/code&gt; give us &lt;math&gt;\mathbb N,&lt;/math&gt; &lt;math&gt;\mathbb Z,&lt;/math&gt; &lt;math&gt;\mathbb Q,&lt;/math&gt; &lt;math&gt;\mathbb R,&lt;/math&gt; and &lt;math&gt;\mathbb C.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Cardinality of a Set&lt;/b&gt;: &lt;code&gt;|A|&lt;/code&gt; gives &lt;math&gt;|A|.&lt;/math&gt;<br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Logic ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Implication&lt;/b&gt;: &lt;code&gt;A\implies B&lt;/code&gt; gives &lt;math&gt;A\implies B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Biconditional&lt;/b&gt;: &lt;code&gt;A\iff B&lt;/code&gt; yields &lt;math&gt;A\iff B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Connectives&lt;/b&gt;: &lt;code&gt;A\land B&lt;/code&gt; and &lt;code&gt;A\lor B&lt;/code&gt; give &lt;math&gt;A\land B&lt;/math&gt; and &lt;math&gt;A\lor B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Negation&lt;/b&gt;: &lt;code&gt;\neg A&lt;/code&gt; gives &lt;math&gt;\neg A.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;/ul&gt;</div> 5space https://artofproblemsolving.com/wiki/index.php?title=LaTeX:LaTeX_on_AoPS&diff=72389 LaTeX:LaTeX on AoPS 2015-10-05T23:05:58Z <p>5space: /* Geometry/Trig */</p> <hr /> <div>{{Latex}}<br /> <br /> This article explains how to use LaTeX in the AoPSWiki, the AoPS Community, and the AoPS Classroom. See [http://artofproblemsolving.com/wiki/index.php/LaTeX:Packages Packages] to know which packages are prebuilt into the AoPS site.<br /> <br /> <br /> ----<br /> == Getting Started with LaTeX ==<br /> <br /> === The Very Basics ===<br /> <br /> LaTeX uses a special &quot;math mode&quot; to display mathematics. There are two types of this &quot;math mode&quot;:<br /> <br /> ==== In-line Math Mode ====<br /> <br /> In in-line math mode, we use &lt;code&gt;$&lt;/code&gt; signs to enclose the math we want to display, and it displays in-line with our text. For example, typing &lt;code&gt;$\sqrt{x} = 5$&lt;/code&gt; gives us &lt;math&gt;\sqrt{x} = 5.&lt;/math&gt;<br /> <br /> ==== Display Math Mode ====<br /> <br /> In display math mode, we enclose our code in double dollar signs, and it displays the math centered and on its own line. For example, &lt;code&gt;$$\sqrt{x} = 5$$&lt;/code&gt; gives us &lt;cmath&gt;\sqrt{x} = 5.&lt;/cmath&gt;<br /> <br /> ==== In-line vs. Display ====<br /> <br /> Besides displaying in-line vs. displaying centered and on a new line, the two modes render differently in other ways. Note that &lt;code&gt;$\sum_{k=1}^n k^2$&lt;/code&gt; gives us &lt;math&gt;\textstyle\sum_{k=1}^n k^2,&lt;/math&gt; whereas &lt;code&gt;$$\sum_{k=1}^n k^2$$&lt;/code&gt; gives us &lt;cmath&gt;\sum_{k=1}^n k^2.&lt;/cmath&gt;<br /> <br /> === Basic Expressions ===<br /> <br /> ==== Multiplication ====<br /> <br /> Sometimes, when we're multiplying, we don't need a multiplication symbol. For instance, we can write &lt;math&gt;xy&lt;/math&gt; instead of &lt;math&gt;x\cdot y&lt;/math&gt; without ambiguity. However, when you're multiplying numbers, for instance, a multiplication symbol comes in handy. The standard symbol is given by &lt;code&gt;$\cdot$&lt;/code&gt;. For example, &lt;code&gt;$12\cdot\frac{1}{2}$&lt;/code&gt; gives us &lt;math&gt;\textstyle 12\cdot \frac 12.&lt;/math&gt;<br /> <br /> ==== Fractions ====<br /> <br /> We can make fractions via &lt;code&gt;$\frac{...}{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\frac{x+y}{2}$&lt;/code&gt; will give us &lt;math&gt;\textstyle\frac{x+y}{2}.&lt;/math&gt;<br /> <br /> ==== Roots ====<br /> <br /> Square roots in &lt;math&gt;\LaTeX&lt;/math&gt; are pretty simple; we just type &lt;code&gt;$\sqrt{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{2}$&lt;/code&gt; gives us &lt;math&gt;\sqrt 2.&lt;/math&gt; Cube roots, fourth roots, and so on are only slightly more difficult; we type &lt;code&gt;$\sqrt[n]{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{x-y}$&lt;/code&gt; gives &lt;math&gt;\sqrt{x-y}.&lt;/math&gt;<br /> <br /> ==== Superscripts &amp; Subscripts ====<br /> <br /> To get superscripts (or exponents), we use the caret symbol &lt;code&gt;^&lt;/code&gt;. Typing &lt;code&gt;$x^2+y^2$&lt;/code&gt; gives &lt;math&gt;x^2+y^2.&lt;/math&gt; Subscripts are obtained via an underscore (holding shift and the minus sign on most keyboards). For instance, &lt;code&gt;$a_k$&lt;/code&gt; yields &lt;math&gt;a_k.&lt;/math&gt;<br /> <br /> ==== Groups ====<br /> <br /> Most operations in &lt;math&gt;\LaTeX&lt;/math&gt; (such as superscripts and subscripts) can only see the &quot;group&quot; of characters immediately following it. We use curly braces &lt;code&gt;{...}&lt;/code&gt; to indicate groups longer than one character. For instance, if we wrote &lt;code&gt;$x^2015$&lt;/code&gt;, we'd expect to get &lt;math&gt;x^{2015},&lt;/math&gt; but we instead get &lt;math&gt;x^2015.&lt;/math&gt; This is because each character in the string &lt;code&gt;2015&lt;/code&gt; is in its own group until we tell &lt;math&gt;\LaTeX&lt;/math&gt; that &lt;code&gt;2015&lt;/code&gt; should be one whole group. To convey this information to &lt;math&gt;\LaTeX&lt;/math&gt;, we write &lt;code&gt;$x^{2015}$&lt;/code&gt; and we get &lt;math&gt;x^{2015}.&lt;/math&gt;<br /> <br /> === Beyond the Basic Expressions ===<br /> <br /> ==== Grouping Basic Expressions ====<br /> <br /> Our ordinary parentheses &lt;code&gt;(...)&lt;/code&gt; and brackets &lt;code&gt;[...]&lt;/code&gt; work to group expressions in &lt;math&gt;\LaTeX&lt;/math&gt;. For instance, &lt;code&gt;$(x+y)[z+w]$&lt;/code&gt; gives us &lt;math&gt;(x+y)[z+w].&lt;/math&gt; We can also group expressions using curly braces, but we can't just type &lt;code&gt;{...}&lt;/code&gt;. Rather, we must type &lt;code&gt;\{...\}&lt;/code&gt;. This is because &lt;math&gt;\LaTeX&lt;/math&gt; uses plain curly braces for other things, such as fractions and superscripts and subscripts.<br /> <br /> &lt;br&gt;&lt;br&gt;<br /> <br /> When we put (vertically) large expressions inside of parentheses (or brackets, or curly braces, etc.), the parentheses don't resize to fit the expression and instead remain relatively small. For instance, &lt;code&gt;$$f(x) = \pi(\frac{\sqrt{x}}{x-1})$$&lt;/code&gt; comes out as &lt;cmath&gt;f(x) = \pi(\frac{\sqrt{x}}{x-1}).&lt;/cmath&gt; To automatically adjust the size of parentheses to fit the expression inside of them, we type &lt;code&gt;\left(...\right)&lt;/code&gt;. If we do this for our &lt;math&gt;f&lt;/math&gt; equation above, we get &lt;cmath&gt;f(x) = \pi\left(\frac{\sqrt{x}}{x-1}\right).&lt;/cmath&gt; We can use &lt;code&gt;\left&lt;/code&gt; and &lt;code&gt;\right&lt;/code&gt; for all sorts of things... parentheses (as we saw), brackets &lt;code&gt;$\left[...\right]$&lt;/code&gt;, braces &lt;code&gt;$\left\{...\right\}&lt;/code&gt;, absolute values &lt;code&gt;$\left|...\right|$&lt;/code&gt;, and much more (norms, floor and ceiling functions, inner products, etc.).<br /> <br /> ==== Lists ====<br /> <br /> To make a list, such as a sequence, we use &lt;code&gt;\dots&lt;/code&gt;. For example, &lt;code&gt;$a_0,a_1,\dots,a_n$&lt;/code&gt; will give us &lt;math&gt;a_0,a_1,\dots,a_n.&lt;/math&gt;<br /> <br /> ==== Sums ====<br /> <br /> There are two basic ways to write out sums. First, we can use &lt;code&gt;+&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example of this way would be &lt;code&gt;$a_1+a_2+\cdots+a_n$&lt;/code&gt; This will give us &lt;math&gt;a_1+a_2+\cdots+a_n.&lt;/math&gt; Second, we could use summation notation, or &lt;code&gt;\sum&lt;/code&gt;. Such an example is &lt;code&gt;$\sum_{i=0}^n a_i$&lt;/code&gt;, giving &lt;math&gt;\textstyle \sum_{i=0}^n a_i.&lt;/math&gt; Note the use of superscripts and subscripts to obtain the summation index.<br /> <br /> ==== Products ====<br /> <br /> Again, there are two basic ways to display products. First, we can use &lt;code&gt;\cdot&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example is &lt;code&gt;$n! = n\cdot(n-1)\cdots 2\cdot 1$&lt;/code&gt;, which of course gives &lt;math&gt;n! = n\cdot(n-1)\cdots 2 \cdot 1.&lt;/math&gt; The alternative is to use product notation with &lt;code&gt;\prod&lt;/code&gt;. For instance, &lt;code&gt;$n! = \prod_{k=1}^n k$&lt;/code&gt;, giving &lt;math&gt;\textstyle n! = \prod_{k=1}^n k.&lt;/math&gt;<br /> <br /> === Equalities and Inequalities ===<br /> <br /> ==== Inequalities ====<br /> <br /> the commands &lt;code&gt;&gt;, &lt;, \geq, \leq,&lt;/code&gt; and &lt;code&gt;\neq&lt;/code&gt; give us &lt;math&gt;&gt;,&lt;/math&gt; &lt;math&gt;&lt;,&lt;/math&gt; &lt;math&gt;\geq,&lt;/math&gt; &lt;math&gt;\leq,&lt;/math&gt; and &lt;math&gt;\neq,&lt;/math&gt; respectively.<br /> <br /> ==== Aligning Equations ====<br /> <br /> To align multiple equations, we use the &lt;code&gt;align*&lt;/code&gt; environment. For example, we might type a system of equations as follows:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> (You do not need dollar signs.) The &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to and the \\ symbols break to the next line. This code will output<br /> &lt;cmath&gt;\begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}&lt;/cmath&gt; An example of a string of equations is:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> Again, the &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to, and the \\ symbols break to the next line. This code outputs<br /> &lt;cmath&gt;\begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}&lt;/cmath&gt;<br /> <br /> ==== Numbering Equations ====<br /> <br /> To number equations, we use the &lt;code&gt;align&lt;/code&gt; environment. This is the same environment as the &lt;code&gt;align*&lt;/code&gt; environment, but we leave the &lt;code&gt;*&lt;/code&gt; off. The &lt;code&gt;*&lt;/code&gt; suppresses numbering. To number one equation, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by = c<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by = c.<br /> \end{align} &lt;/cmath&gt; We don't have to use &lt;code&gt;&amp;&lt;/code&gt; or \\ since there is nothing to align and no lines to break. To number several equations, such as a system, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i.<br /> \end{align} &lt;/cmath&gt; In general, &lt;code&gt;align&lt;/code&gt; will auto-number your equations from first to last.<br /> <br /> ==== Comments in Equations ====<br /> <br /> Again, we use the &lt;code&gt;align*&lt;/code&gt; environment. The code<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}<br /> \end{align*}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}.<br /> \end{align*} &lt;/cmath&gt; (You can use &lt;code&gt;align&lt;/code&gt; to get numbering &lt;i&gt;and&lt;/i&gt; comments!)<br /> <br /> ==== Definition by Cases ====<br /> <br /> To define, say, a function by cases, we use the &lt;code&gt;cases&lt;/code&gt; environment. The code<br /> &lt;pre&gt;&lt;nowiki&gt;<br /> $$&lt;/nowiki&gt; \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j \end{cases} &lt;nowiki&gt;$$<br /> &lt;/nowiki&gt;&lt;/pre&gt;<br /> gives us<br /> &lt;cmath&gt;<br /> \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j. \end{cases}<br /> &lt;/cmath&gt; As usual, the &lt;code&gt;&amp;&lt;/code&gt; is for aligning and the \\ is for line-breaking.<br /> <br /> === Commonly Used Commands ===<br /> <br /> ==== Algebra ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> <br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Geometry/Trig ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Degrees Symbol&lt;/b&gt;: &lt;code&gt;90^\circ&lt;/code&gt; gives &lt;math&gt;90^\circ.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Triangle Symbol&lt;/b&gt;: &lt;code&gt;\triangle ABC&lt;/code&gt; gives &lt;math&gt;\triangle ABC.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Parallel Symbol&lt;/b&gt;: &lt;code&gt;AB\parallel XY&lt;/code&gt; gives &lt;math&gt;AB\parallel XY.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Perpendicular Symbol&lt;/b&gt;: &lt;code&gt;AB\perp CD&lt;/code&gt; gives &lt;math&gt;AB\perp CD.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Trig Functions&lt;/b&gt;: &lt;code&gt;\sin\theta&lt;/code&gt;, &lt;code&gt;\cos\theta&lt;/code&gt;, &lt;code&gt;\tan\theta&lt;/code&gt;, &lt;code&gt;\sec\theta&lt;/code&gt;, and &lt;code&gt;\csc\theta&lt;/code&gt; give &lt;math&gt;\sin\theta,&lt;/math&gt; &lt;math&gt;\cos\theta,&lt;/math&gt; &lt;math&gt;\tan\theta,&lt;/math&gt; &lt;math&gt;\sec\theta,&lt;/math&gt; and &lt;math&gt;\csc\theta.&lt;/math&gt;<br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Counting &amp; Probability ====<br /> <br /> ==== Number Theory ====<br /> <br /> ==== Linear Algebra ====<br /> <br /> ==== Calculus ====<br /> <br /> ==== Sets ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Denoting Membership&lt;/b&gt;: &lt;code&gt;a\in A&lt;/code&gt; gives &lt;math&gt;a\in A.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Complement of Set&lt;/b&gt;: &lt;code&gt;A\setminus B&lt;/code&gt; yields &lt;math&gt;A\setminus B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Set Notation&lt;/b&gt;: &lt;code&gt;\{...\}&lt;/code&gt; gives &lt;math&gt;\{...\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Set-Builder Notation&lt;/b&gt;: &lt;code&gt;\{x\in\mathbb{R}\mid P(x)\}&lt;/code&gt; gives &lt;math&gt;\{x\in\mathbb R \mid P(x)\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Union and Intersection&lt;/b&gt;: &lt;code&gt;A\cup B&lt;/code&gt; and &lt;code&gt;A\cap B&lt;/code&gt; give &lt;math&gt;A\cup B&lt;/math&gt; and &lt;math&gt;A\cap B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt; Indexed Union and Intersection&lt;/b&gt;: &lt;code&gt;\bigcup_{i=1}^n A_i&lt;/code&gt; and &lt;code&gt;\bigcap_{i=1}^n A_i&lt;/code&gt; give &lt;math&gt;\bigcup_{i=1}^n A_i&lt;/math&gt; and &lt;math&gt;\bigcap_{i=1}^n A_i.&lt;/math&gt; Mostly used in display math mode.<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Subset&lt;/b&gt;: &lt;code&gt;A \subseteq B&lt;/code&gt; gives &lt;math&gt;A\subseteq B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Cartesian Product&lt;/b&gt;: &lt;code&gt;A \times B&lt;/code&gt; gives &lt;math&gt;A\times B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Common Sets&lt;/b&gt;: &lt;code&gt;\mathbb{N}&lt;/code&gt;, &lt;code&gt;\mathbb{Z}&lt;/code&gt;, &lt;code&gt;\mathbb{Q}&lt;/code&gt;, &lt;code&gt;\mathbb{R}&lt;/code&gt;, and &lt;code&gt;\mathbb{C}&lt;/code&gt; give us &lt;math&gt;\mathbb N,&lt;/math&gt; &lt;math&gt;\mathbb Z,&lt;/math&gt; &lt;math&gt;\mathbb Q,&lt;/math&gt; &lt;math&gt;\mathbb R,&lt;/math&gt; and &lt;math&gt;\mathbb C.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Cardinality of a Set&lt;/b&gt;: &lt;code&gt;|A|&lt;/code&gt; gives &lt;math&gt;|A|.&lt;/math&gt;<br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Logic ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Implication&lt;/b&gt;: &lt;code&gt;A\implies B&lt;/code&gt; gives &lt;math&gt;A\implies B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Biconditional&lt;/b&gt;: &lt;code&gt;A\iff B&lt;/code&gt; yields &lt;math&gt;A\iff B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Connectives&lt;/b&gt;: &lt;code&gt;A\land B&lt;/code&gt; and &lt;code&gt;A\lor B&lt;/code&gt; give &lt;math&gt;A\land B&lt;/math&gt; and &lt;math&gt;A\lor B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Negation&lt;/b&gt;: &lt;code&gt;\neg A&lt;/code&gt; gives &lt;math&gt;\neg A.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;/ul&gt;</div> 5space https://artofproblemsolving.com/wiki/index.php?title=LaTeX:LaTeX_on_AoPS&diff=72388 LaTeX:LaTeX on AoPS 2015-10-05T23:01:18Z <p>5space: /* Geometry/Trig */</p> <hr /> <div>{{Latex}}<br /> <br /> This article explains how to use LaTeX in the AoPSWiki, the AoPS Community, and the AoPS Classroom. See [http://artofproblemsolving.com/wiki/index.php/LaTeX:Packages Packages] to know which packages are prebuilt into the AoPS site.<br /> <br /> <br /> ----<br /> == Getting Started with LaTeX ==<br /> <br /> === The Very Basics ===<br /> <br /> LaTeX uses a special &quot;math mode&quot; to display mathematics. There are two types of this &quot;math mode&quot;:<br /> <br /> ==== In-line Math Mode ====<br /> <br /> In in-line math mode, we use &lt;code&gt;$&lt;/code&gt; signs to enclose the math we want to display, and it displays in-line with our text. For example, typing &lt;code&gt;$\sqrt{x} = 5$&lt;/code&gt; gives us &lt;math&gt;\sqrt{x} = 5.&lt;/math&gt;<br /> <br /> ==== Display Math Mode ====<br /> <br /> In display math mode, we enclose our code in double dollar signs, and it displays the math centered and on its own line. For example, &lt;code&gt;$$\sqrt{x} = 5$$&lt;/code&gt; gives us &lt;cmath&gt;\sqrt{x} = 5.&lt;/cmath&gt;<br /> <br /> ==== In-line vs. Display ====<br /> <br /> Besides displaying in-line vs. displaying centered and on a new line, the two modes render differently in other ways. Note that &lt;code&gt;$\sum_{k=1}^n k^2$&lt;/code&gt; gives us &lt;math&gt;\textstyle\sum_{k=1}^n k^2,&lt;/math&gt; whereas &lt;code&gt;$$\sum_{k=1}^n k^2$$&lt;/code&gt; gives us &lt;cmath&gt;\sum_{k=1}^n k^2.&lt;/cmath&gt;<br /> <br /> === Basic Expressions ===<br /> <br /> ==== Multiplication ====<br /> <br /> Sometimes, when we're multiplying, we don't need a multiplication symbol. For instance, we can write &lt;math&gt;xy&lt;/math&gt; instead of &lt;math&gt;x\cdot y&lt;/math&gt; without ambiguity. However, when you're multiplying numbers, for instance, a multiplication symbol comes in handy. The standard symbol is given by &lt;code&gt;$\cdot$&lt;/code&gt;. For example, &lt;code&gt;$12\cdot\frac{1}{2}$&lt;/code&gt; gives us &lt;math&gt;\textstyle 12\cdot \frac 12.&lt;/math&gt;<br /> <br /> ==== Fractions ====<br /> <br /> We can make fractions via &lt;code&gt;$\frac{...}{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\frac{x+y}{2}$&lt;/code&gt; will give us &lt;math&gt;\textstyle\frac{x+y}{2}.&lt;/math&gt;<br /> <br /> ==== Roots ====<br /> <br /> Square roots in &lt;math&gt;\LaTeX&lt;/math&gt; are pretty simple; we just type &lt;code&gt;$\sqrt{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{2}$&lt;/code&gt; gives us &lt;math&gt;\sqrt 2.&lt;/math&gt; Cube roots, fourth roots, and so on are only slightly more difficult; we type &lt;code&gt;$\sqrt[n]{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{x-y}$&lt;/code&gt; gives &lt;math&gt;\sqrt{x-y}.&lt;/math&gt;<br /> <br /> ==== Superscripts &amp; Subscripts ====<br /> <br /> To get superscripts (or exponents), we use the caret symbol &lt;code&gt;^&lt;/code&gt;. Typing &lt;code&gt;$x^2+y^2$&lt;/code&gt; gives &lt;math&gt;x^2+y^2.&lt;/math&gt; Subscripts are obtained via an underscore (holding shift and the minus sign on most keyboards). For instance, &lt;code&gt;$a_k$&lt;/code&gt; yields &lt;math&gt;a_k.&lt;/math&gt;<br /> <br /> ==== Groups ====<br /> <br /> Most operations in &lt;math&gt;\LaTeX&lt;/math&gt; (such as superscripts and subscripts) can only see the &quot;group&quot; of characters immediately following it. We use curly braces &lt;code&gt;{...}&lt;/code&gt; to indicate groups longer than one character. For instance, if we wrote &lt;code&gt;$x^2015$&lt;/code&gt;, we'd expect to get &lt;math&gt;x^{2015},&lt;/math&gt; but we instead get &lt;math&gt;x^2015.&lt;/math&gt; This is because each character in the string &lt;code&gt;2015&lt;/code&gt; is in its own group until we tell &lt;math&gt;\LaTeX&lt;/math&gt; that &lt;code&gt;2015&lt;/code&gt; should be one whole group. To convey this information to &lt;math&gt;\LaTeX&lt;/math&gt;, we write &lt;code&gt;$x^{2015}$&lt;/code&gt; and we get &lt;math&gt;x^{2015}.&lt;/math&gt;<br /> <br /> === Beyond the Basic Expressions ===<br /> <br /> ==== Grouping Basic Expressions ====<br /> <br /> Our ordinary parentheses &lt;code&gt;(...)&lt;/code&gt; and brackets &lt;code&gt;[...]&lt;/code&gt; work to group expressions in &lt;math&gt;\LaTeX&lt;/math&gt;. For instance, &lt;code&gt;$(x+y)[z+w]$&lt;/code&gt; gives us &lt;math&gt;(x+y)[z+w].&lt;/math&gt; We can also group expressions using curly braces, but we can't just type &lt;code&gt;{...}&lt;/code&gt;. Rather, we must type &lt;code&gt;\{...\}&lt;/code&gt;. This is because &lt;math&gt;\LaTeX&lt;/math&gt; uses plain curly braces for other things, such as fractions and superscripts and subscripts.<br /> <br /> &lt;br&gt;&lt;br&gt;<br /> <br /> When we put (vertically) large expressions inside of parentheses (or brackets, or curly braces, etc.), the parentheses don't resize to fit the expression and instead remain relatively small. For instance, &lt;code&gt;$$f(x) = \pi(\frac{\sqrt{x}}{x-1})$$&lt;/code&gt; comes out as &lt;cmath&gt;f(x) = \pi(\frac{\sqrt{x}}{x-1}).&lt;/cmath&gt; To automatically adjust the size of parentheses to fit the expression inside of them, we type &lt;code&gt;\left(...\right)&lt;/code&gt;. If we do this for our &lt;math&gt;f&lt;/math&gt; equation above, we get &lt;cmath&gt;f(x) = \pi\left(\frac{\sqrt{x}}{x-1}\right).&lt;/cmath&gt; We can use &lt;code&gt;\left&lt;/code&gt; and &lt;code&gt;\right&lt;/code&gt; for all sorts of things... parentheses (as we saw), brackets &lt;code&gt;$\left[...\right]$&lt;/code&gt;, braces &lt;code&gt;$\left\{...\right\}&lt;/code&gt;, absolute values &lt;code&gt;$\left|...\right|$&lt;/code&gt;, and much more (norms, floor and ceiling functions, inner products, etc.).<br /> <br /> ==== Lists ====<br /> <br /> To make a list, such as a sequence, we use &lt;code&gt;\dots&lt;/code&gt;. For example, &lt;code&gt;$a_0,a_1,\dots,a_n$&lt;/code&gt; will give us &lt;math&gt;a_0,a_1,\dots,a_n.&lt;/math&gt;<br /> <br /> ==== Sums ====<br /> <br /> There are two basic ways to write out sums. First, we can use &lt;code&gt;+&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example of this way would be &lt;code&gt;$a_1+a_2+\cdots+a_n$&lt;/code&gt; This will give us &lt;math&gt;a_1+a_2+\cdots+a_n.&lt;/math&gt; Second, we could use summation notation, or &lt;code&gt;\sum&lt;/code&gt;. Such an example is &lt;code&gt;$\sum_{i=0}^n a_i$&lt;/code&gt;, giving &lt;math&gt;\textstyle \sum_{i=0}^n a_i.&lt;/math&gt; Note the use of superscripts and subscripts to obtain the summation index.<br /> <br /> ==== Products ====<br /> <br /> Again, there are two basic ways to display products. First, we can use &lt;code&gt;\cdot&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example is &lt;code&gt;$n! = n\cdot(n-1)\cdots 2\cdot 1$&lt;/code&gt;, which of course gives &lt;math&gt;n! = n\cdot(n-1)\cdots 2 \cdot 1.&lt;/math&gt; The alternative is to use product notation with &lt;code&gt;\prod&lt;/code&gt;. For instance, &lt;code&gt;$n! = \prod_{k=1}^n k$&lt;/code&gt;, giving &lt;math&gt;\textstyle n! = \prod_{k=1}^n k.&lt;/math&gt;<br /> <br /> === Equalities and Inequalities ===<br /> <br /> ==== Inequalities ====<br /> <br /> the commands &lt;code&gt;&gt;, &lt;, \geq, \leq,&lt;/code&gt; and &lt;code&gt;\neq&lt;/code&gt; give us &lt;math&gt;&gt;,&lt;/math&gt; &lt;math&gt;&lt;,&lt;/math&gt; &lt;math&gt;\geq,&lt;/math&gt; &lt;math&gt;\leq,&lt;/math&gt; and &lt;math&gt;\neq,&lt;/math&gt; respectively.<br /> <br /> ==== Aligning Equations ====<br /> <br /> To align multiple equations, we use the &lt;code&gt;align*&lt;/code&gt; environment. For example, we might type a system of equations as follows:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> (You do not need dollar signs.) The &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to and the \\ symbols break to the next line. This code will output<br /> &lt;cmath&gt;\begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}&lt;/cmath&gt; An example of a string of equations is:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> Again, the &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to, and the \\ symbols break to the next line. This code outputs<br /> &lt;cmath&gt;\begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}&lt;/cmath&gt;<br /> <br /> ==== Numbering Equations ====<br /> <br /> To number equations, we use the &lt;code&gt;align&lt;/code&gt; environment. This is the same environment as the &lt;code&gt;align*&lt;/code&gt; environment, but we leave the &lt;code&gt;*&lt;/code&gt; off. The &lt;code&gt;*&lt;/code&gt; suppresses numbering. To number one equation, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by = c<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by = c.<br /> \end{align} &lt;/cmath&gt; We don't have to use &lt;code&gt;&amp;&lt;/code&gt; or \\ since there is nothing to align and no lines to break. To number several equations, such as a system, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i.<br /> \end{align} &lt;/cmath&gt; In general, &lt;code&gt;align&lt;/code&gt; will auto-number your equations from first to last.<br /> <br /> ==== Comments in Equations ====<br /> <br /> Again, we use the &lt;code&gt;align*&lt;/code&gt; environment. The code<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}<br /> \end{align*}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}.<br /> \end{align*} &lt;/cmath&gt; (You can use &lt;code&gt;align&lt;/code&gt; to get numbering &lt;i&gt;and&lt;/i&gt; comments!)<br /> <br /> ==== Definition by Cases ====<br /> <br /> To define, say, a function by cases, we use the &lt;code&gt;cases&lt;/code&gt; environment. The code<br /> &lt;pre&gt;&lt;nowiki&gt;<br /> $$&lt;/nowiki&gt; \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j \end{cases} &lt;nowiki&gt;$$<br /> &lt;/nowiki&gt;&lt;/pre&gt;<br /> gives us<br /> &lt;cmath&gt;<br /> \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j. \end{cases}<br /> &lt;/cmath&gt; As usual, the &lt;code&gt;&amp;&lt;/code&gt; is for aligning and the \\ is for line-breaking.<br /> <br /> === Commonly Used Commands ===<br /> <br /> ==== Algebra ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> <br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Geometry/Trig ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Degrees Symbol&lt;/b&gt;: &lt;code&gt;90^\circ&lt;/code&gt; gives &lt;math&gt;90^\circ.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Triangle Symbol&lt;/b&gt;: &lt;code&gt;\triangle ABC&lt;/code&gt; gives &lt;math&gt;\triangle ABC.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Parallel Symbol&lt;/b&gt;: &lt;code&gt;AB\parallel XY&lt;/code&gt; gives &lt;math&gt;AB\parallel XY.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Perpendicular Symbol&lt;/b&gt;: &lt;code&gt;AB\perp CD&lt;/code&gt; gives &lt;math&gt;AB\perp CD.&lt;/math&gt;<br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Counting &amp; Probability ====<br /> <br /> ==== Number Theory ====<br /> <br /> ==== Linear Algebra ====<br /> <br /> ==== Calculus ====<br /> <br /> ==== Sets ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Denoting Membership&lt;/b&gt;: &lt;code&gt;a\in A&lt;/code&gt; gives &lt;math&gt;a\in A.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Complement of Set&lt;/b&gt;: &lt;code&gt;A\setminus B&lt;/code&gt; yields &lt;math&gt;A\setminus B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Set Notation&lt;/b&gt;: &lt;code&gt;\{...\}&lt;/code&gt; gives &lt;math&gt;\{...\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Set-Builder Notation&lt;/b&gt;: &lt;code&gt;\{x\in\mathbb{R}\mid P(x)\}&lt;/code&gt; gives &lt;math&gt;\{x\in\mathbb R \mid P(x)\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Union and Intersection&lt;/b&gt;: &lt;code&gt;A\cup B&lt;/code&gt; and &lt;code&gt;A\cap B&lt;/code&gt; give &lt;math&gt;A\cup B&lt;/math&gt; and &lt;math&gt;A\cap B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt; Indexed Union and Intersection&lt;/b&gt;: &lt;code&gt;\bigcup_{i=1}^n A_i&lt;/code&gt; and &lt;code&gt;\bigcap_{i=1}^n A_i&lt;/code&gt; give &lt;math&gt;\bigcup_{i=1}^n A_i&lt;/math&gt; and &lt;math&gt;\bigcap_{i=1}^n A_i.&lt;/math&gt; Mostly used in display math mode.<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Subset&lt;/b&gt;: &lt;code&gt;A \subseteq B&lt;/code&gt; gives &lt;math&gt;A\subseteq B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Cartesian Product&lt;/b&gt;: &lt;code&gt;A \times B&lt;/code&gt; gives &lt;math&gt;A\times B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Common Sets&lt;/b&gt;: &lt;code&gt;\mathbb{N}&lt;/code&gt;, &lt;code&gt;\mathbb{Z}&lt;/code&gt;, &lt;code&gt;\mathbb{Q}&lt;/code&gt;, &lt;code&gt;\mathbb{R}&lt;/code&gt;, and &lt;code&gt;\mathbb{C}&lt;/code&gt; give us &lt;math&gt;\mathbb N,&lt;/math&gt; &lt;math&gt;\mathbb Z,&lt;/math&gt; &lt;math&gt;\mathbb Q,&lt;/math&gt; &lt;math&gt;\mathbb R,&lt;/math&gt; and &lt;math&gt;\mathbb C.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Cardinality of a Set&lt;/b&gt;: &lt;code&gt;|A|&lt;/code&gt; gives &lt;math&gt;|A|.&lt;/math&gt;<br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Logic ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Implication&lt;/b&gt;: &lt;code&gt;A\implies B&lt;/code&gt; gives &lt;math&gt;A\implies B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Biconditional&lt;/b&gt;: &lt;code&gt;A\iff B&lt;/code&gt; yields &lt;math&gt;A\iff B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Connectives&lt;/b&gt;: &lt;code&gt;A\land B&lt;/code&gt; and &lt;code&gt;A\lor B&lt;/code&gt; give &lt;math&gt;A\land B&lt;/math&gt; and &lt;math&gt;A\lor B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Negation&lt;/b&gt;: &lt;code&gt;\neg A&lt;/code&gt; gives &lt;math&gt;\neg A.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;/ul&gt;</div> 5space https://artofproblemsolving.com/wiki/index.php?title=LaTeX:LaTeX_on_AoPS&diff=72387 LaTeX:LaTeX on AoPS 2015-10-05T22:58:12Z <p>5space: /* Geometry/Trig */</p> <hr /> <div>{{Latex}}<br /> <br /> This article explains how to use LaTeX in the AoPSWiki, the AoPS Community, and the AoPS Classroom. See [http://artofproblemsolving.com/wiki/index.php/LaTeX:Packages Packages] to know which packages are prebuilt into the AoPS site.<br /> <br /> <br /> ----<br /> == Getting Started with LaTeX ==<br /> <br /> === The Very Basics ===<br /> <br /> LaTeX uses a special &quot;math mode&quot; to display mathematics. There are two types of this &quot;math mode&quot;:<br /> <br /> ==== In-line Math Mode ====<br /> <br /> In in-line math mode, we use &lt;code&gt;$&lt;/code&gt; signs to enclose the math we want to display, and it displays in-line with our text. For example, typing &lt;code&gt;$\sqrt{x} = 5$&lt;/code&gt; gives us &lt;math&gt;\sqrt{x} = 5.&lt;/math&gt;<br /> <br /> ==== Display Math Mode ====<br /> <br /> In display math mode, we enclose our code in double dollar signs, and it displays the math centered and on its own line. For example, &lt;code&gt;$$\sqrt{x} = 5$$&lt;/code&gt; gives us &lt;cmath&gt;\sqrt{x} = 5.&lt;/cmath&gt;<br /> <br /> ==== In-line vs. Display ====<br /> <br /> Besides displaying in-line vs. displaying centered and on a new line, the two modes render differently in other ways. Note that &lt;code&gt;$\sum_{k=1}^n k^2$&lt;/code&gt; gives us &lt;math&gt;\textstyle\sum_{k=1}^n k^2,&lt;/math&gt; whereas &lt;code&gt;$$\sum_{k=1}^n k^2$$&lt;/code&gt; gives us &lt;cmath&gt;\sum_{k=1}^n k^2.&lt;/cmath&gt;<br /> <br /> === Basic Expressions ===<br /> <br /> ==== Multiplication ====<br /> <br /> Sometimes, when we're multiplying, we don't need a multiplication symbol. For instance, we can write &lt;math&gt;xy&lt;/math&gt; instead of &lt;math&gt;x\cdot y&lt;/math&gt; without ambiguity. However, when you're multiplying numbers, for instance, a multiplication symbol comes in handy. The standard symbol is given by &lt;code&gt;$\cdot$&lt;/code&gt;. For example, &lt;code&gt;$12\cdot\frac{1}{2}$&lt;/code&gt; gives us &lt;math&gt;\textstyle 12\cdot \frac 12.&lt;/math&gt;<br /> <br /> ==== Fractions ====<br /> <br /> We can make fractions via &lt;code&gt;$\frac{...}{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\frac{x+y}{2}$&lt;/code&gt; will give us &lt;math&gt;\textstyle\frac{x+y}{2}.&lt;/math&gt;<br /> <br /> ==== Roots ====<br /> <br /> Square roots in &lt;math&gt;\LaTeX&lt;/math&gt; are pretty simple; we just type &lt;code&gt;$\sqrt{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{2}$&lt;/code&gt; gives us &lt;math&gt;\sqrt 2.&lt;/math&gt; Cube roots, fourth roots, and so on are only slightly more difficult; we type &lt;code&gt;$\sqrt[n]{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{x-y}$&lt;/code&gt; gives &lt;math&gt;\sqrt{x-y}.&lt;/math&gt;<br /> <br /> ==== Superscripts &amp; Subscripts ====<br /> <br /> To get superscripts (or exponents), we use the caret symbol &lt;code&gt;^&lt;/code&gt;. Typing &lt;code&gt;$x^2+y^2$&lt;/code&gt; gives &lt;math&gt;x^2+y^2.&lt;/math&gt; Subscripts are obtained via an underscore (holding shift and the minus sign on most keyboards). For instance, &lt;code&gt;$a_k$&lt;/code&gt; yields &lt;math&gt;a_k.&lt;/math&gt;<br /> <br /> ==== Groups ====<br /> <br /> Most operations in &lt;math&gt;\LaTeX&lt;/math&gt; (such as superscripts and subscripts) can only see the &quot;group&quot; of characters immediately following it. We use curly braces &lt;code&gt;{...}&lt;/code&gt; to indicate groups longer than one character. For instance, if we wrote &lt;code&gt;$x^2015$&lt;/code&gt;, we'd expect to get &lt;math&gt;x^{2015},&lt;/math&gt; but we instead get &lt;math&gt;x^2015.&lt;/math&gt; This is because each character in the string &lt;code&gt;2015&lt;/code&gt; is in its own group until we tell &lt;math&gt;\LaTeX&lt;/math&gt; that &lt;code&gt;2015&lt;/code&gt; should be one whole group. To convey this information to &lt;math&gt;\LaTeX&lt;/math&gt;, we write &lt;code&gt;$x^{2015}$&lt;/code&gt; and we get &lt;math&gt;x^{2015}.&lt;/math&gt;<br /> <br /> === Beyond the Basic Expressions ===<br /> <br /> ==== Grouping Basic Expressions ====<br /> <br /> Our ordinary parentheses &lt;code&gt;(...)&lt;/code&gt; and brackets &lt;code&gt;[...]&lt;/code&gt; work to group expressions in &lt;math&gt;\LaTeX&lt;/math&gt;. For instance, &lt;code&gt;$(x+y)[z+w]$&lt;/code&gt; gives us &lt;math&gt;(x+y)[z+w].&lt;/math&gt; We can also group expressions using curly braces, but we can't just type &lt;code&gt;{...}&lt;/code&gt;. Rather, we must type &lt;code&gt;\{...\}&lt;/code&gt;. This is because &lt;math&gt;\LaTeX&lt;/math&gt; uses plain curly braces for other things, such as fractions and superscripts and subscripts.<br /> <br /> &lt;br&gt;&lt;br&gt;<br /> <br /> When we put (vertically) large expressions inside of parentheses (or brackets, or curly braces, etc.), the parentheses don't resize to fit the expression and instead remain relatively small. For instance, &lt;code&gt;$$f(x) = \pi(\frac{\sqrt{x}}{x-1})$$&lt;/code&gt; comes out as &lt;cmath&gt;f(x) = \pi(\frac{\sqrt{x}}{x-1}).&lt;/cmath&gt; To automatically adjust the size of parentheses to fit the expression inside of them, we type &lt;code&gt;\left(...\right)&lt;/code&gt;. If we do this for our &lt;math&gt;f&lt;/math&gt; equation above, we get &lt;cmath&gt;f(x) = \pi\left(\frac{\sqrt{x}}{x-1}\right).&lt;/cmath&gt; We can use &lt;code&gt;\left&lt;/code&gt; and &lt;code&gt;\right&lt;/code&gt; for all sorts of things... parentheses (as we saw), brackets &lt;code&gt;$\left[...\right]$&lt;/code&gt;, braces &lt;code&gt;$\left\{...\right\}&lt;/code&gt;, absolute values &lt;code&gt;$\left|...\right|$&lt;/code&gt;, and much more (norms, floor and ceiling functions, inner products, etc.).<br /> <br /> ==== Lists ====<br /> <br /> To make a list, such as a sequence, we use &lt;code&gt;\dots&lt;/code&gt;. For example, &lt;code&gt;$a_0,a_1,\dots,a_n$&lt;/code&gt; will give us &lt;math&gt;a_0,a_1,\dots,a_n.&lt;/math&gt;<br /> <br /> ==== Sums ====<br /> <br /> There are two basic ways to write out sums. First, we can use &lt;code&gt;+&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example of this way would be &lt;code&gt;$a_1+a_2+\cdots+a_n$&lt;/code&gt; This will give us &lt;math&gt;a_1+a_2+\cdots+a_n.&lt;/math&gt; Second, we could use summation notation, or &lt;code&gt;\sum&lt;/code&gt;. Such an example is &lt;code&gt;$\sum_{i=0}^n a_i$&lt;/code&gt;, giving &lt;math&gt;\textstyle \sum_{i=0}^n a_i.&lt;/math&gt; Note the use of superscripts and subscripts to obtain the summation index.<br /> <br /> ==== Products ====<br /> <br /> Again, there are two basic ways to display products. First, we can use &lt;code&gt;\cdot&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example is &lt;code&gt;$n! = n\cdot(n-1)\cdots 2\cdot 1$&lt;/code&gt;, which of course gives &lt;math&gt;n! = n\cdot(n-1)\cdots 2 \cdot 1.&lt;/math&gt; The alternative is to use product notation with &lt;code&gt;\prod&lt;/code&gt;. For instance, &lt;code&gt;$n! = \prod_{k=1}^n k$&lt;/code&gt;, giving &lt;math&gt;\textstyle n! = \prod_{k=1}^n k.&lt;/math&gt;<br /> <br /> === Equalities and Inequalities ===<br /> <br /> ==== Inequalities ====<br /> <br /> the commands &lt;code&gt;&gt;, &lt;, \geq, \leq,&lt;/code&gt; and &lt;code&gt;\neq&lt;/code&gt; give us &lt;math&gt;&gt;,&lt;/math&gt; &lt;math&gt;&lt;,&lt;/math&gt; &lt;math&gt;\geq,&lt;/math&gt; &lt;math&gt;\leq,&lt;/math&gt; and &lt;math&gt;\neq,&lt;/math&gt; respectively.<br /> <br /> ==== Aligning Equations ====<br /> <br /> To align multiple equations, we use the &lt;code&gt;align*&lt;/code&gt; environment. For example, we might type a system of equations as follows:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> (You do not need dollar signs.) The &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to and the \\ symbols break to the next line. This code will output<br /> &lt;cmath&gt;\begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}&lt;/cmath&gt; An example of a string of equations is:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> Again, the &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to, and the \\ symbols break to the next line. This code outputs<br /> &lt;cmath&gt;\begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}&lt;/cmath&gt;<br /> <br /> ==== Numbering Equations ====<br /> <br /> To number equations, we use the &lt;code&gt;align&lt;/code&gt; environment. This is the same environment as the &lt;code&gt;align*&lt;/code&gt; environment, but we leave the &lt;code&gt;*&lt;/code&gt; off. The &lt;code&gt;*&lt;/code&gt; suppresses numbering. To number one equation, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by = c<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by = c.<br /> \end{align} &lt;/cmath&gt; We don't have to use &lt;code&gt;&amp;&lt;/code&gt; or \\ since there is nothing to align and no lines to break. To number several equations, such as a system, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i.<br /> \end{align} &lt;/cmath&gt; In general, &lt;code&gt;align&lt;/code&gt; will auto-number your equations from first to last.<br /> <br /> ==== Comments in Equations ====<br /> <br /> Again, we use the &lt;code&gt;align*&lt;/code&gt; environment. The code<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}<br /> \end{align*}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}.<br /> \end{align*} &lt;/cmath&gt; (You can use &lt;code&gt;align&lt;/code&gt; to get numbering &lt;i&gt;and&lt;/i&gt; comments!)<br /> <br /> ==== Definition by Cases ====<br /> <br /> To define, say, a function by cases, we use the &lt;code&gt;cases&lt;/code&gt; environment. The code<br /> &lt;pre&gt;&lt;nowiki&gt;<br /> $$&lt;/nowiki&gt; \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j \end{cases} &lt;nowiki&gt;$$<br /> &lt;/nowiki&gt;&lt;/pre&gt;<br /> gives us<br /> &lt;cmath&gt;<br /> \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j. \end{cases}<br /> &lt;/cmath&gt; As usual, the &lt;code&gt;&amp;&lt;/code&gt; is for aligning and the \\ is for line-breaking.<br /> <br /> === Commonly Used Commands ===<br /> <br /> ==== Algebra ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> <br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Geometry/Trig ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Degrees Symbol&lt;/b&gt;: &lt;code&gt;90^\circ&lt;/code&gt; gives &lt;math&gt;90^\circ.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Triangle Symbol&lt;/b&gt;: &lt;code&gt;\triangle ABC&lt;/code&gt; gives &lt;math&gt;\triangle ABC.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Counting &amp; Probability ====<br /> <br /> ==== Number Theory ====<br /> <br /> ==== Linear Algebra ====<br /> <br /> ==== Calculus ====<br /> <br /> ==== Sets ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Denoting Membership&lt;/b&gt;: &lt;code&gt;a\in A&lt;/code&gt; gives &lt;math&gt;a\in A.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Complement of Set&lt;/b&gt;: &lt;code&gt;A\setminus B&lt;/code&gt; yields &lt;math&gt;A\setminus B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Set Notation&lt;/b&gt;: &lt;code&gt;\{...\}&lt;/code&gt; gives &lt;math&gt;\{...\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Set-Builder Notation&lt;/b&gt;: &lt;code&gt;\{x\in\mathbb{R}\mid P(x)\}&lt;/code&gt; gives &lt;math&gt;\{x\in\mathbb R \mid P(x)\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Union and Intersection&lt;/b&gt;: &lt;code&gt;A\cup B&lt;/code&gt; and &lt;code&gt;A\cap B&lt;/code&gt; give &lt;math&gt;A\cup B&lt;/math&gt; and &lt;math&gt;A\cap B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt; Indexed Union and Intersection&lt;/b&gt;: &lt;code&gt;\bigcup_{i=1}^n A_i&lt;/code&gt; and &lt;code&gt;\bigcap_{i=1}^n A_i&lt;/code&gt; give &lt;math&gt;\bigcup_{i=1}^n A_i&lt;/math&gt; and &lt;math&gt;\bigcap_{i=1}^n A_i.&lt;/math&gt; Mostly used in display math mode.<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Subset&lt;/b&gt;: &lt;code&gt;A \subseteq B&lt;/code&gt; gives &lt;math&gt;A\subseteq B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Cartesian Product&lt;/b&gt;: &lt;code&gt;A \times B&lt;/code&gt; gives &lt;math&gt;A\times B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Common Sets&lt;/b&gt;: &lt;code&gt;\mathbb{N}&lt;/code&gt;, &lt;code&gt;\mathbb{Z}&lt;/code&gt;, &lt;code&gt;\mathbb{Q}&lt;/code&gt;, &lt;code&gt;\mathbb{R}&lt;/code&gt;, and &lt;code&gt;\mathbb{C}&lt;/code&gt; give us &lt;math&gt;\mathbb N,&lt;/math&gt; &lt;math&gt;\mathbb Z,&lt;/math&gt; &lt;math&gt;\mathbb Q,&lt;/math&gt; &lt;math&gt;\mathbb R,&lt;/math&gt; and &lt;math&gt;\mathbb C.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Cardinality of a Set&lt;/b&gt;: &lt;code&gt;|A|&lt;/code&gt; gives &lt;math&gt;|A|.&lt;/math&gt;<br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Logic ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Implication&lt;/b&gt;: &lt;code&gt;A\implies B&lt;/code&gt; gives &lt;math&gt;A\implies B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Biconditional&lt;/b&gt;: &lt;code&gt;A\iff B&lt;/code&gt; yields &lt;math&gt;A\iff B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Connectives&lt;/b&gt;: &lt;code&gt;A\land B&lt;/code&gt; and &lt;code&gt;A\lor B&lt;/code&gt; give &lt;math&gt;A\land B&lt;/math&gt; and &lt;math&gt;A\lor B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Negation&lt;/b&gt;: &lt;code&gt;\neg A&lt;/code&gt; gives &lt;math&gt;\neg A.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;/ul&gt;</div> 5space https://artofproblemsolving.com/wiki/index.php?title=LaTeX:LaTeX_on_AoPS&diff=72386 LaTeX:LaTeX on AoPS 2015-10-05T22:52:06Z <p>5space: /* Sets */</p> <hr /> <div>{{Latex}}<br /> <br /> This article explains how to use LaTeX in the AoPSWiki, the AoPS Community, and the AoPS Classroom. See [http://artofproblemsolving.com/wiki/index.php/LaTeX:Packages Packages] to know which packages are prebuilt into the AoPS site.<br /> <br /> <br /> ----<br /> == Getting Started with LaTeX ==<br /> <br /> === The Very Basics ===<br /> <br /> LaTeX uses a special &quot;math mode&quot; to display mathematics. There are two types of this &quot;math mode&quot;:<br /> <br /> ==== In-line Math Mode ====<br /> <br /> In in-line math mode, we use &lt;code&gt;$&lt;/code&gt; signs to enclose the math we want to display, and it displays in-line with our text. For example, typing &lt;code&gt;$\sqrt{x} = 5$&lt;/code&gt; gives us &lt;math&gt;\sqrt{x} = 5.&lt;/math&gt;<br /> <br /> ==== Display Math Mode ====<br /> <br /> In display math mode, we enclose our code in double dollar signs, and it displays the math centered and on its own line. For example, &lt;code&gt;$$\sqrt{x} = 5$$&lt;/code&gt; gives us &lt;cmath&gt;\sqrt{x} = 5.&lt;/cmath&gt;<br /> <br /> ==== In-line vs. Display ====<br /> <br /> Besides displaying in-line vs. displaying centered and on a new line, the two modes render differently in other ways. Note that &lt;code&gt;$\sum_{k=1}^n k^2$&lt;/code&gt; gives us &lt;math&gt;\textstyle\sum_{k=1}^n k^2,&lt;/math&gt; whereas &lt;code&gt;$$\sum_{k=1}^n k^2$$&lt;/code&gt; gives us &lt;cmath&gt;\sum_{k=1}^n k^2.&lt;/cmath&gt;<br /> <br /> === Basic Expressions ===<br /> <br /> ==== Multiplication ====<br /> <br /> Sometimes, when we're multiplying, we don't need a multiplication symbol. For instance, we can write &lt;math&gt;xy&lt;/math&gt; instead of &lt;math&gt;x\cdot y&lt;/math&gt; without ambiguity. However, when you're multiplying numbers, for instance, a multiplication symbol comes in handy. The standard symbol is given by &lt;code&gt;$\cdot$&lt;/code&gt;. For example, &lt;code&gt;$12\cdot\frac{1}{2}$&lt;/code&gt; gives us &lt;math&gt;\textstyle 12\cdot \frac 12.&lt;/math&gt;<br /> <br /> ==== Fractions ====<br /> <br /> We can make fractions via &lt;code&gt;$\frac{...}{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\frac{x+y}{2}$&lt;/code&gt; will give us &lt;math&gt;\textstyle\frac{x+y}{2}.&lt;/math&gt;<br /> <br /> ==== Roots ====<br /> <br /> Square roots in &lt;math&gt;\LaTeX&lt;/math&gt; are pretty simple; we just type &lt;code&gt;$\sqrt{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{2}$&lt;/code&gt; gives us &lt;math&gt;\sqrt 2.&lt;/math&gt; Cube roots, fourth roots, and so on are only slightly more difficult; we type &lt;code&gt;$\sqrt[n]{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{x-y}$&lt;/code&gt; gives &lt;math&gt;\sqrt{x-y}.&lt;/math&gt;<br /> <br /> ==== Superscripts &amp; Subscripts ====<br /> <br /> To get superscripts (or exponents), we use the caret symbol &lt;code&gt;^&lt;/code&gt;. Typing &lt;code&gt;$x^2+y^2$&lt;/code&gt; gives &lt;math&gt;x^2+y^2.&lt;/math&gt; Subscripts are obtained via an underscore (holding shift and the minus sign on most keyboards). For instance, &lt;code&gt;$a_k$&lt;/code&gt; yields &lt;math&gt;a_k.&lt;/math&gt;<br /> <br /> ==== Groups ====<br /> <br /> Most operations in &lt;math&gt;\LaTeX&lt;/math&gt; (such as superscripts and subscripts) can only see the &quot;group&quot; of characters immediately following it. We use curly braces &lt;code&gt;{...}&lt;/code&gt; to indicate groups longer than one character. For instance, if we wrote &lt;code&gt;$x^2015$&lt;/code&gt;, we'd expect to get &lt;math&gt;x^{2015},&lt;/math&gt; but we instead get &lt;math&gt;x^2015.&lt;/math&gt; This is because each character in the string &lt;code&gt;2015&lt;/code&gt; is in its own group until we tell &lt;math&gt;\LaTeX&lt;/math&gt; that &lt;code&gt;2015&lt;/code&gt; should be one whole group. To convey this information to &lt;math&gt;\LaTeX&lt;/math&gt;, we write &lt;code&gt;$x^{2015}$&lt;/code&gt; and we get &lt;math&gt;x^{2015}.&lt;/math&gt;<br /> <br /> === Beyond the Basic Expressions ===<br /> <br /> ==== Grouping Basic Expressions ====<br /> <br /> Our ordinary parentheses &lt;code&gt;(...)&lt;/code&gt; and brackets &lt;code&gt;[...]&lt;/code&gt; work to group expressions in &lt;math&gt;\LaTeX&lt;/math&gt;. For instance, &lt;code&gt;$(x+y)[z+w]$&lt;/code&gt; gives us &lt;math&gt;(x+y)[z+w].&lt;/math&gt; We can also group expressions using curly braces, but we can't just type &lt;code&gt;{...}&lt;/code&gt;. Rather, we must type &lt;code&gt;\{...\}&lt;/code&gt;. This is because &lt;math&gt;\LaTeX&lt;/math&gt; uses plain curly braces for other things, such as fractions and superscripts and subscripts.<br /> <br /> &lt;br&gt;&lt;br&gt;<br /> <br /> When we put (vertically) large expressions inside of parentheses (or brackets, or curly braces, etc.), the parentheses don't resize to fit the expression and instead remain relatively small. For instance, &lt;code&gt;$$f(x) = \pi(\frac{\sqrt{x}}{x-1})$$&lt;/code&gt; comes out as &lt;cmath&gt;f(x) = \pi(\frac{\sqrt{x}}{x-1}).&lt;/cmath&gt; To automatically adjust the size of parentheses to fit the expression inside of them, we type &lt;code&gt;\left(...\right)&lt;/code&gt;. If we do this for our &lt;math&gt;f&lt;/math&gt; equation above, we get &lt;cmath&gt;f(x) = \pi\left(\frac{\sqrt{x}}{x-1}\right).&lt;/cmath&gt; We can use &lt;code&gt;\left&lt;/code&gt; and &lt;code&gt;\right&lt;/code&gt; for all sorts of things... parentheses (as we saw), brackets &lt;code&gt;$\left[...\right]$&lt;/code&gt;, braces &lt;code&gt;$\left\{...\right\}&lt;/code&gt;, absolute values &lt;code&gt;$\left|...\right|$&lt;/code&gt;, and much more (norms, floor and ceiling functions, inner products, etc.).<br /> <br /> ==== Lists ====<br /> <br /> To make a list, such as a sequence, we use &lt;code&gt;\dots&lt;/code&gt;. For example, &lt;code&gt;$a_0,a_1,\dots,a_n$&lt;/code&gt; will give us &lt;math&gt;a_0,a_1,\dots,a_n.&lt;/math&gt;<br /> <br /> ==== Sums ====<br /> <br /> There are two basic ways to write out sums. First, we can use &lt;code&gt;+&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example of this way would be &lt;code&gt;$a_1+a_2+\cdots+a_n$&lt;/code&gt; This will give us &lt;math&gt;a_1+a_2+\cdots+a_n.&lt;/math&gt; Second, we could use summation notation, or &lt;code&gt;\sum&lt;/code&gt;. Such an example is &lt;code&gt;$\sum_{i=0}^n a_i$&lt;/code&gt;, giving &lt;math&gt;\textstyle \sum_{i=0}^n a_i.&lt;/math&gt; Note the use of superscripts and subscripts to obtain the summation index.<br /> <br /> ==== Products ====<br /> <br /> Again, there are two basic ways to display products. First, we can use &lt;code&gt;\cdot&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example is &lt;code&gt;$n! = n\cdot(n-1)\cdots 2\cdot 1$&lt;/code&gt;, which of course gives &lt;math&gt;n! = n\cdot(n-1)\cdots 2 \cdot 1.&lt;/math&gt; The alternative is to use product notation with &lt;code&gt;\prod&lt;/code&gt;. For instance, &lt;code&gt;$n! = \prod_{k=1}^n k$&lt;/code&gt;, giving &lt;math&gt;\textstyle n! = \prod_{k=1}^n k.&lt;/math&gt;<br /> <br /> === Equalities and Inequalities ===<br /> <br /> ==== Inequalities ====<br /> <br /> the commands &lt;code&gt;&gt;, &lt;, \geq, \leq,&lt;/code&gt; and &lt;code&gt;\neq&lt;/code&gt; give us &lt;math&gt;&gt;,&lt;/math&gt; &lt;math&gt;&lt;,&lt;/math&gt; &lt;math&gt;\geq,&lt;/math&gt; &lt;math&gt;\leq,&lt;/math&gt; and &lt;math&gt;\neq,&lt;/math&gt; respectively.<br /> <br /> ==== Aligning Equations ====<br /> <br /> To align multiple equations, we use the &lt;code&gt;align*&lt;/code&gt; environment. For example, we might type a system of equations as follows:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> (You do not need dollar signs.) The &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to and the \\ symbols break to the next line. This code will output<br /> &lt;cmath&gt;\begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}&lt;/cmath&gt; An example of a string of equations is:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> Again, the &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to, and the \\ symbols break to the next line. This code outputs<br /> &lt;cmath&gt;\begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}&lt;/cmath&gt;<br /> <br /> ==== Numbering Equations ====<br /> <br /> To number equations, we use the &lt;code&gt;align&lt;/code&gt; environment. This is the same environment as the &lt;code&gt;align*&lt;/code&gt; environment, but we leave the &lt;code&gt;*&lt;/code&gt; off. The &lt;code&gt;*&lt;/code&gt; suppresses numbering. To number one equation, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by = c<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by = c.<br /> \end{align} &lt;/cmath&gt; We don't have to use &lt;code&gt;&amp;&lt;/code&gt; or \\ since there is nothing to align and no lines to break. To number several equations, such as a system, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i.<br /> \end{align} &lt;/cmath&gt; In general, &lt;code&gt;align&lt;/code&gt; will auto-number your equations from first to last.<br /> <br /> ==== Comments in Equations ====<br /> <br /> Again, we use the &lt;code&gt;align*&lt;/code&gt; environment. The code<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}<br /> \end{align*}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}.<br /> \end{align*} &lt;/cmath&gt; (You can use &lt;code&gt;align&lt;/code&gt; to get numbering &lt;i&gt;and&lt;/i&gt; comments!)<br /> <br /> ==== Definition by Cases ====<br /> <br /> To define, say, a function by cases, we use the &lt;code&gt;cases&lt;/code&gt; environment. The code<br /> &lt;pre&gt;&lt;nowiki&gt;<br /> $$&lt;/nowiki&gt; \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j \end{cases} &lt;nowiki&gt;$$<br /> &lt;/nowiki&gt;&lt;/pre&gt;<br /> gives us<br /> &lt;cmath&gt;<br /> \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j. \end{cases}<br /> &lt;/cmath&gt; As usual, the &lt;code&gt;&amp;&lt;/code&gt; is for aligning and the \\ is for line-breaking.<br /> <br /> === Commonly Used Commands ===<br /> <br /> ==== Algebra ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> <br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Geometry/Trig ====<br /> <br /> ==== Counting &amp; Probability ====<br /> <br /> ==== Number Theory ====<br /> <br /> ==== Linear Algebra ====<br /> <br /> ==== Calculus ====<br /> <br /> ==== Sets ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Denoting Membership&lt;/b&gt;: &lt;code&gt;a\in A&lt;/code&gt; gives &lt;math&gt;a\in A.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Complement of Set&lt;/b&gt;: &lt;code&gt;A\setminus B&lt;/code&gt; yields &lt;math&gt;A\setminus B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Set Notation&lt;/b&gt;: &lt;code&gt;\{...\}&lt;/code&gt; gives &lt;math&gt;\{...\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Set-Builder Notation&lt;/b&gt;: &lt;code&gt;\{x\in\mathbb{R}\mid P(x)\}&lt;/code&gt; gives &lt;math&gt;\{x\in\mathbb R \mid P(x)\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Union and Intersection&lt;/b&gt;: &lt;code&gt;A\cup B&lt;/code&gt; and &lt;code&gt;A\cap B&lt;/code&gt; give &lt;math&gt;A\cup B&lt;/math&gt; and &lt;math&gt;A\cap B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt; Indexed Union and Intersection&lt;/b&gt;: &lt;code&gt;\bigcup_{i=1}^n A_i&lt;/code&gt; and &lt;code&gt;\bigcap_{i=1}^n A_i&lt;/code&gt; give &lt;math&gt;\bigcup_{i=1}^n A_i&lt;/math&gt; and &lt;math&gt;\bigcap_{i=1}^n A_i.&lt;/math&gt; Mostly used in display math mode.<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Subset&lt;/b&gt;: &lt;code&gt;A \subseteq B&lt;/code&gt; gives &lt;math&gt;A\subseteq B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Cartesian Product&lt;/b&gt;: &lt;code&gt;A \times B&lt;/code&gt; gives &lt;math&gt;A\times B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Common Sets&lt;/b&gt;: &lt;code&gt;\mathbb{N}&lt;/code&gt;, &lt;code&gt;\mathbb{Z}&lt;/code&gt;, &lt;code&gt;\mathbb{Q}&lt;/code&gt;, &lt;code&gt;\mathbb{R}&lt;/code&gt;, and &lt;code&gt;\mathbb{C}&lt;/code&gt; give us &lt;math&gt;\mathbb N,&lt;/math&gt; &lt;math&gt;\mathbb Z,&lt;/math&gt; &lt;math&gt;\mathbb Q,&lt;/math&gt; &lt;math&gt;\mathbb R,&lt;/math&gt; and &lt;math&gt;\mathbb C.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Cardinality of a Set&lt;/b&gt;: &lt;code&gt;|A|&lt;/code&gt; gives &lt;math&gt;|A|.&lt;/math&gt;<br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Logic ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Implication&lt;/b&gt;: &lt;code&gt;A\implies B&lt;/code&gt; gives &lt;math&gt;A\implies B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Biconditional&lt;/b&gt;: &lt;code&gt;A\iff B&lt;/code&gt; yields &lt;math&gt;A\iff B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Connectives&lt;/b&gt;: &lt;code&gt;A\land B&lt;/code&gt; and &lt;code&gt;A\lor B&lt;/code&gt; give &lt;math&gt;A\land B&lt;/math&gt; and &lt;math&gt;A\lor B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Negation&lt;/b&gt;: &lt;code&gt;\neg A&lt;/code&gt; gives &lt;math&gt;\neg A.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;/ul&gt;</div> 5space https://artofproblemsolving.com/wiki/index.php?title=LaTeX:LaTeX_on_AoPS&diff=72385 LaTeX:LaTeX on AoPS 2015-10-05T22:51:09Z <p>5space: /* Sets */</p> <hr /> <div>{{Latex}}<br /> <br /> This article explains how to use LaTeX in the AoPSWiki, the AoPS Community, and the AoPS Classroom. See [http://artofproblemsolving.com/wiki/index.php/LaTeX:Packages Packages] to know which packages are prebuilt into the AoPS site.<br /> <br /> <br /> ----<br /> == Getting Started with LaTeX ==<br /> <br /> === The Very Basics ===<br /> <br /> LaTeX uses a special &quot;math mode&quot; to display mathematics. There are two types of this &quot;math mode&quot;:<br /> <br /> ==== In-line Math Mode ====<br /> <br /> In in-line math mode, we use &lt;code&gt;$&lt;/code&gt; signs to enclose the math we want to display, and it displays in-line with our text. For example, typing &lt;code&gt;$\sqrt{x} = 5$&lt;/code&gt; gives us &lt;math&gt;\sqrt{x} = 5.&lt;/math&gt;<br /> <br /> ==== Display Math Mode ====<br /> <br /> In display math mode, we enclose our code in double dollar signs, and it displays the math centered and on its own line. For example, &lt;code&gt;$$\sqrt{x} = 5$$&lt;/code&gt; gives us &lt;cmath&gt;\sqrt{x} = 5.&lt;/cmath&gt;<br /> <br /> ==== In-line vs. Display ====<br /> <br /> Besides displaying in-line vs. displaying centered and on a new line, the two modes render differently in other ways. Note that &lt;code&gt;$\sum_{k=1}^n k^2$&lt;/code&gt; gives us &lt;math&gt;\textstyle\sum_{k=1}^n k^2,&lt;/math&gt; whereas &lt;code&gt;$$\sum_{k=1}^n k^2$$&lt;/code&gt; gives us &lt;cmath&gt;\sum_{k=1}^n k^2.&lt;/cmath&gt;<br /> <br /> === Basic Expressions ===<br /> <br /> ==== Multiplication ====<br /> <br /> Sometimes, when we're multiplying, we don't need a multiplication symbol. For instance, we can write &lt;math&gt;xy&lt;/math&gt; instead of &lt;math&gt;x\cdot y&lt;/math&gt; without ambiguity. However, when you're multiplying numbers, for instance, a multiplication symbol comes in handy. The standard symbol is given by &lt;code&gt;$\cdot$&lt;/code&gt;. For example, &lt;code&gt;$12\cdot\frac{1}{2}$&lt;/code&gt; gives us &lt;math&gt;\textstyle 12\cdot \frac 12.&lt;/math&gt;<br /> <br /> ==== Fractions ====<br /> <br /> We can make fractions via &lt;code&gt;$\frac{...}{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\frac{x+y}{2}$&lt;/code&gt; will give us &lt;math&gt;\textstyle\frac{x+y}{2}.&lt;/math&gt;<br /> <br /> ==== Roots ====<br /> <br /> Square roots in &lt;math&gt;\LaTeX&lt;/math&gt; are pretty simple; we just type &lt;code&gt;$\sqrt{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{2}$&lt;/code&gt; gives us &lt;math&gt;\sqrt 2.&lt;/math&gt; Cube roots, fourth roots, and so on are only slightly more difficult; we type &lt;code&gt;$\sqrt[n]{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{x-y}$&lt;/code&gt; gives &lt;math&gt;\sqrt{x-y}.&lt;/math&gt;<br /> <br /> ==== Superscripts &amp; Subscripts ====<br /> <br /> To get superscripts (or exponents), we use the caret symbol &lt;code&gt;^&lt;/code&gt;. Typing &lt;code&gt;$x^2+y^2$&lt;/code&gt; gives &lt;math&gt;x^2+y^2.&lt;/math&gt; Subscripts are obtained via an underscore (holding shift and the minus sign on most keyboards). For instance, &lt;code&gt;$a_k$&lt;/code&gt; yields &lt;math&gt;a_k.&lt;/math&gt;<br /> <br /> ==== Groups ====<br /> <br /> Most operations in &lt;math&gt;\LaTeX&lt;/math&gt; (such as superscripts and subscripts) can only see the &quot;group&quot; of characters immediately following it. We use curly braces &lt;code&gt;{...}&lt;/code&gt; to indicate groups longer than one character. For instance, if we wrote &lt;code&gt;$x^2015$&lt;/code&gt;, we'd expect to get &lt;math&gt;x^{2015},&lt;/math&gt; but we instead get &lt;math&gt;x^2015.&lt;/math&gt; This is because each character in the string &lt;code&gt;2015&lt;/code&gt; is in its own group until we tell &lt;math&gt;\LaTeX&lt;/math&gt; that &lt;code&gt;2015&lt;/code&gt; should be one whole group. To convey this information to &lt;math&gt;\LaTeX&lt;/math&gt;, we write &lt;code&gt;$x^{2015}$&lt;/code&gt; and we get &lt;math&gt;x^{2015}.&lt;/math&gt;<br /> <br /> === Beyond the Basic Expressions ===<br /> <br /> ==== Grouping Basic Expressions ====<br /> <br /> Our ordinary parentheses &lt;code&gt;(...)&lt;/code&gt; and brackets &lt;code&gt;[...]&lt;/code&gt; work to group expressions in &lt;math&gt;\LaTeX&lt;/math&gt;. For instance, &lt;code&gt;$(x+y)[z+w]$&lt;/code&gt; gives us &lt;math&gt;(x+y)[z+w].&lt;/math&gt; We can also group expressions using curly braces, but we can't just type &lt;code&gt;{...}&lt;/code&gt;. Rather, we must type &lt;code&gt;\{...\}&lt;/code&gt;. This is because &lt;math&gt;\LaTeX&lt;/math&gt; uses plain curly braces for other things, such as fractions and superscripts and subscripts.<br /> <br /> &lt;br&gt;&lt;br&gt;<br /> <br /> When we put (vertically) large expressions inside of parentheses (or brackets, or curly braces, etc.), the parentheses don't resize to fit the expression and instead remain relatively small. For instance, &lt;code&gt;$$f(x) = \pi(\frac{\sqrt{x}}{x-1})$$&lt;/code&gt; comes out as &lt;cmath&gt;f(x) = \pi(\frac{\sqrt{x}}{x-1}).&lt;/cmath&gt; To automatically adjust the size of parentheses to fit the expression inside of them, we type &lt;code&gt;\left(...\right)&lt;/code&gt;. If we do this for our &lt;math&gt;f&lt;/math&gt; equation above, we get &lt;cmath&gt;f(x) = \pi\left(\frac{\sqrt{x}}{x-1}\right).&lt;/cmath&gt; We can use &lt;code&gt;\left&lt;/code&gt; and &lt;code&gt;\right&lt;/code&gt; for all sorts of things... parentheses (as we saw), brackets &lt;code&gt;$\left[...\right]$&lt;/code&gt;, braces &lt;code&gt;$\left\{...\right\}&lt;/code&gt;, absolute values &lt;code&gt;$\left|...\right|$&lt;/code&gt;, and much more (norms, floor and ceiling functions, inner products, etc.).<br /> <br /> ==== Lists ====<br /> <br /> To make a list, such as a sequence, we use &lt;code&gt;\dots&lt;/code&gt;. For example, &lt;code&gt;$a_0,a_1,\dots,a_n$&lt;/code&gt; will give us &lt;math&gt;a_0,a_1,\dots,a_n.&lt;/math&gt;<br /> <br /> ==== Sums ====<br /> <br /> There are two basic ways to write out sums. First, we can use &lt;code&gt;+&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example of this way would be &lt;code&gt;$a_1+a_2+\cdots+a_n$&lt;/code&gt; This will give us &lt;math&gt;a_1+a_2+\cdots+a_n.&lt;/math&gt; Second, we could use summation notation, or &lt;code&gt;\sum&lt;/code&gt;. Such an example is &lt;code&gt;$\sum_{i=0}^n a_i$&lt;/code&gt;, giving &lt;math&gt;\textstyle \sum_{i=0}^n a_i.&lt;/math&gt; Note the use of superscripts and subscripts to obtain the summation index.<br /> <br /> ==== Products ====<br /> <br /> Again, there are two basic ways to display products. First, we can use &lt;code&gt;\cdot&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example is &lt;code&gt;$n! = n\cdot(n-1)\cdots 2\cdot 1$&lt;/code&gt;, which of course gives &lt;math&gt;n! = n\cdot(n-1)\cdots 2 \cdot 1.&lt;/math&gt; The alternative is to use product notation with &lt;code&gt;\prod&lt;/code&gt;. For instance, &lt;code&gt;$n! = \prod_{k=1}^n k$&lt;/code&gt;, giving &lt;math&gt;\textstyle n! = \prod_{k=1}^n k.&lt;/math&gt;<br /> <br /> === Equalities and Inequalities ===<br /> <br /> ==== Inequalities ====<br /> <br /> the commands &lt;code&gt;&gt;, &lt;, \geq, \leq,&lt;/code&gt; and &lt;code&gt;\neq&lt;/code&gt; give us &lt;math&gt;&gt;,&lt;/math&gt; &lt;math&gt;&lt;,&lt;/math&gt; &lt;math&gt;\geq,&lt;/math&gt; &lt;math&gt;\leq,&lt;/math&gt; and &lt;math&gt;\neq,&lt;/math&gt; respectively.<br /> <br /> ==== Aligning Equations ====<br /> <br /> To align multiple equations, we use the &lt;code&gt;align*&lt;/code&gt; environment. For example, we might type a system of equations as follows:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> (You do not need dollar signs.) The &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to and the \\ symbols break to the next line. This code will output<br /> &lt;cmath&gt;\begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}&lt;/cmath&gt; An example of a string of equations is:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> Again, the &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to, and the \\ symbols break to the next line. This code outputs<br /> &lt;cmath&gt;\begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}&lt;/cmath&gt;<br /> <br /> ==== Numbering Equations ====<br /> <br /> To number equations, we use the &lt;code&gt;align&lt;/code&gt; environment. This is the same environment as the &lt;code&gt;align*&lt;/code&gt; environment, but we leave the &lt;code&gt;*&lt;/code&gt; off. The &lt;code&gt;*&lt;/code&gt; suppresses numbering. To number one equation, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by = c<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by = c.<br /> \end{align} &lt;/cmath&gt; We don't have to use &lt;code&gt;&amp;&lt;/code&gt; or \\ since there is nothing to align and no lines to break. To number several equations, such as a system, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i.<br /> \end{align} &lt;/cmath&gt; In general, &lt;code&gt;align&lt;/code&gt; will auto-number your equations from first to last.<br /> <br /> ==== Comments in Equations ====<br /> <br /> Again, we use the &lt;code&gt;align*&lt;/code&gt; environment. The code<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}<br /> \end{align*}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}.<br /> \end{align*} &lt;/cmath&gt; (You can use &lt;code&gt;align&lt;/code&gt; to get numbering &lt;i&gt;and&lt;/i&gt; comments!)<br /> <br /> ==== Definition by Cases ====<br /> <br /> To define, say, a function by cases, we use the &lt;code&gt;cases&lt;/code&gt; environment. The code<br /> &lt;pre&gt;&lt;nowiki&gt;<br /> $$&lt;/nowiki&gt; \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j \end{cases} &lt;nowiki&gt;$$<br /> &lt;/nowiki&gt;&lt;/pre&gt;<br /> gives us<br /> &lt;cmath&gt;<br /> \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j. \end{cases}<br /> &lt;/cmath&gt; As usual, the &lt;code&gt;&amp;&lt;/code&gt; is for aligning and the \\ is for line-breaking.<br /> <br /> === Commonly Used Commands ===<br /> <br /> ==== Algebra ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> <br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Geometry/Trig ====<br /> <br /> ==== Counting &amp; Probability ====<br /> <br /> ==== Number Theory ====<br /> <br /> ==== Linear Algebra ====<br /> <br /> ==== Calculus ====<br /> <br /> ==== Sets ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Denoting Membership&lt;/b&gt;: &lt;code&gt;a\in A&lt;/code&gt; gives &lt;math&gt;a\in A.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Complement of Set&lt;/b&gt;: &lt;code&gt;A\setminus B&lt;/code&gt; yields &lt;math&gt;A\setminus B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Set Notation&lt;/b&gt;: &lt;code&gt;\{...\}&lt;/code&gt; gives &lt;math&gt;\{...\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Set-Builder Notation&lt;/b&gt;: &lt;code&gt;\{x\in\mathbb{R}\mid P(x)\}&lt;/code&gt; gives &lt;math&gt;\{x\in\mathbb R \mid P(x)\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Union and Intersection&lt;/b&gt;: &lt;code&gt;A\cup B&lt;/code&gt; and &lt;code&gt;A\cap B&lt;/code&gt; give &lt;math&gt;A\cup B&lt;/math&gt; and &lt;math&gt;A\cap B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt; Indexed Union and Intersection&lt;/b&gt;: &lt;code&gt;\bigcup_{i=1}^n A_i&lt;/code&gt; and &lt;code&gt;\bigcap_{i=1}^n A_i&lt;/code&gt; give &lt;math&gt;\bigcup_{i=1}^n A_i&lt;/math&gt; and &lt;math&gt;\bigcap_{i=1}^n A_i.&lt;/math&gt; Mostly used in display math mode.<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Subset&lt;/b&gt;: &lt;code&gt;A \subseteq B&lt;/code&gt; gives &lt;math&gt;A\subseteq B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Cartesian Product&lt;/b&gt;: &lt;code&gt;A \times B&lt;/code&gt; gives &lt;math&gt;A\times B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Common Sets&lt;/b&gt;: &lt;code&gt;\mathbb{N}&lt;/code&gt;, &lt;code&gt;\mathbb{Z}&lt;/code&gt;, &lt;code&gt;\mathbb{Q}&lt;/code&gt;, &lt;code&gt;\mathbb{R}&lt;/code&gt;, &lt;code&gt;\mathbb{C}&lt;/code&gt; give us &lt;math&gt;\mathbb N,&lt;/math&gt; &lt;math&gt;\mathbb Z,&lt;/math&gt; &lt;math&gt;\mathbb Q,&lt;/math&gt; &lt;math&gt;\mathbb R,&lt;/math&gt; &lt;math&gt;\mathbb C.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Cardinality of a Set&lt;/b&gt;: &lt;code&gt;|A|&lt;/code&gt; gives &lt;math&gt;|A|.&lt;/math&gt;<br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Logic ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Implication&lt;/b&gt;: &lt;code&gt;A\implies B&lt;/code&gt; gives &lt;math&gt;A\implies B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Biconditional&lt;/b&gt;: &lt;code&gt;A\iff B&lt;/code&gt; yields &lt;math&gt;A\iff B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Connectives&lt;/b&gt;: &lt;code&gt;A\land B&lt;/code&gt; and &lt;code&gt;A\lor B&lt;/code&gt; give &lt;math&gt;A\land B&lt;/math&gt; and &lt;math&gt;A\lor B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Negation&lt;/b&gt;: &lt;code&gt;\neg A&lt;/code&gt; gives &lt;math&gt;\neg A.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;/ul&gt;</div> 5space https://artofproblemsolving.com/wiki/index.php?title=LaTeX:LaTeX_on_AoPS&diff=72383 LaTeX:LaTeX on AoPS 2015-10-05T22:26:07Z <p>5space: /* Logic */</p> <hr /> <div>{{Latex}}<br /> <br /> This article explains how to use LaTeX in the AoPSWiki, the AoPS Community, and the AoPS Classroom. See [http://artofproblemsolving.com/wiki/index.php/LaTeX:Packages Packages] to know which packages are prebuilt into the AoPS site.<br /> <br /> <br /> ----<br /> == Getting Started with LaTeX ==<br /> <br /> === The Very Basics ===<br /> <br /> LaTeX uses a special &quot;math mode&quot; to display mathematics. There are two types of this &quot;math mode&quot;:<br /> <br /> ==== In-line Math Mode ====<br /> <br /> In in-line math mode, we use &lt;code&gt;$&lt;/code&gt; signs to enclose the math we want to display, and it displays in-line with our text. For example, typing &lt;code&gt;$\sqrt{x} = 5$&lt;/code&gt; gives us &lt;math&gt;\sqrt{x} = 5.&lt;/math&gt;<br /> <br /> ==== Display Math Mode ====<br /> <br /> In display math mode, we enclose our code in double dollar signs, and it displays the math centered and on its own line. For example, &lt;code&gt;$$\sqrt{x} = 5$$&lt;/code&gt; gives us &lt;cmath&gt;\sqrt{x} = 5.&lt;/cmath&gt;<br /> <br /> ==== In-line vs. Display ====<br /> <br /> Besides displaying in-line vs. displaying centered and on a new line, the two modes render differently in other ways. Note that &lt;code&gt;$\sum_{k=1}^n k^2$&lt;/code&gt; gives us &lt;math&gt;\textstyle\sum_{k=1}^n k^2,&lt;/math&gt; whereas &lt;code&gt;$$\sum_{k=1}^n k^2$$&lt;/code&gt; gives us &lt;cmath&gt;\sum_{k=1}^n k^2.&lt;/cmath&gt;<br /> <br /> === Basic Expressions ===<br /> <br /> ==== Multiplication ====<br /> <br /> Sometimes, when we're multiplying, we don't need a multiplication symbol. For instance, we can write &lt;math&gt;xy&lt;/math&gt; instead of &lt;math&gt;x\cdot y&lt;/math&gt; without ambiguity. However, when you're multiplying numbers, for instance, a multiplication symbol comes in handy. The standard symbol is given by &lt;code&gt;$\cdot$&lt;/code&gt;. For example, &lt;code&gt;$12\cdot\frac{1}{2}$&lt;/code&gt; gives us &lt;math&gt;\textstyle 12\cdot \frac 12.&lt;/math&gt;<br /> <br /> ==== Fractions ====<br /> <br /> We can make fractions via &lt;code&gt;$\frac{...}{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\frac{x+y}{2}$&lt;/code&gt; will give us &lt;math&gt;\textstyle\frac{x+y}{2}.&lt;/math&gt;<br /> <br /> ==== Roots ====<br /> <br /> Square roots in &lt;math&gt;\LaTeX&lt;/math&gt; are pretty simple; we just type &lt;code&gt;$\sqrt{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{2}$&lt;/code&gt; gives us &lt;math&gt;\sqrt 2.&lt;/math&gt; Cube roots, fourth roots, and so on are only slightly more difficult; we type &lt;code&gt;$\sqrt[n]{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{x-y}$&lt;/code&gt; gives &lt;math&gt;\sqrt{x-y}.&lt;/math&gt;<br /> <br /> ==== Superscripts &amp; Subscripts ====<br /> <br /> To get superscripts (or exponents), we use the caret symbol &lt;code&gt;^&lt;/code&gt;. Typing &lt;code&gt;$x^2+y^2$&lt;/code&gt; gives &lt;math&gt;x^2+y^2.&lt;/math&gt; Subscripts are obtained via an underscore (holding shift and the minus sign on most keyboards). For instance, &lt;code&gt;$a_k$&lt;/code&gt; yields &lt;math&gt;a_k.&lt;/math&gt;<br /> <br /> ==== Groups ====<br /> <br /> Most operations in &lt;math&gt;\LaTeX&lt;/math&gt; (such as superscripts and subscripts) can only see the &quot;group&quot; of characters immediately following it. We use curly braces &lt;code&gt;{...}&lt;/code&gt; to indicate groups longer than one character. For instance, if we wrote &lt;code&gt;$x^2015$&lt;/code&gt;, we'd expect to get &lt;math&gt;x^{2015},&lt;/math&gt; but we instead get &lt;math&gt;x^2015.&lt;/math&gt; This is because each character in the string &lt;code&gt;2015&lt;/code&gt; is in its own group until we tell &lt;math&gt;\LaTeX&lt;/math&gt; that &lt;code&gt;2015&lt;/code&gt; should be one whole group. To convey this information to &lt;math&gt;\LaTeX&lt;/math&gt;, we write &lt;code&gt;$x^{2015}$&lt;/code&gt; and we get &lt;math&gt;x^{2015}.&lt;/math&gt;<br /> <br /> === Beyond the Basic Expressions ===<br /> <br /> ==== Grouping Basic Expressions ====<br /> <br /> Our ordinary parentheses &lt;code&gt;(...)&lt;/code&gt; and brackets &lt;code&gt;[...]&lt;/code&gt; work to group expressions in &lt;math&gt;\LaTeX&lt;/math&gt;. For instance, &lt;code&gt;$(x+y)[z+w]$&lt;/code&gt; gives us &lt;math&gt;(x+y)[z+w].&lt;/math&gt; We can also group expressions using curly braces, but we can't just type &lt;code&gt;{...}&lt;/code&gt;. Rather, we must type &lt;code&gt;\{...\}&lt;/code&gt;. This is because &lt;math&gt;\LaTeX&lt;/math&gt; uses plain curly braces for other things, such as fractions and superscripts and subscripts.<br /> <br /> &lt;br&gt;&lt;br&gt;<br /> <br /> When we put (vertically) large expressions inside of parentheses (or brackets, or curly braces, etc.), the parentheses don't resize to fit the expression and instead remain relatively small. For instance, &lt;code&gt;$$f(x) = \pi(\frac{\sqrt{x}}{x-1})$$&lt;/code&gt; comes out as &lt;cmath&gt;f(x) = \pi(\frac{\sqrt{x}}{x-1}).&lt;/cmath&gt; To automatically adjust the size of parentheses to fit the expression inside of them, we type &lt;code&gt;\left(...\right)&lt;/code&gt;. If we do this for our &lt;math&gt;f&lt;/math&gt; equation above, we get &lt;cmath&gt;f(x) = \pi\left(\frac{\sqrt{x}}{x-1}\right).&lt;/cmath&gt; We can use &lt;code&gt;\left&lt;/code&gt; and &lt;code&gt;\right&lt;/code&gt; for all sorts of things... parentheses (as we saw), brackets &lt;code&gt;$\left[...\right]$&lt;/code&gt;, braces &lt;code&gt;$\left\{...\right\}&lt;/code&gt;, absolute values &lt;code&gt;$\left|...\right|$&lt;/code&gt;, and much more (norms, floor and ceiling functions, inner products, etc.).<br /> <br /> ==== Lists ====<br /> <br /> To make a list, such as a sequence, we use &lt;code&gt;\dots&lt;/code&gt;. For example, &lt;code&gt;$a_0,a_1,\dots,a_n$&lt;/code&gt; will give us &lt;math&gt;a_0,a_1,\dots,a_n.&lt;/math&gt;<br /> <br /> ==== Sums ====<br /> <br /> There are two basic ways to write out sums. First, we can use &lt;code&gt;+&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example of this way would be &lt;code&gt;$a_1+a_2+\cdots+a_n$&lt;/code&gt; This will give us &lt;math&gt;a_1+a_2+\cdots+a_n.&lt;/math&gt; Second, we could use summation notation, or &lt;code&gt;\sum&lt;/code&gt;. Such an example is &lt;code&gt;$\sum_{i=0}^n a_i$&lt;/code&gt;, giving &lt;math&gt;\textstyle \sum_{i=0}^n a_i.&lt;/math&gt; Note the use of superscripts and subscripts to obtain the summation index.<br /> <br /> ==== Products ====<br /> <br /> Again, there are two basic ways to display products. First, we can use &lt;code&gt;\cdot&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example is &lt;code&gt;$n! = n\cdot(n-1)\cdots 2\cdot 1$&lt;/code&gt;, which of course gives &lt;math&gt;n! = n\cdot(n-1)\cdots 2 \cdot 1.&lt;/math&gt; The alternative is to use product notation with &lt;code&gt;\prod&lt;/code&gt;. For instance, &lt;code&gt;$n! = \prod_{k=1}^n k$&lt;/code&gt;, giving &lt;math&gt;\textstyle n! = \prod_{k=1}^n k.&lt;/math&gt;<br /> <br /> === Equalities and Inequalities ===<br /> <br /> ==== Inequalities ====<br /> <br /> the commands &lt;code&gt;&gt;, &lt;, \geq, \leq,&lt;/code&gt; and &lt;code&gt;\neq&lt;/code&gt; give us &lt;math&gt;&gt;,&lt;/math&gt; &lt;math&gt;&lt;,&lt;/math&gt; &lt;math&gt;\geq,&lt;/math&gt; &lt;math&gt;\leq,&lt;/math&gt; and &lt;math&gt;\neq,&lt;/math&gt; respectively.<br /> <br /> ==== Aligning Equations ====<br /> <br /> To align multiple equations, we use the &lt;code&gt;align*&lt;/code&gt; environment. For example, we might type a system of equations as follows:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> (You do not need dollar signs.) The &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to and the \\ symbols break to the next line. This code will output<br /> &lt;cmath&gt;\begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}&lt;/cmath&gt; An example of a string of equations is:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> Again, the &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to, and the \\ symbols break to the next line. This code outputs<br /> &lt;cmath&gt;\begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}&lt;/cmath&gt;<br /> <br /> ==== Numbering Equations ====<br /> <br /> To number equations, we use the &lt;code&gt;align&lt;/code&gt; environment. This is the same environment as the &lt;code&gt;align*&lt;/code&gt; environment, but we leave the &lt;code&gt;*&lt;/code&gt; off. The &lt;code&gt;*&lt;/code&gt; suppresses numbering. To number one equation, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by = c<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by = c.<br /> \end{align} &lt;/cmath&gt; We don't have to use &lt;code&gt;&amp;&lt;/code&gt; or \\ since there is nothing to align and no lines to break. To number several equations, such as a system, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i.<br /> \end{align} &lt;/cmath&gt; In general, &lt;code&gt;align&lt;/code&gt; will auto-number your equations from first to last.<br /> <br /> ==== Comments in Equations ====<br /> <br /> Again, we use the &lt;code&gt;align*&lt;/code&gt; environment. The code<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}<br /> \end{align*}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}.<br /> \end{align*} &lt;/cmath&gt; (You can use &lt;code&gt;align&lt;/code&gt; to get numbering &lt;i&gt;and&lt;/i&gt; comments!)<br /> <br /> ==== Definition by Cases ====<br /> <br /> To define, say, a function by cases, we use the &lt;code&gt;cases&lt;/code&gt; environment. The code<br /> &lt;pre&gt;&lt;nowiki&gt;<br /> $$&lt;/nowiki&gt; \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j \end{cases} &lt;nowiki&gt;$$<br /> &lt;/nowiki&gt;&lt;/pre&gt;<br /> gives us<br /> &lt;cmath&gt;<br /> \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j. \end{cases}<br /> &lt;/cmath&gt; As usual, the &lt;code&gt;&amp;&lt;/code&gt; is for aligning and the \\ is for line-breaking.<br /> <br /> === Commonly Used Commands ===<br /> <br /> ==== Algebra ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> <br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Geometry/Trig ====<br /> <br /> ==== Counting &amp; Probability ====<br /> <br /> ==== Number Theory ====<br /> <br /> ==== Linear Algebra ====<br /> <br /> ==== Calculus ====<br /> <br /> ==== Sets ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Denoting Membership&lt;/b&gt;: &lt;code&gt;a\in A&lt;/code&gt; gives &lt;math&gt;a\in A.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Complement of Set&lt;/b&gt;: &lt;code&gt;A\setminus B&lt;/code&gt; yields &lt;math&gt;A\setminus B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Set Notation&lt;/b&gt;: &lt;code&gt;\{...\}&lt;/code&gt; gives &lt;math&gt;\{...\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Set-Builder Notation&lt;/b&gt;: &lt;code&gt;\{x\in\mathbb{R}\mid P(x)\}&lt;/code&gt; gives &lt;math&gt;\{x\in\mathbb R \mid P(x)\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Union and Intersection&lt;/b&gt;: &lt;code&gt;A\cup B&lt;/code&gt; and &lt;code&gt;A\cap B&lt;/code&gt; give &lt;math&gt;A\cup B&lt;/math&gt; and &lt;math&gt;A\cap B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt; Indexed Union and Intersection&lt;/b&gt;: &lt;math&gt;\bigcup_{i=1}^n A_i&lt;/math&gt; and &lt;math&gt;\bigcap_{i=1}^n A_i&lt;/math&gt; give &lt;math&gt;\bigcup_{i=1}^n A_i&lt;/math&gt; and &lt;math&gt;\bigcap_{i=1}^n A_i.&lt;/math&gt; Mostly used in display math mode.<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Subset&lt;/b&gt;: &lt;code&gt;A \subseteq B&lt;/code&gt; gives &lt;math&gt;A\subseteq B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Cartesian Product&lt;/b&gt;: &lt;code&gt;A \times B&lt;/code&gt; gives &lt;math&gt;A\times B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Common Sets&lt;/b&gt;: &lt;code&gt;\mathbb{N},\mathbb{Z},\mathbb{Q},\mathbb{R},\mathbb{C}&lt;/code&gt; give us &lt;math&gt;\mathbb N, \mathbb Z, \mathbb Q, \mathbb R, \mathbb C.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Cardinality of a Set&lt;/b&gt;: &lt;code&gt;|A|&lt;/code&gt; gives &lt;math&gt;|A|.&lt;/math&gt;<br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Logic ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Implication&lt;/b&gt;: &lt;code&gt;A\implies B&lt;/code&gt; gives &lt;math&gt;A\implies B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Biconditional&lt;/b&gt;: &lt;code&gt;A\iff B&lt;/code&gt; yields &lt;math&gt;A\iff B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Connectives&lt;/b&gt;: &lt;code&gt;A\land B&lt;/code&gt; and &lt;code&gt;A\lor B&lt;/code&gt; give &lt;math&gt;A\land B&lt;/math&gt; and &lt;math&gt;A\lor B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Negation&lt;/b&gt;: &lt;code&gt;\neg A&lt;/code&gt; gives &lt;math&gt;\neg A.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;/ul&gt;</div> 5space https://artofproblemsolving.com/wiki/index.php?title=LaTeX:LaTeX_on_AoPS&diff=72381 LaTeX:LaTeX on AoPS 2015-10-05T22:22:21Z <p>5space: /* Sets */</p> <hr /> <div>{{Latex}}<br /> <br /> This article explains how to use LaTeX in the AoPSWiki, the AoPS Community, and the AoPS Classroom. See [http://artofproblemsolving.com/wiki/index.php/LaTeX:Packages Packages] to know which packages are prebuilt into the AoPS site.<br /> <br /> <br /> ----<br /> == Getting Started with LaTeX ==<br /> <br /> === The Very Basics ===<br /> <br /> LaTeX uses a special &quot;math mode&quot; to display mathematics. There are two types of this &quot;math mode&quot;:<br /> <br /> ==== In-line Math Mode ====<br /> <br /> In in-line math mode, we use &lt;code&gt;$&lt;/code&gt; signs to enclose the math we want to display, and it displays in-line with our text. For example, typing &lt;code&gt;$\sqrt{x} = 5$&lt;/code&gt; gives us &lt;math&gt;\sqrt{x} = 5.&lt;/math&gt;<br /> <br /> ==== Display Math Mode ====<br /> <br /> In display math mode, we enclose our code in double dollar signs, and it displays the math centered and on its own line. For example, &lt;code&gt;$$\sqrt{x} = 5$$&lt;/code&gt; gives us &lt;cmath&gt;\sqrt{x} = 5.&lt;/cmath&gt;<br /> <br /> ==== In-line vs. Display ====<br /> <br /> Besides displaying in-line vs. displaying centered and on a new line, the two modes render differently in other ways. Note that &lt;code&gt;$\sum_{k=1}^n k^2$&lt;/code&gt; gives us &lt;math&gt;\textstyle\sum_{k=1}^n k^2,&lt;/math&gt; whereas &lt;code&gt;$$\sum_{k=1}^n k^2$$&lt;/code&gt; gives us &lt;cmath&gt;\sum_{k=1}^n k^2.&lt;/cmath&gt;<br /> <br /> === Basic Expressions ===<br /> <br /> ==== Multiplication ====<br /> <br /> Sometimes, when we're multiplying, we don't need a multiplication symbol. For instance, we can write &lt;math&gt;xy&lt;/math&gt; instead of &lt;math&gt;x\cdot y&lt;/math&gt; without ambiguity. However, when you're multiplying numbers, for instance, a multiplication symbol comes in handy. The standard symbol is given by &lt;code&gt;$\cdot$&lt;/code&gt;. For example, &lt;code&gt;$12\cdot\frac{1}{2}$&lt;/code&gt; gives us &lt;math&gt;\textstyle 12\cdot \frac 12.&lt;/math&gt;<br /> <br /> ==== Fractions ====<br /> <br /> We can make fractions via &lt;code&gt;$\frac{...}{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\frac{x+y}{2}$&lt;/code&gt; will give us &lt;math&gt;\textstyle\frac{x+y}{2}.&lt;/math&gt;<br /> <br /> ==== Roots ====<br /> <br /> Square roots in &lt;math&gt;\LaTeX&lt;/math&gt; are pretty simple; we just type &lt;code&gt;$\sqrt{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{2}$&lt;/code&gt; gives us &lt;math&gt;\sqrt 2.&lt;/math&gt; Cube roots, fourth roots, and so on are only slightly more difficult; we type &lt;code&gt;$\sqrt[n]{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{x-y}$&lt;/code&gt; gives &lt;math&gt;\sqrt{x-y}.&lt;/math&gt;<br /> <br /> ==== Superscripts &amp; Subscripts ====<br /> <br /> To get superscripts (or exponents), we use the caret symbol &lt;code&gt;^&lt;/code&gt;. Typing &lt;code&gt;$x^2+y^2$&lt;/code&gt; gives &lt;math&gt;x^2+y^2.&lt;/math&gt; Subscripts are obtained via an underscore (holding shift and the minus sign on most keyboards). For instance, &lt;code&gt;$a_k$&lt;/code&gt; yields &lt;math&gt;a_k.&lt;/math&gt;<br /> <br /> ==== Groups ====<br /> <br /> Most operations in &lt;math&gt;\LaTeX&lt;/math&gt; (such as superscripts and subscripts) can only see the &quot;group&quot; of characters immediately following it. We use curly braces &lt;code&gt;{...}&lt;/code&gt; to indicate groups longer than one character. For instance, if we wrote &lt;code&gt;$x^2015$&lt;/code&gt;, we'd expect to get &lt;math&gt;x^{2015},&lt;/math&gt; but we instead get &lt;math&gt;x^2015.&lt;/math&gt; This is because each character in the string &lt;code&gt;2015&lt;/code&gt; is in its own group until we tell &lt;math&gt;\LaTeX&lt;/math&gt; that &lt;code&gt;2015&lt;/code&gt; should be one whole group. To convey this information to &lt;math&gt;\LaTeX&lt;/math&gt;, we write &lt;code&gt;$x^{2015}$&lt;/code&gt; and we get &lt;math&gt;x^{2015}.&lt;/math&gt;<br /> <br /> === Beyond the Basic Expressions ===<br /> <br /> ==== Grouping Basic Expressions ====<br /> <br /> Our ordinary parentheses &lt;code&gt;(...)&lt;/code&gt; and brackets &lt;code&gt;[...]&lt;/code&gt; work to group expressions in &lt;math&gt;\LaTeX&lt;/math&gt;. For instance, &lt;code&gt;$(x+y)[z+w]$&lt;/code&gt; gives us &lt;math&gt;(x+y)[z+w].&lt;/math&gt; We can also group expressions using curly braces, but we can't just type &lt;code&gt;{...}&lt;/code&gt;. Rather, we must type &lt;code&gt;\{...\}&lt;/code&gt;. This is because &lt;math&gt;\LaTeX&lt;/math&gt; uses plain curly braces for other things, such as fractions and superscripts and subscripts.<br /> <br /> &lt;br&gt;&lt;br&gt;<br /> <br /> When we put (vertically) large expressions inside of parentheses (or brackets, or curly braces, etc.), the parentheses don't resize to fit the expression and instead remain relatively small. For instance, &lt;code&gt;$$f(x) = \pi(\frac{\sqrt{x}}{x-1})$$&lt;/code&gt; comes out as &lt;cmath&gt;f(x) = \pi(\frac{\sqrt{x}}{x-1}).&lt;/cmath&gt; To automatically adjust the size of parentheses to fit the expression inside of them, we type &lt;code&gt;\left(...\right)&lt;/code&gt;. If we do this for our &lt;math&gt;f&lt;/math&gt; equation above, we get &lt;cmath&gt;f(x) = \pi\left(\frac{\sqrt{x}}{x-1}\right).&lt;/cmath&gt; We can use &lt;code&gt;\left&lt;/code&gt; and &lt;code&gt;\right&lt;/code&gt; for all sorts of things... parentheses (as we saw), brackets &lt;code&gt;$\left[...\right]$&lt;/code&gt;, braces &lt;code&gt;$\left\{...\right\}&lt;/code&gt;, absolute values &lt;code&gt;$\left|...\right|$&lt;/code&gt;, and much more (norms, floor and ceiling functions, inner products, etc.).<br /> <br /> ==== Lists ====<br /> <br /> To make a list, such as a sequence, we use &lt;code&gt;\dots&lt;/code&gt;. For example, &lt;code&gt;$a_0,a_1,\dots,a_n$&lt;/code&gt; will give us &lt;math&gt;a_0,a_1,\dots,a_n.&lt;/math&gt;<br /> <br /> ==== Sums ====<br /> <br /> There are two basic ways to write out sums. First, we can use &lt;code&gt;+&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example of this way would be &lt;code&gt;$a_1+a_2+\cdots+a_n$&lt;/code&gt; This will give us &lt;math&gt;a_1+a_2+\cdots+a_n.&lt;/math&gt; Second, we could use summation notation, or &lt;code&gt;\sum&lt;/code&gt;. Such an example is &lt;code&gt;$\sum_{i=0}^n a_i$&lt;/code&gt;, giving &lt;math&gt;\textstyle \sum_{i=0}^n a_i.&lt;/math&gt; Note the use of superscripts and subscripts to obtain the summation index.<br /> <br /> ==== Products ====<br /> <br /> Again, there are two basic ways to display products. First, we can use &lt;code&gt;\cdot&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example is &lt;code&gt;$n! = n\cdot(n-1)\cdots 2\cdot 1$&lt;/code&gt;, which of course gives &lt;math&gt;n! = n\cdot(n-1)\cdots 2 \cdot 1.&lt;/math&gt; The alternative is to use product notation with &lt;code&gt;\prod&lt;/code&gt;. For instance, &lt;code&gt;$n! = \prod_{k=1}^n k$&lt;/code&gt;, giving &lt;math&gt;\textstyle n! = \prod_{k=1}^n k.&lt;/math&gt;<br /> <br /> === Equalities and Inequalities ===<br /> <br /> ==== Inequalities ====<br /> <br /> the commands &lt;code&gt;&gt;, &lt;, \geq, \leq,&lt;/code&gt; and &lt;code&gt;\neq&lt;/code&gt; give us &lt;math&gt;&gt;,&lt;/math&gt; &lt;math&gt;&lt;,&lt;/math&gt; &lt;math&gt;\geq,&lt;/math&gt; &lt;math&gt;\leq,&lt;/math&gt; and &lt;math&gt;\neq,&lt;/math&gt; respectively.<br /> <br /> ==== Aligning Equations ====<br /> <br /> To align multiple equations, we use the &lt;code&gt;align*&lt;/code&gt; environment. For example, we might type a system of equations as follows:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> (You do not need dollar signs.) The &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to and the \\ symbols break to the next line. This code will output<br /> &lt;cmath&gt;\begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}&lt;/cmath&gt; An example of a string of equations is:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> Again, the &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to, and the \\ symbols break to the next line. This code outputs<br /> &lt;cmath&gt;\begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}&lt;/cmath&gt;<br /> <br /> ==== Numbering Equations ====<br /> <br /> To number equations, we use the &lt;code&gt;align&lt;/code&gt; environment. This is the same environment as the &lt;code&gt;align*&lt;/code&gt; environment, but we leave the &lt;code&gt;*&lt;/code&gt; off. The &lt;code&gt;*&lt;/code&gt; suppresses numbering. To number one equation, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by = c<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by = c.<br /> \end{align} &lt;/cmath&gt; We don't have to use &lt;code&gt;&amp;&lt;/code&gt; or \\ since there is nothing to align and no lines to break. To number several equations, such as a system, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i.<br /> \end{align} &lt;/cmath&gt; In general, &lt;code&gt;align&lt;/code&gt; will auto-number your equations from first to last.<br /> <br /> ==== Comments in Equations ====<br /> <br /> Again, we use the &lt;code&gt;align*&lt;/code&gt; environment. The code<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}<br /> \end{align*}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}.<br /> \end{align*} &lt;/cmath&gt; (You can use &lt;code&gt;align&lt;/code&gt; to get numbering &lt;i&gt;and&lt;/i&gt; comments!)<br /> <br /> ==== Definition by Cases ====<br /> <br /> To define, say, a function by cases, we use the &lt;code&gt;cases&lt;/code&gt; environment. The code<br /> &lt;pre&gt;&lt;nowiki&gt;<br /> $$&lt;/nowiki&gt; \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j \end{cases} &lt;nowiki&gt;$$<br /> &lt;/nowiki&gt;&lt;/pre&gt;<br /> gives us<br /> &lt;cmath&gt;<br /> \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j. \end{cases}<br /> &lt;/cmath&gt; As usual, the &lt;code&gt;&amp;&lt;/code&gt; is for aligning and the \\ is for line-breaking.<br /> <br /> === Commonly Used Commands ===<br /> <br /> ==== Algebra ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> <br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Geometry/Trig ====<br /> <br /> ==== Counting &amp; Probability ====<br /> <br /> ==== Number Theory ====<br /> <br /> ==== Linear Algebra ====<br /> <br /> ==== Calculus ====<br /> <br /> ==== Sets ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Denoting Membership&lt;/b&gt;: &lt;code&gt;a\in A&lt;/code&gt; gives &lt;math&gt;a\in A.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Complement of Set&lt;/b&gt;: &lt;code&gt;A\setminus B&lt;/code&gt; yields &lt;math&gt;A\setminus B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Set Notation&lt;/b&gt;: &lt;code&gt;\{...\}&lt;/code&gt; gives &lt;math&gt;\{...\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Set-Builder Notation&lt;/b&gt;: &lt;code&gt;\{x\in\mathbb{R}\mid P(x)\}&lt;/code&gt; gives &lt;math&gt;\{x\in\mathbb R \mid P(x)\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Union and Intersection&lt;/b&gt;: &lt;code&gt;A\cup B&lt;/code&gt; and &lt;code&gt;A\cap B&lt;/code&gt; give &lt;math&gt;A\cup B&lt;/math&gt; and &lt;math&gt;A\cap B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt; Indexed Union and Intersection&lt;/b&gt;: &lt;math&gt;\bigcup_{i=1}^n A_i&lt;/math&gt; and &lt;math&gt;\bigcap_{i=1}^n A_i&lt;/math&gt; give &lt;math&gt;\bigcup_{i=1}^n A_i&lt;/math&gt; and &lt;math&gt;\bigcap_{i=1}^n A_i.&lt;/math&gt; Mostly used in display math mode.<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Subset&lt;/b&gt;: &lt;code&gt;A \subseteq B&lt;/code&gt; gives &lt;math&gt;A\subseteq B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Cartesian Product&lt;/b&gt;: &lt;code&gt;A \times B&lt;/code&gt; gives &lt;math&gt;A\times B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Common Sets&lt;/b&gt;: &lt;code&gt;\mathbb{N},\mathbb{Z},\mathbb{Q},\mathbb{R},\mathbb{C}&lt;/code&gt; give us &lt;math&gt;\mathbb N, \mathbb Z, \mathbb Q, \mathbb R, \mathbb C.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Cardinality of a Set&lt;/b&gt;: &lt;code&gt;|A|&lt;/code&gt; gives &lt;math&gt;|A|.&lt;/math&gt;<br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Logic ====</div> 5space https://artofproblemsolving.com/wiki/index.php?title=LaTeX:LaTeX_on_AoPS&diff=72380 LaTeX:LaTeX on AoPS 2015-10-05T22:19:57Z <p>5space: /* Sets */</p> <hr /> <div>{{Latex}}<br /> <br /> This article explains how to use LaTeX in the AoPSWiki, the AoPS Community, and the AoPS Classroom. See [http://artofproblemsolving.com/wiki/index.php/LaTeX:Packages Packages] to know which packages are prebuilt into the AoPS site.<br /> <br /> <br /> ----<br /> == Getting Started with LaTeX ==<br /> <br /> === The Very Basics ===<br /> <br /> LaTeX uses a special &quot;math mode&quot; to display mathematics. There are two types of this &quot;math mode&quot;:<br /> <br /> ==== In-line Math Mode ====<br /> <br /> In in-line math mode, we use &lt;code&gt;$&lt;/code&gt; signs to enclose the math we want to display, and it displays in-line with our text. For example, typing &lt;code&gt;$\sqrt{x} = 5$&lt;/code&gt; gives us &lt;math&gt;\sqrt{x} = 5.&lt;/math&gt;<br /> <br /> ==== Display Math Mode ====<br /> <br /> In display math mode, we enclose our code in double dollar signs, and it displays the math centered and on its own line. For example, &lt;code&gt;$$\sqrt{x} = 5$$&lt;/code&gt; gives us &lt;cmath&gt;\sqrt{x} = 5.&lt;/cmath&gt;<br /> <br /> ==== In-line vs. Display ====<br /> <br /> Besides displaying in-line vs. displaying centered and on a new line, the two modes render differently in other ways. Note that &lt;code&gt;$\sum_{k=1}^n k^2$&lt;/code&gt; gives us &lt;math&gt;\textstyle\sum_{k=1}^n k^2,&lt;/math&gt; whereas &lt;code&gt;$$\sum_{k=1}^n k^2$$&lt;/code&gt; gives us &lt;cmath&gt;\sum_{k=1}^n k^2.&lt;/cmath&gt;<br /> <br /> === Basic Expressions ===<br /> <br /> ==== Multiplication ====<br /> <br /> Sometimes, when we're multiplying, we don't need a multiplication symbol. For instance, we can write &lt;math&gt;xy&lt;/math&gt; instead of &lt;math&gt;x\cdot y&lt;/math&gt; without ambiguity. However, when you're multiplying numbers, for instance, a multiplication symbol comes in handy. The standard symbol is given by &lt;code&gt;$\cdot$&lt;/code&gt;. For example, &lt;code&gt;$12\cdot\frac{1}{2}$&lt;/code&gt; gives us &lt;math&gt;\textstyle 12\cdot \frac 12.&lt;/math&gt;<br /> <br /> ==== Fractions ====<br /> <br /> We can make fractions via &lt;code&gt;$\frac{...}{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\frac{x+y}{2}$&lt;/code&gt; will give us &lt;math&gt;\textstyle\frac{x+y}{2}.&lt;/math&gt;<br /> <br /> ==== Roots ====<br /> <br /> Square roots in &lt;math&gt;\LaTeX&lt;/math&gt; are pretty simple; we just type &lt;code&gt;$\sqrt{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{2}$&lt;/code&gt; gives us &lt;math&gt;\sqrt 2.&lt;/math&gt; Cube roots, fourth roots, and so on are only slightly more difficult; we type &lt;code&gt;$\sqrt[n]{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{x-y}$&lt;/code&gt; gives &lt;math&gt;\sqrt{x-y}.&lt;/math&gt;<br /> <br /> ==== Superscripts &amp; Subscripts ====<br /> <br /> To get superscripts (or exponents), we use the caret symbol &lt;code&gt;^&lt;/code&gt;. Typing &lt;code&gt;$x^2+y^2$&lt;/code&gt; gives &lt;math&gt;x^2+y^2.&lt;/math&gt; Subscripts are obtained via an underscore (holding shift and the minus sign on most keyboards). For instance, &lt;code&gt;$a_k$&lt;/code&gt; yields &lt;math&gt;a_k.&lt;/math&gt;<br /> <br /> ==== Groups ====<br /> <br /> Most operations in &lt;math&gt;\LaTeX&lt;/math&gt; (such as superscripts and subscripts) can only see the &quot;group&quot; of characters immediately following it. We use curly braces &lt;code&gt;{...}&lt;/code&gt; to indicate groups longer than one character. For instance, if we wrote &lt;code&gt;$x^2015$&lt;/code&gt;, we'd expect to get &lt;math&gt;x^{2015},&lt;/math&gt; but we instead get &lt;math&gt;x^2015.&lt;/math&gt; This is because each character in the string &lt;code&gt;2015&lt;/code&gt; is in its own group until we tell &lt;math&gt;\LaTeX&lt;/math&gt; that &lt;code&gt;2015&lt;/code&gt; should be one whole group. To convey this information to &lt;math&gt;\LaTeX&lt;/math&gt;, we write &lt;code&gt;$x^{2015}$&lt;/code&gt; and we get &lt;math&gt;x^{2015}.&lt;/math&gt;<br /> <br /> === Beyond the Basic Expressions ===<br /> <br /> ==== Grouping Basic Expressions ====<br /> <br /> Our ordinary parentheses &lt;code&gt;(...)&lt;/code&gt; and brackets &lt;code&gt;[...]&lt;/code&gt; work to group expressions in &lt;math&gt;\LaTeX&lt;/math&gt;. For instance, &lt;code&gt;$(x+y)[z+w]$&lt;/code&gt; gives us &lt;math&gt;(x+y)[z+w].&lt;/math&gt; We can also group expressions using curly braces, but we can't just type &lt;code&gt;{...}&lt;/code&gt;. Rather, we must type &lt;code&gt;\{...\}&lt;/code&gt;. This is because &lt;math&gt;\LaTeX&lt;/math&gt; uses plain curly braces for other things, such as fractions and superscripts and subscripts.<br /> <br /> &lt;br&gt;&lt;br&gt;<br /> <br /> When we put (vertically) large expressions inside of parentheses (or brackets, or curly braces, etc.), the parentheses don't resize to fit the expression and instead remain relatively small. For instance, &lt;code&gt;$$f(x) = \pi(\frac{\sqrt{x}}{x-1})$$&lt;/code&gt; comes out as &lt;cmath&gt;f(x) = \pi(\frac{\sqrt{x}}{x-1}).&lt;/cmath&gt; To automatically adjust the size of parentheses to fit the expression inside of them, we type &lt;code&gt;\left(...\right)&lt;/code&gt;. If we do this for our &lt;math&gt;f&lt;/math&gt; equation above, we get &lt;cmath&gt;f(x) = \pi\left(\frac{\sqrt{x}}{x-1}\right).&lt;/cmath&gt; We can use &lt;code&gt;\left&lt;/code&gt; and &lt;code&gt;\right&lt;/code&gt; for all sorts of things... parentheses (as we saw), brackets &lt;code&gt;$\left[...\right]$&lt;/code&gt;, braces &lt;code&gt;$\left\{...\right\}&lt;/code&gt;, absolute values &lt;code&gt;$\left|...\right|$&lt;/code&gt;, and much more (norms, floor and ceiling functions, inner products, etc.).<br /> <br /> ==== Lists ====<br /> <br /> To make a list, such as a sequence, we use &lt;code&gt;\dots&lt;/code&gt;. For example, &lt;code&gt;$a_0,a_1,\dots,a_n$&lt;/code&gt; will give us &lt;math&gt;a_0,a_1,\dots,a_n.&lt;/math&gt;<br /> <br /> ==== Sums ====<br /> <br /> There are two basic ways to write out sums. First, we can use &lt;code&gt;+&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example of this way would be &lt;code&gt;$a_1+a_2+\cdots+a_n$&lt;/code&gt; This will give us &lt;math&gt;a_1+a_2+\cdots+a_n.&lt;/math&gt; Second, we could use summation notation, or &lt;code&gt;\sum&lt;/code&gt;. Such an example is &lt;code&gt;$\sum_{i=0}^n a_i$&lt;/code&gt;, giving &lt;math&gt;\textstyle \sum_{i=0}^n a_i.&lt;/math&gt; Note the use of superscripts and subscripts to obtain the summation index.<br /> <br /> ==== Products ====<br /> <br /> Again, there are two basic ways to display products. First, we can use &lt;code&gt;\cdot&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example is &lt;code&gt;$n! = n\cdot(n-1)\cdots 2\cdot 1$&lt;/code&gt;, which of course gives &lt;math&gt;n! = n\cdot(n-1)\cdots 2 \cdot 1.&lt;/math&gt; The alternative is to use product notation with &lt;code&gt;\prod&lt;/code&gt;. For instance, &lt;code&gt;$n! = \prod_{k=1}^n k$&lt;/code&gt;, giving &lt;math&gt;\textstyle n! = \prod_{k=1}^n k.&lt;/math&gt;<br /> <br /> === Equalities and Inequalities ===<br /> <br /> ==== Inequalities ====<br /> <br /> the commands &lt;code&gt;&gt;, &lt;, \geq, \leq,&lt;/code&gt; and &lt;code&gt;\neq&lt;/code&gt; give us &lt;math&gt;&gt;,&lt;/math&gt; &lt;math&gt;&lt;,&lt;/math&gt; &lt;math&gt;\geq,&lt;/math&gt; &lt;math&gt;\leq,&lt;/math&gt; and &lt;math&gt;\neq,&lt;/math&gt; respectively.<br /> <br /> ==== Aligning Equations ====<br /> <br /> To align multiple equations, we use the &lt;code&gt;align*&lt;/code&gt; environment. For example, we might type a system of equations as follows:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> (You do not need dollar signs.) The &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to and the \\ symbols break to the next line. This code will output<br /> &lt;cmath&gt;\begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}&lt;/cmath&gt; An example of a string of equations is:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> Again, the &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to, and the \\ symbols break to the next line. This code outputs<br /> &lt;cmath&gt;\begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}&lt;/cmath&gt;<br /> <br /> ==== Numbering Equations ====<br /> <br /> To number equations, we use the &lt;code&gt;align&lt;/code&gt; environment. This is the same environment as the &lt;code&gt;align*&lt;/code&gt; environment, but we leave the &lt;code&gt;*&lt;/code&gt; off. The &lt;code&gt;*&lt;/code&gt; suppresses numbering. To number one equation, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by = c<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by = c.<br /> \end{align} &lt;/cmath&gt; We don't have to use &lt;code&gt;&amp;&lt;/code&gt; or \\ since there is nothing to align and no lines to break. To number several equations, such as a system, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i.<br /> \end{align} &lt;/cmath&gt; In general, &lt;code&gt;align&lt;/code&gt; will auto-number your equations from first to last.<br /> <br /> ==== Comments in Equations ====<br /> <br /> Again, we use the &lt;code&gt;align*&lt;/code&gt; environment. The code<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}<br /> \end{align*}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}.<br /> \end{align*} &lt;/cmath&gt; (You can use &lt;code&gt;align&lt;/code&gt; to get numbering &lt;i&gt;and&lt;/i&gt; comments!)<br /> <br /> ==== Definition by Cases ====<br /> <br /> To define, say, a function by cases, we use the &lt;code&gt;cases&lt;/code&gt; environment. The code<br /> &lt;pre&gt;&lt;nowiki&gt;<br /> $$&lt;/nowiki&gt; \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j \end{cases} &lt;nowiki&gt;$$<br /> &lt;/nowiki&gt;&lt;/pre&gt;<br /> gives us<br /> &lt;cmath&gt;<br /> \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j. \end{cases}<br /> &lt;/cmath&gt; As usual, the &lt;code&gt;&amp;&lt;/code&gt; is for aligning and the \\ is for line-breaking.<br /> <br /> === Commonly Used Commands ===<br /> <br /> ==== Algebra ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> <br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Geometry/Trig ====<br /> <br /> ==== Counting &amp; Probability ====<br /> <br /> ==== Number Theory ====<br /> <br /> ==== Linear Algebra ====<br /> <br /> ==== Calculus ====<br /> <br /> ==== Sets ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Denoting Membership&lt;/b&gt;: &lt;code&gt;a\in A&lt;/code&gt; gives &lt;math&gt;a\in A.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Set Notation&lt;/b&gt;: &lt;code&gt;\{...\}&lt;/code&gt; gives &lt;math&gt;\{...\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Set-Builder Notation&lt;/b&gt;: &lt;code&gt;\{x\in\mathbb{R}\mid P(x)\}&lt;/code&gt; gives &lt;math&gt;\{x\in\mathbb R \mid P(x)\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Union and Intersection&lt;/b&gt;: &lt;code&gt;A\cup B&lt;/code&gt; and &lt;code&gt;A\cap B&lt;/code&gt; give &lt;math&gt;A\cup B&lt;/math&gt; and &lt;math&gt;A\cap B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt; Indexed Union and Intersection&lt;/b&gt;: &lt;math&gt;\bigcup_{i=1}^n A_i&lt;/math&gt; and &lt;math&gt;\bigcap_{i=1}^n A_i&lt;/math&gt; give &lt;math&gt;\bigcup_{i=1}^n A_i&lt;/math&gt; and &lt;math&gt;\bigcap_{i=1}^n A_i.&lt;/math&gt; Mostly used in display math mode.<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Subset&lt;/b&gt;: &lt;code&gt;A \subseteq B&lt;/code&gt; gives &lt;math&gt;A\subseteq B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Cartesian Product&lt;/b&gt;: &lt;code&gt;A \times B&lt;/code&gt; gives &lt;math&gt;A\times B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Common Sets&lt;/b&gt;: &lt;code&gt;\mathbb{N},\mathbb{Z},\mathbb{Q},\mathbb{R},\mathbb{C}&lt;/code&gt; give us &lt;math&gt;\mathbb N, \mathbb Z, \mathbb Q, \mathbb R, \mathbb C.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Cardinality of a Set&lt;/b&gt;: &lt;code&gt;|A|&lt;/code&gt; gives &lt;math&gt;|A|.&lt;/math&gt;<br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Logic ====</div> 5space https://artofproblemsolving.com/wiki/index.php?title=LaTeX:LaTeX_on_AoPS&diff=72379 LaTeX:LaTeX on AoPS 2015-10-05T22:18:04Z <p>5space: /* Sets */</p> <hr /> <div>{{Latex}}<br /> <br /> This article explains how to use LaTeX in the AoPSWiki, the AoPS Community, and the AoPS Classroom. See [http://artofproblemsolving.com/wiki/index.php/LaTeX:Packages Packages] to know which packages are prebuilt into the AoPS site.<br /> <br /> <br /> ----<br /> == Getting Started with LaTeX ==<br /> <br /> === The Very Basics ===<br /> <br /> LaTeX uses a special &quot;math mode&quot; to display mathematics. There are two types of this &quot;math mode&quot;:<br /> <br /> ==== In-line Math Mode ====<br /> <br /> In in-line math mode, we use &lt;code&gt;$&lt;/code&gt; signs to enclose the math we want to display, and it displays in-line with our text. For example, typing &lt;code&gt;$\sqrt{x} = 5$&lt;/code&gt; gives us &lt;math&gt;\sqrt{x} = 5.&lt;/math&gt;<br /> <br /> ==== Display Math Mode ====<br /> <br /> In display math mode, we enclose our code in double dollar signs, and it displays the math centered and on its own line. For example, &lt;code&gt;$$\sqrt{x} = 5$$&lt;/code&gt; gives us &lt;cmath&gt;\sqrt{x} = 5.&lt;/cmath&gt;<br /> <br /> ==== In-line vs. Display ====<br /> <br /> Besides displaying in-line vs. displaying centered and on a new line, the two modes render differently in other ways. Note that &lt;code&gt;$\sum_{k=1}^n k^2$&lt;/code&gt; gives us &lt;math&gt;\textstyle\sum_{k=1}^n k^2,&lt;/math&gt; whereas &lt;code&gt;$$\sum_{k=1}^n k^2$$&lt;/code&gt; gives us &lt;cmath&gt;\sum_{k=1}^n k^2.&lt;/cmath&gt;<br /> <br /> === Basic Expressions ===<br /> <br /> ==== Multiplication ====<br /> <br /> Sometimes, when we're multiplying, we don't need a multiplication symbol. For instance, we can write &lt;math&gt;xy&lt;/math&gt; instead of &lt;math&gt;x\cdot y&lt;/math&gt; without ambiguity. However, when you're multiplying numbers, for instance, a multiplication symbol comes in handy. The standard symbol is given by &lt;code&gt;$\cdot$&lt;/code&gt;. For example, &lt;code&gt;$12\cdot\frac{1}{2}$&lt;/code&gt; gives us &lt;math&gt;\textstyle 12\cdot \frac 12.&lt;/math&gt;<br /> <br /> ==== Fractions ====<br /> <br /> We can make fractions via &lt;code&gt;$\frac{...}{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\frac{x+y}{2}$&lt;/code&gt; will give us &lt;math&gt;\textstyle\frac{x+y}{2}.&lt;/math&gt;<br /> <br /> ==== Roots ====<br /> <br /> Square roots in &lt;math&gt;\LaTeX&lt;/math&gt; are pretty simple; we just type &lt;code&gt;$\sqrt{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{2}$&lt;/code&gt; gives us &lt;math&gt;\sqrt 2.&lt;/math&gt; Cube roots, fourth roots, and so on are only slightly more difficult; we type &lt;code&gt;$\sqrt[n]{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{x-y}$&lt;/code&gt; gives &lt;math&gt;\sqrt{x-y}.&lt;/math&gt;<br /> <br /> ==== Superscripts &amp; Subscripts ====<br /> <br /> To get superscripts (or exponents), we use the caret symbol &lt;code&gt;^&lt;/code&gt;. Typing &lt;code&gt;$x^2+y^2$&lt;/code&gt; gives &lt;math&gt;x^2+y^2.&lt;/math&gt; Subscripts are obtained via an underscore (holding shift and the minus sign on most keyboards). For instance, &lt;code&gt;$a_k$&lt;/code&gt; yields &lt;math&gt;a_k.&lt;/math&gt;<br /> <br /> ==== Groups ====<br /> <br /> Most operations in &lt;math&gt;\LaTeX&lt;/math&gt; (such as superscripts and subscripts) can only see the &quot;group&quot; of characters immediately following it. We use curly braces &lt;code&gt;{...}&lt;/code&gt; to indicate groups longer than one character. For instance, if we wrote &lt;code&gt;$x^2015$&lt;/code&gt;, we'd expect to get &lt;math&gt;x^{2015},&lt;/math&gt; but we instead get &lt;math&gt;x^2015.&lt;/math&gt; This is because each character in the string &lt;code&gt;2015&lt;/code&gt; is in its own group until we tell &lt;math&gt;\LaTeX&lt;/math&gt; that &lt;code&gt;2015&lt;/code&gt; should be one whole group. To convey this information to &lt;math&gt;\LaTeX&lt;/math&gt;, we write &lt;code&gt;$x^{2015}$&lt;/code&gt; and we get &lt;math&gt;x^{2015}.&lt;/math&gt;<br /> <br /> === Beyond the Basic Expressions ===<br /> <br /> ==== Grouping Basic Expressions ====<br /> <br /> Our ordinary parentheses &lt;code&gt;(...)&lt;/code&gt; and brackets &lt;code&gt;[...]&lt;/code&gt; work to group expressions in &lt;math&gt;\LaTeX&lt;/math&gt;. For instance, &lt;code&gt;$(x+y)[z+w]$&lt;/code&gt; gives us &lt;math&gt;(x+y)[z+w].&lt;/math&gt; We can also group expressions using curly braces, but we can't just type &lt;code&gt;{...}&lt;/code&gt;. Rather, we must type &lt;code&gt;\{...\}&lt;/code&gt;. This is because &lt;math&gt;\LaTeX&lt;/math&gt; uses plain curly braces for other things, such as fractions and superscripts and subscripts.<br /> <br /> &lt;br&gt;&lt;br&gt;<br /> <br /> When we put (vertically) large expressions inside of parentheses (or brackets, or curly braces, etc.), the parentheses don't resize to fit the expression and instead remain relatively small. For instance, &lt;code&gt;$$f(x) = \pi(\frac{\sqrt{x}}{x-1})$$&lt;/code&gt; comes out as &lt;cmath&gt;f(x) = \pi(\frac{\sqrt{x}}{x-1}).&lt;/cmath&gt; To automatically adjust the size of parentheses to fit the expression inside of them, we type &lt;code&gt;\left(...\right)&lt;/code&gt;. If we do this for our &lt;math&gt;f&lt;/math&gt; equation above, we get &lt;cmath&gt;f(x) = \pi\left(\frac{\sqrt{x}}{x-1}\right).&lt;/cmath&gt; We can use &lt;code&gt;\left&lt;/code&gt; and &lt;code&gt;\right&lt;/code&gt; for all sorts of things... parentheses (as we saw), brackets &lt;code&gt;$\left[...\right]$&lt;/code&gt;, braces &lt;code&gt;$\left\{...\right\}&lt;/code&gt;, absolute values &lt;code&gt;$\left|...\right|$&lt;/code&gt;, and much more (norms, floor and ceiling functions, inner products, etc.).<br /> <br /> ==== Lists ====<br /> <br /> To make a list, such as a sequence, we use &lt;code&gt;\dots&lt;/code&gt;. For example, &lt;code&gt;$a_0,a_1,\dots,a_n$&lt;/code&gt; will give us &lt;math&gt;a_0,a_1,\dots,a_n.&lt;/math&gt;<br /> <br /> ==== Sums ====<br /> <br /> There are two basic ways to write out sums. First, we can use &lt;code&gt;+&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example of this way would be &lt;code&gt;$a_1+a_2+\cdots+a_n$&lt;/code&gt; This will give us &lt;math&gt;a_1+a_2+\cdots+a_n.&lt;/math&gt; Second, we could use summation notation, or &lt;code&gt;\sum&lt;/code&gt;. Such an example is &lt;code&gt;$\sum_{i=0}^n a_i$&lt;/code&gt;, giving &lt;math&gt;\textstyle \sum_{i=0}^n a_i.&lt;/math&gt; Note the use of superscripts and subscripts to obtain the summation index.<br /> <br /> ==== Products ====<br /> <br /> Again, there are two basic ways to display products. First, we can use &lt;code&gt;\cdot&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example is &lt;code&gt;$n! = n\cdot(n-1)\cdots 2\cdot 1$&lt;/code&gt;, which of course gives &lt;math&gt;n! = n\cdot(n-1)\cdots 2 \cdot 1.&lt;/math&gt; The alternative is to use product notation with &lt;code&gt;\prod&lt;/code&gt;. For instance, &lt;code&gt;$n! = \prod_{k=1}^n k$&lt;/code&gt;, giving &lt;math&gt;\textstyle n! = \prod_{k=1}^n k.&lt;/math&gt;<br /> <br /> === Equalities and Inequalities ===<br /> <br /> ==== Inequalities ====<br /> <br /> the commands &lt;code&gt;&gt;, &lt;, \geq, \leq,&lt;/code&gt; and &lt;code&gt;\neq&lt;/code&gt; give us &lt;math&gt;&gt;,&lt;/math&gt; &lt;math&gt;&lt;,&lt;/math&gt; &lt;math&gt;\geq,&lt;/math&gt; &lt;math&gt;\leq,&lt;/math&gt; and &lt;math&gt;\neq,&lt;/math&gt; respectively.<br /> <br /> ==== Aligning Equations ====<br /> <br /> To align multiple equations, we use the &lt;code&gt;align*&lt;/code&gt; environment. For example, we might type a system of equations as follows:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> (You do not need dollar signs.) The &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to and the \\ symbols break to the next line. This code will output<br /> &lt;cmath&gt;\begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}&lt;/cmath&gt; An example of a string of equations is:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> Again, the &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to, and the \\ symbols break to the next line. This code outputs<br /> &lt;cmath&gt;\begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}&lt;/cmath&gt;<br /> <br /> ==== Numbering Equations ====<br /> <br /> To number equations, we use the &lt;code&gt;align&lt;/code&gt; environment. This is the same environment as the &lt;code&gt;align*&lt;/code&gt; environment, but we leave the &lt;code&gt;*&lt;/code&gt; off. The &lt;code&gt;*&lt;/code&gt; suppresses numbering. To number one equation, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by = c<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by = c.<br /> \end{align} &lt;/cmath&gt; We don't have to use &lt;code&gt;&amp;&lt;/code&gt; or \\ since there is nothing to align and no lines to break. To number several equations, such as a system, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i.<br /> \end{align} &lt;/cmath&gt; In general, &lt;code&gt;align&lt;/code&gt; will auto-number your equations from first to last.<br /> <br /> ==== Comments in Equations ====<br /> <br /> Again, we use the &lt;code&gt;align*&lt;/code&gt; environment. The code<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}<br /> \end{align*}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}.<br /> \end{align*} &lt;/cmath&gt; (You can use &lt;code&gt;align&lt;/code&gt; to get numbering &lt;i&gt;and&lt;/i&gt; comments!)<br /> <br /> ==== Definition by Cases ====<br /> <br /> To define, say, a function by cases, we use the &lt;code&gt;cases&lt;/code&gt; environment. The code<br /> &lt;pre&gt;&lt;nowiki&gt;<br /> $$&lt;/nowiki&gt; \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j \end{cases} &lt;nowiki&gt;$$<br /> &lt;/nowiki&gt;&lt;/pre&gt;<br /> gives us<br /> &lt;cmath&gt;<br /> \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j. \end{cases}<br /> &lt;/cmath&gt; As usual, the &lt;code&gt;&amp;&lt;/code&gt; is for aligning and the \\ is for line-breaking.<br /> <br /> === Commonly Used Commands ===<br /> <br /> ==== Algebra ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> <br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Geometry/Trig ====<br /> <br /> ==== Counting &amp; Probability ====<br /> <br /> ==== Number Theory ====<br /> <br /> ==== Linear Algebra ====<br /> <br /> ==== Calculus ====<br /> <br /> ==== Sets ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Set Notation&lt;/b&gt;: &lt;code&gt;\{...\}&lt;/code&gt; gives &lt;math&gt;\{...\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Set-Builder Notation&lt;/b&gt;: &lt;code&gt;\{x\in\mathbb{R}\mid P(x)\}&lt;/code&gt; gives &lt;math&gt;\{x\in\mathbb R \mid P(x)\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Union and Intersection&lt;/b&gt;: &lt;code&gt;A\cup B&lt;/code&gt; and &lt;code&gt;A\cap B&lt;/code&gt; give &lt;math&gt;A\cup B&lt;/math&gt; and &lt;math&gt;A\cap B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt; Indexed Union and Intersection&lt;/b&gt;: &lt;math&gt;\bigcup_{i=1}^n A_i&lt;/math&gt; and &lt;math&gt;\bigcap_{i=1}^n A_i&lt;/math&gt; give &lt;math&gt;\bigcup_{i=1}^n A_i&lt;/math&gt; and &lt;math&gt;\bigcap_{i=1}^n A_i.&lt;/math&gt; Mostly used in display math mode.<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Subset&lt;/b&gt;: &lt;code&gt;A \subseteq B&lt;/code&gt; gives &lt;math&gt;A\subseteq B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Cartesian Product&lt;/b&gt;: &lt;code&gt;A \times B&lt;/code&gt; gives &lt;math&gt;A\times B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Common Sets&lt;/b&gt;: &lt;code&gt;\mathbb{N},\mathbb{Z},\mathbb{Q},\mathbb{R},\mathbb{C}&lt;/code&gt; give us &lt;math&gt;\mathbb N, \mathbb Z, \mathbb Q, \mathbb R, \mathbb C.&lt;/math&gt;<br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Logic ====</div> 5space https://artofproblemsolving.com/wiki/index.php?title=LaTeX:LaTeX_on_AoPS&diff=72378 LaTeX:LaTeX on AoPS 2015-10-05T22:17:27Z <p>5space: /* Sets */</p> <hr /> <div>{{Latex}}<br /> <br /> This article explains how to use LaTeX in the AoPSWiki, the AoPS Community, and the AoPS Classroom. See [http://artofproblemsolving.com/wiki/index.php/LaTeX:Packages Packages] to know which packages are prebuilt into the AoPS site.<br /> <br /> <br /> ----<br /> == Getting Started with LaTeX ==<br /> <br /> === The Very Basics ===<br /> <br /> LaTeX uses a special &quot;math mode&quot; to display mathematics. There are two types of this &quot;math mode&quot;:<br /> <br /> ==== In-line Math Mode ====<br /> <br /> In in-line math mode, we use &lt;code&gt;$&lt;/code&gt; signs to enclose the math we want to display, and it displays in-line with our text. For example, typing &lt;code&gt;$\sqrt{x} = 5$&lt;/code&gt; gives us &lt;math&gt;\sqrt{x} = 5.&lt;/math&gt;<br /> <br /> ==== Display Math Mode ====<br /> <br /> In display math mode, we enclose our code in double dollar signs, and it displays the math centered and on its own line. For example, &lt;code&gt;$$\sqrt{x} = 5$$&lt;/code&gt; gives us &lt;cmath&gt;\sqrt{x} = 5.&lt;/cmath&gt;<br /> <br /> ==== In-line vs. Display ====<br /> <br /> Besides displaying in-line vs. displaying centered and on a new line, the two modes render differently in other ways. Note that &lt;code&gt;$\sum_{k=1}^n k^2$&lt;/code&gt; gives us &lt;math&gt;\textstyle\sum_{k=1}^n k^2,&lt;/math&gt; whereas &lt;code&gt;$$\sum_{k=1}^n k^2$$&lt;/code&gt; gives us &lt;cmath&gt;\sum_{k=1}^n k^2.&lt;/cmath&gt;<br /> <br /> === Basic Expressions ===<br /> <br /> ==== Multiplication ====<br /> <br /> Sometimes, when we're multiplying, we don't need a multiplication symbol. For instance, we can write &lt;math&gt;xy&lt;/math&gt; instead of &lt;math&gt;x\cdot y&lt;/math&gt; without ambiguity. However, when you're multiplying numbers, for instance, a multiplication symbol comes in handy. The standard symbol is given by &lt;code&gt;$\cdot$&lt;/code&gt;. For example, &lt;code&gt;$12\cdot\frac{1}{2}$&lt;/code&gt; gives us &lt;math&gt;\textstyle 12\cdot \frac 12.&lt;/math&gt;<br /> <br /> ==== Fractions ====<br /> <br /> We can make fractions via &lt;code&gt;$\frac{...}{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\frac{x+y}{2}$&lt;/code&gt; will give us &lt;math&gt;\textstyle\frac{x+y}{2}.&lt;/math&gt;<br /> <br /> ==== Roots ====<br /> <br /> Square roots in &lt;math&gt;\LaTeX&lt;/math&gt; are pretty simple; we just type &lt;code&gt;$\sqrt{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{2}$&lt;/code&gt; gives us &lt;math&gt;\sqrt 2.&lt;/math&gt; Cube roots, fourth roots, and so on are only slightly more difficult; we type &lt;code&gt;$\sqrt[n]{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{x-y}$&lt;/code&gt; gives &lt;math&gt;\sqrt{x-y}.&lt;/math&gt;<br /> <br /> ==== Superscripts &amp; Subscripts ====<br /> <br /> To get superscripts (or exponents), we use the caret symbol &lt;code&gt;^&lt;/code&gt;. Typing &lt;code&gt;$x^2+y^2$&lt;/code&gt; gives &lt;math&gt;x^2+y^2.&lt;/math&gt; Subscripts are obtained via an underscore (holding shift and the minus sign on most keyboards). For instance, &lt;code&gt;$a_k$&lt;/code&gt; yields &lt;math&gt;a_k.&lt;/math&gt;<br /> <br /> ==== Groups ====<br /> <br /> Most operations in &lt;math&gt;\LaTeX&lt;/math&gt; (such as superscripts and subscripts) can only see the &quot;group&quot; of characters immediately following it. We use curly braces &lt;code&gt;{...}&lt;/code&gt; to indicate groups longer than one character. For instance, if we wrote &lt;code&gt;$x^2015$&lt;/code&gt;, we'd expect to get &lt;math&gt;x^{2015},&lt;/math&gt; but we instead get &lt;math&gt;x^2015.&lt;/math&gt; This is because each character in the string &lt;code&gt;2015&lt;/code&gt; is in its own group until we tell &lt;math&gt;\LaTeX&lt;/math&gt; that &lt;code&gt;2015&lt;/code&gt; should be one whole group. To convey this information to &lt;math&gt;\LaTeX&lt;/math&gt;, we write &lt;code&gt;$x^{2015}$&lt;/code&gt; and we get &lt;math&gt;x^{2015}.&lt;/math&gt;<br /> <br /> === Beyond the Basic Expressions ===<br /> <br /> ==== Grouping Basic Expressions ====<br /> <br /> Our ordinary parentheses &lt;code&gt;(...)&lt;/code&gt; and brackets &lt;code&gt;[...]&lt;/code&gt; work to group expressions in &lt;math&gt;\LaTeX&lt;/math&gt;. For instance, &lt;code&gt;$(x+y)[z+w]$&lt;/code&gt; gives us &lt;math&gt;(x+y)[z+w].&lt;/math&gt; We can also group expressions using curly braces, but we can't just type &lt;code&gt;{...}&lt;/code&gt;. Rather, we must type &lt;code&gt;\{...\}&lt;/code&gt;. This is because &lt;math&gt;\LaTeX&lt;/math&gt; uses plain curly braces for other things, such as fractions and superscripts and subscripts.<br /> <br /> &lt;br&gt;&lt;br&gt;<br /> <br /> When we put (vertically) large expressions inside of parentheses (or brackets, or curly braces, etc.), the parentheses don't resize to fit the expression and instead remain relatively small. For instance, &lt;code&gt;$$f(x) = \pi(\frac{\sqrt{x}}{x-1})$$&lt;/code&gt; comes out as &lt;cmath&gt;f(x) = \pi(\frac{\sqrt{x}}{x-1}).&lt;/cmath&gt; To automatically adjust the size of parentheses to fit the expression inside of them, we type &lt;code&gt;\left(...\right)&lt;/code&gt;. If we do this for our &lt;math&gt;f&lt;/math&gt; equation above, we get &lt;cmath&gt;f(x) = \pi\left(\frac{\sqrt{x}}{x-1}\right).&lt;/cmath&gt; We can use &lt;code&gt;\left&lt;/code&gt; and &lt;code&gt;\right&lt;/code&gt; for all sorts of things... parentheses (as we saw), brackets &lt;code&gt;$\left[...\right]$&lt;/code&gt;, braces &lt;code&gt;$\left\{...\right\}&lt;/code&gt;, absolute values &lt;code&gt;$\left|...\right|$&lt;/code&gt;, and much more (norms, floor and ceiling functions, inner products, etc.).<br /> <br /> ==== Lists ====<br /> <br /> To make a list, such as a sequence, we use &lt;code&gt;\dots&lt;/code&gt;. For example, &lt;code&gt;$a_0,a_1,\dots,a_n$&lt;/code&gt; will give us &lt;math&gt;a_0,a_1,\dots,a_n.&lt;/math&gt;<br /> <br /> ==== Sums ====<br /> <br /> There are two basic ways to write out sums. First, we can use &lt;code&gt;+&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example of this way would be &lt;code&gt;$a_1+a_2+\cdots+a_n$&lt;/code&gt; This will give us &lt;math&gt;a_1+a_2+\cdots+a_n.&lt;/math&gt; Second, we could use summation notation, or &lt;code&gt;\sum&lt;/code&gt;. Such an example is &lt;code&gt;$\sum_{i=0}^n a_i$&lt;/code&gt;, giving &lt;math&gt;\textstyle \sum_{i=0}^n a_i.&lt;/math&gt; Note the use of superscripts and subscripts to obtain the summation index.<br /> <br /> ==== Products ====<br /> <br /> Again, there are two basic ways to display products. First, we can use &lt;code&gt;\cdot&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example is &lt;code&gt;$n! = n\cdot(n-1)\cdots 2\cdot 1$&lt;/code&gt;, which of course gives &lt;math&gt;n! = n\cdot(n-1)\cdots 2 \cdot 1.&lt;/math&gt; The alternative is to use product notation with &lt;code&gt;\prod&lt;/code&gt;. For instance, &lt;code&gt;$n! = \prod_{k=1}^n k$&lt;/code&gt;, giving &lt;math&gt;\textstyle n! = \prod_{k=1}^n k.&lt;/math&gt;<br /> <br /> === Equalities and Inequalities ===<br /> <br /> ==== Inequalities ====<br /> <br /> the commands &lt;code&gt;&gt;, &lt;, \geq, \leq,&lt;/code&gt; and &lt;code&gt;\neq&lt;/code&gt; give us &lt;math&gt;&gt;,&lt;/math&gt; &lt;math&gt;&lt;,&lt;/math&gt; &lt;math&gt;\geq,&lt;/math&gt; &lt;math&gt;\leq,&lt;/math&gt; and &lt;math&gt;\neq,&lt;/math&gt; respectively.<br /> <br /> ==== Aligning Equations ====<br /> <br /> To align multiple equations, we use the &lt;code&gt;align*&lt;/code&gt; environment. For example, we might type a system of equations as follows:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> (You do not need dollar signs.) The &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to and the \\ symbols break to the next line. This code will output<br /> &lt;cmath&gt;\begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}&lt;/cmath&gt; An example of a string of equations is:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> Again, the &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to, and the \\ symbols break to the next line. This code outputs<br /> &lt;cmath&gt;\begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}&lt;/cmath&gt;<br /> <br /> ==== Numbering Equations ====<br /> <br /> To number equations, we use the &lt;code&gt;align&lt;/code&gt; environment. This is the same environment as the &lt;code&gt;align*&lt;/code&gt; environment, but we leave the &lt;code&gt;*&lt;/code&gt; off. The &lt;code&gt;*&lt;/code&gt; suppresses numbering. To number one equation, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by = c<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by = c.<br /> \end{align} &lt;/cmath&gt; We don't have to use &lt;code&gt;&amp;&lt;/code&gt; or \\ since there is nothing to align and no lines to break. To number several equations, such as a system, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i.<br /> \end{align} &lt;/cmath&gt; In general, &lt;code&gt;align&lt;/code&gt; will auto-number your equations from first to last.<br /> <br /> ==== Comments in Equations ====<br /> <br /> Again, we use the &lt;code&gt;align*&lt;/code&gt; environment. The code<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}<br /> \end{align*}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}.<br /> \end{align*} &lt;/cmath&gt; (You can use &lt;code&gt;align&lt;/code&gt; to get numbering &lt;i&gt;and&lt;/i&gt; comments!)<br /> <br /> ==== Definition by Cases ====<br /> <br /> To define, say, a function by cases, we use the &lt;code&gt;cases&lt;/code&gt; environment. The code<br /> &lt;pre&gt;&lt;nowiki&gt;<br /> $$&lt;/nowiki&gt; \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j \end{cases} &lt;nowiki&gt;$$<br /> &lt;/nowiki&gt;&lt;/pre&gt;<br /> gives us<br /> &lt;cmath&gt;<br /> \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j. \end{cases}<br /> &lt;/cmath&gt; As usual, the &lt;code&gt;&amp;&lt;/code&gt; is for aligning and the \\ is for line-breaking.<br /> <br /> === Commonly Used Commands ===<br /> <br /> ==== Algebra ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> <br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Geometry/Trig ====<br /> <br /> ==== Counting &amp; Probability ====<br /> <br /> ==== Number Theory ====<br /> <br /> ==== Linear Algebra ====<br /> <br /> ==== Calculus ====<br /> <br /> ==== Sets ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Set Notation&lt;/b&gt;: &lt;code&gt;\{...\}&lt;/code&gt; gives &lt;math&gt;\{...\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Set-Builder Notation&lt;/b&gt;: &lt;code&gt;\{x\in\mathbb{R}\mid P(x)\}&lt;/code&gt; gives &lt;math&gt;\{x\in\mathbb R \mid P(x)\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Union and Intersection&lt;/b&gt;: &lt;code&gt;A\cup B&lt;/code&gt; and &lt;code&gt;A\cap B&lt;/code&gt; give &lt;math&gt;A\cup B&lt;/math&gt; and &lt;math&gt;A\cap B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt; Indexed Union and Intersection&lt;/b&gt;: &lt;math&gt;\bigcup_{i=1}^n A_i&lt;/math&gt; and &lt;math&gt;\bigcap_{i=1}^n A_i&lt;/math&gt; give &lt;math&gt;\bigcup_{i=1}^n A_i&lt;/math&gt; and &lt;math&gt;\bigcap_{i=1}^n A_i.&lt;/math&gt; Mostly used in display math mode.<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Subset&lt;/b&gt;: &lt;code&gt;A \subseteq B&lt;/code&gt; gives &lt;math&gt;A\subseteq B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Cartesian Product&lt;/b&gt;: &lt;code&gt;A \times B&lt;/code&gt; gives &lt;math&gt;A\times B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Common Sets&lt;/b&gt;: &lt;code&gt;\mathbb{N}, \mathbb{Z}, \mathbb{Q}, \mathbb{R}, \mathbb{C}&lt;/code&gt; give us &lt;math&gt;\mathbb N, \mathbb Z, \mathbb Q, \mathbb R, \mathbb C.&lt;/math&gt;<br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Logic ====</div> 5space https://artofproblemsolving.com/wiki/index.php?title=LaTeX:LaTeX_on_AoPS&diff=72377 LaTeX:LaTeX on AoPS 2015-10-05T22:16:58Z <p>5space: /* Sets */</p> <hr /> <div>{{Latex}}<br /> <br /> This article explains how to use LaTeX in the AoPSWiki, the AoPS Community, and the AoPS Classroom. See [http://artofproblemsolving.com/wiki/index.php/LaTeX:Packages Packages] to know which packages are prebuilt into the AoPS site.<br /> <br /> <br /> ----<br /> == Getting Started with LaTeX ==<br /> <br /> === The Very Basics ===<br /> <br /> LaTeX uses a special &quot;math mode&quot; to display mathematics. There are two types of this &quot;math mode&quot;:<br /> <br /> ==== In-line Math Mode ====<br /> <br /> In in-line math mode, we use &lt;code&gt;$&lt;/code&gt; signs to enclose the math we want to display, and it displays in-line with our text. For example, typing &lt;code&gt;$\sqrt{x} = 5$&lt;/code&gt; gives us &lt;math&gt;\sqrt{x} = 5.&lt;/math&gt;<br /> <br /> ==== Display Math Mode ====<br /> <br /> In display math mode, we enclose our code in double dollar signs, and it displays the math centered and on its own line. For example, &lt;code&gt;$$\sqrt{x} = 5$$&lt;/code&gt; gives us &lt;cmath&gt;\sqrt{x} = 5.&lt;/cmath&gt;<br /> <br /> ==== In-line vs. Display ====<br /> <br /> Besides displaying in-line vs. displaying centered and on a new line, the two modes render differently in other ways. Note that &lt;code&gt;$\sum_{k=1}^n k^2$&lt;/code&gt; gives us &lt;math&gt;\textstyle\sum_{k=1}^n k^2,&lt;/math&gt; whereas &lt;code&gt;$$\sum_{k=1}^n k^2$$&lt;/code&gt; gives us &lt;cmath&gt;\sum_{k=1}^n k^2.&lt;/cmath&gt;<br /> <br /> === Basic Expressions ===<br /> <br /> ==== Multiplication ====<br /> <br /> Sometimes, when we're multiplying, we don't need a multiplication symbol. For instance, we can write &lt;math&gt;xy&lt;/math&gt; instead of &lt;math&gt;x\cdot y&lt;/math&gt; without ambiguity. However, when you're multiplying numbers, for instance, a multiplication symbol comes in handy. The standard symbol is given by &lt;code&gt;$\cdot$&lt;/code&gt;. For example, &lt;code&gt;$12\cdot\frac{1}{2}$&lt;/code&gt; gives us &lt;math&gt;\textstyle 12\cdot \frac 12.&lt;/math&gt;<br /> <br /> ==== Fractions ====<br /> <br /> We can make fractions via &lt;code&gt;$\frac{...}{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\frac{x+y}{2}$&lt;/code&gt; will give us &lt;math&gt;\textstyle\frac{x+y}{2}.&lt;/math&gt;<br /> <br /> ==== Roots ====<br /> <br /> Square roots in &lt;math&gt;\LaTeX&lt;/math&gt; are pretty simple; we just type &lt;code&gt;$\sqrt{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{2}$&lt;/code&gt; gives us &lt;math&gt;\sqrt 2.&lt;/math&gt; Cube roots, fourth roots, and so on are only slightly more difficult; we type &lt;code&gt;$\sqrt[n]{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{x-y}$&lt;/code&gt; gives &lt;math&gt;\sqrt{x-y}.&lt;/math&gt;<br /> <br /> ==== Superscripts &amp; Subscripts ====<br /> <br /> To get superscripts (or exponents), we use the caret symbol &lt;code&gt;^&lt;/code&gt;. Typing &lt;code&gt;$x^2+y^2$&lt;/code&gt; gives &lt;math&gt;x^2+y^2.&lt;/math&gt; Subscripts are obtained via an underscore (holding shift and the minus sign on most keyboards). For instance, &lt;code&gt;$a_k$&lt;/code&gt; yields &lt;math&gt;a_k.&lt;/math&gt;<br /> <br /> ==== Groups ====<br /> <br /> Most operations in &lt;math&gt;\LaTeX&lt;/math&gt; (such as superscripts and subscripts) can only see the &quot;group&quot; of characters immediately following it. We use curly braces &lt;code&gt;{...}&lt;/code&gt; to indicate groups longer than one character. For instance, if we wrote &lt;code&gt;$x^2015$&lt;/code&gt;, we'd expect to get &lt;math&gt;x^{2015},&lt;/math&gt; but we instead get &lt;math&gt;x^2015.&lt;/math&gt; This is because each character in the string &lt;code&gt;2015&lt;/code&gt; is in its own group until we tell &lt;math&gt;\LaTeX&lt;/math&gt; that &lt;code&gt;2015&lt;/code&gt; should be one whole group. To convey this information to &lt;math&gt;\LaTeX&lt;/math&gt;, we write &lt;code&gt;$x^{2015}$&lt;/code&gt; and we get &lt;math&gt;x^{2015}.&lt;/math&gt;<br /> <br /> === Beyond the Basic Expressions ===<br /> <br /> ==== Grouping Basic Expressions ====<br /> <br /> Our ordinary parentheses &lt;code&gt;(...)&lt;/code&gt; and brackets &lt;code&gt;[...]&lt;/code&gt; work to group expressions in &lt;math&gt;\LaTeX&lt;/math&gt;. For instance, &lt;code&gt;$(x+y)[z+w]$&lt;/code&gt; gives us &lt;math&gt;(x+y)[z+w].&lt;/math&gt; We can also group expressions using curly braces, but we can't just type &lt;code&gt;{...}&lt;/code&gt;. Rather, we must type &lt;code&gt;\{...\}&lt;/code&gt;. This is because &lt;math&gt;\LaTeX&lt;/math&gt; uses plain curly braces for other things, such as fractions and superscripts and subscripts.<br /> <br /> &lt;br&gt;&lt;br&gt;<br /> <br /> When we put (vertically) large expressions inside of parentheses (or brackets, or curly braces, etc.), the parentheses don't resize to fit the expression and instead remain relatively small. For instance, &lt;code&gt;$$f(x) = \pi(\frac{\sqrt{x}}{x-1})$$&lt;/code&gt; comes out as &lt;cmath&gt;f(x) = \pi(\frac{\sqrt{x}}{x-1}).&lt;/cmath&gt; To automatically adjust the size of parentheses to fit the expression inside of them, we type &lt;code&gt;\left(...\right)&lt;/code&gt;. If we do this for our &lt;math&gt;f&lt;/math&gt; equation above, we get &lt;cmath&gt;f(x) = \pi\left(\frac{\sqrt{x}}{x-1}\right).&lt;/cmath&gt; We can use &lt;code&gt;\left&lt;/code&gt; and &lt;code&gt;\right&lt;/code&gt; for all sorts of things... parentheses (as we saw), brackets &lt;code&gt;$\left[...\right]$&lt;/code&gt;, braces &lt;code&gt;$\left\{...\right\}&lt;/code&gt;, absolute values &lt;code&gt;$\left|...\right|$&lt;/code&gt;, and much more (norms, floor and ceiling functions, inner products, etc.).<br /> <br /> ==== Lists ====<br /> <br /> To make a list, such as a sequence, we use &lt;code&gt;\dots&lt;/code&gt;. For example, &lt;code&gt;$a_0,a_1,\dots,a_n$&lt;/code&gt; will give us &lt;math&gt;a_0,a_1,\dots,a_n.&lt;/math&gt;<br /> <br /> ==== Sums ====<br /> <br /> There are two basic ways to write out sums. First, we can use &lt;code&gt;+&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example of this way would be &lt;code&gt;$a_1+a_2+\cdots+a_n$&lt;/code&gt; This will give us &lt;math&gt;a_1+a_2+\cdots+a_n.&lt;/math&gt; Second, we could use summation notation, or &lt;code&gt;\sum&lt;/code&gt;. Such an example is &lt;code&gt;$\sum_{i=0}^n a_i$&lt;/code&gt;, giving &lt;math&gt;\textstyle \sum_{i=0}^n a_i.&lt;/math&gt; Note the use of superscripts and subscripts to obtain the summation index.<br /> <br /> ==== Products ====<br /> <br /> Again, there are two basic ways to display products. First, we can use &lt;code&gt;\cdot&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example is &lt;code&gt;$n! = n\cdot(n-1)\cdots 2\cdot 1$&lt;/code&gt;, which of course gives &lt;math&gt;n! = n\cdot(n-1)\cdots 2 \cdot 1.&lt;/math&gt; The alternative is to use product notation with &lt;code&gt;\prod&lt;/code&gt;. For instance, &lt;code&gt;$n! = \prod_{k=1}^n k$&lt;/code&gt;, giving &lt;math&gt;\textstyle n! = \prod_{k=1}^n k.&lt;/math&gt;<br /> <br /> === Equalities and Inequalities ===<br /> <br /> ==== Inequalities ====<br /> <br /> the commands &lt;code&gt;&gt;, &lt;, \geq, \leq,&lt;/code&gt; and &lt;code&gt;\neq&lt;/code&gt; give us &lt;math&gt;&gt;,&lt;/math&gt; &lt;math&gt;&lt;,&lt;/math&gt; &lt;math&gt;\geq,&lt;/math&gt; &lt;math&gt;\leq,&lt;/math&gt; and &lt;math&gt;\neq,&lt;/math&gt; respectively.<br /> <br /> ==== Aligning Equations ====<br /> <br /> To align multiple equations, we use the &lt;code&gt;align*&lt;/code&gt; environment. For example, we might type a system of equations as follows:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> (You do not need dollar signs.) The &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to and the \\ symbols break to the next line. This code will output<br /> &lt;cmath&gt;\begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}&lt;/cmath&gt; An example of a string of equations is:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> Again, the &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to, and the \\ symbols break to the next line. This code outputs<br /> &lt;cmath&gt;\begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}&lt;/cmath&gt;<br /> <br /> ==== Numbering Equations ====<br /> <br /> To number equations, we use the &lt;code&gt;align&lt;/code&gt; environment. This is the same environment as the &lt;code&gt;align*&lt;/code&gt; environment, but we leave the &lt;code&gt;*&lt;/code&gt; off. The &lt;code&gt;*&lt;/code&gt; suppresses numbering. To number one equation, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by = c<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by = c.<br /> \end{align} &lt;/cmath&gt; We don't have to use &lt;code&gt;&amp;&lt;/code&gt; or \\ since there is nothing to align and no lines to break. To number several equations, such as a system, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i.<br /> \end{align} &lt;/cmath&gt; In general, &lt;code&gt;align&lt;/code&gt; will auto-number your equations from first to last.<br /> <br /> ==== Comments in Equations ====<br /> <br /> Again, we use the &lt;code&gt;align*&lt;/code&gt; environment. The code<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}<br /> \end{align*}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}.<br /> \end{align*} &lt;/cmath&gt; (You can use &lt;code&gt;align&lt;/code&gt; to get numbering &lt;i&gt;and&lt;/i&gt; comments!)<br /> <br /> ==== Definition by Cases ====<br /> <br /> To define, say, a function by cases, we use the &lt;code&gt;cases&lt;/code&gt; environment. The code<br /> &lt;pre&gt;&lt;nowiki&gt;<br /> $$&lt;/nowiki&gt; \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j \end{cases} &lt;nowiki&gt;$$<br /> &lt;/nowiki&gt;&lt;/pre&gt;<br /> gives us<br /> &lt;cmath&gt;<br /> \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j. \end{cases}<br /> &lt;/cmath&gt; As usual, the &lt;code&gt;&amp;&lt;/code&gt; is for aligning and the \\ is for line-breaking.<br /> <br /> === Commonly Used Commands ===<br /> <br /> ==== Algebra ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> <br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Geometry/Trig ====<br /> <br /> ==== Counting &amp; Probability ====<br /> <br /> ==== Number Theory ====<br /> <br /> ==== Linear Algebra ====<br /> <br /> ==== Calculus ====<br /> <br /> ==== Sets ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Set Notation&lt;/b&gt;: &lt;code&gt;\{...\}&lt;/code&gt; gives &lt;math&gt;\{...\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Set-Builder Notation&lt;/b&gt;: &lt;code&gt;\{x\in\mathbb{R}\mid P(x)\}&lt;/code&gt; gives &lt;math&gt;\{x\in\mathbb R \mid P(x)\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Union and Intersection&lt;/b&gt;: &lt;code&gt;A\cup B&lt;/code&gt; and &lt;code&gt;A\cap B&lt;/code&gt; give &lt;math&gt;A\cup B&lt;/math&gt; and &lt;math&gt;A\cap B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt; Indexed Union and Intersection&lt;/b&gt;: &lt;math&gt;\bigcup_{i=1}^n A_i&lt;/math&gt; and &lt;math&gt;\bigcap_{i=1}^n A_i&lt;/math&gt; give &lt;math&gt;\bigcup_{i=1}^n A_i&lt;/math&gt; and &lt;math&gt;\bigcap_{i=1}^n A_i.&lt;/math&gt; Mostly used in display math mode.<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Subset&lt;/b&gt;: &lt;code&gt;A \subseteq B&lt;/code&gt; gives &lt;math&gt;A\subseteq B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Cartesian Product&lt;/b&gt;: &lt;code&gt;A \times B&lt;/code&gt; gives &lt;math&gt;A\times B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Common Sets&lt;/b&gt;: &lt;code&gt;\mathbb{N}, \mathbb{Z}, \mathbb{Q}, \mathbb{R}, \mathbb{C}&lt;math&gt; give us &lt;/math&gt;\mathbb N, \mathbb Z, \mathbb Q, \mathbb R, \mathbb C.$<br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Logic ====</div> 5space https://artofproblemsolving.com/wiki/index.php?title=LaTeX:LaTeX_on_AoPS&diff=72375 LaTeX:LaTeX on AoPS 2015-10-05T18:56:57Z <p>5space: /* Sets */</p> <hr /> <div>{{Latex}}<br /> <br /> This article explains how to use LaTeX in the AoPSWiki, the AoPS Community, and the AoPS Classroom. See [http://artofproblemsolving.com/wiki/index.php/LaTeX:Packages Packages] to know which packages are prebuilt into the AoPS site.<br /> <br /> <br /> ----<br /> == Getting Started with LaTeX ==<br /> <br /> === The Very Basics ===<br /> <br /> LaTeX uses a special &quot;math mode&quot; to display mathematics. There are two types of this &quot;math mode&quot;:<br /> <br /> ==== In-line Math Mode ====<br /> <br /> In in-line math mode, we use &lt;code&gt;$&lt;/code&gt; signs to enclose the math we want to display, and it displays in-line with our text. For example, typing &lt;code&gt;$\sqrt{x} = 5$&lt;/code&gt; gives us &lt;math&gt;\sqrt{x} = 5.&lt;/math&gt;<br /> <br /> ==== Display Math Mode ====<br /> <br /> In display math mode, we enclose our code in double dollar signs, and it displays the math centered and on its own line. For example, &lt;code&gt;$$\sqrt{x} = 5$$&lt;/code&gt; gives us &lt;cmath&gt;\sqrt{x} = 5.&lt;/cmath&gt;<br /> <br /> ==== In-line vs. Display ====<br /> <br /> Besides displaying in-line vs. displaying centered and on a new line, the two modes render differently in other ways. Note that &lt;code&gt;$\sum_{k=1}^n k^2$&lt;/code&gt; gives us &lt;math&gt;\textstyle\sum_{k=1}^n k^2,&lt;/math&gt; whereas &lt;code&gt;$$\sum_{k=1}^n k^2$$&lt;/code&gt; gives us &lt;cmath&gt;\sum_{k=1}^n k^2.&lt;/cmath&gt;<br /> <br /> === Basic Expressions ===<br /> <br /> ==== Multiplication ====<br /> <br /> Sometimes, when we're multiplying, we don't need a multiplication symbol. For instance, we can write &lt;math&gt;xy&lt;/math&gt; instead of &lt;math&gt;x\cdot y&lt;/math&gt; without ambiguity. However, when you're multiplying numbers, for instance, a multiplication symbol comes in handy. The standard symbol is given by &lt;code&gt;$\cdot$&lt;/code&gt;. For example, &lt;code&gt;$12\cdot\frac{1}{2}$&lt;/code&gt; gives us &lt;math&gt;\textstyle 12\cdot \frac 12.&lt;/math&gt;<br /> <br /> ==== Fractions ====<br /> <br /> We can make fractions via &lt;code&gt;$\frac{...}{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\frac{x+y}{2}$&lt;/code&gt; will give us &lt;math&gt;\textstyle\frac{x+y}{2}.&lt;/math&gt;<br /> <br /> ==== Roots ====<br /> <br /> Square roots in &lt;math&gt;\LaTeX&lt;/math&gt; are pretty simple; we just type &lt;code&gt;$\sqrt{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{2}$&lt;/code&gt; gives us &lt;math&gt;\sqrt 2.&lt;/math&gt; Cube roots, fourth roots, and so on are only slightly more difficult; we type &lt;code&gt;$\sqrt[n]{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{x-y}$&lt;/code&gt; gives &lt;math&gt;\sqrt{x-y}.&lt;/math&gt;<br /> <br /> ==== Superscripts &amp; Subscripts ====<br /> <br /> To get superscripts (or exponents), we use the caret symbol &lt;code&gt;^&lt;/code&gt;. Typing &lt;code&gt;$x^2+y^2$&lt;/code&gt; gives &lt;math&gt;x^2+y^2.&lt;/math&gt; Subscripts are obtained via an underscore (holding shift and the minus sign on most keyboards). For instance, &lt;code&gt;$a_k$&lt;/code&gt; yields &lt;math&gt;a_k.&lt;/math&gt;<br /> <br /> ==== Groups ====<br /> <br /> Most operations in &lt;math&gt;\LaTeX&lt;/math&gt; (such as superscripts and subscripts) can only see the &quot;group&quot; of characters immediately following it. We use curly braces &lt;code&gt;{...}&lt;/code&gt; to indicate groups longer than one character. For instance, if we wrote &lt;code&gt;$x^2015$&lt;/code&gt;, we'd expect to get &lt;math&gt;x^{2015},&lt;/math&gt; but we instead get &lt;math&gt;x^2015.&lt;/math&gt; This is because each character in the string &lt;code&gt;2015&lt;/code&gt; is in its own group until we tell &lt;math&gt;\LaTeX&lt;/math&gt; that &lt;code&gt;2015&lt;/code&gt; should be one whole group. To convey this information to &lt;math&gt;\LaTeX&lt;/math&gt;, we write &lt;code&gt;$x^{2015}$&lt;/code&gt; and we get &lt;math&gt;x^{2015}.&lt;/math&gt;<br /> <br /> === Beyond the Basic Expressions ===<br /> <br /> ==== Grouping Basic Expressions ====<br /> <br /> Our ordinary parentheses &lt;code&gt;(...)&lt;/code&gt; and brackets &lt;code&gt;[...]&lt;/code&gt; work to group expressions in &lt;math&gt;\LaTeX&lt;/math&gt;. For instance, &lt;code&gt;$(x+y)[z+w]$&lt;/code&gt; gives us &lt;math&gt;(x+y)[z+w].&lt;/math&gt; We can also group expressions using curly braces, but we can't just type &lt;code&gt;{...}&lt;/code&gt;. Rather, we must type &lt;code&gt;\{...\}&lt;/code&gt;. This is because &lt;math&gt;\LaTeX&lt;/math&gt; uses plain curly braces for other things, such as fractions and superscripts and subscripts.<br /> <br /> &lt;br&gt;&lt;br&gt;<br /> <br /> When we put (vertically) large expressions inside of parentheses (or brackets, or curly braces, etc.), the parentheses don't resize to fit the expression and instead remain relatively small. For instance, &lt;code&gt;$$f(x) = \pi(\frac{\sqrt{x}}{x-1})$$&lt;/code&gt; comes out as &lt;cmath&gt;f(x) = \pi(\frac{\sqrt{x}}{x-1}).&lt;/cmath&gt; To automatically adjust the size of parentheses to fit the expression inside of them, we type &lt;code&gt;\left(...\right)&lt;/code&gt;. If we do this for our &lt;math&gt;f&lt;/math&gt; equation above, we get &lt;cmath&gt;f(x) = \pi\left(\frac{\sqrt{x}}{x-1}\right).&lt;/cmath&gt; We can use &lt;code&gt;\left&lt;/code&gt; and &lt;code&gt;\right&lt;/code&gt; for all sorts of things... parentheses (as we saw), brackets &lt;code&gt;$\left[...\right]$&lt;/code&gt;, braces &lt;code&gt;$\left\{...\right\}&lt;/code&gt;, absolute values &lt;code&gt;$\left|...\right|$&lt;/code&gt;, and much more (norms, floor and ceiling functions, inner products, etc.).<br /> <br /> ==== Lists ====<br /> <br /> To make a list, such as a sequence, we use &lt;code&gt;\dots&lt;/code&gt;. For example, &lt;code&gt;$a_0,a_1,\dots,a_n$&lt;/code&gt; will give us &lt;math&gt;a_0,a_1,\dots,a_n.&lt;/math&gt;<br /> <br /> ==== Sums ====<br /> <br /> There are two basic ways to write out sums. First, we can use &lt;code&gt;+&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example of this way would be &lt;code&gt;$a_1+a_2+\cdots+a_n$&lt;/code&gt; This will give us &lt;math&gt;a_1+a_2+\cdots+a_n.&lt;/math&gt; Second, we could use summation notation, or &lt;code&gt;\sum&lt;/code&gt;. Such an example is &lt;code&gt;$\sum_{i=0}^n a_i$&lt;/code&gt;, giving &lt;math&gt;\textstyle \sum_{i=0}^n a_i.&lt;/math&gt; Note the use of superscripts and subscripts to obtain the summation index.<br /> <br /> ==== Products ====<br /> <br /> Again, there are two basic ways to display products. First, we can use &lt;code&gt;\cdot&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example is &lt;code&gt;$n! = n\cdot(n-1)\cdots 2\cdot 1$&lt;/code&gt;, which of course gives &lt;math&gt;n! = n\cdot(n-1)\cdots 2 \cdot 1.&lt;/math&gt; The alternative is to use product notation with &lt;code&gt;\prod&lt;/code&gt;. For instance, &lt;code&gt;$n! = \prod_{k=1}^n k&lt;/code&gt;, giving &lt;math&gt;\textstyle n! = \prod_{k=1}^n k.&lt;/math&gt;<br /> <br /> === Equalities and Inequalities ===<br /> <br /> ==== Inequalities ====<br /> <br /> the commands &lt;code&gt;&gt;, &lt;, \geq, \leq,&lt;/code&gt; and &lt;code&gt;\neq&lt;/code&gt; give us &lt;math&gt;&gt;,&lt;/math&gt; &lt;math&gt;&lt;,&lt;/math&gt; &lt;math&gt;\geq,&lt;/math&gt; &lt;math&gt;\leq,&lt;/math&gt; and &lt;math&gt;\neq,&lt;/math&gt; respectively.<br /> <br /> ==== Aligning Equations ====<br /> <br /> To align multiple equations, we use the &lt;code&gt;align*&lt;/code&gt; environment. For example, we might type a system of equations as follows:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> (You do not need dollar signs.) The &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to and the \\ symbols break to the next line. This code will output<br /> &lt;cmath&gt;\begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}&lt;/cmath&gt; An example of a string of equations is:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> Again, the &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to, and the \\ symbols break to the next line. This code outputs<br /> &lt;cmath&gt;\begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}&lt;/cmath&gt;<br /> <br /> ==== Numbering Equations ====<br /> <br /> To number equations, we use the &lt;code&gt;align&lt;/code&gt; environment. This is the same environment as the &lt;code&gt;align*&lt;/code&gt; environment, but we leave the &lt;code&gt;*&lt;/code&gt; off. The &lt;code&gt;*&lt;/code&gt; suppresses numbering. To number one equation, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by = c<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by = c.<br /> \end{align} &lt;/cmath&gt; We don't have to use &lt;code&gt;&amp;&lt;/code&gt; or \\ since there is nothing to align and no lines to break. To number several equations, such as a system, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i.<br /> \end{align} &lt;/cmath&gt; In general, &lt;code&gt;align&lt;/code&gt; will auto-number your equations from first to last.<br /> <br /> ==== Comments in Equations ====<br /> <br /> Again, we use the &lt;code&gt;align*&lt;/code&gt; environment. The code<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}<br /> \end{align*}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}.<br /> \end{align*} &lt;/cmath&gt; (You can use &lt;code&gt;align&lt;/code&gt; to get numbering &lt;i&gt;and&lt;/i&gt; comments!)<br /> <br /> ==== Definition by Cases ====<br /> <br /> To define, say, a function by cases, we use the &lt;code&gt;cases&lt;/code&gt; environment. The code<br /> &lt;pre&gt;&lt;nowiki&gt;<br /> $$&lt;/nowiki&gt; \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j \end{cases} &lt;nowiki&gt;$$<br /> &lt;/nowiki&gt;&lt;/pre&gt;<br /> gives us<br /> &lt;cmath&gt;<br /> \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j. \end{cases}<br /> &lt;/cmath&gt; As usual, the &lt;code&gt;&amp;&lt;/code&gt; is for aligning and the \\ is for line-breaking.<br /> <br /> === Commonly Used Commands ===<br /> <br /> ==== Algebra ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> <br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Geometry/Trig ====<br /> <br /> ==== Counting &amp; Probability ====<br /> <br /> ==== Number Theory ====<br /> <br /> ==== Linear Algebra ====<br /> <br /> ==== Calculus ====<br /> <br /> ==== Sets ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Set Notation&lt;/b&gt;: &lt;code&gt;\{...\}&lt;/code&gt; gives &lt;math&gt;\{...\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Set-Builder Notation&lt;/b&gt;: &lt;code&gt;\{x\in\mathbb{R}\mid P(x)\}&lt;/code&gt; gives &lt;math&gt;\{x\in\mathbb R \mid P(x)\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Union and Intersection&lt;/b&gt;: &lt;code&gt;A\cup B&lt;/code&gt; and &lt;code&gt;A\cap B&lt;/code&gt; give &lt;math&gt;A\cup B&lt;/math&gt; and &lt;math&gt;A\cap B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt; Indexed Union and Intersection&lt;/b&gt;: &lt;math&gt;\bigcup_{i=1}^n A_i&lt;/math&gt; and &lt;math&gt;\bigcap_{i=1}^n A_i&lt;/math&gt; give &lt;math&gt;\bigcup_{i=1}^n A_i&lt;/math&gt; and &lt;math&gt;\bigcap_{i=1}^n A_i.&lt;/math&gt; Mostly used in display math mode.<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Subset&lt;/b&gt;: &lt;code&gt;A \subseteq B&lt;/code&gt; gives &lt;math&gt;A\subseteq B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Cartesian Product&lt;/b&gt;: &lt;code&gt;A \times B&lt;/code&gt; gives &lt;math&gt;A\times B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Logic ====</div> 5space https://artofproblemsolving.com/wiki/index.php?title=LaTeX:LaTeX_on_AoPS&diff=72374 LaTeX:LaTeX on AoPS 2015-10-05T18:53:34Z <p>5space: /* Sets */</p> <hr /> <div>{{Latex}}<br /> <br /> This article explains how to use LaTeX in the AoPSWiki, the AoPS Community, and the AoPS Classroom. See [http://artofproblemsolving.com/wiki/index.php/LaTeX:Packages Packages] to know which packages are prebuilt into the AoPS site.<br /> <br /> <br /> ----<br /> == Getting Started with LaTeX ==<br /> <br /> === The Very Basics ===<br /> <br /> LaTeX uses a special &quot;math mode&quot; to display mathematics. There are two types of this &quot;math mode&quot;:<br /> <br /> ==== In-line Math Mode ====<br /> <br /> In in-line math mode, we use &lt;code&gt;&lt;/code&gt; signs to enclose the math we want to display, and it displays in-line with our text. For example, typing &lt;code&gt;$\sqrt{x} = 5$&lt;/code&gt; gives us &lt;math&gt;\sqrt{x} = 5.&lt;/math&gt;<br /> <br /> ==== Display Math Mode ====<br /> <br /> In display math mode, we enclose our code in double dollar signs, and it displays the math centered and on its own line. For example, &lt;code&gt;$$\sqrt{x} = 5$$&lt;/code&gt; gives us &lt;cmath&gt;\sqrt{x} = 5.&lt;/cmath&gt;<br /> <br /> ==== In-line vs. Display ====<br /> <br /> Besides displaying in-line vs. displaying centered and on a new line, the two modes render differently in other ways. Note that &lt;code&gt;$\sum_{k=1}^n k^2$&lt;/code&gt; gives us &lt;math&gt;\textstyle\sum_{k=1}^n k^2,&lt;/math&gt; whereas &lt;code&gt;$$\sum_{k=1}^n k^2$$&lt;/code&gt; gives us &lt;cmath&gt;\sum_{k=1}^n k^2.&lt;/cmath&gt;<br /> <br /> === Basic Expressions ===<br /> <br /> ==== Multiplication ====<br /> <br /> Sometimes, when we're multiplying, we don't need a multiplication symbol. For instance, we can write &lt;math&gt;xy&lt;/math&gt; instead of &lt;math&gt;x\cdot y&lt;/math&gt; without ambiguity. However, when you're multiplying numbers, for instance, a multiplication symbol comes in handy. The standard symbol is given by &lt;code&gt;$\cdot$&lt;/code&gt;. For example, &lt;code&gt;$12\cdot\frac{1}{2}$&lt;/code&gt; gives us &lt;math&gt;\textstyle 12\cdot \frac 12.&lt;/math&gt;<br /> <br /> ==== Fractions ====<br /> <br /> We can make fractions via &lt;code&gt;$\frac{...}{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\frac{x+y}{2}$&lt;/code&gt; will give us &lt;math&gt;\textstyle\frac{x+y}{2}.&lt;/math&gt;<br /> <br /> ==== Roots ====<br /> <br /> Square roots in &lt;math&gt;\LaTeX&lt;/math&gt; are pretty simple; we just type &lt;code&gt;$\sqrt{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{2}$&lt;/code&gt; gives us &lt;math&gt;\sqrt 2.&lt;/math&gt; Cube roots, fourth roots, and so on are only slightly more difficult; we type &lt;code&gt;$\sqrt[n]{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{x-y}$&lt;/code&gt; gives &lt;math&gt;\sqrt{x-y}.&lt;/math&gt;<br /> <br /> ==== Superscripts &amp; Subscripts ====<br /> <br /> To get superscripts (or exponents), we use the caret symbol &lt;code&gt;^&lt;/code&gt;. Typing &lt;code&gt;$x^2+y^2$&lt;/code&gt; gives &lt;math&gt;x^2+y^2.&lt;/math&gt; Subscripts are obtained via an underscore (holding shift and the minus sign on most keyboards). For instance, &lt;code&gt;$a_k$&lt;/code&gt; yields &lt;math&gt;a_k.&lt;/math&gt;<br /> <br /> ==== Groups ====<br /> <br /> Most operations in &lt;math&gt;\LaTeX&lt;/math&gt; (such as superscripts and subscripts) can only see the &quot;group&quot; of characters immediately following it. We use curly braces &lt;code&gt;{...}&lt;/code&gt; to indicate groups longer than one character. For instance, if we wrote &lt;code&gt;$x^2015$&lt;/code&gt;, we'd expect to get &lt;math&gt;x^{2015},&lt;/math&gt; but we instead get &lt;math&gt;x^2015.&lt;/math&gt; This is because each character in the string &lt;code&gt;2015&lt;/code&gt; is in its own group until we tell &lt;math&gt;\LaTeX&lt;/math&gt; that &lt;code&gt;2015&lt;/code&gt; should be one whole group. To convey this information to &lt;math&gt;\LaTeX&lt;/math&gt;, we write &lt;code&gt;$x^{2015}$&lt;/code&gt; and we get &lt;math&gt;x^{2015}.&lt;/math&gt;<br /> <br /> === Beyond the Basic Expressions ===<br /> <br /> ==== Grouping Basic Expressions ====<br /> <br /> Our ordinary parentheses &lt;code&gt;(...)&lt;/code&gt; and brackets &lt;code&gt;[...]&lt;/code&gt; work to group expressions in &lt;math&gt;\LaTeX&lt;/math&gt;. For instance, &lt;code&gt;$(x+y)[z+w]$&lt;/code&gt; gives us &lt;math&gt;(x+y)[z+w].&lt;/math&gt; We can also group expressions using curly braces, but we can't just type &lt;code&gt;{...}&lt;/code&gt;. Rather, we must type &lt;code&gt;\{...\}&lt;/code&gt;. This is because &lt;math&gt;\LaTeX&lt;/math&gt; uses plain curly braces for other things, such as fractions and superscripts and subscripts.<br /> <br /> &lt;br&gt;&lt;br&gt;<br /> <br /> When we put (vertically) large expressions inside of parentheses (or brackets, or curly braces, etc.), the parentheses don't resize to fit the expression and instead remain relatively small. For instance, &lt;code&gt;$$f(x) = \pi(\frac{\sqrt{x}}{x-1})$$&lt;/code&gt; comes out as &lt;cmath&gt;f(x) = \pi(\frac{\sqrt{x}}{x-1}).&lt;/cmath&gt; To automatically adjust the size of parentheses to fit the expression inside of them, we type &lt;code&gt;\left(...\right)&lt;/code&gt;. If we do this for our &lt;math&gt;f&lt;/math&gt; equation above, we get &lt;cmath&gt;f(x) = \pi\left(\frac{\sqrt{x}}{x-1}\right).&lt;/cmath&gt; We can use &lt;code&gt;\left&lt;/code&gt; and &lt;code&gt;\right&lt;/code&gt; for all sorts of things... parentheses (as we saw), brackets &lt;code&gt;$\left[...\right]$&lt;/code&gt;, braces &lt;code&gt;$\left\{...\right\}&lt;/code&gt;, absolute values &lt;code&gt;$\left|...\right|$&lt;/code&gt;, and much more (norms, floor and ceiling functions, inner products, etc.).<br /> <br /> ==== Lists ====<br /> <br /> To make a list, such as a sequence, we use &lt;code&gt;\dots&lt;/code&gt;. For example, &lt;code&gt;$a_0,a_1,\dots,a_n$&lt;/code&gt; will give us &lt;math&gt;a_0,a_1,\dots,a_n.&lt;/math&gt;<br /> <br /> ==== Sums ====<br /> <br /> There are two basic ways to write out sums. First, we can use &lt;code&gt;+&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example of this way would be &lt;code&gt;$a_1+a_2+\cdots+a_n$&lt;/code&gt; This will give us &lt;math&gt;a_1+a_2+\cdots+a_n.&lt;/math&gt; Second, we could use summation notation, or &lt;code&gt;\sum&lt;/code&gt;. Such an example is &lt;code&gt;$\sum_{i=0}^n a_i$&lt;/code&gt;, giving &lt;math&gt;\textstyle \sum_{i=0}^n a_i.&lt;/math&gt; Note the use of superscripts and subscripts to obtain the summation index.<br /> <br /> ==== Products ====<br /> <br /> Again, there are two basic ways to display products. First, we can use &lt;code&gt;\cdot&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example is &lt;code&gt;$n! = n\cdot(n-1)\cdots 2\cdot 1$&lt;/code&gt;, which of course gives &lt;math&gt;n! = n\cdot(n-1)\cdots 2 \cdot 1.&lt;/math&gt; The alternative is to use product notation with &lt;code&gt;\prod&lt;/code&gt;. For instance, &lt;code&gt;$n! = \prod_{k=1}^n k&lt;/code&gt;, giving &lt;math&gt;\textstyle n! = \prod_{k=1}^n k.&lt;/math&gt;<br /> <br /> === Equalities and Inequalities ===<br /> <br /> ==== Inequalities ====<br /> <br /> the commands &lt;code&gt;&gt;, &lt;, \geq, \leq,&lt;/code&gt; and &lt;code&gt;\neq&lt;/code&gt; give us &lt;math&gt;&gt;,&lt;/math&gt; &lt;math&gt;&lt;,&lt;/math&gt; &lt;math&gt;\geq,&lt;/math&gt; &lt;math&gt;\leq,&lt;/math&gt; and &lt;math&gt;\neq,&lt;/math&gt; respectively.<br /> <br /> ==== Aligning Equations ====<br /> <br /> To align multiple equations, we use the &lt;code&gt;align*&lt;/code&gt; environment. For example, we might type a system of equations as follows:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> (You do not need dollar signs.) The &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to and the \\ symbols break to the next line. This code will output<br /> &lt;cmath&gt;\begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}&lt;/cmath&gt; An example of a string of equations is:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> Again, the &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to, and the \\ symbols break to the next line. This code outputs<br /> &lt;cmath&gt;\begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}&lt;/cmath&gt;<br /> <br /> ==== Numbering Equations ====<br /> <br /> To number equations, we use the &lt;code&gt;align&lt;/code&gt; environment. This is the same environment as the &lt;code&gt;align*&lt;/code&gt; environment, but we leave the &lt;code&gt;*&lt;/code&gt; off. The &lt;code&gt;*&lt;/code&gt; suppresses numbering. To number one equation, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by = c<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by = c.<br /> \end{align} &lt;/cmath&gt; We don't have to use &lt;code&gt;&amp;&lt;/code&gt; or \\ since there is nothing to align and no lines to break. To number several equations, such as a system, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i.<br /> \end{align} &lt;/cmath&gt; In general, &lt;code&gt;align&lt;/code&gt; will auto-number your equations from first to last.<br /> <br /> ==== Comments in Equations ====<br /> <br /> Again, we use the &lt;code&gt;align*&lt;/code&gt; environment. The code<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}<br /> \end{align*}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}.<br /> \end{align*} &lt;/cmath&gt; (You can use &lt;code&gt;align&lt;/code&gt; to get numbering &lt;i&gt;and&lt;/i&gt; comments!)<br /> <br /> ==== Definition by Cases ====<br /> <br /> To define, say, a function by cases, we use the &lt;code&gt;cases&lt;/code&gt; environment. The code<br /> &lt;pre&gt;&lt;nowiki&gt;<br /> $$&lt;/nowiki&gt; \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j \end{cases} &lt;nowiki&gt;$$<br /> &lt;/nowiki&gt;&lt;/pre&gt;<br /> gives us<br /> &lt;cmath&gt;<br /> \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j. \end{cases}<br /> &lt;/cmath&gt; As usual, the &lt;code&gt;&amp;&lt;/code&gt; is for aligning and the \\ is for line-breaking.<br /> <br /> === Commonly Used Commands ===<br /> <br /> ==== Algebra ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> <br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Geometry/Trig ====<br /> <br /> ==== Counting &amp; Probability ====<br /> <br /> ==== Number Theory ====<br /> <br /> ==== Linear Algebra ====<br /> <br /> ==== Calculus ====<br /> <br /> ==== Sets ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Set Notation&lt;/b&gt;: &lt;code&gt;\{...\}&lt;/code&gt; gives &lt;math&gt;\{...\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Set-Builder Notation&lt;/b&gt;: &lt;code&gt;\{x\in\mathbb{R}\mid P(x)\}&lt;/code&gt; gives &lt;math&gt;\{x\in\mathbb R \mid P(x)\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Union and Intersection&lt;/b&gt;: &lt;code&gt;A\cup B&lt;/code&gt; and &lt;code&gt;A\cap B&lt;/code&gt; give &lt;math&gt;A\cup B&lt;/math&gt; and &lt;math&gt;A\cap B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt; Indexed Union and Intersection&lt;/b&gt;: &lt;math&gt;\bigcup_{i=1}^n A_i&lt;/math&gt; and &lt;math&gt;\bigcap_{i=1}^n A_i&lt;/math&gt; give &lt;math&gt;\bigcup_{i=1}^n A_i&lt;/math&gt; and &lt;math&gt;\bigcap_{i=1}^n A_i.&lt;/math&gt; Mostly used in display math mode.<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Logic ====</div> 5space https://artofproblemsolving.com/wiki/index.php?title=LaTeX:LaTeX_on_AoPS&diff=72373 LaTeX:LaTeX on AoPS 2015-10-05T18:38:03Z <p>5space: /* Sets */</p> <hr /> <div>{{Latex}}<br /> <br /> This article explains how to use LaTeX in the AoPSWiki, the AoPS Community, and the AoPS Classroom. See [http://artofproblemsolving.com/wiki/index.php/LaTeX:Packages Packages] to know which packages are prebuilt into the AoPS site.<br /> <br /> <br /> ----<br /> == Getting Started with LaTeX ==<br /> <br /> === The Very Basics ===<br /> <br /> LaTeX uses a special &quot;math mode&quot; to display mathematics. There are two types of this &quot;math mode&quot;:<br /> <br /> ==== In-line Math Mode ====<br /> <br /> In in-line math mode, we use &lt;code&gt;&lt;/code&gt; signs to enclose the math we want to display, and it displays in-line with our text. For example, typing &lt;code&gt;$\sqrt{x} = 5$&lt;/code&gt; gives us &lt;math&gt;\sqrt{x} = 5.&lt;/math&gt;<br /> <br /> ==== Display Math Mode ====<br /> <br /> In display math mode, we enclose our code in double dollar signs, and it displays the math centered and on its own line. For example, &lt;code&gt;$$\sqrt{x} = 5$$&lt;/code&gt; gives us &lt;cmath&gt;\sqrt{x} = 5.&lt;/cmath&gt;<br /> <br /> ==== In-line vs. Display ====<br /> <br /> Besides displaying in-line vs. displaying centered and on a new line, the two modes render differently in other ways. Note that &lt;code&gt;$\sum_{k=1}^n k^2$&lt;/code&gt; gives us &lt;math&gt;\textstyle\sum_{k=1}^n k^2,&lt;/math&gt; whereas &lt;code&gt;$$\sum_{k=1}^n k^2$$&lt;/code&gt; gives us &lt;cmath&gt;\sum_{k=1}^n k^2.&lt;/cmath&gt;<br /> <br /> === Basic Expressions ===<br /> <br /> ==== Multiplication ====<br /> <br /> Sometimes, when we're multiplying, we don't need a multiplication symbol. For instance, we can write &lt;math&gt;xy&lt;/math&gt; instead of &lt;math&gt;x\cdot y&lt;/math&gt; without ambiguity. However, when you're multiplying numbers, for instance, a multiplication symbol comes in handy. The standard symbol is given by &lt;code&gt;$\cdot$&lt;/code&gt;. For example, &lt;code&gt;$12\cdot\frac{1}{2}$&lt;/code&gt; gives us &lt;math&gt;\textstyle 12\cdot \frac 12.&lt;/math&gt;<br /> <br /> ==== Fractions ====<br /> <br /> We can make fractions via &lt;code&gt;$\frac{...}{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\frac{x+y}{2}$&lt;/code&gt; will give us &lt;math&gt;\textstyle\frac{x+y}{2}.&lt;/math&gt;<br /> <br /> ==== Roots ====<br /> <br /> Square roots in &lt;math&gt;\LaTeX&lt;/math&gt; are pretty simple; we just type &lt;code&gt;$\sqrt{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{2}$&lt;/code&gt; gives us &lt;math&gt;\sqrt 2.&lt;/math&gt; Cube roots, fourth roots, and so on are only slightly more difficult; we type &lt;code&gt;$\sqrt[n]{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{x-y}$&lt;/code&gt; gives &lt;math&gt;\sqrt{x-y}.&lt;/math&gt;<br /> <br /> ==== Superscripts &amp; Subscripts ====<br /> <br /> To get superscripts (or exponents), we use the caret symbol &lt;code&gt;^&lt;/code&gt;. Typing &lt;code&gt;$x^2+y^2$&lt;/code&gt; gives &lt;math&gt;x^2+y^2.&lt;/math&gt; Subscripts are obtained via an underscore (holding shift and the minus sign on most keyboards). For instance, &lt;code&gt;$a_k$&lt;/code&gt; yields &lt;math&gt;a_k.&lt;/math&gt;<br /> <br /> ==== Groups ====<br /> <br /> Most operations in &lt;math&gt;\LaTeX&lt;/math&gt; (such as superscripts and subscripts) can only see the &quot;group&quot; of characters immediately following it. We use curly braces &lt;code&gt;{...}&lt;/code&gt; to indicate groups longer than one character. For instance, if we wrote &lt;code&gt;$x^2015$&lt;/code&gt;, we'd expect to get &lt;math&gt;x^{2015},&lt;/math&gt; but we instead get &lt;math&gt;x^2015.&lt;/math&gt; This is because each character in the string &lt;code&gt;2015&lt;/code&gt; is in its own group until we tell &lt;math&gt;\LaTeX&lt;/math&gt; that &lt;code&gt;2015&lt;/code&gt; should be one whole group. To convey this information to &lt;math&gt;\LaTeX&lt;/math&gt;, we write &lt;code&gt;$x^{2015}$&lt;/code&gt; and we get &lt;math&gt;x^{2015}.&lt;/math&gt;<br /> <br /> === Beyond the Basic Expressions ===<br /> <br /> ==== Grouping Basic Expressions ====<br /> <br /> Our ordinary parentheses &lt;code&gt;(...)&lt;/code&gt; and brackets &lt;code&gt;[...]&lt;/code&gt; work to group expressions in &lt;math&gt;\LaTeX&lt;/math&gt;. For instance, &lt;code&gt;$(x+y)[z+w]$&lt;/code&gt; gives us &lt;math&gt;(x+y)[z+w].&lt;/math&gt; We can also group expressions using curly braces, but we can't just type &lt;code&gt;{...}&lt;/code&gt;. Rather, we must type &lt;code&gt;\{...\}&lt;/code&gt;. This is because &lt;math&gt;\LaTeX&lt;/math&gt; uses plain curly braces for other things, such as fractions and superscripts and subscripts.<br /> <br /> &lt;br&gt;&lt;br&gt;<br /> <br /> When we put (vertically) large expressions inside of parentheses (or brackets, or curly braces, etc.), the parentheses don't resize to fit the expression and instead remain relatively small. For instance, &lt;code&gt;$$f(x) = \pi(\frac{\sqrt{x}}{x-1})$$&lt;/code&gt; comes out as &lt;cmath&gt;f(x) = \pi(\frac{\sqrt{x}}{x-1}).&lt;/cmath&gt; To automatically adjust the size of parentheses to fit the expression inside of them, we type &lt;code&gt;\left(...\right)&lt;/code&gt;. If we do this for our &lt;math&gt;f&lt;/math&gt; equation above, we get &lt;cmath&gt;f(x) = \pi\left(\frac{\sqrt{x}}{x-1}\right).&lt;/cmath&gt; We can use &lt;code&gt;\left&lt;/code&gt; and &lt;code&gt;\right&lt;/code&gt; for all sorts of things... parentheses (as we saw), brackets &lt;code&gt;$\left[...\right]$&lt;/code&gt;, braces &lt;code&gt;$\left\{...\right\}&lt;/code&gt;, absolute values &lt;code&gt;$\left|...\right|$&lt;/code&gt;, and much more (norms, floor and ceiling functions, inner products, etc.).<br /> <br /> ==== Lists ====<br /> <br /> To make a list, such as a sequence, we use &lt;code&gt;\dots&lt;/code&gt;. For example, &lt;code&gt;$a_0,a_1,\dots,a_n$&lt;/code&gt; will give us &lt;math&gt;a_0,a_1,\dots,a_n.&lt;/math&gt;<br /> <br /> ==== Sums ====<br /> <br /> There are two basic ways to write out sums. First, we can use &lt;code&gt;+&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example of this way would be &lt;code&gt;$a_1+a_2+\cdots+a_n$&lt;/code&gt; This will give us &lt;math&gt;a_1+a_2+\cdots+a_n.&lt;/math&gt; Second, we could use summation notation, or &lt;code&gt;\sum&lt;/code&gt;. Such an example is &lt;code&gt;$\sum_{i=0}^n a_i$&lt;/code&gt;, giving &lt;math&gt;\textstyle \sum_{i=0}^n a_i.&lt;/math&gt; Note the use of superscripts and subscripts to obtain the summation index.<br /> <br /> ==== Products ====<br /> <br /> Again, there are two basic ways to display products. First, we can use &lt;code&gt;\cdot&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example is &lt;code&gt;$n! = n\cdot(n-1)\cdots 2\cdot 1$&lt;/code&gt;, which of course gives &lt;math&gt;n! = n\cdot(n-1)\cdots 2 \cdot 1.&lt;/math&gt; The alternative is to use product notation with &lt;code&gt;\prod&lt;/code&gt;. For instance, &lt;code&gt;$n! = \prod_{k=1}^n k&lt;/code&gt;, giving &lt;math&gt;\textstyle n! = \prod_{k=1}^n k.&lt;/math&gt;<br /> <br /> === Equalities and Inequalities ===<br /> <br /> ==== Inequalities ====<br /> <br /> the commands &lt;code&gt;&gt;, &lt;, \geq, \leq,&lt;/code&gt; and &lt;code&gt;\neq&lt;/code&gt; give us &lt;math&gt;&gt;,&lt;/math&gt; &lt;math&gt;&lt;,&lt;/math&gt; &lt;math&gt;\geq,&lt;/math&gt; &lt;math&gt;\leq,&lt;/math&gt; and &lt;math&gt;\neq,&lt;/math&gt; respectively.<br /> <br /> ==== Aligning Equations ====<br /> <br /> To align multiple equations, we use the &lt;code&gt;align*&lt;/code&gt; environment. For example, we might type a system of equations as follows:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> (You do not need dollar signs.) The &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to and the \\ symbols break to the next line. This code will output<br /> &lt;cmath&gt;\begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}&lt;/cmath&gt; An example of a string of equations is:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> Again, the &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to, and the \\ symbols break to the next line. This code outputs<br /> &lt;cmath&gt;\begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}&lt;/cmath&gt;<br /> <br /> ==== Numbering Equations ====<br /> <br /> To number equations, we use the &lt;code&gt;align&lt;/code&gt; environment. This is the same environment as the &lt;code&gt;align*&lt;/code&gt; environment, but we leave the &lt;code&gt;*&lt;/code&gt; off. The &lt;code&gt;*&lt;/code&gt; suppresses numbering. To number one equation, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by = c<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by = c.<br /> \end{align} &lt;/cmath&gt; We don't have to use &lt;code&gt;&amp;&lt;/code&gt; or \\ since there is nothing to align and no lines to break. To number several equations, such as a system, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i.<br /> \end{align} &lt;/cmath&gt; In general, &lt;code&gt;align&lt;/code&gt; will auto-number your equations from first to last.<br /> <br /> ==== Comments in Equations ====<br /> <br /> Again, we use the &lt;code&gt;align*&lt;/code&gt; environment. The code<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}<br /> \end{align*}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}.<br /> \end{align*} &lt;/cmath&gt; (You can use &lt;code&gt;align&lt;/code&gt; to get numbering &lt;i&gt;and&lt;/i&gt; comments!)<br /> <br /> ==== Definition by Cases ====<br /> <br /> To define, say, a function by cases, we use the &lt;code&gt;cases&lt;/code&gt; environment. The code<br /> &lt;pre&gt;&lt;nowiki&gt;<br /> $$&lt;/nowiki&gt; \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j \end{cases} &lt;nowiki&gt;$$<br /> &lt;/nowiki&gt;&lt;/pre&gt;<br /> gives us<br /> &lt;cmath&gt;<br /> \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j. \end{cases}<br /> &lt;/cmath&gt; As usual, the &lt;code&gt;&amp;&lt;/code&gt; is for aligning and the \\ is for line-breaking.<br /> <br /> === Commonly Used Commands ===<br /> <br /> ==== Algebra ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> <br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Geometry/Trig ====<br /> <br /> ==== Counting &amp; Probability ====<br /> <br /> ==== Number Theory ====<br /> <br /> ==== Linear Algebra ====<br /> <br /> ==== Calculus ====<br /> <br /> ==== Sets ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Set Notation&lt;/b&gt;: &lt;code&gt;\{...\}&lt;/code&gt; gives &lt;math&gt;\{...\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Set-Builder Notation&lt;/b&gt;: &lt;code&gt;\{x\in\mathbb{R}\mid P(x)\}&lt;/code&gt; gives &lt;math&gt;\{x\in\mathbb R \mid P(x)\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Union and Intersection&lt;/b&gt;: &lt;code&gt;A\cup B&lt;/code&gt; and &lt;code&gt;A\cap B&lt;/code&gt; give &lt;math&gt;A\cup B&lt;/math&gt; and &lt;math&gt;A\cap B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt; Indexed Union and Intersection&lt;/b&gt;:<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Logic ====</div> 5space https://artofproblemsolving.com/wiki/index.php?title=LaTeX:LaTeX_on_AoPS&diff=72372 LaTeX:LaTeX on AoPS 2015-10-05T18:37:41Z <p>5space: /* Sets */</p> <hr /> <div>{{Latex}}<br /> <br /> This article explains how to use LaTeX in the AoPSWiki, the AoPS Community, and the AoPS Classroom. See [http://artofproblemsolving.com/wiki/index.php/LaTeX:Packages Packages] to know which packages are prebuilt into the AoPS site.<br /> <br /> <br /> ----<br /> == Getting Started with LaTeX ==<br /> <br /> === The Very Basics ===<br /> <br /> LaTeX uses a special &quot;math mode&quot; to display mathematics. There are two types of this &quot;math mode&quot;:<br /> <br /> ==== In-line Math Mode ====<br /> <br /> In in-line math mode, we use &lt;code&gt;&lt;/code&gt; signs to enclose the math we want to display, and it displays in-line with our text. For example, typing &lt;code&gt;$\sqrt{x} = 5$&lt;/code&gt; gives us &lt;math&gt;\sqrt{x} = 5.&lt;/math&gt;<br /> <br /> ==== Display Math Mode ====<br /> <br /> In display math mode, we enclose our code in double dollar signs, and it displays the math centered and on its own line. For example, &lt;code&gt;$$\sqrt{x} = 5$$&lt;/code&gt; gives us &lt;cmath&gt;\sqrt{x} = 5.&lt;/cmath&gt;<br /> <br /> ==== In-line vs. Display ====<br /> <br /> Besides displaying in-line vs. displaying centered and on a new line, the two modes render differently in other ways. Note that &lt;code&gt;$\sum_{k=1}^n k^2$&lt;/code&gt; gives us &lt;math&gt;\textstyle\sum_{k=1}^n k^2,&lt;/math&gt; whereas &lt;code&gt;$$\sum_{k=1}^n k^2$$&lt;/code&gt; gives us &lt;cmath&gt;\sum_{k=1}^n k^2.&lt;/cmath&gt;<br /> <br /> === Basic Expressions ===<br /> <br /> ==== Multiplication ====<br /> <br /> Sometimes, when we're multiplying, we don't need a multiplication symbol. For instance, we can write &lt;math&gt;xy&lt;/math&gt; instead of &lt;math&gt;x\cdot y&lt;/math&gt; without ambiguity. However, when you're multiplying numbers, for instance, a multiplication symbol comes in handy. The standard symbol is given by &lt;code&gt;$\cdot$&lt;/code&gt;. For example, &lt;code&gt;$12\cdot\frac{1}{2}$&lt;/code&gt; gives us &lt;math&gt;\textstyle 12\cdot \frac 12.&lt;/math&gt;<br /> <br /> ==== Fractions ====<br /> <br /> We can make fractions via &lt;code&gt;$\frac{...}{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\frac{x+y}{2}$&lt;/code&gt; will give us &lt;math&gt;\textstyle\frac{x+y}{2}.&lt;/math&gt;<br /> <br /> ==== Roots ====<br /> <br /> Square roots in &lt;math&gt;\LaTeX&lt;/math&gt; are pretty simple; we just type &lt;code&gt;$\sqrt{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{2}$&lt;/code&gt; gives us &lt;math&gt;\sqrt 2.&lt;/math&gt; Cube roots, fourth roots, and so on are only slightly more difficult; we type &lt;code&gt;$\sqrt[n]{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{x-y}$&lt;/code&gt; gives &lt;math&gt;\sqrt{x-y}.&lt;/math&gt;<br /> <br /> ==== Superscripts &amp; Subscripts ====<br /> <br /> To get superscripts (or exponents), we use the caret symbol &lt;code&gt;^&lt;/code&gt;. Typing &lt;code&gt;$x^2+y^2$&lt;/code&gt; gives &lt;math&gt;x^2+y^2.&lt;/math&gt; Subscripts are obtained via an underscore (holding shift and the minus sign on most keyboards). For instance, &lt;code&gt;$a_k$&lt;/code&gt; yields &lt;math&gt;a_k.&lt;/math&gt;<br /> <br /> ==== Groups ====<br /> <br /> Most operations in &lt;math&gt;\LaTeX&lt;/math&gt; (such as superscripts and subscripts) can only see the &quot;group&quot; of characters immediately following it. We use curly braces &lt;code&gt;{...}&lt;/code&gt; to indicate groups longer than one character. For instance, if we wrote &lt;code&gt;$x^2015$&lt;/code&gt;, we'd expect to get &lt;math&gt;x^{2015},&lt;/math&gt; but we instead get &lt;math&gt;x^2015.&lt;/math&gt; This is because each character in the string &lt;code&gt;2015&lt;/code&gt; is in its own group until we tell &lt;math&gt;\LaTeX&lt;/math&gt; that &lt;code&gt;2015&lt;/code&gt; should be one whole group. To convey this information to &lt;math&gt;\LaTeX&lt;/math&gt;, we write &lt;code&gt;$x^{2015}$&lt;/code&gt; and we get &lt;math&gt;x^{2015}.&lt;/math&gt;<br /> <br /> === Beyond the Basic Expressions ===<br /> <br /> ==== Grouping Basic Expressions ====<br /> <br /> Our ordinary parentheses &lt;code&gt;(...)&lt;/code&gt; and brackets &lt;code&gt;[...]&lt;/code&gt; work to group expressions in &lt;math&gt;\LaTeX&lt;/math&gt;. For instance, &lt;code&gt;$(x+y)[z+w]$&lt;/code&gt; gives us &lt;math&gt;(x+y)[z+w].&lt;/math&gt; We can also group expressions using curly braces, but we can't just type &lt;code&gt;{...}&lt;/code&gt;. Rather, we must type &lt;code&gt;\{...\}&lt;/code&gt;. This is because &lt;math&gt;\LaTeX&lt;/math&gt; uses plain curly braces for other things, such as fractions and superscripts and subscripts.<br /> <br /> &lt;br&gt;&lt;br&gt;<br /> <br /> When we put (vertically) large expressions inside of parentheses (or brackets, or curly braces, etc.), the parentheses don't resize to fit the expression and instead remain relatively small. For instance, &lt;code&gt;$$f(x) = \pi(\frac{\sqrt{x}}{x-1})$$&lt;/code&gt; comes out as &lt;cmath&gt;f(x) = \pi(\frac{\sqrt{x}}{x-1}).&lt;/cmath&gt; To automatically adjust the size of parentheses to fit the expression inside of them, we type &lt;code&gt;\left(...\right)&lt;/code&gt;. If we do this for our &lt;math&gt;f&lt;/math&gt; equation above, we get &lt;cmath&gt;f(x) = \pi\left(\frac{\sqrt{x}}{x-1}\right).&lt;/cmath&gt; We can use &lt;code&gt;\left&lt;/code&gt; and &lt;code&gt;\right&lt;/code&gt; for all sorts of things... parentheses (as we saw), brackets &lt;code&gt;$\left[...\right]$&lt;/code&gt;, braces &lt;code&gt;$\left\{...\right\}&lt;/code&gt;, absolute values &lt;code&gt;$\left|...\right|$&lt;/code&gt;, and much more (norms, floor and ceiling functions, inner products, etc.).<br /> <br /> ==== Lists ====<br /> <br /> To make a list, such as a sequence, we use &lt;code&gt;\dots&lt;/code&gt;. For example, &lt;code&gt;$a_0,a_1,\dots,a_n$&lt;/code&gt; will give us &lt;math&gt;a_0,a_1,\dots,a_n.&lt;/math&gt;<br /> <br /> ==== Sums ====<br /> <br /> There are two basic ways to write out sums. First, we can use &lt;code&gt;+&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example of this way would be &lt;code&gt;$a_1+a_2+\cdots+a_n$&lt;/code&gt; This will give us &lt;math&gt;a_1+a_2+\cdots+a_n.&lt;/math&gt; Second, we could use summation notation, or &lt;code&gt;\sum&lt;/code&gt;. Such an example is &lt;code&gt;$\sum_{i=0}^n a_i$&lt;/code&gt;, giving &lt;math&gt;\textstyle \sum_{i=0}^n a_i.&lt;/math&gt; Note the use of superscripts and subscripts to obtain the summation index.<br /> <br /> ==== Products ====<br /> <br /> Again, there are two basic ways to display products. First, we can use &lt;code&gt;\cdot&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example is &lt;code&gt;$n! = n\cdot(n-1)\cdots 2\cdot 1$&lt;/code&gt;, which of course gives &lt;math&gt;n! = n\cdot(n-1)\cdots 2 \cdot 1.&lt;/math&gt; The alternative is to use product notation with &lt;code&gt;\prod&lt;/code&gt;. For instance, &lt;code&gt;$n! = \prod_{k=1}^n k&lt;/code&gt;, giving &lt;math&gt;\textstyle n! = \prod_{k=1}^n k.&lt;/math&gt;<br /> <br /> === Equalities and Inequalities ===<br /> <br /> ==== Inequalities ====<br /> <br /> the commands &lt;code&gt;&gt;, &lt;, \geq, \leq,&lt;/code&gt; and &lt;code&gt;\neq&lt;/code&gt; give us &lt;math&gt;&gt;,&lt;/math&gt; &lt;math&gt;&lt;,&lt;/math&gt; &lt;math&gt;\geq,&lt;/math&gt; &lt;math&gt;\leq,&lt;/math&gt; and &lt;math&gt;\neq,&lt;/math&gt; respectively.<br /> <br /> ==== Aligning Equations ====<br /> <br /> To align multiple equations, we use the &lt;code&gt;align*&lt;/code&gt; environment. For example, we might type a system of equations as follows:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> (You do not need dollar signs.) The &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to and the \\ symbols break to the next line. This code will output<br /> &lt;cmath&gt;\begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}&lt;/cmath&gt; An example of a string of equations is:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> Again, the &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to, and the \\ symbols break to the next line. This code outputs<br /> &lt;cmath&gt;\begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}&lt;/cmath&gt;<br /> <br /> ==== Numbering Equations ====<br /> <br /> To number equations, we use the &lt;code&gt;align&lt;/code&gt; environment. This is the same environment as the &lt;code&gt;align*&lt;/code&gt; environment, but we leave the &lt;code&gt;*&lt;/code&gt; off. The &lt;code&gt;*&lt;/code&gt; suppresses numbering. To number one equation, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by = c<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by = c.<br /> \end{align} &lt;/cmath&gt; We don't have to use &lt;code&gt;&amp;&lt;/code&gt; or \\ since there is nothing to align and no lines to break. To number several equations, such as a system, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i.<br /> \end{align} &lt;/cmath&gt; In general, &lt;code&gt;align&lt;/code&gt; will auto-number your equations from first to last.<br /> <br /> ==== Comments in Equations ====<br /> <br /> Again, we use the &lt;code&gt;align*&lt;/code&gt; environment. The code<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}<br /> \end{align*}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}.<br /> \end{align*} &lt;/cmath&gt; (You can use &lt;code&gt;align&lt;/code&gt; to get numbering &lt;i&gt;and&lt;/i&gt; comments!)<br /> <br /> ==== Definition by Cases ====<br /> <br /> To define, say, a function by cases, we use the &lt;code&gt;cases&lt;/code&gt; environment. The code<br /> &lt;pre&gt;&lt;nowiki&gt;<br /> $$&lt;/nowiki&gt; \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j \end{cases} &lt;nowiki&gt;$$<br /> &lt;/nowiki&gt;&lt;/pre&gt;<br /> gives us<br /> &lt;cmath&gt;<br /> \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j. \end{cases}<br /> &lt;/cmath&gt; As usual, the &lt;code&gt;&amp;&lt;/code&gt; is for aligning and the \\ is for line-breaking.<br /> <br /> === Commonly Used Commands ===<br /> <br /> ==== Algebra ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> <br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Geometry/Trig ====<br /> <br /> ==== Counting &amp; Probability ====<br /> <br /> ==== Number Theory ====<br /> <br /> ==== Linear Algebra ====<br /> <br /> ==== Calculus ====<br /> <br /> ==== Sets ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Set Notation&lt;/b&gt;: &lt;code&gt;\{...\}&lt;/code&gt; gives &lt;math&gt;\{...\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Set-Builder Notation&lt;/b&gt;: &lt;code&gt;\{x\in\mathbb{R}\mid P(x)\}&lt;/code&gt; gives &lt;math&gt;\{x\in\mathbb R \mid P(x)\}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Basic Union and Intersection&lt;/b&gt;: &lt;code&gt;A\cup B&lt;/code&gt; and &lt;code&gt;A\cap B&lt;/code&gt; give &lt;math&gt;A\cup B&lt;/math&gt; and &lt;math&gt;A\cap B.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt; Indexed Union and Intersection&lt;/b&gt;:<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Logic ====</div> 5space https://artofproblemsolving.com/wiki/index.php?title=LaTeX:LaTeX_on_AoPS&diff=72371 LaTeX:LaTeX on AoPS 2015-10-05T18:24:08Z <p>5space: /* Algebra */</p> <hr /> <div>{{Latex}}<br /> <br /> This article explains how to use LaTeX in the AoPSWiki, the AoPS Community, and the AoPS Classroom. See [http://artofproblemsolving.com/wiki/index.php/LaTeX:Packages Packages] to know which packages are prebuilt into the AoPS site.<br /> <br /> <br /> ----<br /> == Getting Started with LaTeX ==<br /> <br /> === The Very Basics ===<br /> <br /> LaTeX uses a special &quot;math mode&quot; to display mathematics. There are two types of this &quot;math mode&quot;:<br /> <br /> ==== In-line Math Mode ====<br /> <br /> In in-line math mode, we use &lt;code&gt;&lt;/code&gt; signs to enclose the math we want to display, and it displays in-line with our text. For example, typing &lt;code&gt;$\sqrt{x} = 5$&lt;/code&gt; gives us &lt;math&gt;\sqrt{x} = 5.&lt;/math&gt;<br /> <br /> ==== Display Math Mode ====<br /> <br /> In display math mode, we enclose our code in double dollar signs, and it displays the math centered and on its own line. For example, &lt;code&gt;$$\sqrt{x} = 5$$&lt;/code&gt; gives us &lt;cmath&gt;\sqrt{x} = 5.&lt;/cmath&gt;<br /> <br /> ==== In-line vs. Display ====<br /> <br /> Besides displaying in-line vs. displaying centered and on a new line, the two modes render differently in other ways. Note that &lt;code&gt;$\sum_{k=1}^n k^2$&lt;/code&gt; gives us &lt;math&gt;\textstyle\sum_{k=1}^n k^2,&lt;/math&gt; whereas &lt;code&gt;$$\sum_{k=1}^n k^2$$&lt;/code&gt; gives us &lt;cmath&gt;\sum_{k=1}^n k^2.&lt;/cmath&gt;<br /> <br /> === Basic Expressions ===<br /> <br /> ==== Multiplication ====<br /> <br /> Sometimes, when we're multiplying, we don't need a multiplication symbol. For instance, we can write &lt;math&gt;xy&lt;/math&gt; instead of &lt;math&gt;x\cdot y&lt;/math&gt; without ambiguity. However, when you're multiplying numbers, for instance, a multiplication symbol comes in handy. The standard symbol is given by &lt;code&gt;$\cdot$&lt;/code&gt;. For example, &lt;code&gt;$12\cdot\frac{1}{2}$&lt;/code&gt; gives us &lt;math&gt;\textstyle 12\cdot \frac 12.&lt;/math&gt;<br /> <br /> ==== Fractions ====<br /> <br /> We can make fractions via &lt;code&gt;$\frac{...}{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\frac{x+y}{2}$&lt;/code&gt; will give us &lt;math&gt;\textstyle\frac{x+y}{2}.&lt;/math&gt;<br /> <br /> ==== Roots ====<br /> <br /> Square roots in &lt;math&gt;\LaTeX&lt;/math&gt; are pretty simple; we just type &lt;code&gt;$\sqrt{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{2}$&lt;/code&gt; gives us &lt;math&gt;\sqrt 2.&lt;/math&gt; Cube roots, fourth roots, and so on are only slightly more difficult; we type &lt;code&gt;$\sqrt[n]{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{x-y}$&lt;/code&gt; gives &lt;math&gt;\sqrt{x-y}.&lt;/math&gt;<br /> <br /> ==== Superscripts &amp; Subscripts ====<br /> <br /> To get superscripts (or exponents), we use the caret symbol &lt;code&gt;^&lt;/code&gt;. Typing &lt;code&gt;$x^2+y^2$&lt;/code&gt; gives &lt;math&gt;x^2+y^2.&lt;/math&gt; Subscripts are obtained via an underscore (holding shift and the minus sign on most keyboards). For instance, &lt;code&gt;$a_k$&lt;/code&gt; yields &lt;math&gt;a_k.&lt;/math&gt;<br /> <br /> ==== Groups ====<br /> <br /> Most operations in &lt;math&gt;\LaTeX&lt;/math&gt; (such as superscripts and subscripts) can only see the &quot;group&quot; of characters immediately following it. We use curly braces &lt;code&gt;{...}&lt;/code&gt; to indicate groups longer than one character. For instance, if we wrote &lt;code&gt;$x^2015$&lt;/code&gt;, we'd expect to get &lt;math&gt;x^{2015},&lt;/math&gt; but we instead get &lt;math&gt;x^2015.&lt;/math&gt; This is because each character in the string &lt;code&gt;2015&lt;/code&gt; is in its own group until we tell &lt;math&gt;\LaTeX&lt;/math&gt; that &lt;code&gt;2015&lt;/code&gt; should be one whole group. To convey this information to &lt;math&gt;\LaTeX&lt;/math&gt;, we write &lt;code&gt;$x^{2015}$&lt;/code&gt; and we get &lt;math&gt;x^{2015}.&lt;/math&gt;<br /> <br /> === Beyond the Basic Expressions ===<br /> <br /> ==== Grouping Basic Expressions ====<br /> <br /> Our ordinary parentheses &lt;code&gt;(...)&lt;/code&gt; and brackets &lt;code&gt;[...]&lt;/code&gt; work to group expressions in &lt;math&gt;\LaTeX&lt;/math&gt;. For instance, &lt;code&gt;$(x+y)[z+w]$&lt;/code&gt; gives us &lt;math&gt;(x+y)[z+w].&lt;/math&gt; We can also group expressions using curly braces, but we can't just type &lt;code&gt;{...}&lt;/code&gt;. Rather, we must type &lt;code&gt;\{...\}&lt;/code&gt;. This is because &lt;math&gt;\LaTeX&lt;/math&gt; uses plain curly braces for other things, such as fractions and superscripts and subscripts.<br /> <br /> &lt;br&gt;&lt;br&gt;<br /> <br /> When we put (vertically) large expressions inside of parentheses (or brackets, or curly braces, etc.), the parentheses don't resize to fit the expression and instead remain relatively small. For instance, &lt;code&gt;$$f(x) = \pi(\frac{\sqrt{x}}{x-1})$$&lt;/code&gt; comes out as &lt;cmath&gt;f(x) = \pi(\frac{\sqrt{x}}{x-1}).&lt;/cmath&gt; To automatically adjust the size of parentheses to fit the expression inside of them, we type &lt;code&gt;\left(...\right)&lt;/code&gt;. If we do this for our &lt;math&gt;f&lt;/math&gt; equation above, we get &lt;cmath&gt;f(x) = \pi\left(\frac{\sqrt{x}}{x-1}\right).&lt;/cmath&gt; We can use &lt;code&gt;\left&lt;/code&gt; and &lt;code&gt;\right&lt;/code&gt; for all sorts of things... parentheses (as we saw), brackets &lt;code&gt;$\left[...\right]$&lt;/code&gt;, braces &lt;code&gt;$\left\{...\right\}&lt;/code&gt;, absolute values &lt;code&gt;$\left|...\right|$&lt;/code&gt;, and much more (norms, floor and ceiling functions, inner products, etc.).<br /> <br /> ==== Lists ====<br /> <br /> To make a list, such as a sequence, we use &lt;code&gt;\dots&lt;/code&gt;. For example, &lt;code&gt;$a_0,a_1,\dots,a_n$&lt;/code&gt; will give us &lt;math&gt;a_0,a_1,\dots,a_n.&lt;/math&gt;<br /> <br /> ==== Sums ====<br /> <br /> There are two basic ways to write out sums. First, we can use &lt;code&gt;+&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example of this way would be &lt;code&gt;$a_1+a_2+\cdots+a_n$&lt;/code&gt; This will give us &lt;math&gt;a_1+a_2+\cdots+a_n.&lt;/math&gt; Second, we could use summation notation, or &lt;code&gt;\sum&lt;/code&gt;. Such an example is &lt;code&gt;$\sum_{i=0}^n a_i$&lt;/code&gt;, giving &lt;math&gt;\textstyle \sum_{i=0}^n a_i.&lt;/math&gt; Note the use of superscripts and subscripts to obtain the summation index.<br /> <br /> ==== Products ====<br /> <br /> Again, there are two basic ways to display products. First, we can use &lt;code&gt;\cdot&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example is &lt;code&gt;$n! = n\cdot(n-1)\cdots 2\cdot 1$&lt;/code&gt;, which of course gives &lt;math&gt;n! = n\cdot(n-1)\cdots 2 \cdot 1.&lt;/math&gt; The alternative is to use product notation with &lt;code&gt;\prod&lt;/code&gt;. For instance, &lt;code&gt;$n! = \prod_{k=1}^n k&lt;/code&gt;, giving &lt;math&gt;\textstyle n! = \prod_{k=1}^n k.&lt;/math&gt;<br /> <br /> === Equalities and Inequalities ===<br /> <br /> ==== Inequalities ====<br /> <br /> the commands &lt;code&gt;&gt;, &lt;, \geq, \leq,&lt;/code&gt; and &lt;code&gt;\neq&lt;/code&gt; give us &lt;math&gt;&gt;,&lt;/math&gt; &lt;math&gt;&lt;,&lt;/math&gt; &lt;math&gt;\geq,&lt;/math&gt; &lt;math&gt;\leq,&lt;/math&gt; and &lt;math&gt;\neq,&lt;/math&gt; respectively.<br /> <br /> ==== Aligning Equations ====<br /> <br /> To align multiple equations, we use the &lt;code&gt;align*&lt;/code&gt; environment. For example, we might type a system of equations as follows:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> (You do not need dollar signs.) The &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to and the \\ symbols break to the next line. This code will output<br /> &lt;cmath&gt;\begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}&lt;/cmath&gt; An example of a string of equations is:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> Again, the &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to, and the \\ symbols break to the next line. This code outputs<br /> &lt;cmath&gt;\begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}&lt;/cmath&gt;<br /> <br /> ==== Numbering Equations ====<br /> <br /> To number equations, we use the &lt;code&gt;align&lt;/code&gt; environment. This is the same environment as the &lt;code&gt;align*&lt;/code&gt; environment, but we leave the &lt;code&gt;*&lt;/code&gt; off. The &lt;code&gt;*&lt;/code&gt; suppresses numbering. To number one equation, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by = c<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by = c.<br /> \end{align} &lt;/cmath&gt; We don't have to use &lt;code&gt;&amp;&lt;/code&gt; or \\ since there is nothing to align and no lines to break. To number several equations, such as a system, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i.<br /> \end{align} &lt;/cmath&gt; In general, &lt;code&gt;align&lt;/code&gt; will auto-number your equations from first to last.<br /> <br /> ==== Comments in Equations ====<br /> <br /> Again, we use the &lt;code&gt;align*&lt;/code&gt; environment. The code<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}<br /> \end{align*}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}.<br /> \end{align*} &lt;/cmath&gt; (You can use &lt;code&gt;align&lt;/code&gt; to get numbering &lt;i&gt;and&lt;/i&gt; comments!)<br /> <br /> ==== Definition by Cases ====<br /> <br /> To define, say, a function by cases, we use the &lt;code&gt;cases&lt;/code&gt; environment. The code<br /> &lt;pre&gt;&lt;nowiki&gt;<br /> $$&lt;/nowiki&gt; \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j \end{cases} &lt;nowiki&gt;$$<br /> &lt;/nowiki&gt;&lt;/pre&gt;<br /> gives us<br /> &lt;cmath&gt;<br /> \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j. \end{cases}<br /> &lt;/cmath&gt; As usual, the &lt;code&gt;&amp;&lt;/code&gt; is for aligning and the \\ is for line-breaking.<br /> <br /> === Commonly Used Commands ===<br /> <br /> ==== Algebra ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> <br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Geometry/Trig ====<br /> <br /> ==== Counting &amp; Probability ====<br /> <br /> ==== Number Theory ====<br /> <br /> ==== Linear Algebra ====<br /> <br /> ==== Calculus ====<br /> <br /> ==== Sets ====<br /> <br /> ==== Logic ====</div> 5space https://artofproblemsolving.com/wiki/index.php?title=LaTeX:LaTeX_on_AoPS&diff=72370 LaTeX:LaTeX on AoPS 2015-10-05T18:23:39Z <p>5space: /* Algebra */</p> <hr /> <div>{{Latex}}<br /> <br /> This article explains how to use LaTeX in the AoPSWiki, the AoPS Community, and the AoPS Classroom. See [http://artofproblemsolving.com/wiki/index.php/LaTeX:Packages Packages] to know which packages are prebuilt into the AoPS site.<br /> <br /> <br /> ----<br /> == Getting Started with LaTeX ==<br /> <br /> === The Very Basics ===<br /> <br /> LaTeX uses a special &quot;math mode&quot; to display mathematics. There are two types of this &quot;math mode&quot;:<br /> <br /> ==== In-line Math Mode ====<br /> <br /> In in-line math mode, we use &lt;code&gt;&lt;/code&gt; signs to enclose the math we want to display, and it displays in-line with our text. For example, typing &lt;code&gt;$\sqrt{x} = 5$&lt;/code&gt; gives us &lt;math&gt;\sqrt{x} = 5.&lt;/math&gt;<br /> <br /> ==== Display Math Mode ====<br /> <br /> In display math mode, we enclose our code in double dollar signs, and it displays the math centered and on its own line. For example, &lt;code&gt;$$\sqrt{x} = 5$$&lt;/code&gt; gives us &lt;cmath&gt;\sqrt{x} = 5.&lt;/cmath&gt;<br /> <br /> ==== In-line vs. Display ====<br /> <br /> Besides displaying in-line vs. displaying centered and on a new line, the two modes render differently in other ways. Note that &lt;code&gt;$\sum_{k=1}^n k^2$&lt;/code&gt; gives us &lt;math&gt;\textstyle\sum_{k=1}^n k^2,&lt;/math&gt; whereas &lt;code&gt;$$\sum_{k=1}^n k^2$$&lt;/code&gt; gives us &lt;cmath&gt;\sum_{k=1}^n k^2.&lt;/cmath&gt;<br /> <br /> === Basic Expressions ===<br /> <br /> ==== Multiplication ====<br /> <br /> Sometimes, when we're multiplying, we don't need a multiplication symbol. For instance, we can write &lt;math&gt;xy&lt;/math&gt; instead of &lt;math&gt;x\cdot y&lt;/math&gt; without ambiguity. However, when you're multiplying numbers, for instance, a multiplication symbol comes in handy. The standard symbol is given by &lt;code&gt;$\cdot$&lt;/code&gt;. For example, &lt;code&gt;$12\cdot\frac{1}{2}$&lt;/code&gt; gives us &lt;math&gt;\textstyle 12\cdot \frac 12.&lt;/math&gt;<br /> <br /> ==== Fractions ====<br /> <br /> We can make fractions via &lt;code&gt;$\frac{...}{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\frac{x+y}{2}$&lt;/code&gt; will give us &lt;math&gt;\textstyle\frac{x+y}{2}.&lt;/math&gt;<br /> <br /> ==== Roots ====<br /> <br /> Square roots in &lt;math&gt;\LaTeX&lt;/math&gt; are pretty simple; we just type &lt;code&gt;$\sqrt{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{2}$&lt;/code&gt; gives us &lt;math&gt;\sqrt 2.&lt;/math&gt; Cube roots, fourth roots, and so on are only slightly more difficult; we type &lt;code&gt;$\sqrt[n]{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{x-y}$&lt;/code&gt; gives &lt;math&gt;\sqrt{x-y}.&lt;/math&gt;<br /> <br /> ==== Superscripts &amp; Subscripts ====<br /> <br /> To get superscripts (or exponents), we use the caret symbol &lt;code&gt;^&lt;/code&gt;. Typing &lt;code&gt;$x^2+y^2$&lt;/code&gt; gives &lt;math&gt;x^2+y^2.&lt;/math&gt; Subscripts are obtained via an underscore (holding shift and the minus sign on most keyboards). For instance, &lt;code&gt;$a_k$&lt;/code&gt; yields &lt;math&gt;a_k.&lt;/math&gt;<br /> <br /> ==== Groups ====<br /> <br /> Most operations in &lt;math&gt;\LaTeX&lt;/math&gt; (such as superscripts and subscripts) can only see the &quot;group&quot; of characters immediately following it. We use curly braces &lt;code&gt;{...}&lt;/code&gt; to indicate groups longer than one character. For instance, if we wrote &lt;code&gt;$x^2015$&lt;/code&gt;, we'd expect to get &lt;math&gt;x^{2015},&lt;/math&gt; but we instead get &lt;math&gt;x^2015.&lt;/math&gt; This is because each character in the string &lt;code&gt;2015&lt;/code&gt; is in its own group until we tell &lt;math&gt;\LaTeX&lt;/math&gt; that &lt;code&gt;2015&lt;/code&gt; should be one whole group. To convey this information to &lt;math&gt;\LaTeX&lt;/math&gt;, we write &lt;code&gt;$x^{2015}$&lt;/code&gt; and we get &lt;math&gt;x^{2015}.&lt;/math&gt;<br /> <br /> === Beyond the Basic Expressions ===<br /> <br /> ==== Grouping Basic Expressions ====<br /> <br /> Our ordinary parentheses &lt;code&gt;(...)&lt;/code&gt; and brackets &lt;code&gt;[...]&lt;/code&gt; work to group expressions in &lt;math&gt;\LaTeX&lt;/math&gt;. For instance, &lt;code&gt;$(x+y)[z+w]$&lt;/code&gt; gives us &lt;math&gt;(x+y)[z+w].&lt;/math&gt; We can also group expressions using curly braces, but we can't just type &lt;code&gt;{...}&lt;/code&gt;. Rather, we must type &lt;code&gt;\{...\}&lt;/code&gt;. This is because &lt;math&gt;\LaTeX&lt;/math&gt; uses plain curly braces for other things, such as fractions and superscripts and subscripts.<br /> <br /> &lt;br&gt;&lt;br&gt;<br /> <br /> When we put (vertically) large expressions inside of parentheses (or brackets, or curly braces, etc.), the parentheses don't resize to fit the expression and instead remain relatively small. For instance, &lt;code&gt;$$f(x) = \pi(\frac{\sqrt{x}}{x-1})$$&lt;/code&gt; comes out as &lt;cmath&gt;f(x) = \pi(\frac{\sqrt{x}}{x-1}).&lt;/cmath&gt; To automatically adjust the size of parentheses to fit the expression inside of them, we type &lt;code&gt;\left(...\right)&lt;/code&gt;. If we do this for our &lt;math&gt;f&lt;/math&gt; equation above, we get &lt;cmath&gt;f(x) = \pi\left(\frac{\sqrt{x}}{x-1}\right).&lt;/cmath&gt; We can use &lt;code&gt;\left&lt;/code&gt; and &lt;code&gt;\right&lt;/code&gt; for all sorts of things... parentheses (as we saw), brackets &lt;code&gt;$\left[...\right]$&lt;/code&gt;, braces &lt;code&gt;$\left\{...\right\}&lt;/code&gt;, absolute values &lt;code&gt;$\left|...\right|$&lt;/code&gt;, and much more (norms, floor and ceiling functions, inner products, etc.).<br /> <br /> ==== Lists ====<br /> <br /> To make a list, such as a sequence, we use &lt;code&gt;\dots&lt;/code&gt;. For example, &lt;code&gt;$a_0,a_1,\dots,a_n$&lt;/code&gt; will give us &lt;math&gt;a_0,a_1,\dots,a_n.&lt;/math&gt;<br /> <br /> ==== Sums ====<br /> <br /> There are two basic ways to write out sums. First, we can use &lt;code&gt;+&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example of this way would be &lt;code&gt;$a_1+a_2+\cdots+a_n$&lt;/code&gt; This will give us &lt;math&gt;a_1+a_2+\cdots+a_n.&lt;/math&gt; Second, we could use summation notation, or &lt;code&gt;\sum&lt;/code&gt;. Such an example is &lt;code&gt;$\sum_{i=0}^n a_i$&lt;/code&gt;, giving &lt;math&gt;\textstyle \sum_{i=0}^n a_i.&lt;/math&gt; Note the use of superscripts and subscripts to obtain the summation index.<br /> <br /> ==== Products ====<br /> <br /> Again, there are two basic ways to display products. First, we can use &lt;code&gt;\cdot&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example is &lt;code&gt;$n! = n\cdot(n-1)\cdots 2\cdot 1$&lt;/code&gt;, which of course gives &lt;math&gt;n! = n\cdot(n-1)\cdots 2 \cdot 1.&lt;/math&gt; The alternative is to use product notation with &lt;code&gt;\prod&lt;/code&gt;. For instance, &lt;code&gt;$n! = \prod_{k=1}^n k&lt;/code&gt;, giving &lt;math&gt;\textstyle n! = \prod_{k=1}^n k.&lt;/math&gt;<br /> <br /> === Equalities and Inequalities ===<br /> <br /> ==== Inequalities ====<br /> <br /> the commands &lt;code&gt;&gt;, &lt;, \geq, \leq,&lt;/code&gt; and &lt;code&gt;\neq&lt;/code&gt; give us &lt;math&gt;&gt;,&lt;/math&gt; &lt;math&gt;&lt;,&lt;/math&gt; &lt;math&gt;\geq,&lt;/math&gt; &lt;math&gt;\leq,&lt;/math&gt; and &lt;math&gt;\neq,&lt;/math&gt; respectively.<br /> <br /> ==== Aligning Equations ====<br /> <br /> To align multiple equations, we use the &lt;code&gt;align*&lt;/code&gt; environment. For example, we might type a system of equations as follows:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> (You do not need dollar signs.) The &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to and the \\ symbols break to the next line. This code will output<br /> &lt;cmath&gt;\begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}&lt;/cmath&gt; An example of a string of equations is:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> Again, the &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to, and the \\ symbols break to the next line. This code outputs<br /> &lt;cmath&gt;\begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}&lt;/cmath&gt;<br /> <br /> ==== Numbering Equations ====<br /> <br /> To number equations, we use the &lt;code&gt;align&lt;/code&gt; environment. This is the same environment as the &lt;code&gt;align*&lt;/code&gt; environment, but we leave the &lt;code&gt;*&lt;/code&gt; off. The &lt;code&gt;*&lt;/code&gt; suppresses numbering. To number one equation, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by = c<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by = c.<br /> \end{align} &lt;/cmath&gt; We don't have to use &lt;code&gt;&amp;&lt;/code&gt; or \\ since there is nothing to align and no lines to break. To number several equations, such as a system, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i.<br /> \end{align} &lt;/cmath&gt; In general, &lt;code&gt;align&lt;/code&gt; will auto-number your equations from first to last.<br /> <br /> ==== Comments in Equations ====<br /> <br /> Again, we use the &lt;code&gt;align*&lt;/code&gt; environment. The code<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}<br /> \end{align*}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}.<br /> \end{align*} &lt;/cmath&gt; (You can use &lt;code&gt;align&lt;/code&gt; to get numbering &lt;i&gt;and&lt;/i&gt; comments!)<br /> <br /> ==== Definition by Cases ====<br /> <br /> To define, say, a function by cases, we use the &lt;code&gt;cases&lt;/code&gt; environment. The code<br /> &lt;pre&gt;&lt;nowiki&gt;<br /> $$&lt;/nowiki&gt; \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j \end{cases} &lt;nowiki&gt;$$<br /> &lt;/nowiki&gt;&lt;/pre&gt;<br /> gives us<br /> &lt;cmath&gt;<br /> \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j. \end{cases}<br /> &lt;/cmath&gt; As usual, the &lt;code&gt;&amp;&lt;/code&gt; is for aligning and the \\ is for line-breaking.<br /> <br /> === Commonly Used Commands ===<br /> <br /> ==== Algebra ====<br /> <br /> &lt;ul&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Radicals&lt;/b&gt;: &lt;code&gt;\sqrt{x},\sqrt[n]{x}&lt;/code&gt; give &lt;math&gt;\sqrt x,&lt;/math&gt; &lt;math&gt;\sqrt[n]x.&lt;/math&gt;<br /> &lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> ==== Geometry/Trig ====<br /> <br /> ==== Counting &amp; Probability ====<br /> <br /> ==== Number Theory ====<br /> <br /> ==== Linear Algebra ====<br /> <br /> ==== Calculus ====<br /> <br /> ==== Sets ====<br /> <br /> ==== Logic ====</div> 5space https://artofproblemsolving.com/wiki/index.php?title=LaTeX:LaTeX_on_AoPS&diff=72348 LaTeX:LaTeX on AoPS 2015-10-02T22:57:53Z <p>5space: Protected &quot;LaTeX:LaTeX on AoPS&quot;: Don't edit Dustin's page. TeX'ing tutorial. ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))</p> <hr /> <div>{{Latex}}<br /> <br /> This article explains how to use LaTeX in the AoPSWiki, the AoPS Community, and the AoPS Classroom. See [http://artofproblemsolving.com/wiki/index.php/LaTeX:Packages Packages] to know which packages are prebuilt into the AoPS site.<br /> <br /> <br /> ----<br /> == Getting Started with LaTeX ==<br /> <br /> === The Very Basics ===<br /> <br /> LaTeX uses a special &quot;math mode&quot; to display mathematics. There are two types of this &quot;math mode&quot;:<br /> <br /> ==== In-line Math Mode ====<br /> <br /> In in-line math mode, we use &lt;code&gt;&lt;/code&gt; signs to enclose the math we want to display, and it displays in-line with our text. For example, typing &lt;code&gt;$\sqrt{x} = 5$&lt;/code&gt; gives us &lt;math&gt;\sqrt{x} = 5.&lt;/math&gt;<br /> <br /> ==== Display Math Mode ====<br /> <br /> In display math mode, we enclose our code in double dollar signs, and it displays the math centered and on its own line. For example, &lt;code&gt;$$\sqrt{x} = 5$$&lt;/code&gt; gives us &lt;cmath&gt;\sqrt{x} = 5.&lt;/cmath&gt;<br /> <br /> ==== In-line vs. Display ====<br /> <br /> Besides displaying in-line vs. displaying centered and on a new line, the two modes render differently in other ways. Note that &lt;code&gt;$\sum_{k=1}^n k^2$&lt;/code&gt; gives us &lt;math&gt;\textstyle\sum_{k=1}^n k^2,&lt;/math&gt; whereas &lt;code&gt;$$\sum_{k=1}^n k^2$$&lt;/code&gt; gives us &lt;cmath&gt;\sum_{k=1}^n k^2.&lt;/cmath&gt;<br /> <br /> === Basic Expressions ===<br /> <br /> ==== Multiplication ====<br /> <br /> Sometimes, when we're multiplying, we don't need a multiplication symbol. For instance, we can write &lt;math&gt;xy&lt;/math&gt; instead of &lt;math&gt;x\cdot y&lt;/math&gt; without ambiguity. However, when you're multiplying numbers, for instance, a multiplication symbol comes in handy. The standard symbol is given by &lt;code&gt;$\cdot$&lt;/code&gt;. For example, &lt;code&gt;$12\cdot\frac{1}{2}$&lt;/code&gt; gives us &lt;math&gt;\textstyle 12\cdot \frac 12.&lt;/math&gt;<br /> <br /> ==== Fractions ====<br /> <br /> We can make fractions via &lt;code&gt;$\frac{...}{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\frac{x+y}{2}$&lt;/code&gt; will give us &lt;math&gt;\textstyle\frac{x+y}{2}.&lt;/math&gt;<br /> <br /> ==== Roots ====<br /> <br /> Square roots in &lt;math&gt;\LaTeX&lt;/math&gt; are pretty simple; we just type &lt;code&gt;$\sqrt{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{2}$&lt;/code&gt; gives us &lt;math&gt;\sqrt 2.&lt;/math&gt; Cube roots, fourth roots, and so on are only slightly more difficult; we type &lt;code&gt;$\sqrt[n]{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{x-y}$&lt;/code&gt; gives &lt;math&gt;\sqrt{x-y}.&lt;/math&gt;<br /> <br /> ==== Superscripts &amp; Subscripts ====<br /> <br /> To get superscripts (or exponents), we use the caret symbol &lt;code&gt;^&lt;/code&gt;. Typing &lt;code&gt;$x^2+y^2$&lt;/code&gt; gives &lt;math&gt;x^2+y^2.&lt;/math&gt; Subscripts are obtained via an underscore (holding shift and the minus sign on most keyboards). For instance, &lt;code&gt;$a_k$&lt;/code&gt; yields &lt;math&gt;a_k.&lt;/math&gt;<br /> <br /> ==== Groups ====<br /> <br /> Most operations in &lt;math&gt;\LaTeX&lt;/math&gt; (such as superscripts and subscripts) can only see the &quot;group&quot; of characters immediately following it. We use curly braces &lt;code&gt;{...}&lt;/code&gt; to indicate groups longer than one character. For instance, if we wrote &lt;code&gt;$x^2015$&lt;/code&gt;, we'd expect to get &lt;math&gt;x^{2015},&lt;/math&gt; but we instead get &lt;math&gt;x^2015.&lt;/math&gt; This is because each character in the string &lt;code&gt;2015&lt;/code&gt; is in its own group until we tell &lt;math&gt;\LaTeX&lt;/math&gt; that &lt;code&gt;2015&lt;/code&gt; should be one whole group. To convey this information to &lt;math&gt;\LaTeX&lt;/math&gt;, we write &lt;code&gt;$x^{2015}$&lt;/code&gt; and we get &lt;math&gt;x^{2015}.&lt;/math&gt;<br /> <br /> === Beyond the Basic Expressions ===<br /> <br /> ==== Grouping Basic Expressions ====<br /> <br /> Our ordinary parentheses &lt;code&gt;(...)&lt;/code&gt; and brackets &lt;code&gt;[...]&lt;/code&gt; work to group expressions in &lt;math&gt;\LaTeX&lt;/math&gt;. For instance, &lt;code&gt;$(x+y)[z+w]$&lt;/code&gt; gives us &lt;math&gt;(x+y)[z+w].&lt;/math&gt; We can also group expressions using curly braces, but we can't just type &lt;code&gt;{...}&lt;/code&gt;. Rather, we must type &lt;code&gt;\{...\}&lt;/code&gt;. This is because &lt;math&gt;\LaTeX&lt;/math&gt; uses plain curly braces for other things, such as fractions and superscripts and subscripts.<br /> <br /> &lt;br&gt;&lt;br&gt;<br /> <br /> When we put (vertically) large expressions inside of parentheses (or brackets, or curly braces, etc.), the parentheses don't resize to fit the expression and instead remain relatively small. For instance, &lt;code&gt;$$f(x) = \pi(\frac{\sqrt{x}}{x-1})$$&lt;/code&gt; comes out as &lt;cmath&gt;f(x) = \pi(\frac{\sqrt{x}}{x-1}).&lt;/cmath&gt; To automatically adjust the size of parentheses to fit the expression inside of them, we type &lt;code&gt;\left(...\right)&lt;/code&gt;. If we do this for our &lt;math&gt;f&lt;/math&gt; equation above, we get &lt;cmath&gt;f(x) = \pi\left(\frac{\sqrt{x}}{x-1}\right).&lt;/cmath&gt; We can use &lt;code&gt;\left&lt;/code&gt; and &lt;code&gt;\right&lt;/code&gt; for all sorts of things... parentheses (as we saw), brackets &lt;code&gt;$\left[...\right]$&lt;/code&gt;, braces &lt;code&gt;$\left\{...\right\}&lt;/code&gt;, absolute values &lt;code&gt;$\left|...\right|$&lt;/code&gt;, and much more (norms, floor and ceiling functions, inner products, etc.).<br /> <br /> ==== Lists ====<br /> <br /> To make a list, such as a sequence, we use &lt;code&gt;\dots&lt;/code&gt;. For example, &lt;code&gt;$a_0,a_1,\dots,a_n$&lt;/code&gt; will give us &lt;math&gt;a_0,a_1,\dots,a_n.&lt;/math&gt;<br /> <br /> ==== Sums ====<br /> <br /> There are two basic ways to write out sums. First, we can use &lt;code&gt;+&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example of this way would be &lt;code&gt;$a_1+a_2+\cdots+a_n$&lt;/code&gt; This will give us &lt;math&gt;a_1+a_2+\cdots+a_n.&lt;/math&gt; Second, we could use summation notation, or &lt;code&gt;\sum&lt;/code&gt;. Such an example is &lt;code&gt;$\sum_{i=0}^n a_i$&lt;/code&gt;, giving &lt;math&gt;\textstyle \sum_{i=0}^n a_i.&lt;/math&gt; Note the use of superscripts and subscripts to obtain the summation index.<br /> <br /> ==== Products ====<br /> <br /> Again, there are two basic ways to display products. First, we can use &lt;code&gt;\cdot&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example is &lt;code&gt;$n! = n\cdot(n-1)\cdots 2\cdot 1$&lt;/code&gt;, which of course gives &lt;math&gt;n! = n\cdot(n-1)\cdots 2 \cdot 1.&lt;/math&gt; The alternative is to use product notation with &lt;code&gt;\prod&lt;/code&gt;. For instance, &lt;code&gt;$n! = \prod_{k=1}^n k&lt;/code&gt;, giving &lt;math&gt;\textstyle n! = \prod_{k=1}^n k.&lt;/math&gt;<br /> <br /> === Equalities and Inequalities ===<br /> <br /> ==== Inequalities ====<br /> <br /> the commands &lt;code&gt;&gt;, &lt;, \geq, \leq,&lt;/code&gt; and &lt;code&gt;\neq&lt;/code&gt; give us &lt;math&gt;&gt;,&lt;/math&gt; &lt;math&gt;&lt;,&lt;/math&gt; &lt;math&gt;\geq,&lt;/math&gt; &lt;math&gt;\leq,&lt;/math&gt; and &lt;math&gt;\neq,&lt;/math&gt; respectively.<br /> <br /> ==== Aligning Equations ====<br /> <br /> To align multiple equations, we use the &lt;code&gt;align*&lt;/code&gt; environment. For example, we might type a system of equations as follows:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> (You do not need dollar signs.) The &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to and the \\ symbols break to the next line. This code will output<br /> &lt;cmath&gt;\begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}&lt;/cmath&gt; An example of a string of equations is:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> Again, the &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to, and the \\ symbols break to the next line. This code outputs<br /> &lt;cmath&gt;\begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}&lt;/cmath&gt;<br /> <br /> ==== Numbering Equations ====<br /> <br /> To number equations, we use the &lt;code&gt;align&lt;/code&gt; environment. This is the same environment as the &lt;code&gt;align*&lt;/code&gt; environment, but we leave the &lt;code&gt;*&lt;/code&gt; off. The &lt;code&gt;*&lt;/code&gt; suppresses numbering. To number one equation, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by = c<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by = c.<br /> \end{align} &lt;/cmath&gt; We don't have to use &lt;code&gt;&amp;&lt;/code&gt; or \\ since there is nothing to align and no lines to break. To number several equations, such as a system, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i.<br /> \end{align} &lt;/cmath&gt; In general, &lt;code&gt;align&lt;/code&gt; will auto-number your equations from first to last.<br /> <br /> ==== Comments in Equations ====<br /> <br /> Again, we use the &lt;code&gt;align*&lt;/code&gt; environment. The code<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}<br /> \end{align*}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}.<br /> \end{align*} &lt;/cmath&gt; (You can use &lt;code&gt;align&lt;/code&gt; to get numbering &lt;i&gt;and&lt;/i&gt; comments!)<br /> <br /> ==== Definition by Cases ====<br /> <br /> To define, say, a function by cases, we use the &lt;code&gt;cases&lt;/code&gt; environment. The code<br /> &lt;pre&gt;&lt;nowiki&gt;<br /> $$&lt;/nowiki&gt; \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j \end{cases} &lt;nowiki&gt;$$<br /> &lt;/nowiki&gt;&lt;/pre&gt;<br /> gives us<br /> &lt;cmath&gt;<br /> \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j. \end{cases}<br /> &lt;/cmath&gt; As usual, the &lt;code&gt;&amp;&lt;/code&gt; is for aligning and the \\ is for line-breaking.<br /> <br /> === Commonly Used Commands ===<br /> <br /> ==== Algebra ====<br /> <br /> ==== Geometry/Trig ====<br /> <br /> ==== Counting &amp; Probability ====<br /> <br /> ==== Number Theory ====<br /> <br /> ==== Linear Algebra ====<br /> <br /> ==== Calculus ====<br /> <br /> ==== Sets ====<br /> <br /> ==== Logic ====</div> 5space https://artofproblemsolving.com/wiki/index.php?title=LaTeX:Diagrams&diff=72343 LaTeX:Diagrams 2015-10-02T21:27:58Z <p>5space: </p> <hr /> <div>{{Latex}}<br /> <br /> == Diagrams and Figures ==</div> 5space https://artofproblemsolving.com/wiki/index.php?title=LaTeX:Diagrams&diff=72342 LaTeX:Diagrams 2015-10-02T21:27:19Z <p>5space: Created page with &quot;== Diagrams and Figures ==&quot;</p> <hr /> <div>== Diagrams and Figures ==</div> 5space https://artofproblemsolving.com/wiki/index.php?title=Template:Latex&diff=72341 Template:Latex 2015-10-02T21:26:49Z <p>5space: </p> <hr /> <div>{| class=&quot;wikitable&quot; style=&quot;border:1px solid black; background:#CEE0F2;text-align:center;&quot; align=&quot;center&quot;<br /> |-<br /> |style=&quot;background:#B0C4DE;&quot;|'''[[LaTeX]]'''<br /> |-<br /> |[[LaTeX:About|About]] - [[LaTeX:LaTeX on AoPS|Getting Started]] - [[LaTeX:Diagrams|Diagrams]] - [[LaTeX:Symbols|Symbols]] - [[LaTeX:Downloads|Downloads]] - [[LaTeX:Basics|Basics]] - [[LaTeX:Math|Math]] - [[LaTeX:Examples|Examples]] - [[LaTeX:Pictures|Pictures]] - [[LaTeX:Layout|Layout]] - [[LaTeX:Commands|Commands]] - [[LaTeX:Packages|Packages]] - [[LaTeX:Help|Help]]<br /> [[Category:LaTeX]]<br /> |}&lt;noinclude&gt;<br /> ==Usage==<br /> This templates goes on articles related to the guide for [[LaTeX]]. &lt;/noinclude&gt;</div> 5space https://artofproblemsolving.com/wiki/index.php?title=LaTeX:LaTeX_on_AoPS&diff=72340 LaTeX:LaTeX on AoPS 2015-10-02T21:11:36Z <p>5space: /* Commonly Used Commands */</p> <hr /> <div>{{Latex}}<br /> <br /> This article explains how to use LaTeX in the AoPSWiki, the AoPS Community, and the AoPS Classroom. See [http://artofproblemsolving.com/wiki/index.php/LaTeX:Packages Packages] to know which packages are prebuilt into the AoPS site.<br /> <br /> <br /> ----<br /> == Getting Started with LaTeX ==<br /> <br /> === The Very Basics ===<br /> <br /> LaTeX uses a special &quot;math mode&quot; to display mathematics. There are two types of this &quot;math mode&quot;:<br /> <br /> ==== In-line Math Mode ====<br /> <br /> In in-line math mode, we use &lt;code&gt;&lt;/code&gt; signs to enclose the math we want to display, and it displays in-line with our text. For example, typing &lt;code&gt;$\sqrt{x} = 5$&lt;/code&gt; gives us &lt;math&gt;\sqrt{x} = 5.&lt;/math&gt;<br /> <br /> ==== Display Math Mode ====<br /> <br /> In display math mode, we enclose our code in double dollar signs, and it displays the math centered and on its own line. For example, &lt;code&gt;$$\sqrt{x} = 5$$&lt;/code&gt; gives us &lt;cmath&gt;\sqrt{x} = 5.&lt;/cmath&gt;<br /> <br /> ==== In-line vs. Display ====<br /> <br /> Besides displaying in-line vs. displaying centered and on a new line, the two modes render differently in other ways. Note that &lt;code&gt;$\sum_{k=1}^n k^2$&lt;/code&gt; gives us &lt;math&gt;\textstyle\sum_{k=1}^n k^2,&lt;/math&gt; whereas &lt;code&gt;$$\sum_{k=1}^n k^2$$&lt;/code&gt; gives us &lt;cmath&gt;\sum_{k=1}^n k^2.&lt;/cmath&gt;<br /> <br /> === Basic Expressions ===<br /> <br /> ==== Multiplication ====<br /> <br /> Sometimes, when we're multiplying, we don't need a multiplication symbol. For instance, we can write &lt;math&gt;xy&lt;/math&gt; instead of &lt;math&gt;x\cdot y&lt;/math&gt; without ambiguity. However, when you're multiplying numbers, for instance, a multiplication symbol comes in handy. The standard symbol is given by &lt;code&gt;$\cdot$&lt;/code&gt;. For example, &lt;code&gt;$12\cdot\frac{1}{2}$&lt;/code&gt; gives us &lt;math&gt;\textstyle 12\cdot \frac 12.&lt;/math&gt;<br /> <br /> ==== Fractions ====<br /> <br /> We can make fractions via &lt;code&gt;$\frac{...}{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\frac{x+y}{2}$&lt;/code&gt; will give us &lt;math&gt;\textstyle\frac{x+y}{2}.&lt;/math&gt;<br /> <br /> ==== Roots ====<br /> <br /> Square roots in &lt;math&gt;\LaTeX&lt;/math&gt; are pretty simple; we just type &lt;code&gt;$\sqrt{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{2}$&lt;/code&gt; gives us &lt;math&gt;\sqrt 2.&lt;/math&gt; Cube roots, fourth roots, and so on are only slightly more difficult; we type &lt;code&gt;$\sqrt[n]{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{x-y}$&lt;/code&gt; gives &lt;math&gt;\sqrt{x-y}.&lt;/math&gt;<br /> <br /> ==== Superscripts &amp; Subscripts ====<br /> <br /> To get superscripts (or exponents), we use the caret symbol &lt;code&gt;^&lt;/code&gt;. Typing &lt;code&gt;$x^2+y^2$&lt;/code&gt; gives &lt;math&gt;x^2+y^2.&lt;/math&gt; Subscripts are obtained via an underscore (holding shift and the minus sign on most keyboards). For instance, &lt;code&gt;$a_k$&lt;/code&gt; yields &lt;math&gt;a_k.&lt;/math&gt;<br /> <br /> ==== Groups ====<br /> <br /> Most operations in &lt;math&gt;\LaTeX&lt;/math&gt; (such as superscripts and subscripts) can only see the &quot;group&quot; of characters immediately following it. We use curly braces &lt;code&gt;{...}&lt;/code&gt; to indicate groups longer than one character. For instance, if we wrote &lt;code&gt;$x^2015$&lt;/code&gt;, we'd expect to get &lt;math&gt;x^{2015},&lt;/math&gt; but we instead get &lt;math&gt;x^2015.&lt;/math&gt; This is because each character in the string &lt;code&gt;2015&lt;/code&gt; is in its own group until we tell &lt;math&gt;\LaTeX&lt;/math&gt; that &lt;code&gt;2015&lt;/code&gt; should be one whole group. To convey this information to &lt;math&gt;\LaTeX&lt;/math&gt;, we write &lt;code&gt;$x^{2015}$&lt;/code&gt; and we get &lt;math&gt;x^{2015}.&lt;/math&gt;<br /> <br /> === Beyond the Basic Expressions ===<br /> <br /> ==== Grouping Basic Expressions ====<br /> <br /> Our ordinary parentheses &lt;code&gt;(...)&lt;/code&gt; and brackets &lt;code&gt;[...]&lt;/code&gt; work to group expressions in &lt;math&gt;\LaTeX&lt;/math&gt;. For instance, &lt;code&gt;$(x+y)[z+w]$&lt;/code&gt; gives us &lt;math&gt;(x+y)[z+w].&lt;/math&gt; We can also group expressions using curly braces, but we can't just type &lt;code&gt;{...}&lt;/code&gt;. Rather, we must type &lt;code&gt;\{...\}&lt;/code&gt;. This is because &lt;math&gt;\LaTeX&lt;/math&gt; uses plain curly braces for other things, such as fractions and superscripts and subscripts.<br /> <br /> &lt;br&gt;&lt;br&gt;<br /> <br /> When we put (vertically) large expressions inside of parentheses (or brackets, or curly braces, etc.), the parentheses don't resize to fit the expression and instead remain relatively small. For instance, &lt;code&gt;$$f(x) = \pi(\frac{\sqrt{x}}{x-1})$$&lt;/code&gt; comes out as &lt;cmath&gt;f(x) = \pi(\frac{\sqrt{x}}{x-1}).&lt;/cmath&gt; To automatically adjust the size of parentheses to fit the expression inside of them, we type &lt;code&gt;\left(...\right)&lt;/code&gt;. If we do this for our &lt;math&gt;f&lt;/math&gt; equation above, we get &lt;cmath&gt;f(x) = \pi\left(\frac{\sqrt{x}}{x-1}\right).&lt;/cmath&gt; We can use &lt;code&gt;\left&lt;/code&gt; and &lt;code&gt;\right&lt;/code&gt; for all sorts of things... parentheses (as we saw), brackets &lt;code&gt;$\left[...\right]$&lt;/code&gt;, braces &lt;code&gt;$\left\{...\right\}&lt;/code&gt;, absolute values &lt;code&gt;$\left|...\right|$&lt;/code&gt;, and much more (norms, floor and ceiling functions, inner products, etc.).<br /> <br /> ==== Lists ====<br /> <br /> To make a list, such as a sequence, we use &lt;code&gt;\dots&lt;/code&gt;. For example, &lt;code&gt;$a_0,a_1,\dots,a_n$&lt;/code&gt; will give us &lt;math&gt;a_0,a_1,\dots,a_n.&lt;/math&gt;<br /> <br /> ==== Sums ====<br /> <br /> There are two basic ways to write out sums. First, we can use &lt;code&gt;+&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example of this way would be &lt;code&gt;$a_1+a_2+\cdots+a_n$&lt;/code&gt; This will give us &lt;math&gt;a_1+a_2+\cdots+a_n.&lt;/math&gt; Second, we could use summation notation, or &lt;code&gt;\sum&lt;/code&gt;. Such an example is &lt;code&gt;$\sum_{i=0}^n a_i$&lt;/code&gt;, giving &lt;math&gt;\textstyle \sum_{i=0}^n a_i.&lt;/math&gt; Note the use of superscripts and subscripts to obtain the summation index.<br /> <br /> ==== Products ====<br /> <br /> Again, there are two basic ways to display products. First, we can use &lt;code&gt;\cdot&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example is &lt;code&gt;$n! = n\cdot(n-1)\cdots 2\cdot 1$&lt;/code&gt;, which of course gives &lt;math&gt;n! = n\cdot(n-1)\cdots 2 \cdot 1.&lt;/math&gt; The alternative is to use product notation with &lt;code&gt;\prod&lt;/code&gt;. For instance, &lt;code&gt;$n! = \prod_{k=1}^n k&lt;/code&gt;, giving &lt;math&gt;\textstyle n! = \prod_{k=1}^n k.&lt;/math&gt;<br /> <br /> === Equalities and Inequalities ===<br /> <br /> ==== Inequalities ====<br /> <br /> the commands &lt;code&gt;&gt;, &lt;, \geq, \leq,&lt;/code&gt; and &lt;code&gt;\neq&lt;/code&gt; give us &lt;math&gt;&gt;,&lt;/math&gt; &lt;math&gt;&lt;,&lt;/math&gt; &lt;math&gt;\geq,&lt;/math&gt; &lt;math&gt;\leq,&lt;/math&gt; and &lt;math&gt;\neq,&lt;/math&gt; respectively.<br /> <br /> ==== Aligning Equations ====<br /> <br /> To align multiple equations, we use the &lt;code&gt;align*&lt;/code&gt; environment. For example, we might type a system of equations as follows:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> (You do not need dollar signs.) The &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to and the \\ symbols break to the next line. This code will output<br /> &lt;cmath&gt;\begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}&lt;/cmath&gt; An example of a string of equations is:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> Again, the &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to, and the \\ symbols break to the next line. This code outputs<br /> &lt;cmath&gt;\begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}&lt;/cmath&gt;<br /> <br /> ==== Numbering Equations ====<br /> <br /> To number equations, we use the &lt;code&gt;align&lt;/code&gt; environment. This is the same environment as the &lt;code&gt;align*&lt;/code&gt; environment, but we leave the &lt;code&gt;*&lt;/code&gt; off. The &lt;code&gt;*&lt;/code&gt; suppresses numbering. To number one equation, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by = c<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by = c.<br /> \end{align} &lt;/cmath&gt; We don't have to use &lt;code&gt;&amp;&lt;/code&gt; or \\ since there is nothing to align and no lines to break. To number several equations, such as a system, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i.<br /> \end{align} &lt;/cmath&gt; In general, &lt;code&gt;align&lt;/code&gt; will auto-number your equations from first to last.<br /> <br /> ==== Comments in Equations ====<br /> <br /> Again, we use the &lt;code&gt;align*&lt;/code&gt; environment. The code<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}<br /> \end{align*}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}.<br /> \end{align*} &lt;/cmath&gt; (You can use &lt;code&gt;align&lt;/code&gt; to get numbering &lt;i&gt;and&lt;/i&gt; comments!)<br /> <br /> ==== Definition by Cases ====<br /> <br /> To define, say, a function by cases, we use the &lt;code&gt;cases&lt;/code&gt; environment. The code<br /> &lt;pre&gt;&lt;nowiki&gt;<br /> $$&lt;/nowiki&gt; \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j \end{cases} &lt;nowiki&gt;$$<br /> &lt;/nowiki&gt;&lt;/pre&gt;<br /> gives us<br /> &lt;cmath&gt;<br /> \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j. \end{cases}<br /> &lt;/cmath&gt; As usual, the &lt;code&gt;&amp;&lt;/code&gt; is for aligning and the \\ is for line-breaking.<br /> <br /> === Commonly Used Commands ===<br /> <br /> ==== Algebra ====<br /> <br /> ==== Geometry/Trig ====<br /> <br /> ==== Counting &amp; Probability ====<br /> <br /> ==== Number Theory ====<br /> <br /> ==== Linear Algebra ====<br /> <br /> ==== Calculus ====<br /> <br /> ==== Sets ====<br /> <br /> ==== Logic ====</div> 5space https://artofproblemsolving.com/wiki/index.php?title=LaTeX:LaTeX_on_AoPS&diff=72339 LaTeX:LaTeX on AoPS 2015-10-02T21:11:20Z <p>5space: /* Sets &amp; Logic */</p> <hr /> <div>{{Latex}}<br /> <br /> This article explains how to use LaTeX in the AoPSWiki, the AoPS Community, and the AoPS Classroom. See [http://artofproblemsolving.com/wiki/index.php/LaTeX:Packages Packages] to know which packages are prebuilt into the AoPS site.<br /> <br /> <br /> ----<br /> == Getting Started with LaTeX ==<br /> <br /> === The Very Basics ===<br /> <br /> LaTeX uses a special &quot;math mode&quot; to display mathematics. There are two types of this &quot;math mode&quot;:<br /> <br /> ==== In-line Math Mode ====<br /> <br /> In in-line math mode, we use &lt;code&gt;&lt;/code&gt; signs to enclose the math we want to display, and it displays in-line with our text. For example, typing &lt;code&gt;$\sqrt{x} = 5$&lt;/code&gt; gives us &lt;math&gt;\sqrt{x} = 5.&lt;/math&gt;<br /> <br /> ==== Display Math Mode ====<br /> <br /> In display math mode, we enclose our code in double dollar signs, and it displays the math centered and on its own line. For example, &lt;code&gt;$$\sqrt{x} = 5$$&lt;/code&gt; gives us &lt;cmath&gt;\sqrt{x} = 5.&lt;/cmath&gt;<br /> <br /> ==== In-line vs. Display ====<br /> <br /> Besides displaying in-line vs. displaying centered and on a new line, the two modes render differently in other ways. Note that &lt;code&gt;$\sum_{k=1}^n k^2$&lt;/code&gt; gives us &lt;math&gt;\textstyle\sum_{k=1}^n k^2,&lt;/math&gt; whereas &lt;code&gt;$$\sum_{k=1}^n k^2$$&lt;/code&gt; gives us &lt;cmath&gt;\sum_{k=1}^n k^2.&lt;/cmath&gt;<br /> <br /> === Basic Expressions ===<br /> <br /> ==== Multiplication ====<br /> <br /> Sometimes, when we're multiplying, we don't need a multiplication symbol. For instance, we can write &lt;math&gt;xy&lt;/math&gt; instead of &lt;math&gt;x\cdot y&lt;/math&gt; without ambiguity. However, when you're multiplying numbers, for instance, a multiplication symbol comes in handy. The standard symbol is given by &lt;code&gt;$\cdot$&lt;/code&gt;. For example, &lt;code&gt;$12\cdot\frac{1}{2}$&lt;/code&gt; gives us &lt;math&gt;\textstyle 12\cdot \frac 12.&lt;/math&gt;<br /> <br /> ==== Fractions ====<br /> <br /> We can make fractions via &lt;code&gt;$\frac{...}{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\frac{x+y}{2}$&lt;/code&gt; will give us &lt;math&gt;\textstyle\frac{x+y}{2}.&lt;/math&gt;<br /> <br /> ==== Roots ====<br /> <br /> Square roots in &lt;math&gt;\LaTeX&lt;/math&gt; are pretty simple; we just type &lt;code&gt;$\sqrt{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{2}$&lt;/code&gt; gives us &lt;math&gt;\sqrt 2.&lt;/math&gt; Cube roots, fourth roots, and so on are only slightly more difficult; we type &lt;code&gt;$\sqrt[n]{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{x-y}$&lt;/code&gt; gives &lt;math&gt;\sqrt{x-y}.&lt;/math&gt;<br /> <br /> ==== Superscripts &amp; Subscripts ====<br /> <br /> To get superscripts (or exponents), we use the caret symbol &lt;code&gt;^&lt;/code&gt;. Typing &lt;code&gt;$x^2+y^2$&lt;/code&gt; gives &lt;math&gt;x^2+y^2.&lt;/math&gt; Subscripts are obtained via an underscore (holding shift and the minus sign on most keyboards). For instance, &lt;code&gt;$a_k$&lt;/code&gt; yields &lt;math&gt;a_k.&lt;/math&gt;<br /> <br /> ==== Groups ====<br /> <br /> Most operations in &lt;math&gt;\LaTeX&lt;/math&gt; (such as superscripts and subscripts) can only see the &quot;group&quot; of characters immediately following it. We use curly braces &lt;code&gt;{...}&lt;/code&gt; to indicate groups longer than one character. For instance, if we wrote &lt;code&gt;$x^2015$&lt;/code&gt;, we'd expect to get &lt;math&gt;x^{2015},&lt;/math&gt; but we instead get &lt;math&gt;x^2015.&lt;/math&gt; This is because each character in the string &lt;code&gt;2015&lt;/code&gt; is in its own group until we tell &lt;math&gt;\LaTeX&lt;/math&gt; that &lt;code&gt;2015&lt;/code&gt; should be one whole group. To convey this information to &lt;math&gt;\LaTeX&lt;/math&gt;, we write &lt;code&gt;$x^{2015}$&lt;/code&gt; and we get &lt;math&gt;x^{2015}.&lt;/math&gt;<br /> <br /> === Beyond the Basic Expressions ===<br /> <br /> ==== Grouping Basic Expressions ====<br /> <br /> Our ordinary parentheses &lt;code&gt;(...)&lt;/code&gt; and brackets &lt;code&gt;[...]&lt;/code&gt; work to group expressions in &lt;math&gt;\LaTeX&lt;/math&gt;. For instance, &lt;code&gt;$(x+y)[z+w]$&lt;/code&gt; gives us &lt;math&gt;(x+y)[z+w].&lt;/math&gt; We can also group expressions using curly braces, but we can't just type &lt;code&gt;{...}&lt;/code&gt;. Rather, we must type &lt;code&gt;\{...\}&lt;/code&gt;. This is because &lt;math&gt;\LaTeX&lt;/math&gt; uses plain curly braces for other things, such as fractions and superscripts and subscripts.<br /> <br /> &lt;br&gt;&lt;br&gt;<br /> <br /> When we put (vertically) large expressions inside of parentheses (or brackets, or curly braces, etc.), the parentheses don't resize to fit the expression and instead remain relatively small. For instance, &lt;code&gt;$$f(x) = \pi(\frac{\sqrt{x}}{x-1})$$&lt;/code&gt; comes out as &lt;cmath&gt;f(x) = \pi(\frac{\sqrt{x}}{x-1}).&lt;/cmath&gt; To automatically adjust the size of parentheses to fit the expression inside of them, we type &lt;code&gt;\left(...\right)&lt;/code&gt;. If we do this for our &lt;math&gt;f&lt;/math&gt; equation above, we get &lt;cmath&gt;f(x) = \pi\left(\frac{\sqrt{x}}{x-1}\right).&lt;/cmath&gt; We can use &lt;code&gt;\left&lt;/code&gt; and &lt;code&gt;\right&lt;/code&gt; for all sorts of things... parentheses (as we saw), brackets &lt;code&gt;$\left[...\right]$&lt;/code&gt;, braces &lt;code&gt;$\left\{...\right\}&lt;/code&gt;, absolute values &lt;code&gt;$\left|...\right|$&lt;/code&gt;, and much more (norms, floor and ceiling functions, inner products, etc.).<br /> <br /> ==== Lists ====<br /> <br /> To make a list, such as a sequence, we use &lt;code&gt;\dots&lt;/code&gt;. For example, &lt;code&gt;$a_0,a_1,\dots,a_n$&lt;/code&gt; will give us &lt;math&gt;a_0,a_1,\dots,a_n.&lt;/math&gt;<br /> <br /> ==== Sums ====<br /> <br /> There are two basic ways to write out sums. First, we can use &lt;code&gt;+&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example of this way would be &lt;code&gt;$a_1+a_2+\cdots+a_n$&lt;/code&gt; This will give us &lt;math&gt;a_1+a_2+\cdots+a_n.&lt;/math&gt; Second, we could use summation notation, or &lt;code&gt;\sum&lt;/code&gt;. Such an example is &lt;code&gt;$\sum_{i=0}^n a_i$&lt;/code&gt;, giving &lt;math&gt;\textstyle \sum_{i=0}^n a_i.&lt;/math&gt; Note the use of superscripts and subscripts to obtain the summation index.<br /> <br /> ==== Products ====<br /> <br /> Again, there are two basic ways to display products. First, we can use &lt;code&gt;\cdot&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example is &lt;code&gt;$n! = n\cdot(n-1)\cdots 2\cdot 1$&lt;/code&gt;, which of course gives &lt;math&gt;n! = n\cdot(n-1)\cdots 2 \cdot 1.&lt;/math&gt; The alternative is to use product notation with &lt;code&gt;\prod&lt;/code&gt;. For instance, &lt;code&gt;$n! = \prod_{k=1}^n k&lt;/code&gt;, giving &lt;math&gt;\textstyle n! = \prod_{k=1}^n k.&lt;/math&gt;<br /> <br /> === Equalities and Inequalities ===<br /> <br /> ==== Inequalities ====<br /> <br /> the commands &lt;code&gt;&gt;, &lt;, \geq, \leq,&lt;/code&gt; and &lt;code&gt;\neq&lt;/code&gt; give us &lt;math&gt;&gt;,&lt;/math&gt; &lt;math&gt;&lt;,&lt;/math&gt; &lt;math&gt;\geq,&lt;/math&gt; &lt;math&gt;\leq,&lt;/math&gt; and &lt;math&gt;\neq,&lt;/math&gt; respectively.<br /> <br /> ==== Aligning Equations ====<br /> <br /> To align multiple equations, we use the &lt;code&gt;align*&lt;/code&gt; environment. For example, we might type a system of equations as follows:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> (You do not need dollar signs.) The &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to and the \\ symbols break to the next line. This code will output<br /> &lt;cmath&gt;\begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}&lt;/cmath&gt; An example of a string of equations is:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> Again, the &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to, and the \\ symbols break to the next line. This code outputs<br /> &lt;cmath&gt;\begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}&lt;/cmath&gt;<br /> <br /> ==== Numbering Equations ====<br /> <br /> To number equations, we use the &lt;code&gt;align&lt;/code&gt; environment. This is the same environment as the &lt;code&gt;align*&lt;/code&gt; environment, but we leave the &lt;code&gt;*&lt;/code&gt; off. The &lt;code&gt;*&lt;/code&gt; suppresses numbering. To number one equation, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by = c<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by = c.<br /> \end{align} &lt;/cmath&gt; We don't have to use &lt;code&gt;&amp;&lt;/code&gt; or \\ since there is nothing to align and no lines to break. To number several equations, such as a system, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i.<br /> \end{align} &lt;/cmath&gt; In general, &lt;code&gt;align&lt;/code&gt; will auto-number your equations from first to last.<br /> <br /> ==== Comments in Equations ====<br /> <br /> Again, we use the &lt;code&gt;align*&lt;/code&gt; environment. The code<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}<br /> \end{align*}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}.<br /> \end{align*} &lt;/cmath&gt; (You can use &lt;code&gt;align&lt;/code&gt; to get numbering &lt;i&gt;and&lt;/i&gt; comments!)<br /> <br /> ==== Definition by Cases ====<br /> <br /> To define, say, a function by cases, we use the &lt;code&gt;cases&lt;/code&gt; environment. The code<br /> &lt;pre&gt;&lt;nowiki&gt;<br /> $$&lt;/nowiki&gt; \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j \end{cases} &lt;nowiki&gt;$$<br /> &lt;/nowiki&gt;&lt;/pre&gt;<br /> gives us<br /> &lt;cmath&gt;<br /> \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j. \end{cases}<br /> &lt;/cmath&gt; As usual, the &lt;code&gt;&amp;&lt;/code&gt; is for aligning and the \\ is for line-breaking.<br /> <br /> === Commonly Used Commands ===<br /> <br /> ==== Algebra ====<br /> <br /> ==== Geometry/Trig ====<br /> <br /> ==== Counting &amp; Probability ====<br /> <br /> ==== Number Theory ====<br /> <br /> ==== Linear Algebra ====<br /> <br /> ==== Calculus ====<br /> <br /> ==== Sets ====</div> 5space https://artofproblemsolving.com/wiki/index.php?title=LaTeX:LaTeX_on_AoPS&diff=72338 LaTeX:LaTeX on AoPS 2015-10-02T21:10:17Z <p>5space: /* Sets &amp; Logic */</p> <hr /> <div>{{Latex}}<br /> <br /> This article explains how to use LaTeX in the AoPSWiki, the AoPS Community, and the AoPS Classroom. See [http://artofproblemsolving.com/wiki/index.php/LaTeX:Packages Packages] to know which packages are prebuilt into the AoPS site.<br /> <br /> <br /> ----<br /> == Getting Started with LaTeX ==<br /> <br /> === The Very Basics ===<br /> <br /> LaTeX uses a special &quot;math mode&quot; to display mathematics. There are two types of this &quot;math mode&quot;:<br /> <br /> ==== In-line Math Mode ====<br /> <br /> In in-line math mode, we use &lt;code&gt;&lt;/code&gt; signs to enclose the math we want to display, and it displays in-line with our text. For example, typing &lt;code&gt;$\sqrt{x} = 5$&lt;/code&gt; gives us &lt;math&gt;\sqrt{x} = 5.&lt;/math&gt;<br /> <br /> ==== Display Math Mode ====<br /> <br /> In display math mode, we enclose our code in double dollar signs, and it displays the math centered and on its own line. For example, &lt;code&gt;$$\sqrt{x} = 5$$&lt;/code&gt; gives us &lt;cmath&gt;\sqrt{x} = 5.&lt;/cmath&gt;<br /> <br /> ==== In-line vs. Display ====<br /> <br /> Besides displaying in-line vs. displaying centered and on a new line, the two modes render differently in other ways. Note that &lt;code&gt;$\sum_{k=1}^n k^2$&lt;/code&gt; gives us &lt;math&gt;\textstyle\sum_{k=1}^n k^2,&lt;/math&gt; whereas &lt;code&gt;$$\sum_{k=1}^n k^2$$&lt;/code&gt; gives us &lt;cmath&gt;\sum_{k=1}^n k^2.&lt;/cmath&gt;<br /> <br /> === Basic Expressions ===<br /> <br /> ==== Multiplication ====<br /> <br /> Sometimes, when we're multiplying, we don't need a multiplication symbol. For instance, we can write &lt;math&gt;xy&lt;/math&gt; instead of &lt;math&gt;x\cdot y&lt;/math&gt; without ambiguity. However, when you're multiplying numbers, for instance, a multiplication symbol comes in handy. The standard symbol is given by &lt;code&gt;$\cdot$&lt;/code&gt;. For example, &lt;code&gt;$12\cdot\frac{1}{2}$&lt;/code&gt; gives us &lt;math&gt;\textstyle 12\cdot \frac 12.&lt;/math&gt;<br /> <br /> ==== Fractions ====<br /> <br /> We can make fractions via &lt;code&gt;$\frac{...}{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\frac{x+y}{2}$&lt;/code&gt; will give us &lt;math&gt;\textstyle\frac{x+y}{2}.&lt;/math&gt;<br /> <br /> ==== Roots ====<br /> <br /> Square roots in &lt;math&gt;\LaTeX&lt;/math&gt; are pretty simple; we just type &lt;code&gt;$\sqrt{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{2}$&lt;/code&gt; gives us &lt;math&gt;\sqrt 2.&lt;/math&gt; Cube roots, fourth roots, and so on are only slightly more difficult; we type &lt;code&gt;$\sqrt[n]{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{x-y}$&lt;/code&gt; gives &lt;math&gt;\sqrt{x-y}.&lt;/math&gt;<br /> <br /> ==== Superscripts &amp; Subscripts ====<br /> <br /> To get superscripts (or exponents), we use the caret symbol &lt;code&gt;^&lt;/code&gt;. Typing &lt;code&gt;$x^2+y^2$&lt;/code&gt; gives &lt;math&gt;x^2+y^2.&lt;/math&gt; Subscripts are obtained via an underscore (holding shift and the minus sign on most keyboards). For instance, &lt;code&gt;$a_k$&lt;/code&gt; yields &lt;math&gt;a_k.&lt;/math&gt;<br /> <br /> ==== Groups ====<br /> <br /> Most operations in &lt;math&gt;\LaTeX&lt;/math&gt; (such as superscripts and subscripts) can only see the &quot;group&quot; of characters immediately following it. We use curly braces &lt;code&gt;{...}&lt;/code&gt; to indicate groups longer than one character. For instance, if we wrote &lt;code&gt;$x^2015$&lt;/code&gt;, we'd expect to get &lt;math&gt;x^{2015},&lt;/math&gt; but we instead get &lt;math&gt;x^2015.&lt;/math&gt; This is because each character in the string &lt;code&gt;2015&lt;/code&gt; is in its own group until we tell &lt;math&gt;\LaTeX&lt;/math&gt; that &lt;code&gt;2015&lt;/code&gt; should be one whole group. To convey this information to &lt;math&gt;\LaTeX&lt;/math&gt;, we write &lt;code&gt;$x^{2015}$&lt;/code&gt; and we get &lt;math&gt;x^{2015}.&lt;/math&gt;<br /> <br /> === Beyond the Basic Expressions ===<br /> <br /> ==== Grouping Basic Expressions ====<br /> <br /> Our ordinary parentheses &lt;code&gt;(...)&lt;/code&gt; and brackets &lt;code&gt;[...]&lt;/code&gt; work to group expressions in &lt;math&gt;\LaTeX&lt;/math&gt;. For instance, &lt;code&gt;$(x+y)[z+w]$&lt;/code&gt; gives us &lt;math&gt;(x+y)[z+w].&lt;/math&gt; We can also group expressions using curly braces, but we can't just type &lt;code&gt;{...}&lt;/code&gt;. Rather, we must type &lt;code&gt;\{...\}&lt;/code&gt;. This is because &lt;math&gt;\LaTeX&lt;/math&gt; uses plain curly braces for other things, such as fractions and superscripts and subscripts.<br /> <br /> &lt;br&gt;&lt;br&gt;<br /> <br /> When we put (vertically) large expressions inside of parentheses (or brackets, or curly braces, etc.), the parentheses don't resize to fit the expression and instead remain relatively small. For instance, &lt;code&gt;$$f(x) = \pi(\frac{\sqrt{x}}{x-1})$$&lt;/code&gt; comes out as &lt;cmath&gt;f(x) = \pi(\frac{\sqrt{x}}{x-1}).&lt;/cmath&gt; To automatically adjust the size of parentheses to fit the expression inside of them, we type &lt;code&gt;\left(...\right)&lt;/code&gt;. If we do this for our &lt;math&gt;f&lt;/math&gt; equation above, we get &lt;cmath&gt;f(x) = \pi\left(\frac{\sqrt{x}}{x-1}\right).&lt;/cmath&gt; We can use &lt;code&gt;\left&lt;/code&gt; and &lt;code&gt;\right&lt;/code&gt; for all sorts of things... parentheses (as we saw), brackets &lt;code&gt;$\left[...\right]$&lt;/code&gt;, braces &lt;code&gt;$\left\{...\right\}&lt;/code&gt;, absolute values &lt;code&gt;$\left|...\right|$&lt;/code&gt;, and much more (norms, floor and ceiling functions, inner products, etc.).<br /> <br /> ==== Lists ====<br /> <br /> To make a list, such as a sequence, we use &lt;code&gt;\dots&lt;/code&gt;. For example, &lt;code&gt;$a_0,a_1,\dots,a_n$&lt;/code&gt; will give us &lt;math&gt;a_0,a_1,\dots,a_n.&lt;/math&gt;<br /> <br /> ==== Sums ====<br /> <br /> There are two basic ways to write out sums. First, we can use &lt;code&gt;+&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example of this way would be &lt;code&gt;$a_1+a_2+\cdots+a_n$&lt;/code&gt; This will give us &lt;math&gt;a_1+a_2+\cdots+a_n.&lt;/math&gt; Second, we could use summation notation, or &lt;code&gt;\sum&lt;/code&gt;. Such an example is &lt;code&gt;$\sum_{i=0}^n a_i$&lt;/code&gt;, giving &lt;math&gt;\textstyle \sum_{i=0}^n a_i.&lt;/math&gt; Note the use of superscripts and subscripts to obtain the summation index.<br /> <br /> ==== Products ====<br /> <br /> Again, there are two basic ways to display products. First, we can use &lt;code&gt;\cdot&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example is &lt;code&gt;$n! = n\cdot(n-1)\cdots 2\cdot 1$&lt;/code&gt;, which of course gives &lt;math&gt;n! = n\cdot(n-1)\cdots 2 \cdot 1.&lt;/math&gt; The alternative is to use product notation with &lt;code&gt;\prod&lt;/code&gt;. For instance, &lt;code&gt;$n! = \prod_{k=1}^n k&lt;/code&gt;, giving &lt;math&gt;\textstyle n! = \prod_{k=1}^n k.&lt;/math&gt;<br /> <br /> === Equalities and Inequalities ===<br /> <br /> ==== Inequalities ====<br /> <br /> the commands &lt;code&gt;&gt;, &lt;, \geq, \leq,&lt;/code&gt; and &lt;code&gt;\neq&lt;/code&gt; give us &lt;math&gt;&gt;,&lt;/math&gt; &lt;math&gt;&lt;,&lt;/math&gt; &lt;math&gt;\geq,&lt;/math&gt; &lt;math&gt;\leq,&lt;/math&gt; and &lt;math&gt;\neq,&lt;/math&gt; respectively.<br /> <br /> ==== Aligning Equations ====<br /> <br /> To align multiple equations, we use the &lt;code&gt;align*&lt;/code&gt; environment. For example, we might type a system of equations as follows:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> (You do not need dollar signs.) The &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to and the \\ symbols break to the next line. This code will output<br /> &lt;cmath&gt;\begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}&lt;/cmath&gt; An example of a string of equations is:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> Again, the &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to, and the \\ symbols break to the next line. This code outputs<br /> &lt;cmath&gt;\begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}&lt;/cmath&gt;<br /> <br /> ==== Numbering Equations ====<br /> <br /> To number equations, we use the &lt;code&gt;align&lt;/code&gt; environment. This is the same environment as the &lt;code&gt;align*&lt;/code&gt; environment, but we leave the &lt;code&gt;*&lt;/code&gt; off. The &lt;code&gt;*&lt;/code&gt; suppresses numbering. To number one equation, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by = c<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by = c.<br /> \end{align} &lt;/cmath&gt; We don't have to use &lt;code&gt;&amp;&lt;/code&gt; or \\ since there is nothing to align and no lines to break. To number several equations, such as a system, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i.<br /> \end{align} &lt;/cmath&gt; In general, &lt;code&gt;align&lt;/code&gt; will auto-number your equations from first to last.<br /> <br /> ==== Comments in Equations ====<br /> <br /> Again, we use the &lt;code&gt;align*&lt;/code&gt; environment. The code<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}<br /> \end{align*}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}.<br /> \end{align*} &lt;/cmath&gt; (You can use &lt;code&gt;align&lt;/code&gt; to get numbering &lt;i&gt;and&lt;/i&gt; comments!)<br /> <br /> ==== Definition by Cases ====<br /> <br /> To define, say, a function by cases, we use the &lt;code&gt;cases&lt;/code&gt; environment. The code<br /> &lt;pre&gt;&lt;nowiki&gt;<br /> $$&lt;/nowiki&gt; \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j \end{cases} &lt;nowiki&gt;$$<br /> &lt;/nowiki&gt;&lt;/pre&gt;<br /> gives us<br /> &lt;cmath&gt;<br /> \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j. \end{cases}<br /> &lt;/cmath&gt; As usual, the &lt;code&gt;&amp;&lt;/code&gt; is for aligning and the \\ is for line-breaking.<br /> <br /> === Commonly Used Commands ===<br /> <br /> ==== Algebra ====<br /> <br /> ==== Geometry/Trig ====<br /> <br /> ==== Counting &amp; Probability ====<br /> <br /> ==== Number Theory ====<br /> <br /> ==== Linear Algebra ====<br /> <br /> ==== Calculus ====<br /> <br /> ==== Sets &amp; Logic ====<br /> <br /> ===== Sets =====</div> 5space https://artofproblemsolving.com/wiki/index.php?title=LaTeX:LaTeX_on_AoPS&diff=72337 LaTeX:LaTeX on AoPS 2015-10-02T21:08:18Z <p>5space: /* Equalities and Inequalities */</p> <hr /> <div>{{Latex}}<br /> <br /> This article explains how to use LaTeX in the AoPSWiki, the AoPS Community, and the AoPS Classroom. See [http://artofproblemsolving.com/wiki/index.php/LaTeX:Packages Packages] to know which packages are prebuilt into the AoPS site.<br /> <br /> <br /> ----<br /> == Getting Started with LaTeX ==<br /> <br /> === The Very Basics ===<br /> <br /> LaTeX uses a special &quot;math mode&quot; to display mathematics. There are two types of this &quot;math mode&quot;:<br /> <br /> ==== In-line Math Mode ====<br /> <br /> In in-line math mode, we use &lt;code&gt;&lt;/code&gt; signs to enclose the math we want to display, and it displays in-line with our text. For example, typing &lt;code&gt;$\sqrt{x} = 5$&lt;/code&gt; gives us &lt;math&gt;\sqrt{x} = 5.&lt;/math&gt;<br /> <br /> ==== Display Math Mode ====<br /> <br /> In display math mode, we enclose our code in double dollar signs, and it displays the math centered and on its own line. For example, &lt;code&gt;$$\sqrt{x} = 5$$&lt;/code&gt; gives us &lt;cmath&gt;\sqrt{x} = 5.&lt;/cmath&gt;<br /> <br /> ==== In-line vs. Display ====<br /> <br /> Besides displaying in-line vs. displaying centered and on a new line, the two modes render differently in other ways. Note that &lt;code&gt;$\sum_{k=1}^n k^2$&lt;/code&gt; gives us &lt;math&gt;\textstyle\sum_{k=1}^n k^2,&lt;/math&gt; whereas &lt;code&gt;$$\sum_{k=1}^n k^2$$&lt;/code&gt; gives us &lt;cmath&gt;\sum_{k=1}^n k^2.&lt;/cmath&gt;<br /> <br /> === Basic Expressions ===<br /> <br /> ==== Multiplication ====<br /> <br /> Sometimes, when we're multiplying, we don't need a multiplication symbol. For instance, we can write &lt;math&gt;xy&lt;/math&gt; instead of &lt;math&gt;x\cdot y&lt;/math&gt; without ambiguity. However, when you're multiplying numbers, for instance, a multiplication symbol comes in handy. The standard symbol is given by &lt;code&gt;$\cdot$&lt;/code&gt;. For example, &lt;code&gt;$12\cdot\frac{1}{2}$&lt;/code&gt; gives us &lt;math&gt;\textstyle 12\cdot \frac 12.&lt;/math&gt;<br /> <br /> ==== Fractions ====<br /> <br /> We can make fractions via &lt;code&gt;$\frac{...}{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\frac{x+y}{2}$&lt;/code&gt; will give us &lt;math&gt;\textstyle\frac{x+y}{2}.&lt;/math&gt;<br /> <br /> ==== Roots ====<br /> <br /> Square roots in &lt;math&gt;\LaTeX&lt;/math&gt; are pretty simple; we just type &lt;code&gt;$\sqrt{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{2}$&lt;/code&gt; gives us &lt;math&gt;\sqrt 2.&lt;/math&gt; Cube roots, fourth roots, and so on are only slightly more difficult; we type &lt;code&gt;$\sqrt[n]{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{x-y}$&lt;/code&gt; gives &lt;math&gt;\sqrt{x-y}.&lt;/math&gt;<br /> <br /> ==== Superscripts &amp; Subscripts ====<br /> <br /> To get superscripts (or exponents), we use the caret symbol &lt;code&gt;^&lt;/code&gt;. Typing &lt;code&gt;$x^2+y^2$&lt;/code&gt; gives &lt;math&gt;x^2+y^2.&lt;/math&gt; Subscripts are obtained via an underscore (holding shift and the minus sign on most keyboards). For instance, &lt;code&gt;$a_k$&lt;/code&gt; yields &lt;math&gt;a_k.&lt;/math&gt;<br /> <br /> ==== Groups ====<br /> <br /> Most operations in &lt;math&gt;\LaTeX&lt;/math&gt; (such as superscripts and subscripts) can only see the &quot;group&quot; of characters immediately following it. We use curly braces &lt;code&gt;{...}&lt;/code&gt; to indicate groups longer than one character. For instance, if we wrote &lt;code&gt;$x^2015$&lt;/code&gt;, we'd expect to get &lt;math&gt;x^{2015},&lt;/math&gt; but we instead get &lt;math&gt;x^2015.&lt;/math&gt; This is because each character in the string &lt;code&gt;2015&lt;/code&gt; is in its own group until we tell &lt;math&gt;\LaTeX&lt;/math&gt; that &lt;code&gt;2015&lt;/code&gt; should be one whole group. To convey this information to &lt;math&gt;\LaTeX&lt;/math&gt;, we write &lt;code&gt;$x^{2015}$&lt;/code&gt; and we get &lt;math&gt;x^{2015}.&lt;/math&gt;<br /> <br /> === Beyond the Basic Expressions ===<br /> <br /> ==== Grouping Basic Expressions ====<br /> <br /> Our ordinary parentheses &lt;code&gt;(...)&lt;/code&gt; and brackets &lt;code&gt;[...]&lt;/code&gt; work to group expressions in &lt;math&gt;\LaTeX&lt;/math&gt;. For instance, &lt;code&gt;$(x+y)[z+w]$&lt;/code&gt; gives us &lt;math&gt;(x+y)[z+w].&lt;/math&gt; We can also group expressions using curly braces, but we can't just type &lt;code&gt;{...}&lt;/code&gt;. Rather, we must type &lt;code&gt;\{...\}&lt;/code&gt;. This is because &lt;math&gt;\LaTeX&lt;/math&gt; uses plain curly braces for other things, such as fractions and superscripts and subscripts.<br /> <br /> &lt;br&gt;&lt;br&gt;<br /> <br /> When we put (vertically) large expressions inside of parentheses (or brackets, or curly braces, etc.), the parentheses don't resize to fit the expression and instead remain relatively small. For instance, &lt;code&gt;$$f(x) = \pi(\frac{\sqrt{x}}{x-1})$$&lt;/code&gt; comes out as &lt;cmath&gt;f(x) = \pi(\frac{\sqrt{x}}{x-1}).&lt;/cmath&gt; To automatically adjust the size of parentheses to fit the expression inside of them, we type &lt;code&gt;\left(...\right)&lt;/code&gt;. If we do this for our &lt;math&gt;f&lt;/math&gt; equation above, we get &lt;cmath&gt;f(x) = \pi\left(\frac{\sqrt{x}}{x-1}\right).&lt;/cmath&gt; We can use &lt;code&gt;\left&lt;/code&gt; and &lt;code&gt;\right&lt;/code&gt; for all sorts of things... parentheses (as we saw), brackets &lt;code&gt;$\left[...\right]$&lt;/code&gt;, braces &lt;code&gt;$\left\{...\right\}&lt;/code&gt;, absolute values &lt;code&gt;$\left|...\right|$&lt;/code&gt;, and much more (norms, floor and ceiling functions, inner products, etc.).<br /> <br /> ==== Lists ====<br /> <br /> To make a list, such as a sequence, we use &lt;code&gt;\dots&lt;/code&gt;. For example, &lt;code&gt;$a_0,a_1,\dots,a_n$&lt;/code&gt; will give us &lt;math&gt;a_0,a_1,\dots,a_n.&lt;/math&gt;<br /> <br /> ==== Sums ====<br /> <br /> There are two basic ways to write out sums. First, we can use &lt;code&gt;+&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example of this way would be &lt;code&gt;$a_1+a_2+\cdots+a_n$&lt;/code&gt; This will give us &lt;math&gt;a_1+a_2+\cdots+a_n.&lt;/math&gt; Second, we could use summation notation, or &lt;code&gt;\sum&lt;/code&gt;. Such an example is &lt;code&gt;$\sum_{i=0}^n a_i$&lt;/code&gt;, giving &lt;math&gt;\textstyle \sum_{i=0}^n a_i.&lt;/math&gt; Note the use of superscripts and subscripts to obtain the summation index.<br /> <br /> ==== Products ====<br /> <br /> Again, there are two basic ways to display products. First, we can use &lt;code&gt;\cdot&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example is &lt;code&gt;$n! = n\cdot(n-1)\cdots 2\cdot 1$&lt;/code&gt;, which of course gives &lt;math&gt;n! = n\cdot(n-1)\cdots 2 \cdot 1.&lt;/math&gt; The alternative is to use product notation with &lt;code&gt;\prod&lt;/code&gt;. For instance, &lt;code&gt;$n! = \prod_{k=1}^n k&lt;/code&gt;, giving &lt;math&gt;\textstyle n! = \prod_{k=1}^n k.&lt;/math&gt;<br /> <br /> === Equalities and Inequalities ===<br /> <br /> ==== Inequalities ====<br /> <br /> the commands &lt;code&gt;&gt;, &lt;, \geq, \leq,&lt;/code&gt; and &lt;code&gt;\neq&lt;/code&gt; give us &lt;math&gt;&gt;,&lt;/math&gt; &lt;math&gt;&lt;,&lt;/math&gt; &lt;math&gt;\geq,&lt;/math&gt; &lt;math&gt;\leq,&lt;/math&gt; and &lt;math&gt;\neq,&lt;/math&gt; respectively.<br /> <br /> ==== Aligning Equations ====<br /> <br /> To align multiple equations, we use the &lt;code&gt;align*&lt;/code&gt; environment. For example, we might type a system of equations as follows:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> (You do not need dollar signs.) The &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to and the \\ symbols break to the next line. This code will output<br /> &lt;cmath&gt;\begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}&lt;/cmath&gt; An example of a string of equations is:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> Again, the &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to, and the \\ symbols break to the next line. This code outputs<br /> &lt;cmath&gt;\begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}&lt;/cmath&gt;<br /> <br /> ==== Numbering Equations ====<br /> <br /> To number equations, we use the &lt;code&gt;align&lt;/code&gt; environment. This is the same environment as the &lt;code&gt;align*&lt;/code&gt; environment, but we leave the &lt;code&gt;*&lt;/code&gt; off. The &lt;code&gt;*&lt;/code&gt; suppresses numbering. To number one equation, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by = c<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by = c.<br /> \end{align} &lt;/cmath&gt; We don't have to use &lt;code&gt;&amp;&lt;/code&gt; or \\ since there is nothing to align and no lines to break. To number several equations, such as a system, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i.<br /> \end{align} &lt;/cmath&gt; In general, &lt;code&gt;align&lt;/code&gt; will auto-number your equations from first to last.<br /> <br /> ==== Comments in Equations ====<br /> <br /> Again, we use the &lt;code&gt;align*&lt;/code&gt; environment. The code<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}<br /> \end{align*}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}.<br /> \end{align*} &lt;/cmath&gt; (You can use &lt;code&gt;align&lt;/code&gt; to get numbering &lt;i&gt;and&lt;/i&gt; comments!)<br /> <br /> ==== Definition by Cases ====<br /> <br /> To define, say, a function by cases, we use the &lt;code&gt;cases&lt;/code&gt; environment. The code<br /> &lt;pre&gt;&lt;nowiki&gt;<br /> $$&lt;/nowiki&gt; \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j \end{cases} &lt;nowiki&gt;$$<br /> &lt;/nowiki&gt;&lt;/pre&gt;<br /> gives us<br /> &lt;cmath&gt;<br /> \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j. \end{cases}<br /> &lt;/cmath&gt; As usual, the &lt;code&gt;&amp;&lt;/code&gt; is for aligning and the \\ is for line-breaking.<br /> <br /> === Commonly Used Commands ===<br /> <br /> ==== Algebra ====<br /> <br /> ==== Geometry/Trig ====<br /> <br /> ==== Counting &amp; Probability ====<br /> <br /> ==== Number Theory ====<br /> <br /> ==== Linear Algebra ====<br /> <br /> ==== Calculus ====<br /> <br /> ==== Sets &amp; Logic ====</div> 5space https://artofproblemsolving.com/wiki/index.php?title=LaTeX:LaTeX_on_AoPS&diff=72336 LaTeX:LaTeX on AoPS 2015-10-02T21:06:57Z <p>5space: /* Beyond the Basic Expressions */</p> <hr /> <div>{{Latex}}<br /> <br /> This article explains how to use LaTeX in the AoPSWiki, the AoPS Community, and the AoPS Classroom. See [http://artofproblemsolving.com/wiki/index.php/LaTeX:Packages Packages] to know which packages are prebuilt into the AoPS site.<br /> <br /> <br /> ----<br /> == Getting Started with LaTeX ==<br /> <br /> === The Very Basics ===<br /> <br /> LaTeX uses a special &quot;math mode&quot; to display mathematics. There are two types of this &quot;math mode&quot;:<br /> <br /> ==== In-line Math Mode ====<br /> <br /> In in-line math mode, we use &lt;code&gt;&lt;/code&gt; signs to enclose the math we want to display, and it displays in-line with our text. For example, typing &lt;code&gt;$\sqrt{x} = 5$&lt;/code&gt; gives us &lt;math&gt;\sqrt{x} = 5.&lt;/math&gt;<br /> <br /> ==== Display Math Mode ====<br /> <br /> In display math mode, we enclose our code in double dollar signs, and it displays the math centered and on its own line. For example, &lt;code&gt;$$\sqrt{x} = 5$$&lt;/code&gt; gives us &lt;cmath&gt;\sqrt{x} = 5.&lt;/cmath&gt;<br /> <br /> ==== In-line vs. Display ====<br /> <br /> Besides displaying in-line vs. displaying centered and on a new line, the two modes render differently in other ways. Note that &lt;code&gt;$\sum_{k=1}^n k^2$&lt;/code&gt; gives us &lt;math&gt;\textstyle\sum_{k=1}^n k^2,&lt;/math&gt; whereas &lt;code&gt;$$\sum_{k=1}^n k^2$$&lt;/code&gt; gives us &lt;cmath&gt;\sum_{k=1}^n k^2.&lt;/cmath&gt;<br /> <br /> === Basic Expressions ===<br /> <br /> ==== Multiplication ====<br /> <br /> Sometimes, when we're multiplying, we don't need a multiplication symbol. For instance, we can write &lt;math&gt;xy&lt;/math&gt; instead of &lt;math&gt;x\cdot y&lt;/math&gt; without ambiguity. However, when you're multiplying numbers, for instance, a multiplication symbol comes in handy. The standard symbol is given by &lt;code&gt;$\cdot$&lt;/code&gt;. For example, &lt;code&gt;$12\cdot\frac{1}{2}$&lt;/code&gt; gives us &lt;math&gt;\textstyle 12\cdot \frac 12.&lt;/math&gt;<br /> <br /> ==== Fractions ====<br /> <br /> We can make fractions via &lt;code&gt;$\frac{...}{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\frac{x+y}{2}$&lt;/code&gt; will give us &lt;math&gt;\textstyle\frac{x+y}{2}.&lt;/math&gt;<br /> <br /> ==== Roots ====<br /> <br /> Square roots in &lt;math&gt;\LaTeX&lt;/math&gt; are pretty simple; we just type &lt;code&gt;$\sqrt{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{2}$&lt;/code&gt; gives us &lt;math&gt;\sqrt 2.&lt;/math&gt; Cube roots, fourth roots, and so on are only slightly more difficult; we type &lt;code&gt;$\sqrt[n]{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{x-y}$&lt;/code&gt; gives &lt;math&gt;\sqrt{x-y}.&lt;/math&gt;<br /> <br /> ==== Superscripts &amp; Subscripts ====<br /> <br /> To get superscripts (or exponents), we use the caret symbol &lt;code&gt;^&lt;/code&gt;. Typing &lt;code&gt;$x^2+y^2$&lt;/code&gt; gives &lt;math&gt;x^2+y^2.&lt;/math&gt; Subscripts are obtained via an underscore (holding shift and the minus sign on most keyboards). For instance, &lt;code&gt;$a_k$&lt;/code&gt; yields &lt;math&gt;a_k.&lt;/math&gt;<br /> <br /> ==== Groups ====<br /> <br /> Most operations in &lt;math&gt;\LaTeX&lt;/math&gt; (such as superscripts and subscripts) can only see the &quot;group&quot; of characters immediately following it. We use curly braces &lt;code&gt;{...}&lt;/code&gt; to indicate groups longer than one character. For instance, if we wrote &lt;code&gt;$x^2015$&lt;/code&gt;, we'd expect to get &lt;math&gt;x^{2015},&lt;/math&gt; but we instead get &lt;math&gt;x^2015.&lt;/math&gt; This is because each character in the string &lt;code&gt;2015&lt;/code&gt; is in its own group until we tell &lt;math&gt;\LaTeX&lt;/math&gt; that &lt;code&gt;2015&lt;/code&gt; should be one whole group. To convey this information to &lt;math&gt;\LaTeX&lt;/math&gt;, we write &lt;code&gt;$x^{2015}$&lt;/code&gt; and we get &lt;math&gt;x^{2015}.&lt;/math&gt;<br /> <br /> === Beyond the Basic Expressions ===<br /> <br /> ==== Grouping Basic Expressions ====<br /> <br /> Our ordinary parentheses &lt;code&gt;(...)&lt;/code&gt; and brackets &lt;code&gt;[...]&lt;/code&gt; work to group expressions in &lt;math&gt;\LaTeX&lt;/math&gt;. For instance, &lt;code&gt;$(x+y)[z+w]$&lt;/code&gt; gives us &lt;math&gt;(x+y)[z+w].&lt;/math&gt; We can also group expressions using curly braces, but we can't just type &lt;code&gt;{...}&lt;/code&gt;. Rather, we must type &lt;code&gt;\{...\}&lt;/code&gt;. This is because &lt;math&gt;\LaTeX&lt;/math&gt; uses plain curly braces for other things, such as fractions and superscripts and subscripts.<br /> <br /> &lt;br&gt;&lt;br&gt;<br /> <br /> When we put (vertically) large expressions inside of parentheses (or brackets, or curly braces, etc.), the parentheses don't resize to fit the expression and instead remain relatively small. For instance, &lt;code&gt;$$f(x) = \pi(\frac{\sqrt{x}}{x-1})$$&lt;/code&gt; comes out as &lt;cmath&gt;f(x) = \pi(\frac{\sqrt{x}}{x-1}).&lt;/cmath&gt; To automatically adjust the size of parentheses to fit the expression inside of them, we type &lt;code&gt;\left(...\right)&lt;/code&gt;. If we do this for our &lt;math&gt;f&lt;/math&gt; equation above, we get &lt;cmath&gt;f(x) = \pi\left(\frac{\sqrt{x}}{x-1}\right).&lt;/cmath&gt; We can use &lt;code&gt;\left&lt;/code&gt; and &lt;code&gt;\right&lt;/code&gt; for all sorts of things... parentheses (as we saw), brackets &lt;code&gt;$\left[...\right]$&lt;/code&gt;, braces &lt;code&gt;$\left\{...\right\}&lt;/code&gt;, absolute values &lt;code&gt;$\left|...\right|$&lt;/code&gt;, and much more (norms, floor and ceiling functions, inner products, etc.).<br /> <br /> ==== Lists ====<br /> <br /> To make a list, such as a sequence, we use &lt;code&gt;\dots&lt;/code&gt;. For example, &lt;code&gt;$a_0,a_1,\dots,a_n$&lt;/code&gt; will give us &lt;math&gt;a_0,a_1,\dots,a_n.&lt;/math&gt;<br /> <br /> ==== Sums ====<br /> <br /> There are two basic ways to write out sums. First, we can use &lt;code&gt;+&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example of this way would be &lt;code&gt;$a_1+a_2+\cdots+a_n$&lt;/code&gt; This will give us &lt;math&gt;a_1+a_2+\cdots+a_n.&lt;/math&gt; Second, we could use summation notation, or &lt;code&gt;\sum&lt;/code&gt;. Such an example is &lt;code&gt;$\sum_{i=0}^n a_i$&lt;/code&gt;, giving &lt;math&gt;\textstyle \sum_{i=0}^n a_i.&lt;/math&gt; Note the use of superscripts and subscripts to obtain the summation index.<br /> <br /> ==== Products ====<br /> <br /> Again, there are two basic ways to display products. First, we can use &lt;code&gt;\cdot&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example is &lt;code&gt;$n! = n\cdot(n-1)\cdots 2\cdot 1$&lt;/code&gt;, which of course gives &lt;math&gt;n! = n\cdot(n-1)\cdots 2 \cdot 1.&lt;/math&gt; The alternative is to use product notation with &lt;code&gt;\prod&lt;/code&gt;. For instance, &lt;code&gt;$n! = \prod_{k=1}^n k&lt;/code&gt;, giving &lt;math&gt;\textstyle n! = \prod_{k=1}^n k.&lt;/math&gt;<br /> <br /> === Equalities and Inequalities ===<br /> <br /> &lt;ul&gt;<br /> &lt;li&gt;<br /> &lt;b&gt;Inequalities&lt;/b&gt;: the commands &lt;code&gt;&gt;, &lt;, \geq, \leq,&lt;/code&gt; and &lt;code&gt;\neq&lt;/code&gt; give us &lt;math&gt;&gt;,&lt;/math&gt; &lt;math&gt;&lt;,&lt;/math&gt; &lt;math&gt;\geq,&lt;/math&gt; &lt;math&gt;\leq,&lt;/math&gt; and &lt;math&gt;\neq,&lt;/math&gt; respectively.<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Aligning Equations&lt;/b&gt;: To align multiple equations, we use the &lt;code&gt;align*&lt;/code&gt; environment. For example, we might type a system of equations as follows:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> (You do not need dollar signs.) The &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to and the \\ symbols break to the next line. This code will output<br /> &lt;cmath&gt;\begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}&lt;/cmath&gt; An example of a string of equations is:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> Again, the &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to, and the \\ symbols break to the next line. This code outputs<br /> &lt;cmath&gt;\begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}&lt;/cmath&gt;<br /> &lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Numbering Equations&lt;/b&gt;: To number equations, we use the &lt;code&gt;align&lt;/code&gt; environment. This is the same environment as the &lt;code&gt;align*&lt;/code&gt; environment, but we leave the &lt;code&gt;*&lt;/code&gt; off. The &lt;code&gt;*&lt;/code&gt; suppresses numbering. To number one equation, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by = c<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by = c.<br /> \end{align} &lt;/cmath&gt; We don't have to use &lt;code&gt;&amp;&lt;/code&gt; or \\ since there is nothing to align and no lines to break. To number several equations, such as a system, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i.<br /> \end{align} &lt;/cmath&gt; In general, &lt;code&gt;align&lt;/code&gt; will auto-number your equations from first to last.<br /> &lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Comments in Equations&lt;/b&gt;: Again, we use the &lt;code&gt;align*&lt;/code&gt; environment. The code<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}<br /> \end{align*}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}.<br /> \end{align*} &lt;/cmath&gt; (You can use &lt;code&gt;align&lt;/code&gt; to get numbering &lt;i&gt;and&lt;/i&gt; comments!)<br /> &lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Definition by Cases&lt;/b&gt;: To define, say, a function by cases, we use the &lt;code&gt;cases&lt;/code&gt; environment. The code<br /> &lt;pre&gt;&lt;nowiki&gt;<br /> $$&lt;/nowiki&gt; \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j \end{cases} &lt;nowiki&gt;$$<br /> &lt;/nowiki&gt;&lt;/pre&gt;<br /> gives us<br /> &lt;cmath&gt;<br /> \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j. \end{cases}<br /> &lt;/cmath&gt; As usual, the &lt;code&gt;&amp;&lt;/code&gt; is for aligning and the \\ is for line-breaking.<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> === Commonly Used Commands ===<br /> <br /> ==== Algebra ====<br /> <br /> ==== Geometry/Trig ====<br /> <br /> ==== Counting &amp; Probability ====<br /> <br /> ==== Number Theory ====<br /> <br /> ==== Linear Algebra ====<br /> <br /> ==== Calculus ====<br /> <br /> ==== Sets &amp; Logic ====</div> 5space https://artofproblemsolving.com/wiki/index.php?title=LaTeX:LaTeX_on_AoPS&diff=72335 LaTeX:LaTeX on AoPS 2015-10-02T21:05:48Z <p>5space: /* Basic Expressions */</p> <hr /> <div>{{Latex}}<br /> <br /> This article explains how to use LaTeX in the AoPSWiki, the AoPS Community, and the AoPS Classroom. See [http://artofproblemsolving.com/wiki/index.php/LaTeX:Packages Packages] to know which packages are prebuilt into the AoPS site.<br /> <br /> <br /> ----<br /> == Getting Started with LaTeX ==<br /> <br /> === The Very Basics ===<br /> <br /> LaTeX uses a special &quot;math mode&quot; to display mathematics. There are two types of this &quot;math mode&quot;:<br /> <br /> ==== In-line Math Mode ====<br /> <br /> In in-line math mode, we use &lt;code&gt;&lt;/code&gt; signs to enclose the math we want to display, and it displays in-line with our text. For example, typing &lt;code&gt;$\sqrt{x} = 5$&lt;/code&gt; gives us &lt;math&gt;\sqrt{x} = 5.&lt;/math&gt;<br /> <br /> ==== Display Math Mode ====<br /> <br /> In display math mode, we enclose our code in double dollar signs, and it displays the math centered and on its own line. For example, &lt;code&gt;$$\sqrt{x} = 5$$&lt;/code&gt; gives us &lt;cmath&gt;\sqrt{x} = 5.&lt;/cmath&gt;<br /> <br /> ==== In-line vs. Display ====<br /> <br /> Besides displaying in-line vs. displaying centered and on a new line, the two modes render differently in other ways. Note that &lt;code&gt;$\sum_{k=1}^n k^2$&lt;/code&gt; gives us &lt;math&gt;\textstyle\sum_{k=1}^n k^2,&lt;/math&gt; whereas &lt;code&gt;$$\sum_{k=1}^n k^2$$&lt;/code&gt; gives us &lt;cmath&gt;\sum_{k=1}^n k^2.&lt;/cmath&gt;<br /> <br /> === Basic Expressions ===<br /> <br /> ==== Multiplication ====<br /> <br /> Sometimes, when we're multiplying, we don't need a multiplication symbol. For instance, we can write &lt;math&gt;xy&lt;/math&gt; instead of &lt;math&gt;x\cdot y&lt;/math&gt; without ambiguity. However, when you're multiplying numbers, for instance, a multiplication symbol comes in handy. The standard symbol is given by &lt;code&gt;$\cdot$&lt;/code&gt;. For example, &lt;code&gt;$12\cdot\frac{1}{2}$&lt;/code&gt; gives us &lt;math&gt;\textstyle 12\cdot \frac 12.&lt;/math&gt;<br /> <br /> ==== Fractions ====<br /> <br /> We can make fractions via &lt;code&gt;$\frac{...}{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\frac{x+y}{2}$&lt;/code&gt; will give us &lt;math&gt;\textstyle\frac{x+y}{2}.&lt;/math&gt;<br /> <br /> ==== Roots ====<br /> <br /> Square roots in &lt;math&gt;\LaTeX&lt;/math&gt; are pretty simple; we just type &lt;code&gt;$\sqrt{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{2}$&lt;/code&gt; gives us &lt;math&gt;\sqrt 2.&lt;/math&gt; Cube roots, fourth roots, and so on are only slightly more difficult; we type &lt;code&gt;$\sqrt[n]{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{x-y}$&lt;/code&gt; gives &lt;math&gt;\sqrt{x-y}.&lt;/math&gt;<br /> <br /> ==== Superscripts &amp; Subscripts ====<br /> <br /> To get superscripts (or exponents), we use the caret symbol &lt;code&gt;^&lt;/code&gt;. Typing &lt;code&gt;$x^2+y^2$&lt;/code&gt; gives &lt;math&gt;x^2+y^2.&lt;/math&gt; Subscripts are obtained via an underscore (holding shift and the minus sign on most keyboards). For instance, &lt;code&gt;$a_k$&lt;/code&gt; yields &lt;math&gt;a_k.&lt;/math&gt;<br /> <br /> ==== Groups ====<br /> <br /> Most operations in &lt;math&gt;\LaTeX&lt;/math&gt; (such as superscripts and subscripts) can only see the &quot;group&quot; of characters immediately following it. We use curly braces &lt;code&gt;{...}&lt;/code&gt; to indicate groups longer than one character. For instance, if we wrote &lt;code&gt;$x^2015$&lt;/code&gt;, we'd expect to get &lt;math&gt;x^{2015},&lt;/math&gt; but we instead get &lt;math&gt;x^2015.&lt;/math&gt; This is because each character in the string &lt;code&gt;2015&lt;/code&gt; is in its own group until we tell &lt;math&gt;\LaTeX&lt;/math&gt; that &lt;code&gt;2015&lt;/code&gt; should be one whole group. To convey this information to &lt;math&gt;\LaTeX&lt;/math&gt;, we write &lt;code&gt;$x^{2015}$&lt;/code&gt; and we get &lt;math&gt;x^{2015}.&lt;/math&gt;<br /> <br /> === Beyond the Basic Expressions ===<br /> <br /> &lt;ul&gt;<br /> &lt;li&gt;<br /> &lt;b&gt;Grouping Expressions&lt;/b&gt;: Our ordinary parentheses &lt;code&gt;(...)&lt;/code&gt; and brackets &lt;code&gt;[...]&lt;/code&gt; work to group expressions in &lt;math&gt;\LaTeX&lt;/math&gt;. For instance, &lt;code&gt;$(x+y)[z+w]$&lt;/code&gt; gives us &lt;math&gt;(x+y)[z+w].&lt;/math&gt; We can also group expressions using curly braces, but we can't just type &lt;code&gt;{...}&lt;/code&gt;. Rather, we must type &lt;code&gt;\{...\}&lt;/code&gt;. This is because &lt;math&gt;\LaTeX&lt;/math&gt; uses plain curly braces for other things, such as fractions and superscripts and subscripts.<br /> <br /> &lt;br&gt;&lt;br&gt;<br /> <br /> When we put (vertically) large expressions inside of parentheses (or brackets, or curly braces, etc.), the parentheses don't resize to fit the expression and instead remain relatively small. For instance, &lt;code&gt;$$f(x) = \pi(\frac{\sqrt{x}}{x-1})$$&lt;/code&gt; comes out as &lt;cmath&gt;f(x) = \pi(\frac{\sqrt{x}}{x-1}).&lt;/cmath&gt; To automatically adjust the size of parentheses to fit the expression inside of them, we type &lt;code&gt;\left(...\right)&lt;/code&gt;. If we do this for our &lt;math&gt;f&lt;/math&gt; equation above, we get &lt;cmath&gt;f(x) = \pi\left(\frac{\sqrt{x}}{x-1}\right).&lt;/cmath&gt; We can use &lt;code&gt;\left&lt;/code&gt; and &lt;code&gt;\right&lt;/code&gt; for all sorts of things... parentheses (as we saw), brackets &lt;code&gt;$\left[...\right]$&lt;/code&gt;, braces &lt;code&gt;$\left\{...\right\}&lt;/code&gt;, absolute values &lt;code&gt;$\left|...\right|$&lt;/code&gt;, and much more (norms, floor and ceiling functions, inner products, etc.).<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Lists&lt;/b&gt;: To make a list, such as a sequence, we use &lt;code&gt;\dots&lt;/code&gt;. For example, &lt;code&gt;$a_0,a_1,\dots,a_n$&lt;/code&gt; will give us &lt;math&gt;a_0,a_1,\dots,a_n.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Sums&lt;/b&gt;: There are two basic ways to write out sums. First, we can use &lt;code&gt;+&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example of this way would be &lt;code&gt;$a_1+a_2+\cdots+a_n$&lt;/code&gt; This will give us &lt;math&gt;a_1+a_2+\cdots+a_n.&lt;/math&gt; Second, we could use summation notation, or &lt;code&gt;\sum&lt;/code&gt;. Such an example is &lt;code&gt;$\sum_{i=0}^n a_i$&lt;/code&gt;, giving &lt;math&gt;\textstyle \sum_{i=0}^n a_i.&lt;/math&gt; Note the use of superscripts and subscripts to obtain the summation index.<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Products&lt;/b&gt;: Again, there are two basic ways to display products. First, we can use &lt;code&gt;\cdot&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example is &lt;code&gt;$n! = n\cdot(n-1)\cdots 2\cdot 1$&lt;/code&gt;, which of course gives &lt;math&gt;n! = n\cdot(n-1)\cdots 2 \cdot 1.&lt;/math&gt; The alternative is to use product notation with &lt;code&gt;\prod&lt;/code&gt;. For instance, &lt;code&gt;$n! = \prod_{k=1}^n k&lt;/code&gt;, giving &lt;math&gt;\textstyle n! = \prod_{k=1}^n k.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> === Equalities and Inequalities ===<br /> <br /> &lt;ul&gt;<br /> &lt;li&gt;<br /> &lt;b&gt;Inequalities&lt;/b&gt;: the commands &lt;code&gt;&gt;, &lt;, \geq, \leq,&lt;/code&gt; and &lt;code&gt;\neq&lt;/code&gt; give us &lt;math&gt;&gt;,&lt;/math&gt; &lt;math&gt;&lt;,&lt;/math&gt; &lt;math&gt;\geq,&lt;/math&gt; &lt;math&gt;\leq,&lt;/math&gt; and &lt;math&gt;\neq,&lt;/math&gt; respectively.<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Aligning Equations&lt;/b&gt;: To align multiple equations, we use the &lt;code&gt;align*&lt;/code&gt; environment. For example, we might type a system of equations as follows:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> (You do not need dollar signs.) The &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to and the \\ symbols break to the next line. This code will output<br /> &lt;cmath&gt;\begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}&lt;/cmath&gt; An example of a string of equations is:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> Again, the &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to, and the \\ symbols break to the next line. This code outputs<br /> &lt;cmath&gt;\begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}&lt;/cmath&gt;<br /> &lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Numbering Equations&lt;/b&gt;: To number equations, we use the &lt;code&gt;align&lt;/code&gt; environment. This is the same environment as the &lt;code&gt;align*&lt;/code&gt; environment, but we leave the &lt;code&gt;*&lt;/code&gt; off. The &lt;code&gt;*&lt;/code&gt; suppresses numbering. To number one equation, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by = c<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by = c.<br /> \end{align} &lt;/cmath&gt; We don't have to use &lt;code&gt;&amp;&lt;/code&gt; or \\ since there is nothing to align and no lines to break. To number several equations, such as a system, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i.<br /> \end{align} &lt;/cmath&gt; In general, &lt;code&gt;align&lt;/code&gt; will auto-number your equations from first to last.<br /> &lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Comments in Equations&lt;/b&gt;: Again, we use the &lt;code&gt;align*&lt;/code&gt; environment. The code<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}<br /> \end{align*}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}.<br /> \end{align*} &lt;/cmath&gt; (You can use &lt;code&gt;align&lt;/code&gt; to get numbering &lt;i&gt;and&lt;/i&gt; comments!)<br /> &lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Definition by Cases&lt;/b&gt;: To define, say, a function by cases, we use the &lt;code&gt;cases&lt;/code&gt; environment. The code<br /> &lt;pre&gt;&lt;nowiki&gt;<br /> $$&lt;/nowiki&gt; \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j \end{cases} &lt;nowiki&gt;$$<br /> &lt;/nowiki&gt;&lt;/pre&gt;<br /> gives us<br /> &lt;cmath&gt;<br /> \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j. \end{cases}<br /> &lt;/cmath&gt; As usual, the &lt;code&gt;&amp;&lt;/code&gt; is for aligning and the \\ is for line-breaking.<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> === Commonly Used Commands ===<br /> <br /> ==== Algebra ====<br /> <br /> ==== Geometry/Trig ====<br /> <br /> ==== Counting &amp; Probability ====<br /> <br /> ==== Number Theory ====<br /> <br /> ==== Linear Algebra ====<br /> <br /> ==== Calculus ====<br /> <br /> ==== Sets &amp; Logic ====</div> 5space https://artofproblemsolving.com/wiki/index.php?title=LaTeX:LaTeX_on_AoPS&diff=72334 LaTeX:LaTeX on AoPS 2015-10-02T21:04:23Z <p>5space: /* The Very Basics */</p> <hr /> <div>{{Latex}}<br /> <br /> This article explains how to use LaTeX in the AoPSWiki, the AoPS Community, and the AoPS Classroom. See [http://artofproblemsolving.com/wiki/index.php/LaTeX:Packages Packages] to know which packages are prebuilt into the AoPS site.<br /> <br /> <br /> ----<br /> == Getting Started with LaTeX ==<br /> <br /> === The Very Basics ===<br /> <br /> LaTeX uses a special &quot;math mode&quot; to display mathematics. There are two types of this &quot;math mode&quot;:<br /> <br /> ==== In-line Math Mode ====<br /> <br /> In in-line math mode, we use &lt;code&gt;&lt;/code&gt; signs to enclose the math we want to display, and it displays in-line with our text. For example, typing &lt;code&gt;$\sqrt{x} = 5$&lt;/code&gt; gives us &lt;math&gt;\sqrt{x} = 5.&lt;/math&gt;<br /> <br /> ==== Display Math Mode ====<br /> <br /> In display math mode, we enclose our code in double dollar signs, and it displays the math centered and on its own line. For example, &lt;code&gt;$$\sqrt{x} = 5$$&lt;/code&gt; gives us &lt;cmath&gt;\sqrt{x} = 5.&lt;/cmath&gt;<br /> <br /> ==== In-line vs. Display ====<br /> <br /> Besides displaying in-line vs. displaying centered and on a new line, the two modes render differently in other ways. Note that &lt;code&gt;$\sum_{k=1}^n k^2$&lt;/code&gt; gives us &lt;math&gt;\textstyle\sum_{k=1}^n k^2,&lt;/math&gt; whereas &lt;code&gt;$$\sum_{k=1}^n k^2$$&lt;/code&gt; gives us &lt;cmath&gt;\sum_{k=1}^n k^2.&lt;/cmath&gt;<br /> <br /> === Basic Expressions ===<br /> <br /> &lt;ul&gt;<br /> &lt;li&gt;<br /> &lt;b&gt;Multiplication&lt;/b&gt;: Sometimes, when we're multiplying, we don't need a multiplication symbol. For instance, we can write &lt;math&gt;xy&lt;/math&gt; instead of &lt;math&gt;x\cdot y&lt;/math&gt; without ambiguity. However, when you're multiplying numbers, for instance, a multiplication symbol comes in handy. The standard symbol is given by &lt;code&gt;$\cdot$&lt;/code&gt;. For example, &lt;code&gt;$12\cdot\frac{1}{2}$&lt;/code&gt; gives us &lt;math&gt;\textstyle 12\cdot \frac 12.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Fractions&lt;/b&gt;: We can make fractions via &lt;code&gt;$\frac{...}{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\frac{x+y}{2}$&lt;/code&gt; will give us &lt;math&gt;\textstyle\frac{x+y}{2}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;&lt;math&gt;n^\text{th}&lt;/math&gt; Roots&lt;/b&gt;: Square roots in &lt;math&gt;\LaTeX&lt;/math&gt; are pretty simple; we just type &lt;code&gt;$\sqrt{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{2}$&lt;/code&gt; gives us &lt;math&gt;\sqrt 2.&lt;/math&gt; Cube roots, fourth roots, and so on are only slightly more difficult; we type &lt;code&gt;$\sqrt[n]{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{x-y}$&lt;/code&gt; gives &lt;math&gt;\sqrt{x-y}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Superscripts and Subscripts&lt;/b&gt;: To get superscripts (or exponents), we use the caret symbol &lt;code&gt;^&lt;/code&gt;. Typing &lt;code&gt;$x^2+y^2$&lt;/code&gt; gives &lt;math&gt;x^2+y^2.&lt;/math&gt; Subscripts are obtained via an underscore (holding shift and the minus sign on most keyboards). For instance, &lt;code&gt;$a_k$&lt;/code&gt; yields &lt;math&gt;a_k.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Groups&lt;/b&gt;: Most operations in &lt;math&gt;\LaTeX&lt;/math&gt; (such as superscripts and subscripts) can only see the &quot;group&quot; of characters immediately following it. We use curly braces &lt;code&gt;{...}&lt;/code&gt; to indicate groups longer than one character. For instance, if we wrote &lt;code&gt;$x^2015$&lt;/code&gt;, we'd expect to get &lt;math&gt;x^{2015},&lt;/math&gt; but we instead get &lt;math&gt;x^2015.&lt;/math&gt; This is because each character in the string &lt;code&gt;2015&lt;/code&gt; is in its own group until we tell &lt;math&gt;\LaTeX&lt;/math&gt; that &lt;code&gt;2015&lt;/code&gt; should be one whole group. To convey this information to &lt;math&gt;\LaTeX&lt;/math&gt;, we write &lt;code&gt;$x^{2015}$&lt;/code&gt; and we get &lt;math&gt;x^{2015}.&lt;/math&gt;<br /> &lt;/li&gt;<br /> &lt;/ul&gt;<br /> <br /> === Beyond the Basic Expressions ===<br /> <br /> &lt;ul&gt;<br /> &lt;li&gt;<br /> &lt;b&gt;Grouping Expressions&lt;/b&gt;: Our ordinary parentheses &lt;code&gt;(...)&lt;/code&gt; and brackets &lt;code&gt;[...]&lt;/code&gt; work to group expressions in &lt;math&gt;\LaTeX&lt;/math&gt;. For instance, &lt;code&gt;$(x+y)[z+w]$&lt;/code&gt; gives us &lt;math&gt;(x+y)[z+w].&lt;/math&gt; We can also group expressions using curly braces, but we can't just type &lt;code&gt;{...}&lt;/code&gt;. Rather, we must type &lt;code&gt;\{...\}&lt;/code&gt;. This is because &lt;math&gt;\LaTeX&lt;/math&gt; uses plain curly braces for other things, such as fractions and superscripts and subscripts.<br /> <br /> &lt;br&gt;&lt;br&gt;<br /> <br /> When we put (vertically) large expressions inside of parentheses (or brackets, or curly braces, etc.), the parentheses don't resize to fit the expression and instead remain relatively small. For instance, &lt;code&gt;$$f(x) = \pi(\frac{\sqrt{x}}{x-1})$$&lt;/code&gt; comes out as &lt;cmath&gt;f(x) = \pi(\frac{\sqrt{x}}{x-1}).&lt;/cmath&gt; To automatically adjust the size of parentheses to fit the expression inside of them, we type &lt;code&gt;\left(...\right)&lt;/code&gt;. If we do this for our &lt;math&gt;f&lt;/math&gt; equation above, we get &lt;cmath&gt;f(x) = \pi\left(\frac{\sqrt{x}}{x-1}\right).&lt;/cmath&gt; We can use &lt;code&gt;\left&lt;/code&gt; and &lt;code&gt;\right&lt;/code&gt; for all sorts of things... parentheses (as we saw), brackets &lt;code&gt;$\left[...\right]$&lt;/code&gt;, braces &lt;code&gt;$\left\{...\right\}&lt;/code&gt;, absolute values &lt;code&gt;$\left|...\right|$&lt;/code&gt;, and much more (norms, floor and ceiling functions, inner products, etc.).<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Lists&lt;/b&gt;: To make a list, such as a sequence, we use &lt;code&gt;\dots&lt;/code&gt;. For example, &lt;code&gt;$a_0,a_1,\dots,a_n$&lt;/code&gt; will give us &lt;math&gt;a_0,a_1,\dots,a_n.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Sums&lt;/b&gt;: There are two basic ways to write out sums. First, we can use &lt;code&gt;+&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example of this way would be &lt;code&gt;$a_1+a_2+\cdots+a_n$&lt;/code&gt; This will give us &lt;math&gt;a_1+a_2+\cdots+a_n.&lt;/math&gt; Second, we could use summation notation, or &lt;code&gt;\sum&lt;/code&gt;. Such an example is &lt;code&gt;$\sum_{i=0}^n a_i$&lt;/code&gt;, giving &lt;math&gt;\textstyle \sum_{i=0}^n a_i.&lt;/math&gt; Note the use of superscripts and subscripts to obtain the summation index.<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Products&lt;/b&gt;: Again, there are two basic ways to display products. First, we can use &lt;code&gt;\cdot&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example is &lt;code&gt;$n! = n\cdot(n-1)\cdots 2\cdot 1$&lt;/code&gt;, which of course gives &lt;math&gt;n! = n\cdot(n-1)\cdots 2 \cdot 1.&lt;/math&gt; The alternative is to use product notation with &lt;code&gt;\prod&lt;/code&gt;. For instance, &lt;code&gt;$n! = \prod_{k=1}^n k&lt;/code&gt;, giving &lt;math&gt;\textstyle n! = \prod_{k=1}^n k.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> === Equalities and Inequalities ===<br /> <br /> &lt;ul&gt;<br /> &lt;li&gt;<br /> &lt;b&gt;Inequalities&lt;/b&gt;: the commands &lt;code&gt;&gt;, &lt;, \geq, \leq,&lt;/code&gt; and &lt;code&gt;\neq&lt;/code&gt; give us &lt;math&gt;&gt;,&lt;/math&gt; &lt;math&gt;&lt;,&lt;/math&gt; &lt;math&gt;\geq,&lt;/math&gt; &lt;math&gt;\leq,&lt;/math&gt; and &lt;math&gt;\neq,&lt;/math&gt; respectively.<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Aligning Equations&lt;/b&gt;: To align multiple equations, we use the &lt;code&gt;align*&lt;/code&gt; environment. For example, we might type a system of equations as follows:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> (You do not need dollar signs.) The &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to and the \\ symbols break to the next line. This code will output<br /> &lt;cmath&gt;\begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}&lt;/cmath&gt; An example of a string of equations is:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> Again, the &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to, and the \\ symbols break to the next line. This code outputs<br /> &lt;cmath&gt;\begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}&lt;/cmath&gt;<br /> &lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Numbering Equations&lt;/b&gt;: To number equations, we use the &lt;code&gt;align&lt;/code&gt; environment. This is the same environment as the &lt;code&gt;align*&lt;/code&gt; environment, but we leave the &lt;code&gt;*&lt;/code&gt; off. The &lt;code&gt;*&lt;/code&gt; suppresses numbering. To number one equation, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by = c<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by = c.<br /> \end{align} &lt;/cmath&gt; We don't have to use &lt;code&gt;&amp;&lt;/code&gt; or \\ since there is nothing to align and no lines to break. To number several equations, such as a system, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i.<br /> \end{align} &lt;/cmath&gt; In general, &lt;code&gt;align&lt;/code&gt; will auto-number your equations from first to last.<br /> &lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Comments in Equations&lt;/b&gt;: Again, we use the &lt;code&gt;align*&lt;/code&gt; environment. The code<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}<br /> \end{align*}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}.<br /> \end{align*} &lt;/cmath&gt; (You can use &lt;code&gt;align&lt;/code&gt; to get numbering &lt;i&gt;and&lt;/i&gt; comments!)<br /> &lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Definition by Cases&lt;/b&gt;: To define, say, a function by cases, we use the &lt;code&gt;cases&lt;/code&gt; environment. The code<br /> &lt;pre&gt;&lt;nowiki&gt;<br /> $$&lt;/nowiki&gt; \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j \end{cases} &lt;nowiki&gt;$$<br /> &lt;/nowiki&gt;&lt;/pre&gt;<br /> gives us<br /> &lt;cmath&gt;<br /> \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j. \end{cases}<br /> &lt;/cmath&gt; As usual, the &lt;code&gt;&amp;&lt;/code&gt; is for aligning and the \\ is for line-breaking.<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> === Commonly Used Commands ===<br /> <br /> ==== Algebra ====<br /> <br /> ==== Geometry/Trig ====<br /> <br /> ==== Counting &amp; Probability ====<br /> <br /> ==== Number Theory ====<br /> <br /> ==== Linear Algebra ====<br /> <br /> ==== Calculus ====<br /> <br /> ==== Sets &amp; Logic ====</div> 5space https://artofproblemsolving.com/wiki/index.php?title=LaTeX:LaTeX_on_AoPS&diff=72333 LaTeX:LaTeX on AoPS 2015-10-02T21:02:17Z <p>5space: /* Commonly Used Commands */</p> <hr /> <div>{{Latex}}<br /> <br /> This article explains how to use LaTeX in the AoPSWiki, the AoPS Community, and the AoPS Classroom. See [http://artofproblemsolving.com/wiki/index.php/LaTeX:Packages Packages] to know which packages are prebuilt into the AoPS site.<br /> <br /> <br /> ----<br /> == Getting Started with LaTeX ==<br /> <br /> === The Very Basics ===<br /> <br /> LaTeX uses a special &quot;math mode&quot; to display mathematics. There are two types of this &quot;math mode&quot;:<br /> <br /> &lt;ul&gt;<br /> &lt;li&gt;<br /> &lt;b&gt;In-line math mode&lt;/b&gt;. In in-line math mode, we use &lt;code&gt;&lt;/code&gt; signs to enclose the math we want to display, and it displays in-line with our text. For example, typing &lt;code&gt;$\sqrt{x} = 5$&lt;/code&gt; gives us &lt;math&gt;\sqrt{x} = 5.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Display math mode&lt;/b&gt;. In display math mode, we enclose our code in double dollar signs, and it displays the math centered and on its own line. For example, &lt;code&gt;$$\sqrt{x} = 5$$&lt;/code&gt; gives us &lt;cmath&gt;\sqrt{x} = 5.&lt;/cmath&gt;<br /> <br /> Besides displaying in-line vs. displaying centered and on a new line, the two modes render differently in other ways. Note that &lt;code&gt;$\sum_{k=1}^n k^2$&lt;/code&gt; gives us &lt;math&gt;\textstyle\sum_{k=1}^n k^2,&lt;/math&gt; whereas &lt;code&gt;$$\sum_{k=1}^n k^2$$&lt;/code&gt; gives us &lt;cmath&gt;\sum_{k=1}^n k^2.&lt;/cmath&gt;<br /> &lt;/li&gt;<br /> &lt;/ul&gt;<br /> <br /> === Basic Expressions ===<br /> <br /> &lt;ul&gt;<br /> &lt;li&gt;<br /> &lt;b&gt;Multiplication&lt;/b&gt;: Sometimes, when we're multiplying, we don't need a multiplication symbol. For instance, we can write &lt;math&gt;xy&lt;/math&gt; instead of &lt;math&gt;x\cdot y&lt;/math&gt; without ambiguity. However, when you're multiplying numbers, for instance, a multiplication symbol comes in handy. The standard symbol is given by &lt;code&gt;$\cdot$&lt;/code&gt;. For example, &lt;code&gt;$12\cdot\frac{1}{2}$&lt;/code&gt; gives us &lt;math&gt;\textstyle 12\cdot \frac 12.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Fractions&lt;/b&gt;: We can make fractions via &lt;code&gt;$\frac{...}{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\frac{x+y}{2}$&lt;/code&gt; will give us &lt;math&gt;\textstyle\frac{x+y}{2}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;&lt;math&gt;n^\text{th}&lt;/math&gt; Roots&lt;/b&gt;: Square roots in &lt;math&gt;\LaTeX&lt;/math&gt; are pretty simple; we just type &lt;code&gt;$\sqrt{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{2}$&lt;/code&gt; gives us &lt;math&gt;\sqrt 2.&lt;/math&gt; Cube roots, fourth roots, and so on are only slightly more difficult; we type &lt;code&gt;$\sqrt[n]{...}$&lt;/code&gt;. For instance, &lt;code&gt;$\sqrt{x-y}$&lt;/code&gt; gives &lt;math&gt;\sqrt{x-y}.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Superscripts and Subscripts&lt;/b&gt;: To get superscripts (or exponents), we use the caret symbol &lt;code&gt;^&lt;/code&gt;. Typing &lt;code&gt;$x^2+y^2$&lt;/code&gt; gives &lt;math&gt;x^2+y^2.&lt;/math&gt; Subscripts are obtained via an underscore (holding shift and the minus sign on most keyboards). For instance, &lt;code&gt;$a_k$&lt;/code&gt; yields &lt;math&gt;a_k.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Groups&lt;/b&gt;: Most operations in &lt;math&gt;\LaTeX&lt;/math&gt; (such as superscripts and subscripts) can only see the &quot;group&quot; of characters immediately following it. We use curly braces &lt;code&gt;{...}&lt;/code&gt; to indicate groups longer than one character. For instance, if we wrote &lt;code&gt;$x^2015$&lt;/code&gt;, we'd expect to get &lt;math&gt;x^{2015},&lt;/math&gt; but we instead get &lt;math&gt;x^2015.&lt;/math&gt; This is because each character in the string &lt;code&gt;2015&lt;/code&gt; is in its own group until we tell &lt;math&gt;\LaTeX&lt;/math&gt; that &lt;code&gt;2015&lt;/code&gt; should be one whole group. To convey this information to &lt;math&gt;\LaTeX&lt;/math&gt;, we write &lt;code&gt;$x^{2015}$&lt;/code&gt; and we get &lt;math&gt;x^{2015}.&lt;/math&gt;<br /> &lt;/li&gt;<br /> &lt;/ul&gt;<br /> <br /> === Beyond the Basic Expressions ===<br /> <br /> &lt;ul&gt;<br /> &lt;li&gt;<br /> &lt;b&gt;Grouping Expressions&lt;/b&gt;: Our ordinary parentheses &lt;code&gt;(...)&lt;/code&gt; and brackets &lt;code&gt;[...]&lt;/code&gt; work to group expressions in &lt;math&gt;\LaTeX&lt;/math&gt;. For instance, &lt;code&gt;$(x+y)[z+w]$&lt;/code&gt; gives us &lt;math&gt;(x+y)[z+w].&lt;/math&gt; We can also group expressions using curly braces, but we can't just type &lt;code&gt;{...}&lt;/code&gt;. Rather, we must type &lt;code&gt;\{...\}&lt;/code&gt;. This is because &lt;math&gt;\LaTeX&lt;/math&gt; uses plain curly braces for other things, such as fractions and superscripts and subscripts.<br /> <br /> &lt;br&gt;&lt;br&gt;<br /> <br /> When we put (vertically) large expressions inside of parentheses (or brackets, or curly braces, etc.), the parentheses don't resize to fit the expression and instead remain relatively small. For instance, &lt;code&gt;$$f(x) = \pi(\frac{\sqrt{x}}{x-1})$$&lt;/code&gt; comes out as &lt;cmath&gt;f(x) = \pi(\frac{\sqrt{x}}{x-1}).&lt;/cmath&gt; To automatically adjust the size of parentheses to fit the expression inside of them, we type &lt;code&gt;\left(...\right)&lt;/code&gt;. If we do this for our &lt;math&gt;f&lt;/math&gt; equation above, we get &lt;cmath&gt;f(x) = \pi\left(\frac{\sqrt{x}}{x-1}\right).&lt;/cmath&gt; We can use &lt;code&gt;\left&lt;/code&gt; and &lt;code&gt;\right&lt;/code&gt; for all sorts of things... parentheses (as we saw), brackets &lt;code&gt;$\left[...\right]$&lt;/code&gt;, braces &lt;code&gt;$\left\{...\right\}&lt;/code&gt;, absolute values &lt;code&gt;$\left|...\right|$&lt;/code&gt;, and much more (norms, floor and ceiling functions, inner products, etc.).<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Lists&lt;/b&gt;: To make a list, such as a sequence, we use &lt;code&gt;\dots&lt;/code&gt;. For example, &lt;code&gt;$a_0,a_1,\dots,a_n$&lt;/code&gt; will give us &lt;math&gt;a_0,a_1,\dots,a_n.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Sums&lt;/b&gt;: There are two basic ways to write out sums. First, we can use &lt;code&gt;+&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example of this way would be &lt;code&gt;$a_1+a_2+\cdots+a_n$&lt;/code&gt; This will give us &lt;math&gt;a_1+a_2+\cdots+a_n.&lt;/math&gt; Second, we could use summation notation, or &lt;code&gt;\sum&lt;/code&gt;. Such an example is &lt;code&gt;$\sum_{i=0}^n a_i$&lt;/code&gt;, giving &lt;math&gt;\textstyle \sum_{i=0}^n a_i.&lt;/math&gt; Note the use of superscripts and subscripts to obtain the summation index.<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Products&lt;/b&gt;: Again, there are two basic ways to display products. First, we can use &lt;code&gt;\cdot&lt;/code&gt; and &lt;code&gt;\cdots&lt;/code&gt;. An example is &lt;code&gt;$n! = n\cdot(n-1)\cdots 2\cdot 1$&lt;/code&gt;, which of course gives &lt;math&gt;n! = n\cdot(n-1)\cdots 2 \cdot 1.&lt;/math&gt; The alternative is to use product notation with &lt;code&gt;\prod&lt;/code&gt;. For instance, &lt;code&gt;$n! = \prod_{k=1}^n k\$&lt;/code&gt;, giving &lt;math&gt;\textstyle n! = \prod_{k=1}^n k.&lt;/math&gt;<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> === Equalities and Inequalities ===<br /> <br /> &lt;ul&gt;<br /> &lt;li&gt;<br /> &lt;b&gt;Inequalities&lt;/b&gt;: the commands &lt;code&gt;&gt;, &lt;, \geq, \leq,&lt;/code&gt; and &lt;code&gt;\neq&lt;/code&gt; give us &lt;math&gt;&gt;,&lt;/math&gt; &lt;math&gt;&lt;,&lt;/math&gt; &lt;math&gt;\geq,&lt;/math&gt; &lt;math&gt;\leq,&lt;/math&gt; and &lt;math&gt;\neq,&lt;/math&gt; respectively.<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Aligning Equations&lt;/b&gt;: To align multiple equations, we use the &lt;code&gt;align*&lt;/code&gt; environment. For example, we might type a system of equations as follows:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> (You do not need dollar signs.) The &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to and the \\ symbols break to the next line. This code will output<br /> &lt;cmath&gt;\begin{align*}<br /> ax + by &amp;= 1 \\<br /> cx + dy &amp;= 2 \\<br /> ex + fy &amp;= 3.<br /> \end{align*}&lt;/cmath&gt; An example of a string of equations is:<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}<br /> &lt;/pre&gt;<br /> Again, the &lt;code&gt;&amp;&lt;/code&gt; symbol tells &lt;math&gt;\LaTeX&lt;/math&gt; where to align to, and the \\ symbols break to the next line. This code outputs<br /> &lt;cmath&gt;\begin{align*}<br /> ((2x+3)^3)' &amp;= 3(2x+3)^2 \cdot (2x+3)' \\<br /> &amp;= 3(2x+3)^2 \cdot 2 \\<br /> &amp;= 6(2x+3)^2.<br /> \end{align*}&lt;/cmath&gt;<br /> &lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Numbering Equations&lt;/b&gt;: To number equations, we use the &lt;code&gt;align&lt;/code&gt; environment. This is the same environment as the &lt;code&gt;align*&lt;/code&gt; environment, but we leave the &lt;code&gt;*&lt;/code&gt; off. The &lt;code&gt;*&lt;/code&gt; suppresses numbering. To number one equation, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by = c<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by = c.<br /> \end{align} &lt;/cmath&gt; We don't have to use &lt;code&gt;&amp;&lt;/code&gt; or \\ since there is nothing to align and no lines to break. To number several equations, such as a system, the code<br /> &lt;pre&gt;<br /> \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i<br /> \end{align}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align}<br /> ax + by &amp;= c \\<br /> dx + ey &amp;= f \\<br /> gx + hy &amp;= i.<br /> \end{align} &lt;/cmath&gt; In general, &lt;code&gt;align&lt;/code&gt; will auto-number your equations from first to last.<br /> &lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Comments in Equations&lt;/b&gt;: Again, we use the &lt;code&gt;align*&lt;/code&gt; environment. The code<br /> &lt;pre&gt;<br /> \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}<br /> \end{align*}<br /> &lt;/pre&gt;<br /> will produce<br /> &lt;cmath&gt; \begin{align*}<br /> ax + by &amp;= c &amp; \text{because blah} \\<br /> dx + ey &amp;= f &amp; \text{by such-and-such}.<br /> \end{align*} &lt;/cmath&gt; (You can use &lt;code&gt;align&lt;/code&gt; to get numbering &lt;i&gt;and&lt;/i&gt; comments!)<br /> &lt;/li&gt;<br /> <br /> &lt;li&gt;<br /> &lt;b&gt;Definition by Cases&lt;/b&gt;: To define, say, a function by cases, we use the &lt;code&gt;cases&lt;/code&gt; environment. The code<br /> &lt;pre&gt;&lt;nowiki&gt;<br /> $$&lt;/nowiki&gt; \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j \end{cases} &lt;nowiki&gt;$$<br /> &lt;/nowiki&gt;&lt;/pre&gt;<br /> gives us<br /> &lt;cmath&gt;<br /> \delta(i,j) = \begin{cases} 0 &amp; \text{if } i \neq j \\ 1 &amp;\text{if } i = j. \end{cases}<br /> &lt;/cmath&gt; As usual, the &lt;code&gt;&amp;&lt;/code&gt; is for aligning and the \\ is for line-breaking.<br /> &lt;br/&gt;&lt;br/&gt;&lt;/li&gt;<br /> <br /> &lt;/ul&gt;<br /> <br /> === Commonly Used Commands ===<br /> <br /> ==== Algebra ====<br /> <br /> ==== Geometry/Trig ====<br /> <br /> ==== Counting &amp; Probability ====<br /> <br /> ==== Number Theory ====<br /> <br /> ==== Linear Algebra ====<br /> <br /> ==== Calculus ====<br /> <br /> ==== Sets &amp; Logic ====</div> 5space