2012年10月21日星期日

Assignment 5: Smooth function

Assignment 5: Smooth function

A smooth function is a function that has continuous derivatives up to some desired order over some domain.

y=-2|x-1|+3
We can separate this function to three parts:
y=-2(x-1)+3=-2x+5  when x>1
y=-2(1-1)+3=3         when x=1
y=2(x-1)+3=2x+1     when x<1



We can see from the first graph, the max of this function is 3.


But when x<1 , the function have a positive slope.
when x>1, the function have a negative slope.
when x=1, the function's slope is exist.


Because the when X=1, the slope is not exit, so this function is a non-smooth function.


Assignment 4: Non smooth function

Assignment 4: Non smooth function


According to above data, we got the first graph.
The red grapgs are composed of four linear functions:
1. y=x+2
2. y=-2x+5
3. y=1
4. y=7x-20

The blue graph is a quadratic function:
5. y=-1/2x^2+4x

After the  derivation, we can find out the slope of each functions:
1. y'=1
2. y'=-2
3. y'=0
4. y'=7
5. y'=-x+4



2012年10月14日星期日

HW 2: Function y = f(x) - Independent and dependent variable (concave or convex S, D).

HW 3: Slope of an Economical Curve (theory of derivation, slope of linear function, slope of quadratic function, degresive or progresive increase)

HW 3: Slope of an Economical Curve (theory of derivation, slope of linear function, slope of quadratic function, degresive or progresive increase)

In this homework I choose the economical curve is the total utility curve.

A curve illustrating the relation between the total utility obtained from consuming a good and the quantity of the good consumed. The shape of the total utility curve, increasing at a decreasing rate, reflects the law of diminishing marginal utility. The reason for this is that slope of the total utility curve is marginal utility, meaning the total utility curve can be use to derive the marginal utility curve.
 
QTotal UtilityMarginal UtilityP
00
111105
22084
32763
43242
53521
63600
735-2



In this case, the total utility have the binomial expression: y=-x^2+12x.


According to the Q=2, we find a linear y=9x+2 which connect with the point(2,20) in the second graph.
If we find countless linear to connect with total utility graph, we can find the slope of the total utility.


The marginal utility actually is the slope of total utility, the linear expression of marginal utility is y=-2x+12.
We can see that when marginal utility equal to 0, that total utility achieve to the max.


HW 1: Approximation of discrete values by continuous diferenciable function (MS Excel)

HW 1: Approximation of discrete values by continuous diferenciable function (MS Excel)

In this homework, we set up the datas about virtual company's supply.
The Price is the independent variable and the Quality is the dependent variable.

P12345678910
Q8101416182224262523



Like the first graph, it's based on the datas from the P and Q. However, in the economic graph, the independent variable P is in Y axis, and the dependent variable Q is in X axis.

The first graph is use the trend line to describe the trend of the Q, but here we use the binominal expression.
So, it's easy to find out that after the Q=6. the price start to decreasing.



Second graph has the same data with first graph, the only different is that they has different trend line. The second trend line is the linear expression. In the linear expression, it's hard to find out the real trend of P.