Risky asset + risk free asset

Consider a simple economy with only two assets: a risk-free asset (rf) and a risky asset (rp). You can invest in a portfolio (c) that is comprised of the risk-free asset, or the risky asset, or a combination of the two assets. The proportion you choose to invest in the risky asset is here represented by y. A is the investor risk aversion coefficient, and we assume that the expected utility function of the investor is given by:

E[U(rc)]=E[rc]A2σrc2

The blue line in the plot below represents all possible investment opportunities, and is designated as the capital alocation line (CAL).

The orange dot in the plot represents the portfolio that results by combining the risk-free and the risky asset together, where the proportion invested in the risk-free asset is (1y)= 0.50, and the proportion invested in the risky asset is y= 0.50.

Assume the following information about the assets:

rf= 0.02

E[rp]= 0.1

σrp= 0.22

Use the slider below to see how changing the proportion you invest in the risky asset change the risk and return of portfolio c.

y = 0.5
A = 4
e_r_p = 0.1
sd_r_p = 0.22
r_f = 0.02
calculateValues = ƒ(y, A)
results = Object {ic: Array(40), label_ic: Object, cal: Array(200), p: Object, c: Object}
ic = Array(40) [Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, …]
label_ic = Array(1) [Object]
cal = Array(200) [Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, …]
p = Array(1) [Object]
c = Array(1) [Object]
0.000.020.040.060.080.100.120.140.16↑ Expected return0.000.050.100.150.200.250.300.350.40Standard deviation →pcA: 4; E[U(r)] = 0.03580
Investment opportunity set

This investor maximizes its utility by investing y=E[rc]rfAσrp2 = 0.41

We are here assuming that investors can borrow at the risk-free asset to invest in the risky asset. How do we know that? What changes when that is not the case?