In applied mathematics, the Kelvin functions berν(x) and beiν(x) are the real and imaginary parts, respectively, of
                              J                      ν                                    (          x                      e                                                            3                  π                  i                                4                                              )                ,                        where x is real, and Jν(z), is the νth order Bessel function of the first kind. Similarly, the functions Kerν(x) and Keiν(x) are the real and imaginary parts, respectively, of
                              K                      ν                                    (          x                      e                                                            π                  i                                4                                              )                ,                        where Kν(z) is the νth order modified Bessel function of the second kind.
These functions are named after William Thomson, 1st Baron Kelvin.
While the Kelvin functions are defined as the real and imaginary parts of Bessel functions with x taken to be real, the functions can be analytically continued for complex arguments xeiφ, 0 ≤ φ < 2π. With the exception of Bern(x) and Bein(x) for integral n, the Kelvin functions have a branch point at x = 0.
Below, Γ(z) is the Gamma function and ψ(z) is the Digamma function.
For integers n, bern(x) has the series expansion
                                          b            e            r                                n                          (        x        )        =                              (                                          x                2                                      )                                n                                    ∑                      k            ≥            0                                                              cos                                            [                                  (                                                                                    3                        n                                            4                                                        +                                                            k                      2                                                        )                                π                ]                                                    k              !              Γ              (              n              +              k              +              1              )                                                            (                                                            x                                      2                                                  4                                      )                                k                          ,                where Γ(z) is the Gamma function. The special case ber0(x), commonly denoted as just ber(x), has the series expansion
                              b          e          r                (        x        )        =        1        +                  ∑                      k            ≥            1                                                              (              −              1                              )                                  k                                                                    [              (              2              k              )              !                              ]                                  2                                                                                          (                                          x                2                                      )                                4            k                                  and asymptotic series
                              b          e          r                (        x        )        ∼                                            e                                                x                                      2                                                                                      2              π              x                                                (                      f                          1                                (          x          )          cos                    α          +                      g                          1                                (          x          )          sin                    α          )                −                                                            k                e                i                            (              x              )                        π                                  ,
where
                    α        =                              x                          2                                      −                              π            8                          ,                                              f                      1                          (        x        )        =        1        +                  ∑                      k            ≥            1                                                              cos                            (              k              π                              /                            4              )                                      k              !              (              8              x                              )                                  k                                                                              ∏                      l            =            1                                k                          (        2        l        −        1                  )                      2                                                                g                      1                          (        x        )        =                  ∑                      k            ≥            1                                                              sin                            (              k              π                              /                            4              )                                      k              !              (              8              x                              )                                  k                                                                              ∏                      l            =            1                                k                          (        2        l        −        1                  )                      2                          .                For integers n, bein(x) has the series expansion
                                          b            e            i                                n                          (        x        )        =                              (                                          x                2                                      )                                n                                    ∑                      k            ≥            0                                                              sin                                            [                                  (                                                                                    3                        n                                            4                                                        +                                                            k                      2                                                        )                                π                ]                                                    k              !              Γ              (              n              +              k              +              1              )                                                            (                                                            x                                      2                                                  4                                      )                                k                          .                The special case bei0(x), commonly denoted as just bei(x), has the series expansion
                              b          e          i                (        x        )        =                  ∑                      k            ≥            0                                                              (              −              1                              )                                  k                                                                    [              (              2              k              +              1              )              !                              ]                                  2                                                                                          (                                          x                2                                      )                                4            k            +            2                                  and asymptotic series
                              b          e          i                (        x        )        ∼                                            e                                                x                                      2                                                                                      2              π              x                                      [                  f                      1                          (        x        )        sin                α        −                  g                      1                          (        x        )        cos                α        ]        −                                                            k                e                r                            (              x              )                        π                          ,                where α,                               f                      1                          (        x        )                , and                               g                      1                          (        x        )                 are defined as for ber(x).
