LaTeX forum ⇒ Math & ScienceEquation system not working as I want to

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
MathiasHan
Posts: 3
Joined: Mon Oct 01, 2018 11:46 am

Equation system not working as I want to

Postby MathiasHan » Mon Oct 01, 2018 11:51 am

Hi folks,

I am kinda new to LaTeX and trying to build a presentation with some math.

I want to write these two equations, but not quite sure how to do it:

As for equation number (1) I am wondering on how I allign the equations meanwhile I just keep equation 1 and not equation 1 and 2 :)

My code is currently:
  1. \begin{eqnarray}
  2. F_{t+1} &=& F_t+F_t*(R_{t+1}-1)(1-\tau_{PAL})+\theta Y_{t+1} \\
  3. &=& \theta Y_{t+1}+F_t(\tau_{PAL}+R_{t+1}(1-\tau_{PAL})),
  4. \end{eqnarray}

, but this results with equation 1 and 2 whereas it should only be 1.

For equation number 4 I am not sure which codes to use

Can anyone help me? :)

Best regards MathiasH
Attachments
Hjælp LaTeX.JPG
Hjælp LaTeX.JPG (18.98 KiB) Viewed 181 times

User avatar
Stefan Kottwitz
Site Admin
Posts: 9152
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Mon Oct 01, 2018 7:29 pm

Hi Mathias,

welcome to the forum!

Here is a way:

  1. \documentclass{article}
  2. \usepackage{amsmath}
  3. \begin{document}
  4. \begin{equation}
  5. \begin{split}
  6. F_{t+1} &= F_t+F_t*(R_{t+1}-1)(1-\tau_{PAL})+\theta Y_{t+1} \\
  7. &= \theta Y_{t+1}+F_t(\tau_{PAL}+R_{t+1}(1-\tau_{PAL})),
  8. \end{split}
  9. \end{equation}
  10. \end{document}


Never use eqnarray (any more), since that is not optimal. Better use align or any other environment of the amsmath package.

Stefan
Site admin

User avatar
Johannes_B
Site Moderator
Posts: 3883
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Mon Oct 01, 2018 7:37 pm

What is shown in the figure as equation four can be done using the cases environment of package amsmath.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

MathiasHan
Posts: 3
Joined: Mon Oct 01, 2018 11:46 am

Postby MathiasHan » Mon Oct 01, 2018 10:56 pm

Thank you!!!

However, now I am stuck on this line which is normal text. Anyone have any clue on how to write it?

"If we let $\mathbf{\mu}(t+1)$ be the vector of the expected returns in year t+1 and let $\sum_=$" clearly does not work.
Attachments
help latex 2.JPG
help latex 2.JPG (15.71 KiB) Viewed 156 times

User avatar
Stefan Kottwitz
Site Admin
Posts: 9152
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Mon Oct 01, 2018 11:01 pm

Stuck with which detail? What does not work? Making bold? Then use \boldsymbol{\mu}.

Stefan
Site admin

MathiasHan
Posts: 3
Joined: Mon Oct 01, 2018 11:46 am

Postby MathiasHan » Mon Oct 01, 2018 11:11 pm

Thanks! That one works perfectly now. Any idea of how I do the sigma with 2 lines under? :-)

Such a great help!

User avatar
Stefan Kottwitz
Site Admin
Posts: 9152
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Mon Oct 01, 2018 11:20 pm

I guess that's the easiest straightforward way:

  1. \documentclass{article}
  2. \begin{document}
  3. $\underline{\underline{\sum}} x$
  4. \end{document}


Strefan
Site admin


Return to “Math & Science”

Who is online

Users browsing this forum: No registered users and 3 guests