# matrix - diagram and the minimum value

**URL:** <https://community.wolfram.com/t/matrix-diagram-and-the-minimum-value/3339>\
**Category:** Questions\
**Created:** [September 17, 2014, 8:38pm UTC](https://community.wolfram.com/t/matrix-diagram-and-the-minimum-value/3339 "2014-09-17T20:38:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![artursmura](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@artursmura](https://community.wolfram.com/u/artursmura)\
**Post date:** [September 17, 2014, 8:38pm UTC](https://community.wolfram.com/t/matrix-diagram-and-the-minimum-value/3339/1 "2014-09-17T20:38:06Z")

</div>

Let ‘A’ be the matrix of degree 5 of the matrix elements

```
A = Table[Sin[(n - m)^2*x], {n, 1, 6}, {m, 1, 6}]

```

How to draw a graph of the function?–\> `f[x]=detA`  
and determine the minimum value of this function in the range of `{[Pi]/2, [Pi]}`

---

<div class="post-metadata">

**Author:** ![danl](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/danl/32/41267_2.png) [@danl](https://community.wolfram.com/u/danl)\
**Post date:** [September 17, 2014, 9:15pm UTC](https://community.wolfram.com/t/matrix-diagram-and-the-minimum-value/3339/2 "2014-09-17T21:15:21Z")

</div>

Clear[x, det, g]  
det = Det[Table[Sin[(n - m)^2\*x], {n, 1, 6}, {m, 1, 6}]];  
g[y\_?NumberQ] := det /. x → y

To get the min can use `NMinimize`.

```
NMinimize[{g[x], Pi/2 <= x <= Pi}, x]

Out[201]= {-15.6808053249, {x -> 1.94853409545}}

```

This will plot it.

```
Plot[g[x], {x, Pi/2, Pi}, PlotRange -> All]

```

---

<div class="post-metadata">

**Author:** ![artursmura](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@artursmura](https://community.wolfram.com/u/artursmura)\
**Post date:** [September 17, 2014, 9:38pm UTC](https://community.wolfram.com/t/matrix-diagram-and-the-minimum-value/3339/3 "2014-09-17T21:38:15Z")

</div>

Thank You very much
