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
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
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