Why do I get an error when I try to begin an equation?aligning a multiline formula with the bullet of itemizeSeveral beginequation endequation in columnsbeginequation: “Display math should end with $$” error?How Equation label in begincasesLarge space between text and equations when I beginequationI always get missing $ when using beginequationBeginequation works better with than $$Why wont this equation split using beginalign and endalignMissing } inserted beginequationError when citing in equation

Is it legal to have the "// (c) 2019 John Smith" header in all files when there are hundreds of contributors?

LWC and complex parameters

Where else does the Shulchan Aruch quote an authority by name?

Finding files for which a command fails

What does it exactly mean if a random variable follows a distribution

Is Social Media Science Fiction?

Is it wise to focus on putting odd beats on left when playing double bass drums?

New order #4: World

"My colleague's body is amazing"

Is there a way to make member function NOT callable from constructor?

What do you call something that goes against the spirit of the law, but is legal when interpreting the law to the letter?

Landlord wants to switch my lease to a "Land contract" to "get back at the city"

Patience, young "Padovan"

How can I fix this gap between bookcases I made?

How to make payment on the internet without leaving a money trail?

Does the average primeness of natural numbers tend to zero?

Does it makes sense to buy a new cycle to learn riding?

Are cabin dividers used to "hide" the flex of the airplane?

Is there a name of the flying bionic bird?

How do I create uniquely male characters?

Ideas for 3rd eye abilities

Prime joint compound before latex paint?

Denied boarding due to overcrowding, Sparpreis ticket. What are my rights?

Is every set a filtered colimit of finite sets?



Why do I get an error when I try to begin an equation?


aligning a multiline formula with the bullet of itemizeSeveral beginequation endequation in columnsbeginequation: “Display math should end with $$” error?How Equation label in begincasesLarge space between text and equations when I beginequationI always get missing $ when using beginequationBeginequation works better with than $$Why wont this equation split using beginalign and endalignMissing } inserted beginequationError when citing in equation













5















This is what I have typed so far in latex:



documentclass[10pt,letter]article


usepackageamsmath
usepackageamsthm
usepackagemathtools


usepackagegraphicx


usepackagesetspace
usepackage[left=1.5in, right=1.5in, top=0.5in]geometry


onehalfspacing



begindocument



titleHomework Chapter 5

author




maketitle



section*Section 5.2: 4,5,7

paragraph4.
Let $alpha$ be a complex number. Show that if $(1+z)^alpha$ is taken as $e^alpha operatornameLog(1+z)$, then for $|z|< 1$\

$(1+z)^alpha = 1 + displaystylefracalpha1z + fracalpha(alpha -1)1cdot2z^2 + fracalpha(alpha-1)(alpha-2)1cdot2cdot3z^3 + cdots$\

In general,

beginequation

displaystylefracd^jdz^j(1+z)^alpha=fracalpha !(1+z)^alpha - j(alpha - j)!

endequation


I get an error with the following code:



beginequation

displaystylefracd^jdz^j(1+z)^alpha=fracalpha !(1+z)^alpha - j(alpha - j)!

endequation


I was wondering if someone could clarify why this happens?










share|improve this question







New contributor




K.M is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 12





    You can't have a blank line inside an equation environment.

    – Phelype Oleinik
    Apr 5 at 2:57






  • 6





    One of the reason you leave blank lines is (probably in your mind) to make your code more readable. But no, you cannot have blank lines within any type of math mode. If you must keep this coding habit, then you could type a % at the beginning of each of your blank lines (in equations).

    – Ruixi Zhang
    Apr 5 at 3:11







  • 5





    A separate observation: In an equation environment, TeX is in display-style math mode automatically -- no need for the displaystyle directive.

    – Mico
    Apr 5 at 4:42






  • 1





    Also, letter is not an option recognized the article document class. You should try letterpaper instead.

    – Mico
    Apr 5 at 6:20















5















This is what I have typed so far in latex:



documentclass[10pt,letter]article


usepackageamsmath
usepackageamsthm
usepackagemathtools


usepackagegraphicx


usepackagesetspace
usepackage[left=1.5in, right=1.5in, top=0.5in]geometry


onehalfspacing



begindocument



titleHomework Chapter 5

author




maketitle



section*Section 5.2: 4,5,7

paragraph4.
Let $alpha$ be a complex number. Show that if $(1+z)^alpha$ is taken as $e^alpha operatornameLog(1+z)$, then for $|z|< 1$\

$(1+z)^alpha = 1 + displaystylefracalpha1z + fracalpha(alpha -1)1cdot2z^2 + fracalpha(alpha-1)(alpha-2)1cdot2cdot3z^3 + cdots$\

