# 10.4 Optimizing transient finger damping on a driven string  (Page 2/2)

 Page 2 / 2
${u}_{xx}\approx \frac{u\left(x+dx,t\right)-2u\left(x,t\right)+u\left(x-dx,t\right)}{d{x}^{2}}$

These approximations may be substituted into our original partial differential equation in order to solve for $u\left(x,t\right)$ .

The second finite difference method used to solve the wave equation is the trapezoidal approximation method, where we have the system of equations

${\left(\begin{array}{c}u\\ {u}_{t}\end{array}\right)}_{t}=\left(\begin{array}{cc}0& I\\ {\partial }_{xx}& -c\left(t\right)\delta \left(x-{x}_{c}\right)\end{array}\right)\left(\begin{array}{c}u\\ {u}_{t}\end{array}\right)+\left(\begin{array}{c}0\\ b\left(t\right)\delta \left(x-{x}_{b}\right)\end{array}\right)$

which we will denote as

${V}^{\text{'}}\left(t\right)=A\left(t\right)V\left(t\right)+B\left(t\right)$

where $I$ represents the identity matrix. The ${\partial }_{xx}$ operator is a tridiagonal matrix with -2 along the diagonal and ones along the superdiagonal and subdiagonal. The approximating integral equation

${\int }_{\left(j-1\right)dt}^{jdt}{V}^{\text{'}}\left(t\right)\phantom{\rule{0.166667em}{0ex}}dt={\int }_{\left(j-1\right)dt}^{jdt}\left(A\left(t\right)V\left(t\right)+B\left(t\right)\right)\phantom{\rule{0.166667em}{0ex}}dt$

is solved to reveal a solution for $u\left(jdt\right)$ . The trapezoidal integration method turns out to be the more accurate of the two solution methods, since its error is less than the error of the forward Euler method. Real values for the string's tension, density, and length were used to evaluate the solution for the trapezoidal method, but gave us unintelligible results when used for the forward Euler method. Both methods were used to evaluate the solution using arbitrary values.

## Optimization

With all the preliminary work established, we can move on to the optimization problem. We investigated two objective functions for optimization. The first objective function considered was the following

$J\left(c\left(t\right)\right)={\int }_{0}^{\ell }{\left(u\left(x,T;c\left(t\right)\right)-{u}_{0}\left(x,T\right)\right)}^{2}dx.$

Here a suitable time $T$ is preordained. It is legitimate to do this since damping should not affect the periodic details of the waveform. The $u\left(x,T\right)$ is solved with the given $c\left(t\right)$ and fitted to ${u}_{0}\left(x,T\right)=sin\left(\frac{4\pi x}{\ell }\right)$ . We parameterize

$c\left(t\right)={e}^{-{c}_{1}t}-{e}^{-{c}_{2}t}$

which acts at one point on the string with a shape similar to the following.

It is important also that ${c}_{1}<{c}_{2}$ to guarantee the above shape. Our control problem then, is to

$\begin{array}{cccc}& \underset{{c}_{1},{c}_{2}}{min}\hfill & \hfill \phantom{\rule{1.em}{0ex}}& {\int }_{0}^{\ell }{\left(u\left(x,T;c\left(t\right)\right)-{u}_{0}\left(x,T\right)\right)}^{2}dx\hfill \end{array}$

subject to $u\left(x,T;c\left(t\right)\right)$ solving our wave equation with the same initial and boundary conditions. There is a scaling issue since $u\left(x,T\right)$ is small (on the order of ${10}^{-5}$ ) at times. To correct this we scale our target ${u}_{0}$ so that the two waveforms are comparable before we run the optimization. Normalizing $u$ instead, would be cumbersome since the maximum amplitude depends on time. To expedite the optimizer, we supply the gradient of our objective

$\nabla J\left(c\left(t\right)\right)=\left(\frac{\partial J\left(c\left(t\right)\right)}{\partial {c}_{1}},\frac{\partial J\left(c\left(t\right)\right)}{\partial {c}_{2}}\right).$

The equations for the partial derivatives are as follows.

$\frac{\partial J\left(c\left(t\right)\right)}{\partial {c}_{1}}=2{\int }_{0}^{\ell }\left(u\left(x,T;c\left(t\right)\right)-{u}_{0}\left(x,T\right)\right)\left(\frac{\partial u\left(x,T,c\left(t\right)\right)}{\partial {c}_{1}}\right)dx,$
$\frac{\partial J\left(c\left(t\right)\right)}{\partial {c}_{2}}=2{\int }_{0}^{\ell }\left(u\left(x,T;c\left(t\right)\right)-{u}_{0}\left(x,T\right)\right)\left(\frac{\partial u\left(x,T,c\left(t\right)\right)}{\partial {c}_{2}}\right)dx$

The inner partial derivatives will be approximated by the same finite difference method we used above.

One of the main difficulties with this objective function is that it requires a $T$ to be found beforehand and thus we can only optimize with respect to our spacial dimension. Optimizing over both space and time would rid us of needing to find a good $T$ but complicates our objective function and retards our optimizer. Another concern with this objective is that it takes into account the sign of the target waveform, but whether the waveform is $sin\left(x\right)$ or $-sin\left(x\right)$ is no matter to the musician. Along the same lines we have the scaling difficulty. Another objective function we have explored is the following energy minimization problem. We note that $u\left(x,t\right)$ can be represented as a combination of sinusoids. For a given $T$ we have

$u\left(x,T\right)=\sum _{n=1}^{N}{u}_{n}sin\left(\frac{2n\pi x}{\ell }\right).$

Here each ${u}_{n}$ represents the nth Fourier coefficient that corresponds to the expression of the nth mode in the total wave. Since we are interested in expressing only the fourth mode, our optimization problem will try to minimize all other modes

$\begin{array}{cccc}& \underset{{c}_{1},{c}_{2}}{min}\hfill & \hfill \phantom{\rule{1.em}{0ex}}& \phantom{\rule{4pt}{0ex}}F\left(c\left(t\right)\right)={\int }_{0}^{{T}_{fin}}\left(\sum _{n=1,n\ne 4}^{10},\left[{\left({\int }_{0}^{\ell },\left(u\left(x,t;c\left(t\right)\right)sin,\left(\frac{n\pi x}{\ell }\right),d,x\right)}^{2}\right]\right)dt\hfill \end{array}$

subject to our wave equation with the same conditions. We decide on clearing up the first ten modes (except the fourth) to ensure that we are left with a waveform closest to our target. Like before we supply the gradient.

$\frac{\partial F\left(c\left(t\right)\right)}{\partial {c}_{1}}=2{\int }_{0}^{{T}_{fin}}\left(\sum _{n=1,n\ne 4}^{10},{\int }_{0}^{\ell },\left(u\left(x,t;c\left(t\right)\right)sin,\left(\frac{n\pi x}{\ell }\right),\frac{\partial u\left(x,t,c\left(t\right)\right)}{\partial {c}_{1}},d,x\right)dt,$
$\frac{\partial F\left(c\left(t\right)\right)}{\partial {c}_{2}}=2{\int }_{0}^{{T}_{fin}}\left(\sum _{n=1,n\ne 4}^{10},{\int }_{0}^{\ell },\left(u\left(x,t;c\left(t\right)\right)sin,\left(\frac{n\pi x}{\ell }\right),\frac{\partial u\left(x,t,c\left(t\right)\right)}{\partial {c}_{2}},d,x\right)dt.$

This objective function solves the sign and amplitude problems of the first. Additionally we are now optimizing over time so we need not specify a $T$ . One may wish to reset the bounds of the time integral through a different interval.

## Results

This is the result of our optimizer given a certain driving force $b\left(t\right)$ using our first objective function.

This is the result of our optimizer at a certain time using the energy minimization objective. Since we optimized over space and time, we express this as a three dimensional plot.

For the energy minimization objective function using multiple dampings, we have this result.

Comparatively, the values of the objective function for single and multiple dampings are on the same order of magnitude, with the value for the single dampings being slightly smaller. Therefore the optimization process for a single damping is more effective, but not by much.

## Acknowledgments

We would like to give a big thanks to Dr. Steve Cox for his guidance and support throughout the course of the project. This paper describes work completed with the support of the NSF.

## Appendix

All of the codes used in this project are available on our website at

http://www.owlnet.rice.edu/ mlg6/strings/.

## References

1. Bamerger, A., J. Rauch and M. Taylor. A model for harmonics on stringed instruments . Arch. Rational Mech. Anal. 79(1982) 267-290.
2. Cheney, E. W., and David Kincaid. Numerical Mathematics and Computing . Pacific Grove, CA: Brooks/Cole Pub., 1994. Print.
3. Cox, S., and Antoine Hernot. Eliciting Harmonics on Strings . ESAIM: COCV 14(2008) 657-677.
4. Fletcher, Neville H., and Thomas D. Rossing. The Physics of Musical Instruments . New York: Springer-Verlag, 1991. Print.
5. Knobel, Roger. An Introduction to the Mathematical Theory of Waves . Providence, RI: American Mathematical Society, 2000. Print.
6. Rayleigh, John William Strutt, and Robert Bruce Lindsay. The Theory of Sound . New York: Dover, 1945. Print.

#### Questions & Answers

do you think it's worthwhile in the long term to study the effects and possibilities of nanotechnology on viral treatment?
absolutely yes
Daniel
how to know photocatalytic properties of tio2 nanoparticles...what to do now
it is a goid question and i want to know the answer as well
Maciej
characteristics of micro business
Abigail
Do somebody tell me a best nano engineering book for beginners?
what is fullerene does it is used to make bukky balls
are you nano engineer ?
s.
fullerene is a bucky ball aka Carbon 60 molecule. It was name by the architect Fuller. He design the geodesic dome. it resembles a soccer ball.
Tarell
what is the actual application of fullerenes nowadays?
Damian
That is a great question Damian. best way to answer that question is to Google it. there are hundreds of applications for buck minister fullerenes, from medical to aerospace. you can also find plenty of research papers that will give you great detail on the potential applications of fullerenes.
Tarell
what is the Synthesis, properties,and applications of carbon nano chemistry
Mostly, they use nano carbon for electronics and for materials to be strengthened.
Virgil
is Bucky paper clear?
CYNTHIA
so some one know about replacing silicon atom with phosphorous in semiconductors device?
Yeah, it is a pain to say the least. You basically have to heat the substarte up to around 1000 degrees celcius then pass phosphene gas over top of it, which is explosive and toxic by the way, under very low pressure.
Harper
Do you know which machine is used to that process?
s.
how to fabricate graphene ink ?
for screen printed electrodes ?
SUYASH
What is lattice structure?
of graphene you mean?
Ebrahim
or in general
Ebrahim
in general
s.
Graphene has a hexagonal structure
tahir
On having this app for quite a bit time, Haven't realised there's a chat room in it.
Cied
what is biological synthesis of nanoparticles
what's the easiest and fastest way to the synthesize AgNP?
China
Cied
types of nano material
I start with an easy one. carbon nanotubes woven into a long filament like a string
Porter
many many of nanotubes
Porter
what is the k.e before it land
Yasmin
what is the function of carbon nanotubes?
Cesar
I'm interested in nanotube
Uday
what is nanomaterials​ and their applications of sensors.
what is nano technology
what is system testing?
preparation of nanomaterial
Yes, Nanotechnology has a very fast field of applications and their is always something new to do with it...
what is system testing
what is the application of nanotechnology?
Stotaw
In this morden time nanotechnology used in many field . 1-Electronics-manufacturad IC ,RAM,MRAM,solar panel etc 2-Helth and Medical-Nanomedicine,Drug Dilivery for cancer treatment etc 3- Atomobile -MEMS, Coating on car etc. and may other field for details you can check at Google
Azam
anybody can imagine what will be happen after 100 years from now in nano tech world
Prasenjit
after 100 year this will be not nanotechnology maybe this technology name will be change . maybe aftet 100 year . we work on electron lable practically about its properties and behaviour by the different instruments
Azam
name doesn't matter , whatever it will be change... I'm taking about effect on circumstances of the microscopic world
Prasenjit
how hard could it be to apply nanotechnology against viral infections such HIV or Ebola?
Damian
silver nanoparticles could handle the job?
Damian
not now but maybe in future only AgNP maybe any other nanomaterials
Azam
Hello
Uday
I'm interested in Nanotube
Uday
this technology will not going on for the long time , so I'm thinking about femtotechnology 10^-15
Prasenjit
how did you get the value of 2000N.What calculations are needed to arrive at it
Privacy Information Security Software Version 1.1a
Good
Berger describes sociologists as concerned with
Got questions? Join the online conversation and get instant answers!