Engineering Mathematics Mathematics For Construction: Analytical or Problem-Solving Skills
Engineering Mathematics Mathematics For Construction: Analytical or Problem-Solving Skills
Guided learner
Self-learner
Any professional has to be a lifelong learner
MATHEMATICAL FUNCTIONS
𝑑(𝑥)
In
𝜃(𝑡)
𝜃 is the dependent variable because it depends on time,
𝑡. Time, 𝑡, is an independent variable.
In
𝑑(𝑥)
𝑑 is the dependent variable because it depends on the
distance, 𝑥. Distance, 𝑥, is the independent variable.
500
Number of call inquiries per month
400
300
200
100
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
Marketing expenditure [m LKR]
>> x=[0.0 0.5 1.0 1.5 2.0 2.5 3.0 4.0 4.5 5.0 5.5 6.0];
>> y=[994 1067 1111 1133 1192 1243 1301 1405 1457 1489 1552
1590];
>>polyfit(x,y,n)
Fits a polynomial of order n to the (x, y) dataset
o 𝑛 = 1; 𝑦 = 𝑎1 𝑥 + 𝑎0 (linear or 1st order)
o 𝑛 = 2; 𝑦 = 𝑎2 𝑥 2 + 𝑎1 𝑥 + 𝑎0 (quadratic or 2nd order)
o 𝑛 = 3; 𝑦 = 𝑎3 𝑥 3 + 𝑎2 𝑥 2 + 𝑎1 𝑥 + 𝑎0 (cubic or 3rd
order)
x and y are data arrays
For this example, scatter plot shows a linear trend. Hence, we fit a linear
polynomial or straight line (𝑛 = 1). In other words, we perform “Linear
regression” using MATLAB to find the line of best fit.
𝑦 = 99.1𝑥 + 1001.4
Question:
Answer: Yes. Because the line of best fit represents the relationship
between x and y.