In general,

beginequation

displaystylefracd^jdz^j(1+z)^alpha=fracalpha !(1+z)^alpha - j(alpha - j)!

endequation


I get an error with the following code:



beginequation

displaystylefracd^jdz^j(1+z)^alpha=fracalpha !(1+z)^alpha - j(alpha - j)!

endequation


I was wondering if someone could clarify why this happens?










share|improve this question







New contributor




K.M is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 12





    You can't have a blank line inside an equation environment.

    – Phelype Oleinik
    Apr 5 at 2:57






  • 6





    One of the reason you leave blank lines is (probably in your mind) to make your code more readable. But no, you cannot have blank lines within any type of math mode. If you must keep this coding habit, then you could type a % at the beginning of each of your blank lines (in equations).

    – Ruixi Zhang
    Apr 5 at 3:11







  • 5





    A separate observation: In an equation environment, TeX is in display-style math mode automatically -- no need for the displaystyle directive.

    – Mico
    Apr 5 at 4:42






  • 1





    Also, letter is not an option recognized the article document class. You should try letterpaper instead.

    – Mico
    Apr 5 at 6:20













5












5








5








This is what I have typed so far in latex:



documentclass[10pt,letter]article


usepackageamsmath
usepackageamsthm
usepackagemathtools


usepackagegraphicx


usepackagesetspace
usepackage[left=1.5in, right=1.5in, top=0.5in]geometry


onehalfspacing



begindocument



titleHomework Chapter 5

author




maketitle



section*Section 5.2: 4,5,7

paragraph4.
Let $alpha$ be a complex number. Show that if $(1+z)^alpha$ is taken as $e^alpha operatornameLog(1+z)$, then for $|z|< 1$\

$(1+z)^alpha = 1 + displaystylefracalpha1z + fracalpha(alpha -1)1cdot2z^2 + fracalpha(alpha-1)(alpha-2)1cdot2cdot3z^3 + cdots$\

In general,

beginequation

displaystylefracd^jdz^j(1+z)^alpha=fracalpha !(1+z)^alpha - j(alpha - j)!

endequation


I get an error with the following code:



beginequation

displaystylefracd^jdz^j(1+z)^alpha=fracalpha !(1+z)^alpha - j(alpha - j)!

endequation


I was wondering if someone could clarify why this happens?










share|improve this question







New contributor




K.M is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












This is what I have typed so far in latex:



documentclass[10pt,letter]article


usepackageamsmath
usepackageamsthm
usepackagemathtools


usepackagegraphicx


usepackagesetspace
usepackage[left=1.5in, right=1.5in, top=0.5in]geometry


onehalfspacing



begindocument



titleHomework Chapter 5

author




maketitle



section*Section 5.2: 4,5,7

paragraph4.
Let $alpha$ be a complex number. Show that if $(1+z)^alpha$ is taken as $e^alpha operatornameLog(1+z)$, then for $|z|< 1$\

$(1+z)^alpha = 1 + displaystylefracalpha1z + fracalpha(alpha -1)1cdot2z^2 + fracalpha(alpha-1)(alpha-2)1cdot2cdot3z^3 + cdots$\

In general,

beginequation

displaystylefracd^jdz^j(1+z)^alpha=fracalpha !(1+z)^alpha - j(alpha - j)!

endequation


I get an error with the following code:



beginequation

displaystylefracd^jdz^j(1+z)^alpha=fracalpha !(1+z)^alpha - j(alpha - j)!

endequation


I was wondering if someone could clarify why this happens?







equations






share|improve this question







New contributor




K.M is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




K.M is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




K.M is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Apr 5 at 2:55









K.MK.M

1676




1676




New contributor




K.M is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





K.M is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






K.M is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







  • 12





    You can't have a blank line inside an equation environment.

    – Phelype Oleinik
    Apr 5 at 2:57






  • 6





    One of the reason you leave blank lines is (probably in your mind) to make your code more readable. But no, you cannot have blank lines within any type of math mode. If you must keep this coding habit, then you could type a % at the beginning of each of your blank lines (in equations).

    – Ruixi Zhang
    Apr 5 at 3:11







  • 5





    A separate observation: In an equation environment, TeX is in display-style math mode automatically -- no need for the displaystyle directive.

    – Mico
    Apr 5 at 4:42






  • 1





    Also, letter is not an option recognized the article document class. You should try letterpaper instead.

    – Mico
    Apr 5 at 6:20












  • 12





    You can't have a blank line inside an equation environment.

    – Phelype Oleinik
    Apr 5 at 2:57






  • 6





    One of the reason you leave blank lines is (probably in your mind) to make your code more readable. But no, you cannot have blank lines within any type of math mode. If you must keep this coding habit, then you could type a % at the beginning of each of your blank lines (in equations).

    – Ruixi Zhang
    Apr 5 at 3:11







  • 5





    A separate observation: In an equation environment, TeX is in display-style math mode automatically -- no need for the displaystyle directive.

    – Mico
    Apr 5 at 4:42






  • 1





    Also, letter is not an option recognized the article document class. You should try letterpaper instead.

    – Mico
    Apr 5 at 6:20







