Integrate f(x) = tanh(c*x^b)? Wolfram says not possible ....

  • Context: Graduate 
  • Thread starter Thread starter mikejm
  • Start date Start date
  • Tags Tags
    Integrate
Click For Summary
SUMMARY

The discussion centers on the integration of the equation f(x) = x/|x| * tanh(c * |x|^b) for guitar amp distortion emulation. The user, Mike, initially sought the integral of this equation but found that Wolfram Alpha indicated no integral exists, even for the simplified version y = tanh(c * x^b). However, Mike later discovered that by adjusting the order of operations, he could avoid the need for special integration, allowing him to process the x values through the (|x|^b * x/|x|) component before applying the tanh function.

PREREQUISITES
  • Understanding of waveshaping in audio processing
  • Familiarity with hyperbolic functions, specifically tanh
  • Basic knowledge of calculus, particularly integration
  • Experience with audio signal processing techniques
NEXT STEPS
  • Research the properties of hyperbolic functions in audio applications
  • Explore advanced integration techniques for complex equations
  • Learn about aliasing reduction methods in digital signal processing
  • Investigate alternative distortion algorithms for guitar effects
USEFUL FOR

Audio engineers, digital signal processing developers, and musicians interested in creating or optimizing guitar distortion effects.

mikejm
Messages
40
Reaction score
2
I'm working on a guitar amp distortion emulation which is waveshaping based on the following equation:

f(x)= x/|x| * tanh (c * |x|^b)

This looks like this:
tanh.PNG


So the idea is values of "x" (the raw guitar signal amplitudes) are fed in and get soft then hard limited to an output of y=+/-1. As the x values approach 0, the exponent "b" shapes them to emulate crossover distortion.

I think it's a nice equation for this type of work.

In order to reduce aliasing (see here), I require the use of the equation's integral.

So I am seeking the integral for this equation, but Wolfram Alpha says that no integral exists. Even for a simplified version:

y= tanh (c*x^b)

It says no such integral exists.

Is this correct? Is there anyway to reorganize the equation or work around it to get a working integral?

Thanks,
Mike
 

Attachments

  • tanh.PNG
    tanh.PNG
    12.1 KB · Views: 1,062
Physics news on Phys.org
I just thought of something.

The order of operations can be done like:
tanh2.PNG


In which case no special integration of anything is required. I just have to run my "x" values through the (|x|^b*x/|x|) component before multiplying them by drive (c) and then feeding them into my standard tanhx and integrated tanh functions.

Problem solved, I think. :)
 

Attachments

  • tanh2.PNG
    tanh2.PNG
    11.1 KB · Views: 568

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 24 ·
Replies
24
Views
6K
Replies
7
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K