# Questions tagged [piecewise]

Questions about the Piecewise function, which is represented by different expressions for different ranges of values of its independent variable.

453 questions
Filter by
Sorted by
Tagged with
84 views

### Derivative of piecewise function returns one more case

I define the following piecewise function: U[c_,n_,g_,p_]:=Piecewise[{{c^(1-g)/(1-g)-n^(1+p)/(1+p),g!=1}, {Log[c]-n^(1+p)/(1+p),g==1}}] When I take the derivative <...
• 209
71 views

### How to plot a function with different conditions (if or which or piecewise)

The given function is This function is plotted to be ...
• 664
239 views

### How to remove branches in Piecewise with measure 0

I am doing Convolve over UnitTriangle in 2 dimensions and the resulting piecewise function has conditions with measure zero (...
• 2,070
87 views

### I can't plot a certain solution

DSolve[{x''[ u] == -(1/ 2)*(2*1*(\[CapitalTheta] (u + a) - \[CapitalTheta] (u - a)))*x[u]}, {x[u]}, {u}]; x[u] /. {{x[u] -> C Cos[Sqrt Sqrt[a] u Sqrt[[...
1 vote
112 views

### NDSolve with piece-wise function and BVP

How to numerically solve a system of differential equation with boundary conditions and piece wise affine functions ? Consider the following system of differential equations from some optimal control ...
• 11
47 views

### How to plot the derivative of a piecewise discontinuous function (by excluding discontinuity points)

With the following code I am trying to get a plot for the derivative of the ftot1 function, which is a piecewise discontinuous function defined as the sum of other two piecewise discontinuous ...
• 1