For integers n, kern(x) has the (complicated) series expansion
                                                                                                                            k                    e                    r                                                        n                                                  (                x                )                =                −                ln                                                  (                                                            x                      2                                                        )                                                                      b                    e                    r                                                        n                                                  (                x                )                +                                                      π                    4                                                                                        b                    e                    i                                                        n                                                  (                x                )                                                                                                  +                                                      1                    2                                                                                        (                                                                  x                        2                                                              )                                                        −                    n                                                                    ∑                                      k                    =                    0                                                        n                    −                    1                                                  cos                                                  [                                      (                                                                                            3                          n                                                4                                                              +                                                                  k                        2                                                              )                                    π                  ]                                                                                            (                      n                      −                      k                      −                      1                      )                      !                                                              k                      !                                                                                                            (                                                                                            x                                                      2                                                                          4                                                              )                                                        k                                                                                                                                    +                                                      1                    2                                                                                        (                                                                  x                        2                                                              )                                                        n                                                                    ∑                                      k                    ≥                    0                                                  cos                                                  [                                      (                                                                                            3                          n                                                4                                                              +                                                                  k                        2                                                              )                                    π                  ]                                                                                            ψ                      (                      k                      +                      1                      )                      +                      ψ                      (                      n                      +                      k                      +                      1                      )                                                              k                      !                      (                      n                      +                      k                      )                      !                                                                                                            (                                                                                            x                                                      2                                                                          4                                                              )                                                        k                                                  .                                                            The special case ker0(x), commonly denoted as just ker(x), has the series expansion
                              k          e          r                (        x        )        =        −        ln                          (                                    x              2                                )                          b          e          r                (        x        )        +                              π            4                                    b          e          i                (        x        )        +                  ∑                      k            ≥            0                          (        −        1                  )                      k                                                              ψ              (              2              k              +              1              )                                      [              (              2              k              )              !                              ]                                  2                                                                                          (                                                            x                                      2                                                  4                                      )                                2            k                                  and the asymptotic series
                              k          e          r                (        x        )        ∼                                            π                              2                x                                                              e                      −                                          x                                  2                                                                    [                  f                      2                          (        x        )        cos                β        +                  g                      2                          (        x        )        sin                β        ]        ,                where
                    β        =                              x                          2                                      +                              π            8                          ,                                              f                      2                          (        x        )        =        1        +                  ∑                      k            ≥            1                          (        −        1                  )                      k                                                              cos                            (              k              π                              /                            4              )                                      k              !              (              8              x                              )                                  k                                                                              ∏                      l            =            1                                k                          (        2        l        −        1                  )                      2                                                                g                      2                          (        x        )        =                  ∑                      k            ≥            1                          (        −        1                  )                      k                                                              sin                            (              k              π                              /                            4              )                                      k              !              (              8              x                              )                                  k                                                                              ∏                      l            =            1                                k                          (        2        l        −        1                  )                      2                          .                For n an integer kein(x) has the (complicated) series expansion
                                                                                                                            k                    e                    i                                                        n                                                  (                x                )                =                −                ln                                                  (                                                            x                      2                                                        )                                                                      b                    e                    i                                                        n                                                  (                x                )                −                                                      π                    4                                                                                        b                    e                    r                                                        n                                                  (                x                )                                                                                                  −                                                      1                    2                                                                                        (                                                                  x                        2                                                              )                                                        −                    n                                                                    ∑                                      k                    =                    0                                                        n                    −                    1                                                  sin                                                  [                                      (                                                                                            3                          n                                                4                                                              +                                                                  k                        2                                                              )                                    π                  ]                                                                                            (                      n                      −                      k                      −                      1                      )                      !                                                              k                      !                                                                                                            (                                                                                            x                                                      2                                                                          4                                                              )                                                        k                                                                                                                                    +                                                      1                    2                                                                                        (                                                                  x                        2                                                              )                                                        n                                                                    ∑                                      k                    ≥                    0                                                  sin                                                  [                                      (                                                                                            3                          n                                                4                                                              +                                                                  k                        2                                                              )                                    π                  ]                                                                                            ψ                      (                      k                      +                      1                      )                      +                      ψ                      (                      n                      +                      k                      +                      1                      )                                                              k                      !                      (                      n                      +                      k                      )                      !                                                                                                            (                                                                                            x                                                      2                                                                          4                                                              )                                                        k                                                  .                                                            The special case kei0(x), commonly denoted as just kei(x), has the series expansion
                              k          e          i                (        x        )        =        −        ln                          (                                    x              2                                )                          b          e          i                (        x        )        −                              π            4                                    b          e          r                (        x        )        +                  ∑                      k            ≥            0                          (        −        1                  )                      k                                                              ψ              (              2              k              +              2              )                                      [              (              2              k              +              1              )              !                              ]                                  2                                                                                          (                                                            x                                      2                                                  4                                      )                                2            k            +            1                                  and the asymptotic series
                              k          e          i                (        x        )        ∼        −                                            π                              2                x                                                              e                      −                                          x                                  2                                                                    [                  f                      2                          (        x        )        sin                β        +                  g                      2                          (        x        )        cos                β        ]        ,                where β, f2(x), and g2(x) are defined as for ker(x).