12




12





You can't have a blank line inside an equation environment.

– Phelype Oleinik
Apr 5 at 2:57





You can't have a blank line inside an equation environment.

– Phelype Oleinik
Apr 5 at 2:57




6




6





One of the reason you leave blank lines is (probably in your mind) to make your code more readable. But no, you cannot have blank lines within any type of math mode. If you must keep this coding habit, then you could type a % at the beginning of each of your blank lines (in equations).

– Ruixi Zhang
Apr 5 at 3:11






One of the reason you leave blank lines is (probably in your mind) to make your code more readable. But no, you cannot have blank lines within any type of math mode. If you must keep this coding habit, then you could type a % at the beginning of each of your blank lines (in equations).

– Ruixi Zhang
Apr 5 at 3:11





5




5





A separate observation: In an equation environment, TeX is in display-style math mode automatically -- no need for the displaystyle directive.

– Mico
Apr 5 at 4:42





A separate observation: In an equation environment, TeX is in display-style math mode automatically -- no need for the displaystyle directive.

– Mico
Apr 5 at 4:42




1




1





Also, letter is not an option recognized the article document class. You should try letterpaper instead.

– Mico
Apr 5 at 6:20





Also, letter is not an option recognized the article document class. You should try letterpaper instead.

– Mico
Apr 5 at 6:20










2 Answers
2






active

oldest

votes


















5














The error is caused by the blank lines inside the equation environment: no blank line should appear there.



There are also several “non fatal” errors in your code.



  1. Never end paragraphs in text with \, but with a blank line.


  2. Use displaystyle very sparingly: I believe to have used it in the body of a document just a handful of times. For the special occasion where you need a “big fraction” in text mode, there is dfrac. In the first case you use it, it is rather equation* than an inline equation.


  3. Using operatornameLog is fine, but I guess that using Log after defining DeclareMathOperatorLogLog is better, because in a complex analysis context the symbol will be quite often used.


  4. As a subtlety, remember to add , after ! if something immediately follows a factorial.


  5. cdots and ldots are fine, but just dots is in general better. However, when dots is not between alike symbols, you need to help amsmath; in your case, use dotsb.


I also reorganized a bit your preamble.



documentclassarticle
usepackage[left=1.5in, right=1.5in, top=0.5in]geometry

usepackageamsmath
usepackagemathtools
usepackageamsthm

usepackagegraphicx
usepackagesetspace

onehalfspacing

DeclareMathOperatorLogLog

begindocument

titleHomework Chapter 5
author

maketitle

section*Section 5.2: 4,5,7

paragraph4.
Let $alpha$ be a complex number. Show that if $(1+z)^alpha$ is taken
as $e^alpha Log(1+z)$, then for $|z|< 1$
beginequation*
(1+z)^alpha = 1 + fracalpha1z +
fracalpha(alpha -1)1cdot2z^2 +
fracalpha(alpha-1)(alpha-2)1cdot2cdot3z^3 + dotsb
endequation*
In general,
beginequation
fracd^jdz^j(1+z)^alpha=
fracalpha! , (1+z)^alpha - j(alpha - j)!
endequation

enddocument


enter image description here



Do you see that the input is simpler? You don't have to worry where line ends: it's TeX that generally takes care of that.






