# Help with Bessel Function

**URL:** <https://community.wolfram.com/t/help-with-bessel-function/5473>\
**Category:** Questions\
**Tags:** signal-processing, mathematica, calculus\
**Created:** [April 20, 2015, 6:11pm UTC](https://community.wolfram.com/t/help-with-bessel-function/5473 "2015-04-20T18:11:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![admoore6](https://avatars.discourse-cdn.com/v4/letter/a/f14d63/32.png) [@admoore6](https://community.wolfram.com/u/admoore6)\
**Post date:** [April 20, 2015, 6:11pm UTC](https://community.wolfram.com/t/help-with-bessel-function/5473/1 "2015-04-20T18:11:33Z")

</div>

I need help solving for a variable in modifed bessel function of the second kind and I have no idea. Can anyone help? Below is the equation and and what I’ve put in Mathematica.

 ![spielmanandgorenequation.png](https://global.discourse-cdn.com/wolfram/original/3X/7/d/7d9d48ea186525156c0d08e536444db11db26172.png)

I need to solve for K.  
d = 0.000012401  
a = 0.0382

solve[0.5 + ((2 [Sqrt]x)/0.000012401) (BesselK[1, (0.000012401/(2 [Sqrt]x))]/BesselK[0, (0.000012401/(2 [Sqrt]x))]) == 1/(4\*0.0382), x]

---

<div class="post-metadata">

**Author:** ![mhelmle](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@mhelmle](https://community.wolfram.com/u/mhelmle)\
**Post date:** [April 20, 2015, 7:55pm UTC](https://community.wolfram.com/t/help-with-bessel-function/5473/2 "2015-04-20T19:55:49Z")

</div>

Hello D. Moore,

here is your equation to start from:  
eq10 = 1/2 + ((2 Sqrt[k])/d) BesselK[1, (d/(2 Sqrt[k]))] /  
BesselK[0, (d/(2 Sqrt[k]))] == 1/(4 a);

It can be rewritten by substituting  
(d/(2 Sqrt[k])) → z :  
eq11 = 1/2 + (1/z) BesselK[1, z] /BesselK[0, z] == 1/(4 a);

You want to solve it numerically using FindRoot, therefore you have to reformat the equation in a way that the right handside is equal to zero. And you replace the symbol a by its value:  
eq12 = eq11[[1]] - 1/(4 a) /. { a → 0.0382}

Now solve using FindRoot:  
sol1 = FindRoot[eq12, {z, 1.}]

To get back to k, you enter sol1 in this equation:  
sol2 = k → (d / (2 z))^2 /. sol1 /. d → 0.000012401

Finally you want to check that the result is correct:  
eq10 /. sol2 /. { a → 0.0382, d → 0.000012401}

Regards,

Michael

---

<div class="post-metadata">

**Author:** ![sblinder](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/sblinder/32/17861_2.png) [@sblinder](https://community.wolfram.com/u/sblinder)\
**Post date:** [April 20, 2015, 8:21pm UTC](https://community.wolfram.com/t/help-with-bessel-function/5473/3 "2015-04-20T20:21:08Z")

</div>

k\_n is a modified Bessel function of the third kind, proportional to K\_{n+1/2). Also Sqrt is coded incorrectly. Here’s what I get for numerical solution of your problem:

```
In[14]:= d = 0.000012401; a = 0.0382;
FindRoot[0.5 + ((2 Sqrt[x])/
      0.000012401) (BesselK[3/2, (0.000012401/(2 Sqrt[x]))]/
      BesselK[1/2, (0.000012401/(2 Sqrt[x]))]) == 
  1/(4*0.0382), {x, .1}]

Out[15]= {x -> 1.55154*10^-10 - 9.43222*10^-21 I}

In[16]:= Chop[%]

Out[16]= {x -> 1.55154*10^-10}

```

---

<div class="post-metadata">

**Author:** ![admoore6](https://avatars.discourse-cdn.com/v4/letter/a/f14d63/32.png) [@admoore6](https://community.wolfram.com/u/admoore6)\
**Post date:** [April 20, 2015, 8:29pm UTC](https://community.wolfram.com/t/help-with-bessel-function/5473/4 "2015-04-20T20:29:21Z")

</div>

Thanks so much
