Linear & Piecewise Models (DP IB Applications & Interpretation (AI)): Revision Note

Linear Models

What are the parameters of a linear model?

  • A linear model is of the form space f left parenthesis x right parenthesis equals m x plus c

  • The value of m represents the rate of change of the function

    • This is the amount the function increases/decreases when x increases by 1

      • e.g. the function f open parentheses x close parentheses equals 2 x plus 1 increasing by 2 every time x increases by 1

    • If the function is increasing then m is positive

    • If the function is decreasing then m is negative

    • When the model is represented as a graph this is the gradient of the line

  • The value of c represents the value of the function when x space equals space 0

    • This is the value of the function when the independent variable is not present

    • This is usually referred to as the initial value

    • When the model is represented as a graph this is the y-intercept of the line

  • For example, suppose H open parentheses t close parentheses equals 3 t plus 0.75 the vertical height of a bird above the ground in metres after t seconds

    • The bird starts 0.75 metres above the ground

    • The height is increasing by 3 metres per second

What can be modelled as a linear model?

  • If the graph of the data resembles a straight line

  • Anything with a constant rate of change

  • Examples include:

    • C(d) is the taxi charge for a journey of d km

    • B(m) is the monthly mobile phone bill when m minutes have been used

    • R(d) is the rental fee for a car used for d days

    • d(t) is the distance travelled by a car moving at a constant speed for t seconds

What are possible limitations of a linear model?

  • Linear models assume that the variable continuously increases (or decreases) at the same rate

    • In real-life this might not be the case

      • The function might reach a maximum (or minimum)

      • The rate of increase might vary

  • If the value of m is negative then for some inputs the model will predict negative values

    • In some real-life situations negative values will not make sense

      • To overcome this you can decide on an appropriate domain so that the outputs are never negative

Worked Example

The total cost,space C, in New Zealand dollars (NZD), of a premium gym membership at FitFirst can be modelled by the function

space C equals 14.95 t plus 30 comma blank t greater or equal than 0

where space t is the time in weeks.

a) Calculate the cost of the gym membership for 20 weeks.

2-3-1-ib-ai-sl-linear-models-a-we-solution

b) Find the number of weeks it takes for the total cost to exceed 1500 NZD.

2-3-1-ib-ai-sl-linear-models-b-we-solution

c) Under new management, FitFirst changes the initial payment to 20 NZD and the weekly cost to 19.25 NZD. Write the new cost function after these changes have been.

2-3-1-ib-ai-sl-linear-models-c-we-solution

Linear Piecewise Models

What are the parameters of a piecewise linear model?

  • A piecewise linear model is made up of multiple linear models space f subscript i open parentheses x close parentheses equals m subscript i x plus c subscript i

  • For each linear model there will be

    • The rate of change for that interval, m subscript i

    • The value if the independent variable was not present, c subscript i

What can be modelled as a piecewise linear model?

  • Piecewise linear models can be used when the rate of change of a function changes for different intervals

    • These commonly apply when there are different tariffs or levels of charges

  • Anything with a constant rate of change for set intervals

  • Examples include:

    • C(d) is the taxi charge for a journey of d km

      • The charge might double after midnight

    • R(d) is the rental fee for a car used for d days

      • The daily fee might triple if the car is rented over bank holidays

    • s(t) is the speed of a car travelling for t seconds with constant acceleration

      • The car might reach a maximum speed

What are possible limitations of a piecewise linear model?

  • Piecewise linear models assume that the variable has a constant rate of change (represented by a straight line) in each interval

    • In real-life this might not be the case

    • The data in some intervals might have a variable rate of change (represented by a curve) rather than a constant rate

    • Or the transition from one constant rate of change to another may be gradual- i.e. a curve rather than a sudden change in gradient

Examiner Tips and Tricks

You can plot piecewise functions on your GDC by entering the domain for each part.

Worked Example

The total monthly charge, £ C, of phone bill can be modelled by the function

space C left parenthesis m right parenthesis equals open curly brackets table row cell 10 plus 0.02 m end cell row cell 9 plus 0.03 m end cell end table blank table row cell 0 less or equal than m less or equal than 100 end cell row cell m greater than 100 end cell end table close,

wherespace m is the number of minutes used.

a) Find the total monthly charge if 80 minutes have been used.

2-3-1-ib-ai-sl-piecewise-models-a-we-solution

b) Given that the total monthly charge is £16.59, find the number of minutes that were used.

2-3-1-ib-ai-sl-piecewise-models-b-we-solution

Unlock more, it's free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Dan Finlay

Author: Dan Finlay

Expertise: Maths Subject Lead

Dan graduated from the University of Oxford with a First class degree in mathematics. As well as teaching maths for over 8 years, Dan has marked a range of exams for Edexcel, tutored students and taught A Level Accounting. Dan has a keen interest in statistics and probability and their real-life applications.

Lucy Kirkham

Reviewer: Lucy Kirkham

Expertise: Head of Content Creation

Lucy has been a passionate Maths teacher for over 12 years, teaching maths across the UK and abroad helping to engage, interest and develop confidence in the subject at all levels.Working as a Head of Department and then Director of Maths, Lucy has advised schools and academy trusts in both Scotland and the East Midlands, where her role was to support and coach teachers to improve Maths teaching for all.