# How to plot the result of NDEigensystem

**URL:** <https://community.wolfram.com/t/how-to-plot-the-result-of-ndeigensystem/21795>\
**Category:** Questions\
**Tags:** calculus, graphics-and-visualization\
**Created:** [March 22, 2023, 9:42am UTC](https://community.wolfram.com/t/how-to-plot-the-result-of-ndeigensystem/21795 "2023-03-22T09:42:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![atparaskevopoulos](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/atparaskevopoulos/32/28364_2.png) [@atparaskevopoulos](https://community.wolfram.com/u/atparaskevopoulos)\
**Post date:** [March 22, 2023, 9:42am UTC](https://community.wolfram.com/t/how-to-plot-the-result-of-ndeigensystem/21795/1 "2023-03-22T09:42:42Z")

</div>

Given the following problem

-\frac{1}{2}y''(x)+-\frac{1}{2}[x^2+\sin^2{(\frac{2 k \pi x}{L}})]y(x)=E y(x), \quad x \in [-L,L]

y(-L)=y(L)=0 where L=30 and k=2.  
We want to calculate the first ten eigenvalues and the 5 first eigenfunctions. Using the command NDEigensystem.

As the following notebook shows, I have defined my equation and my Dirichlet conditions.  
Then I used the NDEigensystem command and calculate the first ten eigenvalues. But I cannot figure out how I could plot only the first five eigenfunctions. Any suggestions

[Open in Wolfram Cloud ↗](https://www.wolframcloud.com/obj/34cbdfa5-c811-4c46-9448-0bebc3707580)
