I want to represent a speed-breaker that I find in road in the form of an equation. Let's call it 3D speed-breaker. 3-Dimensions
The following is the speed-breaker that I can draw on a piece of a paper. Let's call it 2D speed-breaker. 2-Dimensions
The 2D speed-breaker can be built by inputting numbers into a function which is in terms of 'x'. y = f(x) lets me represent 2-dimensional speed-breakers in the form of an equation. 'x' is input. 'y' is output to build a 2D speed-breaker.
How to represent a 3-dimensional speed-breaker in the form of an equation?
I want to represent a 3D speed-breaker in the form of an equation.
Should I have 'x' as input and y,z as output to form this 3D speed-breaker?
In 2D speed-breaker I have only 'y' as unknown. In 3D speed-breaker I have two unknowns and 1 known?
Hence the question - how to represent a 3-dimensional speed-breaker in the form of an equation? Out of x,y,z how many are known and how many are unknown? What is the variable into which I need to plugin numbers to form 3D speed-breakers?
Let $f$ the function representing the $2$D speed-breaker. Then define $$g(x,y)=\begin{cases} f(x) & \text{if } |y| \le L \\ 0 & \text{otherwise}\end{cases}$$
With $L$ the width of the $3$D speed-breaker. Then just draw $z=g(x,y)$.