Analyitical solution to function and second deritive of function

  • Thread starter munkifisht
  • Start date
  • Tags
    Function
In summary, the conversation discusses a boundary value problem involving a diffusion reaction and the use of FEM to find an analytical solution. The problem involves a linear equation with constant coefficients and the general solution is C_1e^x+ C_2e^{-x}. However, there is concern about the given information and further clarification is needed.
  • #1
munkifisht
5
0
I have the following (fairly simple) boundary value problem and I am trying to find an analytical solution to it, but for the life of me it's not working out. This is part of a larger thing where I'm trying to understand FEM and BVPs. Essentially this is a diffusion reaction problem.

My problem is I have the following (π=pi)

v-kv''=f(x)=sin(πx), x is between 1 and 2
v@x=0 = 0 and v@x=1 = 0

I have some plots but they are not matching my analytical solution (I think my brain has just broken tonight), but if anyone can steer me right I'd be grateful.
 
Physics news on Phys.org
  • #2
I should also have mentioned k is a constant
 
  • #3
The differential equation is [itex]-kv''+ v= sin(\pi x)[/itex]? That's a linear equation with constant coefficents. Its characteristic equation is [itex]-kr^2+ 1= 0[/itex] so that [itex]r= \pm 1[/itex] and the general solution is [itex]C_1e^x+ C_2e^{-x}[/itex] (it could also be written as [itex]C_1cosh(x)+ C_2sinh(x)[/itex]).

Look for a specific solution to the entire equation of the form [itex]Asin(\pi x)+ B cos(\pi x)[/itex].

But I am concerned about the information that the differential equation only holds between x= 1 and x= 2, so that the previous solution is valid only between x= 1 and x= 2, while we are given the value of v at x= 0. Not knowing what v is like between 0 and 1, it is impossible to use that information. I suggest you recheck that- either the d.e. holds between 0 and 1 or the boundary values are given at 1 and 2.
 
  • #4
#sorry, mistake on my part, yes, the equation holds between 0 and 1. Thanks for that, so rusty on differential calculus
 

FAQ: Analyitical solution to function and second deritive of function

What is an analytical solution to a function?

An analytical solution to a function refers to finding the exact mathematical expression or formula that describes the relationship between the input and output of a function. It involves using algebraic and mathematical techniques to solve the function without the use of approximation or numerical methods.

What is the importance of finding an analytical solution to a function?

Finding an analytical solution to a function provides a deeper understanding of the underlying mathematical principles and relationships within the function. It also allows for more accurate and precise calculations compared to using numerical methods.

How is the second derivative of a function calculated?

The second derivative of a function is calculated by finding the derivative of the first derivative. This can be done by applying the power rule, product rule, quotient rule, or chain rule, depending on the form of the function.

What does the second derivative of a function represent?

The second derivative of a function represents the rate of change of the rate of change of the function. In other words, it measures how quickly the slope of the function is changing at a specific point. This can provide insight into the concavity and inflection points of the function.

How is an analytical solution to a function different from a numerical solution?

An analytical solution to a function provides an exact and closed-form solution, while a numerical solution involves using algorithms and approximations to find an estimate of the solution. Analytical solutions are often preferred in scientific and mathematical contexts due to their precision and accuracy.

Similar threads

Replies
3
Views
3K
Replies
5
Views
2K
Replies
13
Views
1K
Replies
6
Views
1K
Replies
4
Views
1K
Replies
3
Views
1K
Back
Top