Skip to main content

All Questions

1 vote
1 answer
192 views

Integrating piecewise function in two variables

I want to find (and plot) the integral of a 'smooth' version of the Möbius function MoebiusMu[x]: ...
Richard Burke-Ward's user avatar
1 vote
1 answer
142 views

Strange behaviour in derivative of Floor function

The function Floor[x] is piecewise constant, hence its derivatives should be piecewise zero. This is far from true in Mathematica In[497]:= $Version Out[497]= "10.1.0 for Microsoft Windows (64-...
Dr. Wolfgang Hintze's user avatar
1 vote
2 answers
260 views

Problem with the integration of this piecewise function

I encounter a problem when I try to integrate the piecewise function defined in the following code: ...
Targamas's user avatar
0 votes
1 answer
1k views

Finding the tangent to a piecewise function

I'm new to Mathematica and I am trying to calculate the expression of the tangent to the curve ...
NATALIA NAVEA's user avatar
0 votes
0 answers
458 views

Integral of a step function ,

I am trying to integrate a step function given in a book, but it doesn't work. ...
Racaio Cmoto's user avatar
0 votes
0 answers
242 views

Implicit function: derivative of piecewise function that has a FindRoot in one of the pieces

I have a piecewise function that has as one piece the result of a numerical approximation, like in the example below: ...
Laura K's user avatar
  • 393
1 vote
2 answers
796 views

NDSolve with Piecewise function

I have the following code on Mathematica ...
optimal control's user avatar
4 votes
1 answer
117 views

Simplify integral with piecewise expression

How can I simplify this integral? Integrate[Piecewise[{{c[x], 0 <= x <= 1/2}, {0, True}}], {x, 0, 1}] I think it should be the same as ...
OhmSweetOhm's user avatar
2 votes
1 answer
603 views

Force derivative of piecewise function at boundary points to be one-sided derivative

I've defined a smooth step function given as f[x_] = Piecewise[{ {y0, x<x0-dx/2}, {y0+1/2(y1-y0)(1-Cos[Pi*x/dx]), x<x0+dx/2}, {y0, True} }]; ...
user51299's user avatar
6 votes
3 answers
1k views

Integrating a piecewise function with symbolic pieces

Suppose I want to compute the antiderivative of this simple function: $$f(t)=\begin{cases} 1 & \text{if $0\le t\le t_1$,} \\ -1 & \text{if $t_1\le t\le t_2$}, \\ 0 & \text{otherwise,} \end{...
user avatar
1 vote
1 answer
143 views

Cross-sections of a revolutionplot3D of a piece-wise function

I trying to get multiple cross-sections of a revolution plot I made from a piece-wise function. The end goal would be to calculate integrals underneath those cross-sections. my code looks like this: <...
user 3 50's user avatar
  • 157
4 votes
3 answers
1k views

Most efficient way to integrate a linear piecewise function

I am having a lot of trouble integrating a simple function. Here's the context: I generate data from two distributions, and I want to calculate the overlap coefficient of representing those datasets ...
Aaron Bramson's user avatar
1 vote
2 answers
112 views

Piecewise integration fail or something else?

I have a not-so-complicated piecewise cubic function, shown below as the yellow curve on the right. It's derivative is on the left; the blue lines are references. Please see the code below where I ...
Lee David Chung Lin's user avatar
1 vote
1 answer
732 views

Variable Increments in a Table

I am working on a problem involving the piecewise function: $$x^2 \quad \mbox{if } \quad x < 2$$ $$(x-3)/(\sqrt{x-2}-1) \quad \mbox{if } \quad x \geq 2$$ I am supposed to find ...
Owen Huff's user avatar
1 vote
1 answer
213 views

Interpretation of HeavisideTheta Integration Output

I need to integrate integrals of the type Integrate[Boole[2 k*q >= Absolute[p^2 - k^2 - q^2]], q] where $q$, $k$, and $p$ go from $0$ to $1$. To learn to ...
Rico's user avatar
  • 149

15 30 50 per page