How to Create a Tridiagonal Matrix with Lambda Values in Latex?

  • Context: LaTeX 
  • Thread starter Thread starter flufypancakes
  • Start date Start date
  • Tags Tags
    Exam Home Latex
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 3K views
flufypancakes
Messages
11
Reaction score
0
take home exam urgent latex help!

hi! i don't know anything about latex, but i need pictures a matrix:

it is a tridiagonal matrix with (1-2lambda) on the main diagonal (except for the last row where it's 1-lambda) and lambdas above and below:

[(1-2*lambda) lambda 0 0 ........ 0]

[lambda (1-2*lambda) lambda 0 0 ...... 0]

[ 0 lambda (1-2*lambda) lambda 0 ... 0 ]

[ 0 \ \ \ 0 ]

...

[ 0 ......... lambda (1-lambda)]



please help, can't focus on actual problems because of these silly things. any format will do: ,jpg, .png, .pdf, ... anything or just the latex code.
 
Physics news on Phys.org
Welcome to PF fluffy,

Google for 'latex arrays' and you should find a number of appropriate tutorials.