share|improve this answer
































    4














    In addition to getting into the habit of not creating blank lines inside display-math environments (such as equation), do also try to get used to not treating LaTeX like it's some kludgy version of MS Word, i.e., like it's a word processor. What do I mean by that? Basically, get over your instincts of applying lots and lots of visual formatting. Instead, get used to writing what you mean -- and let LaTeX handle the nitty-gritty formatting issues.



    It takes a couple of minutes (ok, a couple of hours...) to get used to not treating LaTeX like it's a word processor. But once you get the hang of it, you'll really start to enjoy LaTeX much more. Here's how I would re-write your code to make it more "LaTeX-y":



    enter image description here



    Note, for instance, the use of [ and ] to start and end an unnumbered display-math environment. Learning not to use \ to force line breaks (other than in tabular and array environments) is particularly important. And don't leave blank lines (which tell TeX to start a new paragraph) immediately before [ or beginequation. The amsmath package also provides the instruction DeclareMathOperator, which is handy for creating new "operators" such as Log.



    documentclass[letterpaper]article % not 'letter' 
    usepackageamsmath
    DeclareMathOperatorLogLog
    usepackageenumitem % allows fine-tuning of 'enumerate' environment
    begindocument

    titleHomework Chapter 5
    author
    date
    maketitle

    setcountersection5 % just for this example
    setcountersubsection1

    subsectionProblems 4, 5, and 7

    beginenumerate[wide=0pt, label=bfseriesarabic*., start=4]

    item Let $alpha$ be a complex number. Show that if $(1+z)^alpha$ is
    taken as $e^alphaLog(1+z)$, then for $|z|< 1$,
    [
    (1+z)^alpha = 1 + fracalpha1 z + fracalpha(alpha-1)1cdot2 z^2
    + fracalpha(alpha-1)(alpha-2)1cdot2cdot3 z^3 + dotsb
    ]
    In general,
    beginequation labeleq:taylor_exp
    fracd^jdz^j (1+z)^alpha
    =fracalpha! (1+z)^alpha - j(alpha - j)!
    endequation
    dots

    item dots

    stepcounterenumi

    item dots

    endenumerate

    enddocument





    share|improve this answer




















    • 2





      operatornameLog is common in complex analysis, to denote the “principal branch” of the logarithm. Please, never suggest to change “log” to “ln”: everybody is entitled their preferences.

      – egreg
      Apr 5 at 7:03











    • @egreg - Thanks. I'll edit my answer.

      – Mico
      Apr 5 at 7:11











    • I was wondering why we put labeleq:taylor_exp after beginequation?

      – K.M
      Apr 5 at 22:12






    • 1





      @K.M - The code that's executed when beginequation is encountered (pun intended) steps the counter called equation. The label statement must come after the code that increments the associated counter.

      – Mico
      2 days ago











    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "85"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );






    K.M is a new contributor. Be nice, and check out our Code of Conduct.









    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483276%2fwhy-do-i-get-an-error-when-i-try-to-begin-an-equation%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    5














    The error is caused by the blank lines inside the equation environment: no blank line should appear there.



    There are also several “non fatal” errors in your code.



    1. Never end paragraphs in text with \, but with a blank line.


    2. Use displaystyle very sparingly: I believe to have used it in the body of a document just a handful of times. For the special occasion where you need a “big fraction” in text mode, there is dfrac. In the first case you use it, it is rather equation* than an inline equation.


    3. Using operatornameLog is fine, but I guess that using Log after defining DeclareMathOperatorLogLog is better, because in a complex analysis context the symbol will be quite often used.


    4. As a subtlety, remember to add , after ! if something immediately follows a factorial.


    5. cdots and ldots are fine, but just dots is in general better. However, when dots is not between alike symbols, you need to help amsmath; in your case, use dotsb.


    I also reorganized a bit your preamble.



    documentclassarticle
    usepackage[left=1.5in, right=1.5in, top=0.5in]geometry

    usepackageamsmath
    usepackagemathtools
    usepackageamsthm

    usepackagegraphicx
    usepackagesetspace

    onehalfspacing

    DeclareMathOperatorLogLog

    begindocument

    titleHomework Chapter 5
    author

    maketitle

    section*Section 5.2: 4,5,7

    paragraph4.
    Let $alpha$ be a complex number. Show that if $(1+z)^alpha$ is taken
    as $e^alpha Log(1+z)$, then for $|z|< 1$
    beginequation*
    (1+z)^alpha = 1 + fracalpha1z +
    fracalpha(alpha -1)1cdot2z^2 +
    fracalpha(alpha-1)(alpha-2)1cdot2cdot3z^3 + dotsb
    endequation*
    In general,
    beginequation
    fracd^jdz^j(1+z)^alpha=
    fracalpha! , (1+z)^alpha - j(alpha - j)!
    endequation

    enddocument


    enter image description here



    Do you see that the input is simpler? You don't have to worry where line ends: it's TeX that generally takes care of that.






    share|improve this answer





























      5














      The error is caused by the blank lines inside the equation environment: no blank line should appear there.



      There are also several “non fatal” errors in your code.



      1. Never end paragraphs in text with \, but with a blank line.


      2. Use displaystyle very sparingly: I believe to have used it in the body of a document just a handful of times. For the special occasion where you need a “big fraction” in text mode, there is dfrac. In the first case you use it, it is rather equation* than an inline equation.


      3. Using operatornameLog is fine, but I guess that using Log after defining DeclareMathOperatorLogLog is better, because in a complex analysis context the symbol will be quite often used.


      4. As a subtlety, remember to add , after ! if something immediately follows a factorial.


      5. cdots and ldots are fine, but just dots is in general better. However, when dots is not between alike symbols, you need to help amsmath; in your case, use dotsb.


      I also reorganized a bit your preamble.



      documentclassarticle
      usepackage[left=1.5in, right=1.5in, top=0.5in]geometry

      usepackageamsmath
      usepackagemathtools
      usepackageamsthm

      usepackagegraphicx
      usepackagesetspace

      onehalfspacing

      DeclareMathOperatorLogLog

      begindocument

      titleHomework Chapter 5
      author

      maketitle

      section*Section 5.2: 4,5,7

      paragraph4.
      Let $alpha$ be a complex number. Show that if $(1+z)^alpha$ is taken
      as $e^alpha Log(1+z)$, then for $|z|< 1$
      beginequation*
      (1+z)^alpha = 1 + fracalpha1z +
      fracalpha(alpha -1)1cdot2z^2 +
      fracalpha(alpha-1)(alpha-2)1cdot2cdot3z^3 + dotsb
      endequation*
      In general,
      beginequation
      fracd^jdz^j(1+z)^alpha=
      fracalpha! , (1+z)^alpha - j(alpha - j)!
      endequation

      enddocument


      enter image description here



      Do you see that the input is simpler? You don't have to worry where line ends: it's TeX that generally takes care of that.






      share|improve this answer



























        5












        5








        5







        The error is caused by the blank lines inside the equation environment: no blank line should appear there.



        There are also several “non fatal” errors in your code.



        1. Never end paragraphs in text with \, but with a blank line.


        2. Use displaystyle very sparingly: I believe to have used it in the body of a document just a handful of times. For the special occasion where you need a “big fraction” in text mode, there is dfrac. In the first case you use it, it is rather equation* than an inline equation.


        3. Using operatornameLog is fine, but I guess that using Log after defining DeclareMathOperatorLogLog is better, because in a complex analysis context the symbol will be quite often used.


        4. As a subtlety, remember to add , after ! if something immediately follows a factorial.


        5. cdots and ldots are fine, but just dots is in general better. However, when dots is not between alike symbols, you need to help amsmath; in your case, use dotsb.


        I also reorganized a bit your preamble.



        documentclassarticle
        usepackage[left=1.5in, right=1.5in, top=0.5in]geometry

        usepackageamsmath
        usepackagemathtools
        usepackageamsthm

        usepackagegraphicx
        usepackagesetspace

        onehalfspacing

        DeclareMathOperatorLogLog

        begindocument

        titleHomework Chapter 5
        author

        maketitle

        section*Section 5.2: 4,5,7

        paragraph4.
        Let $alpha$ be a complex number. Show that if $(1+z)^alpha$ is taken
        as $e^alpha Log(1+z)$, then for $|z|< 1$
        beginequation*
        (1+z)^alpha = 1 + fracalpha1z +
        fracalpha(alpha -1)1cdot2z^2 +
        fracalpha(alpha-1)(alpha-2)1cdot2cdot3z^3 + dotsb
        endequation*
        In general,
        beginequation
        fracd^jdz^j(1+z)^alpha=
        fracalpha! , (1+z)^alpha - j(alpha - j)!
        endequation

        enddocument


        enter image description here



        Do you see that the input is simpler? You don't have to worry where line ends: it's TeX that generally takes care of that.






        share|improve this answer















        The error is caused by the blank lines inside the equation environment: no blank line should appear there.



        There are also several “non fatal” errors in your code.



        1. Never end paragraphs in text with \, but with a blank line.


        2. Use displaystyle very sparingly: I believe to have used it in the body of a document just a handful of times. For the special occasion where you need a “big fraction” in text mode, there is dfrac. In the first case you use it, it is rather equation* than an inline equation.


        3. Using operatornameLog is fine, but I guess that using Log after defining DeclareMathOperatorLogLog is better, because in a complex analysis context the symbol will be quite often used.


        4. As a subtlety, remember to add , after ! if something immediately follows a factorial.


        5. cdots and ldots are fine, but just dots is in general better. However, when dots is not between alike symbols, you need to help amsmath; in your case, use dotsb.


        I also reorganized a bit your preamble.



        documentclassarticle
        usepackage[left=1.5in, right=1.5in, top=0.5in]geometry

        usepackageamsmath
        usepackagemathtools
        usepackageamsthm

        usepackagegraphicx
        usepackagesetspace

        onehalfspacing

        DeclareMathOperatorLogLog

        begindocument

        titleHomework Chapter 5
        author

        maketitle

        section*Section 5.2: 4,5,7

        paragraph4.
        Let $alpha$ be a complex number. Show that if $(1+z)^alpha$ is taken
        as $e^alpha Log(1+z)$, then for $|z|< 1$
        beginequation*
        (1+z)^alpha = 1 + fracalpha1z +
        fracalpha(alpha -1)1cdot2z^2 +
        fracalpha(alpha-1)(alpha-2)1cdot2cdot3z^3 + dotsb
        endequation*
        In general,
        beginequation
        fracd^jdz^j(1+z)^alpha=
        fracalpha! , (1+z)^alpha - j(alpha - j)!
        endequation

        enddocument


        enter image description here



        Do you see that the input is simpler? You don't have to worry where line ends: it's TeX that generally takes care of that.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Apr 5 at 13:27

























        answered Apr 5 at 7:18









        egregegreg

        732k8919303254




        732k8919303254





















            4














            In addition to getting into the habit of not creating blank lines inside display-math environments (such as equation), do also try to get used to not treating LaTeX like it's some kludgy version of MS Word, i.e., like it's a word processor. What do I mean by that? Basically, get over your instincts of applying lots and lots of visual formatting. Instead, get used to writing what you mean -- and let LaTeX handle the nitty-gritty formatting issues.



            It takes a couple of minutes (ok, a couple of hours...) to get used to not treating LaTeX like it's a word processor. But once you get the hang of it, you'll really start to enjoy LaTeX much more. Here's how I would re-write your code to make it more "LaTeX-y":



            enter image description here



            Note, for instance, the use of [ and ] to start and end an unnumbered display-math environment. Learning not to use \ to force line breaks (other than in tabular and array environments) is particularly important. And don't leave blank lines (which tell TeX to start a new paragraph) immediately before [ or beginequation. The amsmath package also provides the instruction DeclareMathOperator, which is handy for creating new "operators" such as Log.



            documentclass[letterpaper]article % not 'letter' 
            usepackageamsmath
            DeclareMathOperatorLogLog
            usepackageenumitem % allows fine-tuning of 'enumerate' environment
            begindocument

            titleHomework Chapter 5
            author
            date
            maketitle

            setcountersection5 % just for this example
            setcountersubsection1

            subsectionProblems 4, 5, and 7

            beginenumerate[wide=0pt, label=bfseriesarabic*., start=4]

            item Let $alpha$ be a complex number. Show that if $(1+z)^alpha$ is
            taken as $e^alphaLog(1+z)$, then for $|z|< 1$,
            [
            (1+z)^alpha = 1 + fracalpha1 z + fracalpha(alpha-1)1cdot2 z^2
            + fracalpha(alpha-1)(alpha-2)1cdot2cdot3 z^3 + dotsb
            ]
            In general,
            beginequation labeleq:taylor_exp
            fracd^jdz^j (1+z)^alpha
            =fracalpha! (1+z)^alpha - j(alpha - j)!
            endequation
            dots

            item dots

            stepcounterenumi

            item dots

            endenumerate

            enddocument





            share|improve this answer




















            • 2





              operatornameLog is common in complex analysis, to denote the “principal branch” of the logarithm. Please, never suggest to change “log” to “ln”: everybody is entitled their preferences.

              – egreg
              Apr 5 at 7:03











            • @egreg - Thanks. I'll edit my answer.

              – Mico
              Apr 5 at 7:11











            • I was wondering why we put labeleq:taylor_exp after beginequation?

              – K.M
              Apr 5 at 22:12






            • 1





              @K.M - The code that's executed when beginequation is encountered (pun intended) steps the counter called equation. The label statement must come after the code that increments the associated counter.

              – Mico
              2 days ago















            4














            In addition to getting into the habit of not creating blank lines inside display-math environments (such as equation), do also try to get used to not treating LaTeX like it's some kludgy version of MS Word, i.e., like it's a word processor. What do I mean by that? Basically, get over your instincts of applying lots and lots of visual formatting. Instead, get used to writing what you mean -- and let LaTeX handle the nitty-gritty formatting issues.



            It takes a couple of minutes (ok, a couple of hours...) to get used to not treating LaTeX like it's a word processor. But once you get the hang of it, you'll really start to enjoy LaTeX much more. Here's how I would re-write your code to make it more "LaTeX-y":



            enter image description here



            Note, for instance, the use of [ and ] to start and end an unnumbered display-math environment. Learning not to use \ to force line breaks (other than in tabular and array environments) is particularly important. And don't leave blank lines (which tell TeX to start a new paragraph) immediately before [ or beginequation. The amsmath package also provides the instruction DeclareMathOperator, which is handy for creating new "operators" such as Log.



            documentclass[letterpaper]article % not 'letter' 
            usepackageamsmath
            DeclareMathOperatorLogLog
            usepackageenumitem % allows fine-tuning of 'enumerate' environment
            begindocument

            titleHomework Chapter 5
            author
            date
            maketitle

            setcountersection5 % just for this example
            setcountersubsection1

            subsectionProblems 4, 5, and 7

            beginenumerate[wide=0pt, label=bfseriesarabic*., start=4]

            item Let $alpha$ be a complex number. Show that if $(1+z)^alpha$ is
            taken as $e^alphaLog(1+z)$, then for $|z|< 1$,
            [
            (1+z)^alpha = 1 + fracalpha1 z + fracalpha(alpha-1)1cdot2 z^2
            + fracalpha(alpha-1)(alpha-2)1cdot2cdot3 z^3 + dotsb
            ]
            In general,
            beginequation labeleq:taylor_exp
            fracd^jdz^j (1+z)^alpha
            =fracalpha! (1+z)^alpha - j(alpha - j)!
            endequation
            dots

            item dots

            stepcounterenumi

            item dots

            endenumerate

            enddocument





            share|improve this answer




















            • 2





              operatornameLog is common in complex analysis, to denote the “principal branch” of the logarithm. Please, never suggest to change “log” to “ln”: everybody is entitled their preferences.

              – egreg
              Apr 5 at 7:03











            • @egreg - Thanks. I'll edit my answer.

              – Mico
              Apr 5 at 7:11











            • I was wondering why we put labeleq:taylor_exp after beginequation?

              – K.M
              Apr 5 at 22:12






            • 1





              @K.M - The code that's executed when beginequation is encountered (pun intended) steps the counter called equation. The label statement must come after the code that increments the associated counter.

              – Mico
              2 days ago













            4












            4








            4







            In addition to getting into the habit of not creating blank lines inside display-math environments (such as equation), do also try to get used to not treating LaTeX like it's some kludgy version of MS Word, i.e., like it's a word processor. What do I mean by that? Basically, get over your instincts of applying lots and lots of visual formatting. Instead, get used to writing what you mean -- and let LaTeX handle the nitty-gritty formatting issues.



            It takes a couple of minutes (ok, a couple of hours...) to get used to not treating LaTeX like it's a word processor. But once you get the hang of it, you'll really start to enjoy LaTeX much more. Here's how I would re-write your code to make it more "LaTeX-y":



            enter image description here



            Note, for instance, the use of [ and ] to start and end an unnumbered display-math environment. Learning not to use \ to force line breaks (other than in tabular and array environments) is particularly important. And don't leave blank lines (which tell TeX to start a new paragraph) immediately before [ or beginequation. The amsmath package also provides the instruction DeclareMathOperator, which is handy for creating new "operators" such as Log.



            documentclass[letterpaper]article % not 'letter' 
            usepackageamsmath
            DeclareMathOperatorLogLog
            usepackageenumitem % allows fine-tuning of 'enumerate' environment
            begindocument

            titleHomework Chapter 5
            author
            date
            maketitle

            setcountersection5 % just for this example
            setcountersubsection1

            subsectionProblems 4, 5, and 7

            beginenumerate[wide=0pt, label=bfseriesarabic*., start=4]

            item Let $alpha$ be a complex number. Show that if $(1+z)^alpha$ is
            taken as $e^alphaLog(1+z)$, then for $|z|< 1$,
            [
            (1+z)^alpha = 1 + fracalpha1 z + fracalpha(alpha-1)1cdot2 z^2
            + fracalpha(alpha-1)(alpha-2)1cdot2cdot3 z^3 + dotsb
            ]
            In general,
            beginequation labeleq:taylor_exp
            fracd^jdz^j (1+z)^alpha
            =fracalpha! (1+z)^alpha - j(alpha - j)!
            endequation
            dots

            item dots

            stepcounterenumi

            item dots

            endenumerate

            enddocument





            share|improve this answer















            In addition to getting into the habit of not creating blank lines inside display-math environments (such as equation), do also try to get used to not treating LaTeX like it's some kludgy version of MS Word, i.e., like it's a word processor. What do I mean by that? Basically, get over your instincts of applying lots and lots of visual formatting. Instead, get used to writing what you mean -- and let LaTeX handle the nitty-gritty formatting issues.



            It takes a couple of minutes (ok, a couple of hours...) to get used to not treating LaTeX like it's a word processor. But once you get the hang of it, you'll really start to enjoy LaTeX much more. Here's how I would re-write your code to make it more "LaTeX-y":



            enter image description here



            Note, for instance, the use of [ and ] to start and end an unnumbered display-math environment. Learning not to use \ to force line breaks (other than in tabular and array environments) is particularly important. And don't leave blank lines (which tell TeX to start a new paragraph) immediately before [ or beginequation. The amsmath package also provides the instruction DeclareMathOperator, which is handy for creating new "operators" such as Log.



            documentclass[letterpaper]article % not 'letter' 
            usepackageamsmath
            DeclareMathOperatorLogLog
            usepackageenumitem % allows fine-tuning of 'enumerate' environment
            begindocument

            titleHomework Chapter 5
            author
            date
            maketitle

            setcountersection5 % just for this example
            setcountersubsection1

            subsectionProblems 4, 5, and 7

            beginenumerate[wide=0pt, label=bfseriesarabic*., start=4]

            item Let $alpha$ be a complex number. Show that if $(1+z)^alpha$ is
            taken as $e^alphaLog(1+z)$, then for $|z|< 1$,
            [
            (1+z)^alpha = 1 + fracalpha1 z + fracalpha(alpha-1)1cdot2 z^2
            + fracalpha(alpha-1)(alpha-2)1cdot2cdot3 z^3 + dotsb
            ]
            In general,
            beginequation labeleq:taylor_exp
            fracd^jdz^j (1+z)^alpha
            =fracalpha! (1+z)^alpha - j(alpha - j)!
            endequation
            dots

            item dots

            stepcounterenumi

            item dots

            endenumerate

            enddocument






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Apr 5 at 8:20

























            answered Apr 5 at 5:09









            MicoMico

            286k32390779




            286k32390779







            • 2





              operatornameLog is common in complex analysis, to denote the “principal branch” of the logarithm. Please, never suggest to change “log” to “ln”: everybody is entitled their preferences.

              – egreg
              Apr 5 at 7:03











            • @egreg - Thanks. I'll edit my answer.

              – Mico
              Apr 5 at 7:11











            • I was wondering why we put labeleq:taylor_exp after beginequation?

              – K.M
              Apr 5 at 22:12






            • 1





              @K.M - The code that's executed when beginequation is encountered (pun intended) steps the counter called equation. The label statement must come after the code that increments the associated counter.

              – Mico
              2 days ago












            • 2





              operatornameLog is common in complex analysis, to denote the “principal branch” of the logarithm. Please, never suggest to change “log” to “ln”: everybody is entitled their preferences.

              – egreg
              Apr 5 at 7:03











            • @egreg - Thanks. I'll edit my answer.

              – Mico
              Apr 5 at 7:11











            • I was wondering why we put labeleq:taylor_exp after beginequation?

              – K.M
              Apr 5 at 22:12






            • 1





              @K.M - The code that's executed when beginequation is encountered (pun intended) steps the counter called equation. The label statement must come after the code that increments the associated counter.

              – Mico
              2 days ago







            2




            2





            operatornameLog is common in complex analysis, to denote the “principal branch” of the logarithm. Please, never suggest to change “log” to “ln”: everybody is entitled their preferences.

            – egreg
            Apr 5 at 7:03





            operatornameLog is common in complex analysis, to denote the “principal branch” of the logarithm. Please, never suggest to change “log” to “ln”: everybody is entitled their preferences.

            – egreg
            Apr 5 at 7:03













            @egreg - Thanks. I'll edit my answer.

            – Mico
            Apr 5 at 7:11





            @egreg - Thanks. I'll edit my answer.

            – Mico
            Apr 5 at 7:11













            I was wondering why we put labeleq:taylor_exp after beginequation?

            – K.M
            Apr 5 at 22:12





            I was wondering why we put labeleq:taylor_exp after beginequation?

            – K.M
            Apr 5 at 22:12




            1




            1





            @K.M - The code that's executed when beginequation is encountered (pun intended) steps the counter called equation. The label statement must come after the code that increments the associated counter.

            – Mico
            2 days ago





            @K.M - The code that's executed when beginequation is encountered (pun intended) steps the counter called equation. The label statement must come after the code that increments the associated counter.

            – Mico
            2 days ago










            K.M is a new contributor. Be nice, and check out our Code of Conduct.









            draft saved

            draft discarded


















            K.M is a new contributor. Be nice, and check out our Code of Conduct.












            K.M is a new contributor. Be nice, and check out our Code of Conduct.











            K.M is a new contributor. Be nice, and check out our Code of Conduct.














            Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483276%2fwhy-do-i-get-an-error-when-i-try-to-begin-an-equation%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Sum ergo cogito? 1 nng

            419 nièngy_Soadمي 19bal1.5o_g

            Queiggey Chernihivv 9NnOo i Zw X QqKk LpB